	window.moveTo(0,0); //DO NOT REMOVE !!!!
	//window.resizeTo(800,593);
  
function getObject(obj) 
{
	//var theObj;
	if(document.all) 
	{
		if(typeof obj=="string") 
			return document.all(obj);
		else 
			return obj.style;
	}
	
	if(document.getElementById) 
	{
		if(typeof obj=="string") 
			return document.getElementById(obj);
		else 
			return obj.style;
	}
	
	return null;
}

function getWindowHeight() 
{
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) 
  {
    //Non-IE
    myHeight = window.innerHeight;
  } 
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
  {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
  {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}
function getWindowWidth() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } 
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
  {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
  {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

if (self.innerWidth) //FireFox
{
	//window.resizeTo(790,534);
	//alert("FF");
	var nHeightDiff = 534 - window.innerHeight;
	var nWidthDiff = 790 - window.innerWidth;
	if(nHeightDiff != 0 || nWidthDiff != 0)
	{
		window.resizeBy(nWidthDiff, nHeightDiff);
		nHeightDiff = 534 - window.innerHeight;
		nWidthDiff = 790 - window.innerWidth;
	}
}
else if(document.body) //IE
{
	//window.resizeTo(790,534);
	//alert("IE");
	var nHeightDiff = 534 - getWindowHeight();
	var nWidthDiff = 790 - getWindowWidth();
	if(nWidthDiff != 0)
	{
		window.resizeBy(nWidthDiff, 0);
		nWidthDiff = 790 - getWindowWidth();
	}
	
	if(nHeightDiff != 0)
	{
		window.resizeBy(0, nHeightDiff);
		nHeightDiff = 534 - getWindowHeight();
		//alert("hDiff: "+nHeightDiff+" cHeight: "+getWindowHeight());
	}
}
else if(document.documentElement && document.documentElement.clientWidth)// Other browsers
{
	alert("Other");
	var nHeightDiff = 534 - getWindowHeight();
	var nWidthDiff = 790 - getWindowWidth();
	if(nHeightDiff != 0 || nWidthDiff != 0)
	{
		window.resizeBy(nWidthDiff, nHeightDiff);
		nHeightDiff = 534 - getWindowHeight();
		nWidthDiff = 790 - getWindowWidth();
	}
}
