// JavaScript Document
//scroller fix
function getScrollXY ()
{
	var scrOfX = 0, scrOfY = 0;
	if (typeof (window.pageYOffset) == 'number')
	{
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	}
	else if (document.body && (document.body.scrollLeft || document.body.scrollTop))
	{
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	}
	else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop))
	{
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	}
	return [scrOfX, scrOfY];
}
//
function scrollDiv(delta){
	window.scroll(getScrollXY()[0], getScrollXY()[1] +  (0 - delta * 8));
}
//
function setFlashHeight(nh){
	//var clis = readSize();
	//if(clis[1] < nh){
		document.getElementById('flash_cont').style.height = nh+'px';	
		document.getElementById('design').style.height = nh+'px';	
/*	}else{
		document.getElementById('flash_cont').style.height = clis[1]+'px';	
		document.getElementById('design').style.height = clis[1]+'px';	
	}*/
}
//
function readSize() 
{
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) 
	{
    	browserType = "notIe";
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
		myHa = 31;
  	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
    //IE 6+ in 'standards compliant mode'
		browserType = "ie6";
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		myHa = 0;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
		//IE 4 compatible
		browserType = "ie4";
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	return [myWidth, myHeight];
}
