﻿/*
 * Compressed by iPow(www.iPow.cn)
 */
var bbs_v2_userAgent=navigator.userAgent.toLowerCase(),bbs_v2_is_opera=(bbs_v2_userAgent.indexOf("opera")!=-1),bbs_v2_is_saf=((bbs_v2_userAgent.indexOf("applewebkit")!=-1)||(navigator.vendor=="Apple Computer, Inc.")),bbs_v2_is_webtv=(bbs_v2_userAgent.indexOf("webtv")!=-1),bbs_v2_is_ie=((bbs_v2_userAgent.indexOf("msie")!=-1)&&(!bbs_v2_is_opera)&&(!bbs_v2_is_saf)&&(!bbs_v2_is_webtv));function get_bbs_v2_left_menu_to_hide_cookie(){var A,B=new RegExp("bbs_v2_left_menu_hide_st=(.?)","gi");if(A=B.exec(document.cookie))return(A[1]);return 0}try{if(is_topic_to_hidden_left_menu==1)bbs_v2_left_menu_hide_st=1;else bbs_v2_left_menu_hide_st=0}catch(err){is_topic_to_hidden_left_menu=0;bbs_v2_left_menu_hide_st=get_bbs_v2_left_menu_to_hide_cookie()}if(bbs_v2_is_ie){if(bbs_v2_left_menu_hide_st==1)document.writeln("<link href=\"css/css_hide.css\" type=text/css rel=stylesheet>");else document.writeln("<link href=\"css/css_ie.css\" type=text/css rel=stylesheet>")}else if(bbs_v2_left_menu_hide_st==1)document.writeln("<link href=\"css/css_ff_hide.css\" type=text/css rel=stylesheet>");else document.writeln("<link href=\"css/css_ff.css\" type=text/css rel=stylesheet>");function treeControlClick(C){var D=document.getElementById("divForumTree").style,A=document.getElementById("treeControlDiv").style,E=document.getElementById("mainPanelDiv").style,B=get_bbs_v2_left_menu_to_hide_cookie();if(bbs_v2_is_ie){if(B==1){document.cookie="bbs_v2_left_menu_hide_st=0";D.marginLeft="0px";D.width="175px";D.display="";C.style.cssText="BACKGROUND-IMAGE: url('images/hide.gif');";A.marginLeft="175px";E.marginLeft="187px"}else{document.cookie="bbs_v2_left_menu_hide_st=1";D.width="0px";D.display="none";C.style.cssText="BACKGROUND-IMAGE: url(images/show.gif); MARGIN-LEFT: 0px";A.marginLeft="0px";E.marginLeft="12px"}}else if(B==1){document.cookie="bbs_v2_left_menu_hide_st=0";D.display="";D.width="175px";C.style.cssText="BACKGROUND-IMAGE: url('images/hide.gif');"}else{document.cookie="bbs_v2_left_menu_hide_st=1";D.display="none";C.style.cssText="BACKGROUND-IMAGE: url(images/show.gif); MARGIN-LEFT: 0px"}}function switchMenu(A){if(typeof A=="string"){A=document.getElementById("treeNode"+A);if(A==null)return}var B=A.nextSibling,C=A.childNodes[0],D=(C.id=="subNodeImg");if(B.style.display=="none"){B.style.display="block";C.src=D?"../images/new_close.gif":"../images/-.gif"}else{B.style.display="none";C.src=D?"../images/new_open.gif":"../images/+.gif"}}function MM_jumpMenu(C,A,B){if(A.options[A.selectedIndex].value!=""){this.document.form1.type.value=A.options[A.selectedIndex].value;this.document.form1.submit();if(B)A.selectedIndex=0}else alert("\u8bf7\u9009\u62e9\u7ba1\u7406\u9009\u9879")}function set_quote(div_no){document.all.Post.focus();if(div_no){var tmp_str;eval("tmp_str = document.all.note"+div_no+".value");tmp_str=tmp_str.replace(/<br rel=auto>/ig,"\n");document.all.Post.value+="[QUOTE]"+tmp_str+"[/QUOTE]"}}function requote(){document.all.Post.focus()}function highLight(D){var C=document.getElementById("treeNode"+D);if(C!=null)if(C.tagName=="A"){try{if(C.parentNode.childNodes[0].childNodes[0].outerHTML=="<IMG id=subNodeImg src=\"images/ico_page.gif\" border=0>"){C.parentNode.childNodes[0].childNodes[0].src="images/ico_page_selected.gif";C.parentNode.style.background="#51b825"}}catch(E){}C.className="forum_highlight";C=C.parentNode.parentNode.parentNode.previousSibling;while(C&&C.tagName=="DIV"){if(C.nextSibling.style.display=="none")C.childNodes[0].onclick();C=C.parentNode;if(C)C=C.parentNode;if(C)C=C.previousSibling}}else{var A=C.childNodes;for(var B=0;B<A.length;B++)if(A[B].tagName=="A")A[B].className="forum_highlight";if(C.onclick)C.onclick()}}function bbs_copy_code(A){var B=document.body.createTextRange();B.moveToElementText(A);B.scrollIntoView();B.select();B.execCommand("Copy");B.collapse(false)}function bbs_copy_forum_url(B){var A="";A+=B;window.clipboardData.setData("Text",A);alert("\u5df2\u5c06\u672c\u7248\u5730\u5740\u590d\u5236\u5230\u526a\u8d34\u677f\uff0c\u60a8\u53ef\u4ee5\u7528 CTRL+V \u8fdb\u884c\u7c98\u8d34\uff0c\u53d1\u9001\u7ed9\u60a8\u7684MSN\u6216QQ\u597d\u53cb\u3002")}function $(){var C=new Array();for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string")A=document.getElementById(A);if(arguments.length==1)return A;C.push(A)}return C}function onlyNum(){var B=event.keyCode,A=String.fromCharCode(B);if(B==8||B==46||(B>=35&&B<=40))return;else if(!/\d/.test(A))event.returnValue=false}function chkNum(B){var A=/^\+?[1-9][0-9]*$/;return A.test(B)}function sg(A){document.getElementById("PageN").value=A}function GoPage(D,C){var B="",A=document.getElementById("PageN").value;if(chkNum(A))A=A;else A=1;if(A<=C)location.href=D+"&page="+A+"#topic";else return false}function GoTopicPage(D,C){var B="",A=document.getElementById("PageN").value;if(chkNum(A))A=A;else A=1;if(A<=C)location.href=D+A;else return false}