var g_banners=0;var windowFocus=true;window.onblur=function(){windowFocus=false};window.onfocus=function(){windowFocus=true};function StartBanners(G,F,B,A){if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){A=window.innerWidth}else{if(navigator.appName.indexOf("Microsoft")!=-1){A=document.body.offsetWidth}}}g_banners=G;var C=0;while(C<g_banners.length){var E=getStyleObject(g_banners[C]);if(document.layers){E.left=C*F;E.top=0;if((E.left+F)<=A){RecordView(g_banners[C])}}else{E.left=(C*F)+"px";E.top="0px";if((parseInt(E.left)+F)<=A){RecordView(g_banners[C])}}C=C+1}var D=F*g_banners.length;window.setTimeout("MoveBanners("+F+", "+B+", "+D+", "+A+");",B)}function MoveBanners(G,C,F,B){if(windowFocus){var D=0;var A=F-G;while(D<g_banners.length){var E=getStyleObject(g_banners[D]);if(document.layers){if(E.left<(-1*G)){E.left=A}else{E.left=E.left-1;if((E.left+G)==B){RecordView(g_banners[D])}}}else{if(parseInt(E.left)<(-1*G)){E.left=A+"px"}else{E.left=(parseInt(E.left)-1)+"px";if((parseInt(E.left)+G)==B){RecordView(g_banners[D])}}}D=D+1}}window.setTimeout("MoveBanners("+G+", "+C+", "+F+", "+B+");",C)}function getStyleObject(A){if(document.getElementById&&document.getElementById(A)){return document.getElementById(A).style}else{if(document.all&&document.all(A)){return document.all(A).style}else{if(document.layers&&document.layers[A]){return document.layers[A]}else{return false}}}}function RecordView(B){var C=document.getElementById(B+"img");if(C){var A=C.src;A.replace(/&ts=([\d]*)/g,"");C.src=A+"&ts="+new Date().getTime()}}
