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