
var fixed;
var theTop = 0;
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()',500);
}

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 = document.getElementById('rightadfixed');

  if (fixed.style) {
    
	 fixed.style.position = 'absolute'; // Only necessary in Gecko
     moverightads();
  }
}









