var lang=new Array();var userAgent=navigator.userAgent.toLowerCase();var is_opera=userAgent.indexOf("opera")!=-1&&opera.version();var is_moz=(navigator.product=="Gecko")&&userAgent.substr(userAgent.indexOf("firefox")+8,3);var is_ie=(userAgent.indexOf("msie")!=-1&&!is_opera)&&userAgent.substr(userAgent.indexOf("msie")+5,3);function doane(a){e=a?a:window.event;if(is_ie){e.returnValue=false;e.cancelBubble=true}else{if(e){e.stopPropagation();e.preventDefault()}}}function _attachEvent(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false)}else{if(c.attachEvent){c.attachEvent("on"+a,b)}}}var hiddenobj=new Array();var pmwinposition=new Array();function pmwin(d,b){var f=document.getElementsByTagName("OBJECT");if(d=="open"){for(i=0;i<f.length;i++){if(f[i].style.visibility!="hidden"){f[i].setAttribute("oldvisibility",f[i].style.visibility);f[i].style.visibility="hidden"}}var g=getBrowserWindowSize();var h=g.height;var j=g.width;var a=document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;var c=760;var k=h*0.84;if(!$("pmlayer")){div=document.createElement("div");div.id="pmlayer";div.style.width=c+"px";div.style.height=k+"px";div.style.left=((j-c)/2)+"px";div.style.position="absolute";div.style.zIndex="999";$("append_parent").appendChild(div);$("pmlayer").innerHTML='<div style="width: 760px; background: #666666; margin: 5px auto; text-align: left"><div style="width: 760px; height: '+k+'px; padding: 1px; background: #FFFFFF; border: 1px solid #7597B8; position: relative; left: -6px; top: -3px; overflow:hidden"><div onmouseover="pmwindrag(this)" style="cursor: move; position: relative; left: 0px; top: 0px; width: 760px; height: 30px; margin-bottom: -30px;"></div><a href="###" onclick="pmwin(\'close\')"><img style="position: absolute; right: 20px; top: 15px; border: none" src="public/images/close.gif" title="close" /></a><div id="pmwinmask" style="margin-top: 30px; position: absolute; width: 100%; height: 100%; display: none"></div><iframe id="pmframe" name="pmframe" style="width:'+c+'px;height:100%" allowTransparency="true" frameborder="0"></iframe></div></div>'}$("pmlayer").style.display="";$("pmlayer").style.top=((h-k)/2+a)+"px";if(!b){pmframe.location="etnetChinaForum/messageInbox"}else{}}else{if(d=="close"){for(i=0;i<f.length;i++){if(f[i].attributes.oldvisibility){f[i].style.visibility=f[i].attributes.oldvisibility.nodeValue;f[i].removeAttribute("oldvisibility")}}hiddenobj=new Array();$("pmframe").src="";$("pmlayer").style.display="none"}}}var pmwindragstart=new Array();function pmwindrag(obj){obj.onmousedown=function(e){if(is_ie){document.body.onselectstart=function(){return false}}pmwindragstart=is_ie?[event.clientX,event.clientY]:[e.clientX,e.clientY];pmwindragstart[2]=parseInt($("pmlayer").style.left);pmwindragstart[3]=parseInt($("pmlayer").style.top);$("pmwinmask").style.display="";doane(e)};_attachEvent(document.body,"mousemove",function(e){if(pmwindragstart[0]){var pmwindragnow=is_ie?[event.clientX,event.clientY]:[e.clientX,e.clientY];with($("pmlayer")){style.left=(pmwindragstart[2]+pmwindragnow[0]-pmwindragstart[0])+"px";style.top=(pmwindragstart[3]+pmwindragnow[1]-pmwindragstart[1])+"px"}doane(e)}});obj.onmouseup=function(e){if(is_ie){document.body.onselectstart=function(){return true}}pmwindragstart=[];$("pmwinmask").style.display="none";doane(e)};obj.onmouseover=null}function getBrowserWindowSize(){var a=document.documentElement;return{width:(window.innerWidth||(a&&a.clientWidth)||document.body.clientWidth),height:(window.innerHeight||(a&&a.clientHeight)||document.body.clientHeight)}};
