﻿var intSTime = 10000;//time
var intSWidth = 720;//witdh px
var intSHeight = 70;//height px
var collectSAd;
var adNum = 0
function slectImg(){
        this.items = [];
        this.addItem = function(adURL,strURL,strBak,intChMode,intTarget){
            var newItem = {};
            newItem.adURL = adURL;
            newItem.strURL = strURL;
            newItem.strBak = strBak;
            newItem.intChMode = intChMode;
            newItem.intTarget = intTarget;
            this.items[this.items.length] = newItem;
        }
        this.play = function(){
            collectSAd = this.items
            //strHtml()
            nextAd()
        }
}
function setTransition(){
  if (document.all){
                if(collectSAd[adNum].intChMode == ""){
      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
    }else{
                        bannerADrotator.filters.revealTrans.Transition=collectSAd[adNum].intChMode;
                }
                        bannerADrotator.filters.revealTrans.apply();
  }
}
function playTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.play()
}
function nextAd(){
   adNum<collectSAd.length-1?adNum++:adNum=0;
   setTransition();
   document.images.bannerADrotator.src=collectSAd[adNum].adURL;
   playTransition();
   document.images.bannerADrotator.alt=collectSAd[adNum].strBak;
   document.getElementById("atopad").href=collectSAd[adNum].strURL;
   theTimer=setTimeout("nextAd()", intSTime);
}
function jump2url(){
   jumpUrl=collectSAd[adNum].strURL;
   if (jumpUrl != ''){
      if(collectSAd[adNum].intTarget != "")window.open(jumpUrl,collectSAd[adNum].intTarget);
      else location.href=jumpUrl;
   }
}
document.write('<'+'script language=\"javascript\" src=\"http:\/\/cnimg.alisoft.com\/js\/probe\/launch.js?site=4023583\"><\/script>');
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='/counter.partb.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='/topads.js' type='text/javascript'%3E%3C/script%3E"));