// Emulate "position: fixed" on #rightads for IE 5+ on Windows.
// Based on code from quirksmode.org.

var fixed;
var theTop = 3;
var old = theTop;

function moverightads() 
{
	if (window.innerHeight) 
	{
		  pos = window.pageYOffset
	}
	else if (document.documentElement && document.documentElement.scrollTop) 
	{
		pos = document.documentElement.scrollTop
	}
	else if (document.body) 
	{
		  pos = document.body.scrollTop
	}
	if (pos < theTop) pos = theTop;
	else pos += theTop;
	if (pos == old) 
	{
		fixed.style.top = pos + "px";
	}
	old = pos;
	temp = setTimeout('moverightads()',200);
}

var ua = navigator.userAgent;

// Use the javascript method in MSIE for Windows,
//   (which does not support position:fixed)
// and also in recent FireFox/Mozilla on OS X
//   (where it triggers a Flash-related repaint bug)

if ( (ua.search(/MSIE.*Win/) != -1 && ua.search(/Opera/) == -1) || (ua.search(/Mac OS X .* Gecko\/200[45]/) != -1 && ua.search(/Camino/) == -1) ) 
{
	fixed = new getObj('slidead');
	if (fixed.obj && fixed.style) 
	{
		fixed.style.position = 'absolute'; // Only necessary in Gecko
		moverightads();
	}
}

