var ScrollFreeze = {
	propFlag : true,
	Ydisp : 0,
	Xdisp : 0,
	
	on : function()
	{
		if(this.getProp())
		window.onscroll=function(){ ScrollFreeze.setXY(); }
	},
	
	off : function(){window.onscroll=null;},
	
	getProp : function()
	{
		if( typeof window.pageYOffset != 'undefined' )
		{
			this.Ydisp=window.pageYOffset;
			this.Xdisp=window.pageXOffset;
		}
		else
			if(document.documentElement)
			{
			this.Ydisp=document.documentElement.scrollTop;
			this.Xdisp=document.documentElement.scrollLeft;
			}
			else
				if(document.body && typeof document.body.scrollTop != 'undefined')
				{
					 this.Ydisp=document.body.scrollTop;
					 this.Xdisp=document.body.scrollLeft;
				}
				else
					 this.propFlag=false;
		
		return this.propFlag;
	},
	
	setXY : function()
	{
		window.scrollTo( this.Xdisp, this.Ydisp );
	}
}
