var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
bannerAD[0]="http://arts.tom.com/img/assets/200506/20050614153331shou-140.jpg";
   bannerADlink[0]="http://arts.tom.com/";
   bannerAD[1]="http://arts.tom.com/images/pic/zhuanti/032300flash/flasher/yang-140.jpg";
   bannerADlink[1]="http://arts.tom.com/"; 
   bannerAD[2]="http://arts.tom.com/images/pic/zhuanti/032300flash/flasher/xilieju.gif";
   bannerADlink[2]="http://flash.tom.com/";
   bannerAD[3]="http://arts.tom.com/img/assets/200505/2005051717382535r34643656.jpg";
   bannerADlink[3]="http://arts.tom.com/";
   bannerAD[4]="http://arts.tom.com/img/assets/200506/20050610143723cao-140.jpg";
   bannerADlink[4]="http://arts.tom.com/"; 
  var preloadedimages=new Array();
   for (i=1;i<5;i++){
preloadedimages[i]=new Image();
      preloadedimages[i].src=bannerAD[i];
   }

function setTransition(){
   if (document.all){
      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
      bannerADrotator.filters.revealTrans.apply();
   }
}

function playTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.play()
}

function nextAd(){
   if(adNum<bannerAD.length-1)adNum++ ;
      else adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", 6000);
}

function jump2url(){
   jumpUrl=bannerADlink[adNum];
   jumpTarget='_blank';
   if (jumpUrl != ''){
      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
      else location.href=jumpUrl;
   }
}
function displayStatusMsg() { 
   status=bannerADlink[adNum];
   document.returnValue = true;
}
