function resize () 
	{location.reload();return false;}
if(document.layers)window.captureEvents(Event.RESIZE); window.onresize=resize;


var  mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false;
var  op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != -1)) ?true : false;
var isMacIE = ( (navigator.userAgent.indexOf("IE 4") > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );
var  js10 = (document.images)?false:true;
var  js11 = (document.images) && ((window.screen)?false:true); 
var  ie = ((document.all) && (window.offscreenBuffering)) ? true : false; 
var  isNS = ((document.captureEvents) && (!document.getElementById)) ? true : false; 

y=0; moveon=0;

function testfunc() 
{
br=0;
	if (ie)        
	{
	br=2;
	ccc='document.all["';aaa='"].style';
	}
	if (isNS)        	
	{
	ccc='document.layers.scrollWindowDiv.document.layers["';aaa='"]';
	}
	if (mz)
	{
	ccc='document.getElementById("';aaa='").style';
	}
	if(op) 
	{
	ccc='document.getElementById("';aaa='").style';
	}
}

function movefunc(bbb,valuevar) 
{
test=y;  
y+=valuevar;
if (y < -25100 || y > 1) 
	{
	y=test;
	eval(ccc+bbb+aaa+'.top="'+y+'"');
}
else 
	{
	eval(ccc+bbb+aaa+'.top="'+y+'"');
	}
}

function scrollfunc(valuevar) 
{
movefunc('scrollContentDiv',valuevar);
a=valuevar;
if ((moveon)&&(y<10)) setTimeout("scrollfunc(a)",1);
}

function gone()
{   
if(isNS)
	{   
	document.scrollWindowDiv.document.scrollContentDiv.moveTo(20,0); 
	y=0;
	}   
if(ie)   
	{   
	scrollContentDiv.style.pixelLeft=20;   
	scrollContentDiv.style.pixelTop=0;
	y=0;
	}   
if(mz)
	{   
	document.getElementById("scrollContentDiv").style.left="20px";    
	document.getElementById("scrollContentDiv").style.top="0px";
	y=0;
	}
if(op)
	{   
	scrollContentDiv.style.pixelLeft=20;   
	scrollContentDiv.style.pixelTop=0;
	y=0;
	}
}
