var banner2="";		//所有Banner.js文件必须定义此变量，不要求赋值

function MultiAd2(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*num2]+" 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 的倍数
src2 = new Array(
  "/train/logo2007/bdqn-xjld/2010-02-01/270X100.gif",
"http://www.gz-benet.com.cn/kecheng/",
 8,
 "/train/logo2007/dmxy/dmxy270.gif",
  "http://www.gamfe.com/subject/gza20090212/4u.html",
 8
);
//"/train/logo2007/tianhudn/270.gif",
//"http://home.i3v.cc/",
//8,

//简单调用轮换广告封装类，参数为spanid,src,宽，高，对象名
document.write('<span id="adx2">innerHTML</span>');
btitle2 = new MultiAd2(document.getElementById("adx2"),src2,270,100,"btitle2");