<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from ad",conn,1,1
top=trim(rs("top"))
topurl=trim(rs("topurl"))
toptxt=trim(rs("toptxt"))
top1=trim(rs("top1"))
top1url=trim(rs("top1url"))
top1txt=trim(rs("top1txt"))
top2=trim(rs("top2"))
top2url=trim(rs("top2url"))
top2txt=trim(rs("top2txt"))
top3=trim(rs("top3"))
top3url=trim(rs("top3url"))
top3txt=trim(rs("top3txt"))
top4=trim(rs("top4"))
top4url=trim(rs("top4url"))
top4txt=trim(rs("top4txt"))
top5=trim(rs("top5"))
top5url=trim(rs("top5url"))
top5txt=trim(rs("top5txt"))


rs.close
set rs=nothing

%>
<script type="text/javascript">
		var swf_width=535
		var swf_height=300
		//var files='ad_01.jpg|ad_02.jpg|ad_03.jpg'
		var files='<%=top%>|<%=top1%>|<%=top2%>|<%=top3%>|<%=top4%>|<%=top5%>'
		var links='<%=topurl%>|<%=top1url%>|<%=top2url%>|<%=top3url%>|<%=top4url%>|<%=top5url%>'
		var texts='<%=toptxt%>|<%=top1txt%>|<%=top2txt%>|<%=top3txt%>|<%=top4txt%>|<%=top5txt%>'
		var bcastr_cfg='0xffffff|2|0xffffff|60|0xffffff|0xB40000|0x000033|5|2|1|_blank'
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
		document.write('<param name="movie" value="images/guanggao/ad.swf"><param name="quality" value="high">');
		document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
		document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+bcastr_cfg+'">');
		document.write('<embed src="ad.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+bcastr_cfg+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
	</script>





