
function column02(imgSource,url,chance,type) {
   this.imgSource = imgSource;
   this.url = url;
   this.chance = chance;
   this.type = type;
}
function dispColumn02() {
	with (this)
	switch (type){
		case "img":
			document.write("<A HREF=" + url + " target=_blank><IMG SRC=" + imgSource + " WIDTH=755 HEIGHT=60 BORDER=0></A>");
			break;
		case "html":
			document.write("<IFRAME WIDTH=755 HEIGHT=60 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#000000 SRC="+ imgSource + "></iframe>");
			break;
		case "flash":
			document.write("<embed src="+imgSource+" quality=high wmode=opaque width=755 height=60 type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></embed>");
			break;
		default:
			document.write("");
	}

}

column02.prototype.dispColumn02 = dispColumn02;
columns02 = new Array();

// flash , html , img 代表三种不同的广告模式 一般只放3个轮换
// 200 之类的数目是设置出现的机率
columns02[0] = new column02("http://smsimg.126.net/banner/music/zmtv/755x60.swf","",300,"flash");  //音乐中心0105
//columns02[1] = new column02("http://smsimg.126.net/banner/sms/1015556_755x60.JPG","http://music.163.com/special/dnslove.html",600,"img");
//columns02[1] = new column02("http://images.163.com/images/sms/20051228/naojin755x60.swf","",300,"flash");//脑筋急转弯
//columns02[2] = new column02("http://images.163.com/images/sms/20051228/naojin755x60.swf","",300,"flash");  //脑筋急转弯
//columns02[0] = new column02("http://images.163.com/images/sms/20051130/feinannv755X60.swf","",300,"flash");  //非常男女
//columns02[1] = new column02("http://images.163.com/images/sms/20051130/love755x60.swf","",300,"flash");//V交友




sum_of_all_chances = 0;
for (i = 0; i < columns02.length; i++) {
  sum_of_all_chances += columns02[i].chance;
}
function randomColumn02() {
  chance_limit = 0;
  randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
  for (i = 0; i < columns02.length; i++) {
    chance_limit += columns02[i].chance;
    if (randomly_selected_chance <= chance_limit) {
      columns02[i].dispColumn02();
      break;
    }
  }
}
this_column02 = randomColumn02();








//document.write("<iframe src=http://popme.163.com/diy/mobile_sms.html border=0 width=755 height=60 MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE=NORESIZE SCROLLING=NO FRAMEBORDER=0 ALIGN=ABSMIDDLE></iframe>");// ×××××××× SMS_个人主页空间（随时投放）××××××××××

//document.write("<TABLE width=755 height=60 border=0 bgcolor=#33CCFF cellpadding=0 cellspacing=0><TR><TD><embed src=http://adimg.163.com/product/debit/debit031127_75060_sms.swf width=755 height=60 wmode=transparent id=ad></embed></TD></TR></TABLE>");
