var isIE=window.navigator.userAgent.indexOf("MSIE ")>=1,isIE5=window.navigator.userAgent.indexOf("MSIE 5")>=1,isIE6=window.navigator.userAgent.indexOf("MSIE 6")>=1,isIE7=window.navigator.userAgent.indexOf("MSIE 7")>=1,isIE8=window.navigator.userAgent.indexOf("MSIE 8")>=1;function drag(_,A){try{A.firstChild.onmousedown=function(){return false}}catch($){}A.onmousedown=function(D){var B=top.document;if(!D)D=top.window.event;var G=D.layerX?D.layerX:D.offsetX,F=D.layerY?D.layerY:D.offsetY;if(A.setCapture)A.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);var C=top.document.documentElement,E=parseInt(C.scrollTop,10),$=parseInt(C.scrollLeft,10);B.onmousemove=function(B){if(!B)B=top.window.event;if(!B.pageX)B.pageX=B.clientX;if(!B.pageY)B.pageY=B.clientY;var A=B.pageX-G;ty=B.pageY-F;if(isIE){_.style.left=A+"px";_.style.top=ty+"px"}else{_.style.left=(A-$)+"px";_.style.top=(ty-E)+"px"}_.style.cursor="move"};B.onmouseup=function(){if(A.releaseCapture)A.releaseCapture();else if(top.window.captureEvents)top.window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);_.style.cursor="default";B.onmousemove=null;B.onmouseup=null}}}function readCookie(_){var B="",$=_+"=";if(document.cookie.length>0){var A=document.cookie.indexOf($),C="";if(A!=-1){A+=$.length;C=document.cookie.indexOf(";",A);if(C==-1)C=document.cookie.length;B=unescape(document.cookie.substring(A,C))}}return B}var popup_lang=new Object();popup_lang.locale="zh-cn";popup_lang.lang=function(){this.locale=readCookie("locale")};popup_lang.lang.prototype={initLang:function(){if(this.locale.toLocaleLowerCase()=="en-us"){this.str1="Loading...";this.str2=" O K ";this.str3="Cancel"}else{this.str1="\u6b63\u5728\u8bfb\u53d6\u6570\u636e...";this.str2="\u786e\u5b9a";this.str3="\u53d6\u6d88"}}};var _PL_=new popup_lang.lang();_PL_.initLang();var popup={sFrame:"_popup_iframeShow",sWin:"_popup_win",_iWidth:0,_iHeight:0,clickx:0,clicky:0,moved:0,useropen:0,loding:"<div style=\"text-align:center;font-size:12px;\">"+_PL_.str1+"</div>",$:function($){return top.document.getElementById($)},$$:function($){return top.document.frames?top.document.frames[$]:this.$($).contentWindow},set:function(_){var $=this.$(_);this.$(this.sWin).style.width=$.style.width;this.$(this.sWin).style.height=$.style.height},self:function($){var _=this.$($).innerHTML;this.$$(this.sFrame).document.open("text/html","replace");this.$$(this.sFrame).document.write(_);this.$$(this.sFrame).document.close()},writeObj:function($,_){if(_==null)_=this.sFrame;this.$$(_).document.open("text/html","replace");this.$$(_).document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><head><meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\" /><style>body{background:#FFFFFF;font-size:9pt}div.buttonwidth {width:80px;}div.button {background:transparent url(/images/button.gif) repeat-x scroll 0 0;border:1px solid #D1D4D1;cursor:pointer;height:22px;line-height:22px;text-align:center;width:100%;}a,a:visited,a:link,a:hover{text-decoration:none;color:#000000}</style></head><body>");this.$$(_).document.write($);this.$$(_).document.write("</body></html>");this.$$(_).document.close()},setSize:function($,_){this.$(this.sWin).style.width=$;this.$(this.sFrame).style.width=$;this.$(this.sWin).style.height=_;this.$(this.sFrame).style.height=_;this.$(this.sWin).style.display="block"},alert:function(A,B,_,$){if(!_)_=350;if(!$)$=180;this.win(A,_,$);this.writeObj("<br><div style=\"text-align:left;line-heigh:130%\">"+B+"</div><div style=\"clear:both;text-align: center;margin:10px 0;height:1px\"></div><div style=\"text-align:center\"><div class=\"buttonwidth button\" style=\"width:80px;float:right\"><a href=\"#\" onclick=\"parent.popup.close();return false;\" style=\"display:block\"> &nbsp;"+_PL_.str2+"&nbsp; </a></div></div><div style=\"clear:both;height:0px\"></div>")},alert2:function(A,B,_,$,C){if(!_)_=350;if(!$)$=180;this.win(A,_,$);this.writeObj("<br><div style=\"text-align:left;line-heigh:130%\">"+B+"</div><div style=\"clear:both;text-align: center;margin:10px 0;height:1px\"></div><div style=\"text-align:center\"><div class=\"buttonwidth button\" style=\"width:80px;float:right;margin-right:30px\"><a href=\"#\" onclick=\"parent.popup.close();"+C+";return false;\" style=\"display:block\"> &nbsp;"+_PL_.str2+"&nbsp; </a></div></div><div style=\"clear:both;height:0px\"></div>")},confirm:function(A,B,_,$,C,D){if(!_)_=350;if(!$)$=180;this.win(A,_,$);if(!D||D.toLowerCase()!="off")D="on";if(D.toLowerCase()=="off")this.writeObj("<br><div style=\"text-align:left;line-heigh:130%\">"+B+"</div><div style=\"clear:both;text-align: center;margin:0;height:35px\"></div><div style=\"text-align:center;clear:both\"><div class=\"buttonwidth button\" style=\"margin:0 20px 0 5px;width:80px;float:right\"><a href=\"#\" onclick=\"parent.popup.close();return false;\" style=\"display:block\"> &nbsp;"+_PL_.str3+"&nbsp; </a></div>  <div class=\"buttonwidth button\" style=\"width:80px;float:right\"><a href=\"#\" onclick=\"parent."+C+";return false;\" style=\"display:block\"> &nbsp;"+_PL_.str2+"&nbsp; </a></div></div><div style=\"clear:both;height:0px\"></div>");if(D.toLowerCase()=="on")this.writeObj("<br><div style=\"text-align:left;line-heigh:130%\">"+B+"</div><div style=\"clear:both;text-align: center;margin:0;height:35px\"></div><div style=\"text-align:center;clear:both\"><div class=\"buttonwidth button\" style=\"margin:0 20px 0 5px;width:80px;float:right\"><a href=\"#\" onclick=\"parent.popup.close();return false;\" style=\"display:block\"> &nbsp;"+_PL_.str3+"&nbsp; </a></div>  <div class=\"buttonwidth button\" style=\"width:80px;float:right\"><a href=\"#\" onclick=\"parent.popup.close();parent."+C+";return false;\" style=\"display:block\"> &nbsp;"+_PL_.str2+"&nbsp; </a></div></div><div style=\"clear:both;height:0px\"></div>")},callback:function(){},win:function(A,C,E,D,B){var F=this.getWin(this.sWin);F.innerHTML="<table border=0 cellpadding=\"0\" cellspacing=\"0\" class=\"head\" align=\"center\" width=\"100%\"><tr style=\"height:30px; line-height:30px; background:#999\"><td id=\"popupHeader\" align=\"left\" valign=\"middle\" style=\"padding-left:0px; font-size:15px;\">&nbsp;&nbsp;"+A+"</td><td width=\"45\" align=\"right\" nowrap>&nbsp;</td></tr></table><div><iframe class=\"data\" id=\""+this.sFrame+"\" frameborder=\"0\" scrolling=\"no\"></iframe></div>";this.$(this.sWin).style.display="block";try{this.$$(this.sFrame).document.open("text/html","replace");this.$$(this.sFrame).document.write(this.loding);this.$$(this.sFrame).document.close()}catch(_){}if(D){if(B!="cache"&&B!="yes"&&B!="1")if(D.indexOf("?")>0)D+="&randnum="+Math.random();else D+="?randnum="+Math.random();this.$(this.sFrame).src=D}drag(this.$(this.sWin),this.$("popupHeader"));this.showShadow();if(C){var $=parseInt(C,10);this.$(this.sWin).style.width=$+"px";this.$(this.sFrame).style.width=$+$.toString().substring($.toString().length,10)+"px"}if(E){var G=parseInt(E,10);this.$(this.sWin).style.height=G+"px";this.$(this.sFrame).style.height=(G-30)+"px"}this.setPos(this.sWin)},msgWin:function(A,C,E,D,B){var F=this.getWin("msgWin");F.innerHTML="<table border=0 cellpadding=\"0\" cellspacing=\"0\" class=\"head\" align=\"center\" width=\"100%\"><tr><td id=\"popupMsgHeader\" align=\"left\" onmoseover=\"this.style.cursor=move\" onclick=\"popup.moved=1\">&nbsp;"+A+"</td><td width=\"60\" align=\"right\" nowrap><a href=\"#\" onclick=\"popup.closeMsgWin();return false;\">__</a> <a href=\"#\" onclick=\"popup.useropen=1;popup.openMsgWin();return false;\">\u53e3</a> <a href=\"#\" onClick=\"popup.hideMsgWin();return false;\">X</a>&nbsp;</td></tr></table><div><iframe class=\"data\" id=\"iframeMsgShow\" frameborder=\"0\" scrolling=\"no\"></iframe></div>";F.style.display="block";F.style.height="25px";try{this.$$("iframeMsgShow").document.open("text/html","replace");this.$$("iframeMsgShow").document.write(this.loding);this.$$("iframeMsgShow").document.close()}catch(_){}if(D){if(B!="cache"&&B!="yes"&&B!="1")if(D.indexOf("?")>0)D+="&randnum="+Math.random();else D+="?randnum="+Math.random();this.$("iframeMsgShow").src=D}if(C){F.style.width=C+"px";var $=parseInt(C,10);this.$("iframeMsgShow").style.width=($-2)+C.substring(parseInt(C).toString().length,10)+"px"}if(E){F.style.height=E+"px";this.$("iframeMsgShow").style.height=E-25+"px"}this.$("iframeMsgShow").style.height="0px";F.style.right="0px";F.style.bottom="0px";this.openMsgWin();drag(this.$("msgWin"),this.$("popupMsgHeader"))},setPos:function(A){var _=this.$(A).offsetWidth,$=this.$(A).offsetHeight,C=getViewportHeight(),B=getViewportWidth();if(isIE){if(isIE8)this.$(A).style.top=((C-$)/2)+"px";this.$(A).style.left=((B-_)/2)+"px"}else{this.$(A).style.top=((C-$)/2)+"px";this.$(A).style.left=((B-_)/2)+"px"}},getWin:function(_){var $=this.getObj(_);$.setAttribute("class","popup");$.setAttribute("className","popup");$.style.display="none";return $},hide:function(_,A){var $=this.$(this.sWin).getAttribute("ctrl");if(this.$(this.sWin).style.display=="block"&&$==A){this.$(this.sWin).style.display="none";return false}this.hideShadow();return true},close:function(){try{if(isIE){this.$(this.sWin).parentNode.firstChild.removeNode(true);setTimeout("popup.close();",100)}else this.$(this.sWin).style.display="none";this.hideShadow();return true}catch($){}},openMsgWinTimer:null,closeMsgWinTimer:null,openMsgWin:function(){window.clearInterval(popup.closeMsgWinTimer);var $=popup.$("msgWin");if(parseInt($.style.right,10)==0||isNaN(parseInt($.style.right,10)))popup.openMsgWinTimer=window.setInterval(function(){if(parseInt($.style.height,10)=="150"&&parseInt(popup.$("iframeMsgShow").style.height,10)=="125")window.clearInterval(popup.openMsgWinTimer);if(parseInt($.style.height,10)<150)$.style.height=(parseInt($.style.height,10)+5)+"px";if(parseInt(popup.$("iframeMsgShow").style.height,10)<125)popup.$("iframeMsgShow").style.height=(parseInt(popup.$("iframeMsgShow").style.height,10)+5)+"px";var A=$.offsetWidth,_=$.offsetHeight,C=getViewportHeight(),B=getViewportWidth();$.style.top=(C-_)+"px";$.style.left=(B-A)+"px";$.style.bottom=$.style.right="0px"},50);else popup.openMsgWinTimer=window.setInterval(function(){if(parseInt($.style.height,10)==150&&parseInt(popup.$("iframeMsgShow").style.height,10)==125)window.clearInterval(popup.openMsgWinTimer);if(parseInt($.style.height,10)<150)$.style.height=(parseInt($.style.height,10)+5)+"px";if(parseInt(popup.$("iframeMsgShow").style.height,10)<125)popup.$("iframeMsgShow").style.height=(parseInt(popup.$("iframeMsgShow").style.height,10)+5)+"px";var A=$.offsetWidth,_=$.offsetHeight,C=getViewportHeight(),B=getViewportWidth();$.style.top=(C-_)/2+"px";$.style.left=(B-A)/2+"px"},50);if(popup.moved!=1&&popup.useropen!=1)setTimeout("popup.closeMsgWin()",15000)},closeMsgWin:function(){window.clearInterval(popup.openMsgWinTimer);var $=popup.$("msgWin");popup.closeMsgWinTimer=window.setInterval(function(){if(parseInt(popup.$("msgWin").style.height,10)==25&&parseInt(popup.$("iframeMsgShow").style.height,10)==0)window.clearInterval(popup.closeMsgWinTimer);if(parseInt(popup.$("msgWin").style.height,10)>25)popup.$("msgWin").style.height=(parseInt(popup.$("msgWin").style.height,10)-5)+"px";if(parseInt(popup.$("iframeMsgShow").style.height,10)>0)popup.$("iframeMsgShow").style.height=(parseInt(popup.$("iframeMsgShow").style.height,10)-5)+"px";var _=popup.$("msgWin").offsetWidth,$=popup.$("msgWin").offsetHeight,B=getViewportHeight(),A=getViewportWidth();popup.$("msgWin").style.top=(B-$)+"px";popup.$("msgWin").style.left=(A-_)+"px"},50);popup.moved=0},hideMsgWin:function(){popup.$("msgWin").style.display="none"},iframeResize:function(_,A){var $=this.$$(this.sFrame);if($!=null){if(!_)var _=$.document.documentElement.clientWidth.toString();if(!A)var A=$.document.documentElement.clientHeight.toString();if(_!="0"&&A!="0"){this.$(this.sWin).style.width=_+"px";this.$(this.sWin).style.height=(A+50)+"px";this.$(this.sFrame).style.width=_+"px";this.$(this.sFrame).style.height=(A+30)+"px"}}this.setPos(this.sWin)},getObj:function(_){var A=this.$(_);if(A==null){A=top.document.createElement("div");A.id=_;var $=top.document.getElementsByTagName("BODY")[0];$.insertBefore(A,$.firstChild)}return A},getFriendDialogShadow:function(){var $=this.getObj("friendDialogShadow");$.style.position="absolute";$.style.display="block";$.style.opacity="0.4";$.style.filter="alpha(opacity=40);-moz-opacity: 0.4; opacity:0.4;progid:DXImageTransform.Microsoft.Alpha(opacity=40)";$.style.background="#000000";$.style.top="0px";$.style.left="0px";$.style.zIndex="1000";return $},showShadow:function(){var C=this.getFriendDialogShadow(),D;if(document.documentElement&&document.documentElement.clientHeight)D=document.documentElement;else if(document.body)D=document.body;var F=0,_=0,E=0,B=0,$=0;if(document.documentElement){F=parent?parent.document.documentElement.scrollWidth:document.documentElement.scrollWidth;_=parent?parent.document.documentElement.scrollHeight:document.documentElement.scrollHeight;E=parent?parent.document.documentElement.scrollTop:document.documentElement.scrollTop;$=parent?parent.document.documentElement.clientHeight:document.documentElement.clientHeight}else if(document.body){F=parent?parent.document.body.offsetWidth:document.body.offsetWidth;_=parent?parent.document.body.offsetHeight:document.body.offsetHeight;E=parent?parent.document.body.scrollTop:document.body.scrollTop;$=parent?parent.document.body.clientHeight:document.body.clientHeight}var A=(_>$)?_:$;C.style.width="100%";C.style.height=A+"px"},hideShadow:function(){try{var _=this.$("friendDialogShadow");_.style.display="none"}catch($){}},addEvent:function(_,B,A){if(_.addEventListener){_.addEventListener(B,A,false);return true}else if(_.attachEvent){var $=_.attachEvent("on"+B,A);return $}else return false},removeEvent:function(A,C,B,$){if(A.removeEventListener){A.removeEventListener(C,B,$);return true}else if(A.detachEvent){var _=A.detachEvent("on"+C,B);return _}else return false}};function getViewportHeight(){var $=top.window,_=top.document;if($.innerHeight!==$.undefined)return $.innerHeight;if(_.compatMode==="CSS1Compat")return _.documentElement.clientHeight;if(_.body)return _.body.clientHeight;return $.undefined}function getViewportWidth(){var $=top.window,_=top.document;if($.innerWidth!=$.undefined)return $.innerWidth;if(_.compatMode==="CSS1Compat")return _.documentElement.clientWidth;if(_.body)return _.body.clientWidth;return $.undefined}