var IE=document.all;var compatable=(IE||parseInt(navigator.appVersion)>=5);var debug=[];var cWin=null;function scrollToTop(){setTimeout("window.scroll(0,0);",200);}var noFocus;var reserveObj=null;var keepLooking=true;if(!noFocus&&document.forms.length){for(j=0;j 0 && curPage)) { curNew = newPos; curPage -= dir; moveAds(newPos); } } function moveAds (newPos) { var delay = 100; var diff = Math.abs(newPos - curPos); var pos = Math.floor((newPos - curPos) / 2) + curPos; // If it's within 5 pixles..... if (diff < 5) pos = newPos; document.getElementById('featuredDiv').style.left = pos + 'px'; curPos = pos; if (curPos != newPos) curTo = setTimeout('moveAds('+ newPos +')',delay); else curTo = null; } function getCenter() { var ctr = new Array(); // Calculate the page width and height if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { ctr[0] = Math.floor(document.body.clientWidth / 2) + document.body.scrollLeft; ctr[1] = Math.floor(document.body.clientHeight / 2) + document.body.scrollTop; } else if( document.body.innerWidth ) { ctr[0] = Math.floor(document.body.innerWidth / 2) + document.body.pageXOffset; ctr[1] = Math.floor(document.body.innerHeight / 2) + document.body.pageYOffset; } else { ctr[0] = 0; ctr[1] = 0; } return ctr; }