var phWinWidth = 0, phWinHeight = 0;

function setWindowSize() 
{
	if( typeof( window.innerWidth ) == 'number' ) 
	{
	  //Non-IE
	  phWinWidth = window.innerWidth;
	  phWinHeight = window.innerHeight;
	} 
	else if( document.documentElement &&
	    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
		//IE 6+ in 'standards compliant mode'
		phWinWidth = document.documentElement.clientWidth;
		phWinHeight = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
		//IE 4 compatible		
		phWinWidth = document.body.clientWidth;
		phWinHeight = document.body.clientHeight;
	}
	else
	{
		phWinWidth = window.innerWidth;
		phWinHeight = window.innerHeight;
	}
}

