var banner2="";		//所有Banner.js文件必须定义此变量，不要求赋值

function MultiAd2(id,AdSrc,w,h,ids){
  var len = AdSrc.length/3;
  var num = Math.floor(Math.random()*len);

  this.nextAd = function(){
    if(num<len-1) num++ ;
    else num=0;
    ext = AdSrc[3*num].substr(AdSrc[3*num].length-4,4);
    ext = ext.toLowerCase();
    if(ext!=".swf"){
      id.innerHTML = "<a href='"+AdSrc[num*3+1]+"' target=_blank><img src=" + AdSrc[num*3] + " width="+w+" height="+h+" border=0></a>";
    }
    else{
      id.innerHTML = "<embed src="+AdSrc[3*num2]+" qulity=high width="+w+" height="+h+"></embed>";
    }
    setTimeout(ids+".nextAd()",AdSrc[3*num+2]*1000);
  }
  this.nextAd();
}
//多选一轮换广告封装程序，以上程序不要改动

//以下定义数组，广告可为任意图片(gif,jpg,png)或flash图片(swf),url网址,adt时间 格式,数组维数为 3 的倍数
AdSrc2 = new Array(
"/hunter/images/banner.jpg",
"/hunter/",
15
);
//简单调用轮换广告封装类，参数为spanid,src,宽，高，对象名
document.write('<span id="adx2">innerHTML</span>');
btitle2 = new MultiAd2(adx2,AdSrc2,330,58,"btitle2");
