var _divAdRight;
var _divAdLeft;
function _setLR()
{
	var L = document.getElementById("divAdLeft");
	var R = document.getElementById("divAdRight");
	var _W = document.body.clientWidth;
	var _M = 786;
	var _TDWidth = _W - _M;
	if (_TDWidth % 2 == 0)
	{
		_TDWidth = _TDWidth / 2;
	}
	else
	{
		_TDWidth = (_TDWidth + 1) / 2;
	}

	function FloatTopDiv()
	{
		function _getObject(id)
		{
			var e = document.getElementById ? document.getElementById(id) : document.all ? document.all[id] : document.layers[id];
			e.y = 0;
			return e;
		}
		
		window.stayTopLeft = function()
		{
			if (document.documentElement && document.documentElement.scrollTop)
				var pY =  document.documentElement.scrollTop;
			else if (document.body)
				var pY =  document.body.scrollTop;
			
			_divAdLeft.y += (pY - _divAdLeft.y) / 16;
			_divAdLeft.style.top = _divAdLeft.y + "px";
			
			_divAdRight.y += (pY - _divAdRight.y) / 16;
			_divAdRight.style.top = _divAdRight.y + "px";
			
			setTimeout("stayTopLeft()", 1);
		}

		_divAdLeft = _getObject("divAdLeft");
		_divAdRight = _getObject("divAdRight");
		stayTopLeft();
	}
	
	if (_W < 1000)
	{
		L.style.display = "none";
		L.style.display = "none";
	}
	else
	{
		L.style.textAlign = "right";
		L.style.paddingRight = "1px";
		L.style.display = "block";
		L.style.position = "absolute";
		L.style.width = _TDWidth + "px";
		L.style.left = "0px";
		L.style.marginLeft = (navigator.appName == 'Microsoft Internet Explorer') ? "0px" : "-2px";
		
		R.style.textAlign = "left";
		R.style.paddingLeft = (navigator.appName == 'Microsoft Internet Explorer') ? "1px" : "10px";
		R.style.display = "block";
		R.style.position = "absolute";
		R.style.width = "auto";
		R.style.left = (navigator.appName == 'Microsoft Internet Explorer') ? ((_TDWidth + _M) + "px") : ((_TDWidth + _M - 8) + "px");
		
		FloatTopDiv();
	}
}
_setLR();
window.onresize = _setLR;