//ÔðÈÎ±à¼­£ºÎÏÅ£×Ð×Ð(QQ:32416298)

function ad_show(sys_intWidth,sys_intHeight,sys_stype,sys_strHtmlUrl,sys_strAdfile,sys_intAdid,sys_strHtml_id){
	var sys_strAd_Html = "";
	var num=Math.floor(Math.random()*9999999)+1;
	sys_strAd_Html +=" <div style='position:relative;width:"+sys_intWidth+";height:"+sys_intHeight+";' id=randomDiv_"+sys_intAdid+"> ";
	if(sys_stype==1){ 
		sys_strAd_Html +="<OBJECT id='obj_randomDiv_"+sys_intAdid+"' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+sys_intWidth+"' height='"+sys_intHeight+"' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'>";
		sys_strAd_Html +="	<PARAM NAME='Movie' VALUE='"+sys_strAdfile+"'>";
		sys_strAd_Html +="	<PARAM NAME='SAlign' VALUE='TL'>";
		sys_strAd_Html +="	<param name='wmode' value='opaque'>";
		sys_strAd_Html +="	<PARAM NAME='Quality' VALUE='High'>";
		sys_strAd_Html +="	<embed src='"+sys_strAdfile+"' quality='high' allowscriptaccess='always' wmode='transparent' type='application/x-shockwave-flash'  pluginspage='http://www.macromedia.com/go/getflashplayer' width='"+sys_intWidth+"' height='"+sys_intHeight+"'>";
		sys_strAd_Html +="</OBJECT>";
		sys_strAd_Html +="<a href='http://news.home77.com/adfclick.asp?uid="+sys_intAdid+"&tid="+num+"&furl="+sys_strHtmlUrl+"' target=_blank><img src='http://img.home77.com/place.gif' style='position:absolute;left:0px;top:0px;width:"+sys_intWidth+";height:"+sys_intHeight+";border:none;'/></a>";
	}
	if(sys_stype==2){  
		sys_strAd_Html +="<a href='http://news.home77.com/adfclick.asp?uid="+sys_intAdid+"&tid="+num+"&furl="+sys_strHtmlUrl+"' target=_blank><img src='http://img.home77.com/place.gif' style='position:absolute;left:0px;top:0px;width:"+sys_intWidth+";height:"+sys_intHeight+";border:none;'/>";
		sys_strAd_Html +="<img src='"+sys_strAdfile+"' width="+sys_intWidth+" height="+sys_intHeight+" border=0 ></img></a>";
	}
	sys_strAd_Html +="</div>"; 
	
	var sys_HTMLDIV = document.getElementById(sys_strHtml_id); 
	if(sys_HTMLDIV != null && sys_HTMLDIV != undefined){ 
		sys_HTMLDIV.style.display = "block"; 
		sys_HTMLDIV.innerHTML = sys_strAd_Html;
	}
}