<%
'*******************************************************
'易达CMS中小企业快速建站系统
'软件开发 黑龙江省世纪伟成网络科技有限公司
'网址：http://yidacms.com
'软件享有著作权，未经公司或开发者同意禁止更改以下代码。
'*******************************************************
Photo_id = cint(request("id"))
set rs = server.createobject("adodb.recordset")
sql="select top 5 * from shuaiweb_photo where id = "&Photo_id&" and yida_language = 'ch'"
rs.open sql,dbok,1,1

yidacms_photoimg = yidacms_photoimg & "<link type='text/css' href='"&webpath&"images/photo/css.css' rel='stylesheet' />"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "<script src='"&webpath&"images/photo/jquery1.4.2.js' type='text/javascript'></script>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "<script src='"&webpath&"images/photo/base.js' type='text/javascript'></script>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "<SCRIPT src='"&webpath&"images/photo/lib.js' type='text/javascript'></SCRIPT>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "<SCRIPT src='"&webpath&"images/photo/163css.js' type='text/javascript'></SCRIPT>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "<div id='preview'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "	<div class='jqzoom' id='spec-n1' onClick='window.open('/')'><IMG height='350' src='"&webpath&rs("shuaiweb_photoimg1")&"' jqimg='"&webpath&rs("shuaiweb_photoimg1")&"' width='450'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "	</div>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "	<div id='spec-n5'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		<div class='control' id='spec-left'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			<img src='"&webpath&"images/photo/left.gif' />"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		</div>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		<div id='spec-list'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			<ul class='list-h'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			<li><img src='"&webpath&rs("shuaiweb_photoimg1")&"'></li>"&vbcrlf
if rs("shuaiweb_photoimg2") <> "" then
yidacms_photoimg = yidacms_photoimg & "			<li><img src='"&webpath&rs("shuaiweb_photoimg2")&"'></li>"&vbcrlf
end if
if rs("shuaiweb_photoimg3") <> "" then
yidacms_photoimg = yidacms_photoimg & "			<li><img src='"&webpath&rs("shuaiweb_photoimg3")&"'></li>"&vbcrlf
end if
if rs("shuaiweb_photoimg4") <> "" then			
yidacms_photoimg = yidacms_photoimg & "			<li><img src='"&webpath&rs("shuaiweb_photoimg4")&"'></li>"&vbcrlf
end if
if rs("shuaiweb_photoimg5") <> "" then
yidacms_photoimg = yidacms_photoimg & "			<li><img src='"&webpath&rs("shuaiweb_photoimg5")&"'></li>"&vbcrlf
end if			
yidacms_photoimg = yidacms_photoimg & "			</ul>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		</div>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		<div class='control' id='spec-right'>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			<img src='"&webpath&"images/photo/right.gif' />"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		</div>"&vbcrlf
		
yidacms_photoimg = yidacms_photoimg & "    </div>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "</div>"&vbcrlf


yidacms_photoimg = yidacms_photoimg & "<SCRIPT type=text/javascript>"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "function AddFavorite(sURL, sTitle) {"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "    try {"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "        window.external.addFavorite(sURL, sTitle);"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "    } catch (e) {"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "        try {"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "            window.sidebar.addPanel(sTitle, sURL, '');"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "        } catch (e) {"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "            alert('加入收藏失败,请手动添加.');"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "        }"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "    }"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "} "&vbcrlf
 
yidacms_photoimg = yidacms_photoimg & "	$(function(){			"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "	   $('.jqzoom').jqueryzoom({"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			xzoom:400,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			yzoom:400,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			offset:10,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			position:'right',"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			preload:1,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			lens:1"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		});"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		$('#spec-list').jdMarquee({"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			deriction:'left',"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			width:450,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			height:56,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			step:2,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			speed:4,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			delay:10,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			control:true,"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			_front:'#spec-right',"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			_back:'#spec-left'"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		});"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		$('#spec-list img').bind('mouseover',function(){"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			var src=$(this).attr('src');"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			$('#spec-n1 img').eq(0).attr({"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "				src:src.replace('\/n5\/','\/n1\/'),"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "				jqimg:src.replace('\/n5\/','\/n0\/')"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			});"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			$(this).css({"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "				'border':'2px solid #ff6600',"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "				'padding':'1px'"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			});"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		}).bind('mouseout',function(){"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			$(this).css({"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "				'border':'1px solid #ccc',"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "				'padding':'2px'"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "			});"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "		});		"&vbcrlf		
yidacms_photoimg = yidacms_photoimg & "	})"&vbcrlf
yidacms_photoimg = yidacms_photoimg & "	</SCRIPT>"&vbcrlf


rs.Close
set rs=nothing
%>