<%template_ads=site.object_p%>
<!-- object[<%=site.object_p%>]::template_ads-->
<table border="0" width="100" cellspacing="0" cellpadding="0" <%=site.object(site.object_p).style%> >
	<tr>
		<td>
		<%
		site.object(site.object_p).rs.open "select * from jins_site_ads where object_id="&site.object(site.object_p).id&" ",conn,1,1
		if not site.object(site.object_p).rs.eof then
			if site.object(site.object_p).rs("ads_flash")<>1 then
				response.write "<a target='_blank' href='"&site.object(site.object_p).rs("ads_url")&"'><img alt='"&site.object(site.object_p).rs("ads_alt")&"'  border='0' src='"&site.object(site.object_p).rs("ads_src")&"' "
				if site.object(site.object_p).rs("ads_width")<>"" then response.write "width='"&site.object(site.object_p).rs("ads_width")&"' "
				if site.object(site.object_p).rs("ads_height")<>"" then response.write "height='"&site.object(site.object_p).rs("ads_height")&"' "
				response.write "></a>"
			else
				response.write "<a target='_blank' href='"&site.object(site.object_p).rs("ads_url")&"'><object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000'  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='"&site.object(site.object_p).rs("ads_width")&"' height='"&site.object(site.object_p).rs("ads_height")&"'>"
				response.write "	<param name='movie' value='"&site.object(site.object_p).rs("ads_src")&"'>"
				response.write "	<param name='quality' value='High'>"
				response.write "	<embed src='"&site.object(site.object_p).rs("ads_src")&"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='obj1' width='"&site.object(site.object_p).rs("ads_width")&"' height='"&site.object(site.object_p).rs("ads_height")&"'>"
				response.write "</object></a>"
			end if
		end if
		site.object(site.object_p).rs.close
		%></td>
	</tr>
</table>