function ResizeWindow(){
	performResize();
}
function gogo(){
	hideRightBanner();
	window.onresize = onResizeManager;
	checkRez();
}

function checkRez()
{
	var sWidth=screen.width;
	var sHeight=screen.height;
	 if(sHeight>=864)
	{
		 if ((navigator.userAgent.indexOf("MSIE") > -1))
		 {
			var contentHeight=document.body.offsetHeight-4+"px";
			//var contentWidth=document.body.offsetWidth+"px";
			document.getElementById("content").style.height=contentHeight;
			//document.getElementById("content").style.width=contentWidth;
			//document.getElementById("content").style.overflowX='auto';
			//document.getElementById("content").style.overflowY='scroll';
		}
		else
		{
			var contentHeight=document.body.offsetHeight-1+"px";
			document.getElementById("content").style.height=contentHeight;
			document.getElementById("content").style.overflowY='scroll';
		}
	}
}
function onResizeManager(){
	fixScroll();
	hideRightBanner();
	positionAd();
}
function fixScroll()
{
	 if ((navigator.userAgent.indexOf("MSIE") > -1))
	{
		var contentHeight=document.body.offsetHeight-4+"px";
		var contentWidth=document.body.offsetWidth-4+"px";
		document.getElementById("content").style.height=contentHeight;
		document.getElementById("content").style.width=contentWidth;
		document.getElementById("content").style.overflowX='auto';
		document.getElementById("content").style.overflowY='scroll';
	}
	else
	{
		var contentHeight=document.body.offsetHeight-1+"px";
		document.getElementById("content").style.height=contentHeight;
		document.getElementById("content").style.overflow='auto';
	}
}
function hideRightBanner()
{
	if (document.body.clientWidth < 1020)
	{
		document.getElementById("right").style.display = "none";
	}
	else
	{
		document.getElementById("right").style.display = "block";
	}
}

function positionAd()
{
	if (document.getElementById("FlashDiv") != null && showArticleAd)
	{			
		var pos=getAbsolutePos(document.getElementById("mainArc"));
		document.getElementById("FlashDiv").style.top = pos[1];
		document.getElementById("FlashDiv").style.left = pos[0];
		document.all.FlashDiv.style.visibility = 'visible';
	}
}