﻿/*
 * Compressed by iPow(www.iPow.cn)
 */
var msgwidth=0,IMGDIR="";function G$(A){return document.getElementById(A)}function c$(B,A){var C=G$(B);if(!C){GetPyzyIframe("ifm"+B);C=document.createElement("div");C.id=B;if(A&&A!="")C.className=A;document.body.appendChild(C)}return C}function fetchOffset(B){var A=B.offsetLeft,C=B.offsetTop;while((B=B.offsetParent)!=null){A+=B.offsetLeft;C+=B.offsetTop}return{"left":A,"top":C}}function attachimg(B,A){if(A=="load"){if(is_ie&&is_ie<7){var F=fetchOffset(B);msgwidth=document.body.clientWidth-F["left"]-20}else if(!msgwidth){var D=/postcontent|message/i,E=B;while((E=E.parentNode)!=null){var C=D.exec(E.className);if(C!=null){msgwidth=E.clientWidth-20;break}}if(msgwidth<1)msgwidth=window.screen.width}if(B.width>msgwidth){B.resized=true;B.width=msgwidth;B.style.cursor="pointer"}else B.onclick=null}else if(A=="mouseover")if(B.resized)B.style.cursor="pointer"}function attachimginfo(A,C,E,D){objinfo=fetchOffset(A);if(E){G$(C).style.left=objinfo["left"]+"px";G$(C).style.top=A.offsetHeight<40?(objinfo["top"]+A.offsetHeight)+"px":objinfo["top"]+"px";G$(C).style.display=""}else if(is_ie){G$(C).style.display="none";return}else{var F=document.body.scrollLeft+D.clientX,B=document.documentElement.scrollTop+D.clientY;if(F<objinfo["left"]||F>objinfo["left"]+objinfo["width"]||B<objinfo["top"]||B>objinfo["top"]+objinfo["height"])G$(C).style.display="none"}}function copycode(A){if(is_ie&&A.style.display!="none"){var B=document.body.createTextRange();B.moveToElementText(A);B.scrollIntoView();B.select();B.execCommand("Copy");B.collapse(false)}}function signature(A){if(A.style.maxHeightIE!=""){var B=(A.scrollHeight>parseInt(A.style.maxHeightIE))?A.style.maxHeightIE:A.scrollHeight;if(A.innerHTML.indexOf("<IMG ")==-1)A.style.maxHeightIE="";return B}}function fastreply(B,A){if(G$("postform")){G$("postform").subject.value=B.replace(/#/,$(A).innerHTML.replace(/<[\/\!]*?[^<>]*?>/ig,""));G$("postform").message.focus()}}function tagshow(B){var A=is_ie?B.srcElement:B.target;A.id=!A.id?"tag_"+Math.random():A.id;ajaxmenu(B,A.id,0,"",1,3,0);A.onclick=null}var zoomobj=Array(),zoomadjust,zoomstatus=1;function zoom(B,A){B=G$(B);if(!zoomstatus){window.open(A,"","");return}if(!A)A=B.src;if(!G$("zoomimglayer_bg")){div=document.createElement("div");div.id="zoomimglayer_bg";div.style.position="absolute";div.style.left=div.style.top="0px";div.style.width="100%";div.style.height=document.body.scrollHeight+"px";div.style.backgroundColor="#000";div.style.display="none";div.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=80,finishOpacity=100,style=0)";div.style.opacity=0.8;div.style.zIndex=100;G$("append_parent").appendChild(div);div=document.createElement("div");div.id="zoomimglayer";div.style.position="absolute";div.className="popupmenu_popup";div.style.padding=0;G$("append_parent").appendChild(div)}zoomobj["srcinfo"]=fetchOffset(B);zoomobj["srcobj"]=B;zoomobj["zimg"]=A;G$("zoomimglayer").style.display="";G$("zoomimglayer").style.left=zoomobj["srcinfo"]["left"]+"px";G$("zoomimglayer").style.top=zoomobj["srcinfo"]["top"]+"px";G$("zoomimglayer").style.width=zoomobj["srcobj"].width+"px";G$("zoomimglayer").style.height=zoomobj["srcobj"].height+"px";G$("zoomimglayer").style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=40,finishOpacity=100,style=0)";G$("zoomimglayer").style.opacity=0.4;G$("zoomimglayer").style.zIndex=999;jQuery("#zoomimglayer").html("<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><img src=\""+IMGDIR+"/loading.gif\"></td></tr></table><div style=\"position:absolute;top:-100000px;visibility:hidden\"><img onload=\"zoomimgresize(this)\" src=\""+zoomobj["zimg"]+"\"></div>")}var zoomdragstart=new Array(),zoomclick=0;function zoomdrag(C,A){if(A==1){zoomclick=1;zoomdragstart=is_ie?[event.clientX,event.clientY]:[C.clientX,C.clientY];zoomdragstart[2]=parseInt(G$("zoomimglayer").style.left);zoomdragstart[3]=parseInt(G$("zoomimglayer").style.top);doane(C)}else if(A==2&&zoomdragstart[0]){zoomclick=0;var B=is_ie?[event.clientX,event.clientY]:[C.clientX,C.clientY];G$("zoomimglayer").style.left=(zoomdragstart[2]+B[0]-zoomdragstart[0])+"px";G$("zoomimglayer").style.top=(zoomdragstart[3]+B[1]-zoomdragstart[1])+"px";doane(C)}else if(A==3){if(zoomclick)zoomclose();zoomdragstart=[];doane(C)}}function zoomST(B){if(G$("zoomimglayer").style.display==""){G$("zoomimglayer").style.left=(parseInt(G$("zoomimglayer").style.left)+zoomobj["x"])+"px";G$("zoomimglayer").style.top=(parseInt(G$("zoomimglayer").style.top)+zoomobj["y"])+"px";G$("zoomimglayer").style.width=(parseInt(G$("zoomimglayer").style.width)+zoomobj["w"])+"px";G$("zoomimglayer").style.height=(parseInt(G$("zoomimglayer").style.height)+zoomobj["h"])+"px";var A=B*20;G$("zoomimglayer").style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+A+",finishOpacity=100,style=0)";G$("zoomimglayer").style.opacity=A/100;B++;if(B<=5)setTimeout("zoomST("+B+")",5);else{zoomadjust=1;G$("zoomimglayer").style.filter="";G$("zoomimglayer_bg").style.display="";G$("zoomimglayer").innerHTML="<table cellspacing=\"0\" cellpadding=\"2\"><tr><td style=\"text-align: right\">\u9f20\u6807\u6eda\u8f6e\u7f29\u653e\u56fe\u7247 <a href=\""+zoomobj["zimg"]+"\" target=\"_blank\"><img src=\"/images/ico/newwindow.gif\" border=\"0\" style=\"vertical-align: middle\" title=\"\u5728\u65b0\u7a97\u53e3\u6253\u5f00\" /></a> <a href=\"###\" onclick=\"zoomimgadjust(event, 1)\"><img src=\"/images/ico/resize.gif\" border=\"0\" style=\"vertical-align: middle\" title=\"\u5b9e\u9645\u5927\u5c0f\" /></a> <a href=\"###\" onclick=\"zoomclose()\"><img style=\"vertical-align: middle\" src=\"/images/ico/close.gif\" title=\"\u5173\u95ed\" /></a>&nbsp;</td></tr><tr><td title=\"\u9f20\u6807\u62d6\u52a8\u56fe\u7247\uff0c\u9f20\u6807\u6eda\u8f6e\u7f29\u653e\u56fe\u7247\"  align=\"center\" id=\"zoomimgbox\"><img id=\"zoomimg\" style=\"cursor: move; margin: 5px;\" src=\""+zoomobj["zimg"]+"\" width=\""+G$("zoomimglayer").style.width+"\" height=\""+G$("zoomimglayer").style.height+"\"></td></tr></table>";G$("zoomimglayer").style.overflow="visible";G$("zoomimglayer").style.width=G$("zoomimglayer").style.height="auto";if(is_ie)G$("zoomimglayer").onmousewheel=zoomimgadjust;else G$("zoomimglayer").addEventListener("DOMMouseScroll",zoomimgadjust,false);G$("zoomimgbox").onmousedown=function(A){try{zoomdrag(A,1)}catch(B){}};G$("zoomimgbox").onmousemove=function(A){try{zoomdrag(A,2)}catch(B){}};G$("zoomimgbox").onmouseup=function(A){try{zoomdrag(A,3)}catch(B){}}}}}function zoomimgresize(A){zoomobj["zimginfo"]=[A.width,A.height];var C=A.width/A.height,B=document.body.clientWidth*0.95;B=A.width>B?B:A.width;var D=B/C,F=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight,H=document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;if(D>F){D=F;B=D*C}var G=(document.body.clientWidth-B)/2,E=D<F?(F-D)/2:0;E+=+H;zoomobj["x"]=(G-zoomobj["srcinfo"]["left"])/5;zoomobj["y"]=(E-zoomobj["srcinfo"]["top"])/5;zoomobj["w"]=(B-zoomobj["srcobj"].width)/5;zoomobj["h"]=(D-zoomobj["srcobj"].height)/5;G$("zoomimglayer").style.filter="";G$("zoomimglayer").innerHTML="";setTimeout("zoomST(1)",5)}function zoomimgadjust(F,A){if(!A){if(!F)F=window.event;if(F.altKey||F.shiftKey||F.ctrlKey)return;var D=parseInt(G$("zoomimglayer").style.left),B=parseInt(G$("zoomimglayer").style.top);if(F.wheelDelta<=0||F.detail>0){if(G$("zoomimg").width<=200||G$("zoomimg").height<=200){doane(F);return}G$("zoomimg").width-=zoomobj["zimginfo"][0]/10;G$("zoomimg").height-=zoomobj["zimginfo"][1]/10;D+=zoomobj["zimginfo"][0]/20;B+=zoomobj["zimginfo"][1]/20}else{if(G$("zoomimg").width>=zoomobj["zimginfo"][0]){zoomimgadjust(F,1);return}G$("zoomimg").width+=zoomobj["zimginfo"][0]/10;G$("zoomimg").height+=zoomobj["zimginfo"][1]/10;D-=zoomobj["zimginfo"][0]/20;B-=zoomobj["zimginfo"][1]/20}}else{var C=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight,E=document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;G$("zoomimg").width=zoomobj["zimginfo"][0];G$("zoomimg").height=zoomobj["zimginfo"][1];D=(document.body.clientWidth-G$("zoomimg").clientWidth)/2;D=D>0?D:0;B=(C-G$("zoomimg").clientHeight)/2+E;B=B>0?B:0}G$("zoomimglayer").style.left=D+"px";G$("zoomimglayer").style.top=B+"px";G$("zoomimglayer_bg").style.height=B+G$("zoomimglayer").clientHeight>G$("zoomimglayer_bg").clientHeight?(B+G$("zoomimglayer").clientHeight)+"px":G$("zoomimglayer_bg").style.height;doane(F)}function zoomclose(){G$("zoomimglayer").innerHTML="";G$("zoomimglayer").style.display="none";G$("zoomimglayer_bg").style.display="none"}function videoPlay(C,B,A,D){ajaxget("api/video.php?action=updatevideoinfo&vid="+C+"&vtime="+B+"&tid="+A+"&pid="+D,"")}