if (top.frames.length != 0) top.location=self.location; 

function getWindowWidth()
{	if (window.innerWidth)
	{ return window.innerWidth;
	}
	else
	{	if (document.documentElement && document.documentElement.clientWidth) 
		{	return document.documentElement.clientWidth;
		}
		return document.body.offsetWidth;
	}
}

function getWindowHeight()
{	if (window.innerHeight)
	{	return window.innerHeight;
	}
	else
	{	if (document.documentElement && document.documentElement.clientHeight) 
		{	return document.documentElement.clientHeight;
		}
		return document.body.offsetHeight;
	}
}

function setSize()
{
wx=getWindowWidth();
wy=getWindowHeight();
sx=screen.availWidth;
sy=screen.availHeight;

if (!wx || wx==0 || wx=="") { wx=1024; }
if (!wy || wy==0 || wy=="") { wy=1024; }

if (wx<1024)
{	if (sx>=1024) { setx=1024-wx; }
	else { setx=sx-wx; }
}
else
{ setx=0;
}
if (wy<(sy*0.8)) { sety=Math.round(sy*0.8)-wy; }
else { sety=0; }

if (sety>0 && setx==0) { setx=1; }
if (setx!=0 && sety!=0)
{ window.resizeBy(setx,sety);
}

}

