afRotator.restartDelay=4000;afRotator.col=[];function afRotator(_1,_2,_3,_4){this.name=_1;this.speed=_2||4500;this.path=_3||"";this.tgt=_4;this.ctr=0;this.timer=0;this.imgs=[];this.actions=[];this.index=afRotator.col.length;afRotator.col[this.index]=this;this.animString="afRotator.col["+this.index+"]";}afRotator.prototype.addImages=function(){var _5;for(var i=0;arguments[i];i++){_5=new Image();_5.src=this.path+arguments[i];this.imgs[this.imgs.length]=_5;}};afRotator.prototype.addActions=function(){var _7=arguments.length;for(var i=0;i<_7;i++){this.actions[this.actions.length]=arguments[i];}};afRotator.prototype.rotate=function(){clearTimeout(this.timer);this.timer=null;if(this.ctr0){var _1f="\"\"";if(this.clickable){str+=""+_1f+"";}else{str=_1f;}for(var i=0;_19[i];i++){this.addImages(_19[i]);}}document.write(str);document.close();};afRandRotator.prototype.rotate=function(){if(randimglist){clearTimeout(this.timer);this.timer=null;var ctr=Math.floor(Math.random()*this.imgs.length);var i=0;while(ctr==this.ctr&&i<6){ctr=Math.floor(Math.random()*this.imgs.length);i++;}}else{ctr=(this.ctr+1)>=this.imgs.length?0:(this.ctr+1);}this.ctr=ctr;var _23=document.images[this.name];if(!_23){return;}_23.height =this.imgs[this.ctr].height;_23.width=this.imgs[this.ctr].width;if(this.trans&&typeof _23.filters!="undefined"){_23.style.filter="blendTrans(duration=1)";if(_23.filters.blendTrans){_23.filters.blendTrans.Apply();}}_23.src=this.imgs[this.ctr].src;if(this.trans&&typeof _23.filters!="undefined"&&_23.filters.blendTrans){_23.filters.blendTrans.Play();}this.timer=setTimeout(this.animString+".rotate()",this.speed);}; var randimglist = false; var target = 0;if(target) {var rotator25 = new afRandRotator(4000, "", true, true,"new");}else{var rotator25 = new afRandRotator(4000, "", true, true);} var imgList = new Array("http://promote.totesportaffiliates.com/processing/impressions.asp?btag=a_3986b_61" ,"http://promote.totesportaffiliates.com/processing/impressions.asp?btag=a_3986b_120" ); var imgSize = new Array("width=728 height=90","width=728 height=90" ); // images array, width and height of images, transition filter (boolean) rotator25.setUpImage(imgList, imgSize, true); rotator25.addActions( "http://promote.totesportaffiliates.com/processing/clickthrgh.asp?btag=a_3986b_61" ,"http://promote.totesportaffiliates.com/processing/clickthrgh.asp?btag=a_3986b_120" ); afRotator.start();