var userAgent=navigator.userAgent.toLowerCase(),is_opera=userAgent.indexOf("opera")!=-1&&opera.version(),is_moz=(navigator.product=="Gecko")&&userAgent.substr(userAgent.indexOf("firefox")+8,3),is_ie=(userAgent.indexOf("msie")!=-1&&!is_opera)&&userAgent.substr(userAgent.indexOf("msie")+5,3),is_safari=(userAgent.indexOf("webkit")!=-1||userAgent.indexOf("safari")!=-1),note_step=0,note_oldtitle=document.title,note_timer;if(top.location!=location)top.location.href=location.href;function $($){return document.getElementById($)}function addSort(_){if(_.value=="addoption"){var A=document.createElement("div");A.id=_.id+"_menu";A.innerHTML="<h1>\u6dfb\u52a0</h1><a href=\"javascript:;\" onclick=\"addOption('newsort', '"+_.id+"')\" class=\"float_del\">\u5220\u9664</a><div class=\"popupmenu_inner\" style=\"text-align: center;\">\u540d\u79f0\uff1a<input type=\"text\" name=\"newsort\" size=\"10\" id=\"newsort\" class=\"t_input\" /><input type=\"button\" name=\"addSubmit\" value=\"\u521b\u5efa\" onclick=\"addOption('newsort', '"+_.id+"')\" class=\"button\" /></div>";A.className="popupmenu_centerbox";A.style.cssText="position: absolute; left: 50%; top: 200px; width: 400px; margin-left: -200px;";document.body.appendChild(A);$("newsort").focus()}}function addOption(A,H){var E=$(H),D=$(A).value;$(A).value="";if(D!=null&&D!=""){var B=document.createElement("option");B.text=D;B.value="new:"+D;try{E.add(B,E.options[0])}catch(_){E.add(B,E.selecedIndex)}E.value="new:"+D}else E.value=E.options[0].value;var G=document.getElementById(H+"_menu"),C=G.parentNode,F=C.removeChild(G)}function checkAll(_,A){for(var B=0;B<_.elements.length;B++){var $=_.elements[B];if($.name.match(A))$.checked=_.elements["chkall"].checked}}function cnCode($){return is_ie&&document.charset=="utf-8"?encodeURIComponent($):$}function isUndefined($){return typeof $=="undefined"?true:false}function in_array($,_){if(typeof $=="string"||typeof $=="number")for(var A in _)if(_[A]==$)return true;return false}function strlen($){return(is_ie&&$.indexOf("\n")!=-1)?$.replace(/\r?\n/g,"_").length:$.length}function getExt($){return $.lastIndexOf(".")==-1?"":$.substr($.lastIndexOf(".")+1,$.length).toLowerCase()}function doane($){e=$?$:window.event;if(is_ie){e.returnValue=false;e.cancelBubble=true}else if(e){e.stopPropagation();e.preventDefault()}}function seccode(){var $="do.php?ac=seccode&rand="+Math.random();document.writeln("<img id=\"img_seccode\" src=\""+$+"\" align=\"absmiddle\">")}function updateseccode(){var _="do.php?ac=seccode&rand="+Math.random();if($("img_seccode"))$("img_seccode").src=_}function resizeImg(_,B){var A=$(_).getElementsByTagName("img");for(i=0;i<A.length;i++)A[i].onload=function(){if(this.width>B){this.style.width=B+"px";if(this.parentNode.tagName.toLowerCase()!="a"){var $=document.createElement("div");this.parentNode.insertBefore($,this);$.appendChild(this);$.style.position="relative";$.style.cursor="pointer";this.title="\u70b9\u51fb\u56fe\u7247\uff0c\u5728\u65b0\u7a97\u53e3\u663e\u793a\u539f\u59cb\u5c3a\u5bf8";var _=document.createElement("img");_.src="image/zoom.gif";_.style.position="absolute";_.style.marginLeft=B-28+"px";_.style.marginTop="5px";this.parentNode.insertBefore(_,this);$.onmouseover=function(){_.src="image/zoom_h.gif"};$.onmouseout=function(){_.src="image/zoom.gif"};$.onclick=function(){window.open(this.childNodes[1].src)}}}}}function ctrlEnter(A,B,_){if(isUndefined(_))_=0;if((A.ctrlKey||_)&&A.keyCode==13){$(B).click();return false}return true}function zoomTextarea(_,A){zoomSize=A?10:-10;obj=$(_);if(obj.rows+zoomSize>0&&obj.cols+zoomSize*3>0){obj.rows+=zoomSize;obj.cols+=zoomSize*3}}function setCopy($){if(is_ie){clipboardData.setData("Text",$);alert("\u7f51\u5740\u201c"+$+"\u201d\n\u5df2\u7ecf\u590d\u5236\u5230\u60a8\u7684\u526a\u8d34\u677f\u4e2d\n\u60a8\u53ef\u4ee5\u4f7f\u7528Ctrl+V\u5feb\u6377\u952e\u7c98\u8d34\u5230\u9700\u8981\u7684\u5730\u65b9")}else prompt("\u8bf7\u590d\u5236\u7f51\u7ad9\u5730\u5740:",$)}function ischeck($,A){form=document.getElementById($);for(var B=0;B<form.elements.length;B++){var _=form.elements[B];if(_.name.match(A)&&_.checked)if(confirm("\u60a8\u786e\u5b9a\u8981\u6267\u884c\u672c\u64cd\u4f5c\u5417\uff1f"))return true;else return false}alert("\u8bf7\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u5bf9\u8c61");return false}function showPreview(A,_){var B=$(_);if(typeof B=="object")B.innerHTML=A.replace(/\n/ig,"<br />")}function getEvent(){if(document.all)return window.event;func=getEvent.caller;while(func!=null){var $=func.arguments[0];if($)if(($.constructor==Event||$.constructor==MouseEvent)||(typeof($)=="object"&&$.preventDefault&&$.stopPropagation))return $;func=func.caller}return null}function copyRow(_){var B=false,A;if($(_).rows.length==1&&$(_).rows[0].style.display=="none"){$(_).rows[0].style.display="";A=$(_).rows[0]}else{A=$(_).rows[0].cloneNode(true);B=true}tags=A.getElementsByTagName("input");for(i in tags)if(tags[i].name=="pics[]")tags[i].value="http://";if(B)$(_).appendChild(A)}function delRow(A,_){if($(_).rows.length==1){var B=A.parentNode.parentNode;tags=B.getElementsByTagName("input");for(i in tags)if(tags[i].name=="pics[]")tags[i].value="http://";B.style.display="none"}else $(_).removeChild(A.parentNode.parentNode)}function insertWebImg($){if(checkImage($.value)){insertImage($.value);$.value="http://"}else alert("\u56fe\u7247\u5730\u5740\u4e0d\u6b63\u786e")}function checkFocus(_){var A=$(_);if(!A.hasfocus)A.focus()}function insertImage($){$="\n[img]"+$+"[/img]\n";insertContent("message",$)}function insertContent(B,A){var C=$(B);selection=document.selection;checkFocus(B);if(!isUndefined(C.selectionStart)){var _=C.selectionStart+0;C.value=C.value.substr(0,C.selectionStart)+A+C.value.substr(C.selectionEnd)}else if(selection&&selection.createRange){var D=selection.createRange();D.text=A;D.moveStart("character",-strlen(A))}else C.value+=A}function checkImage(_){var $=/^http\:\/\/.{5,200}\.(jpg|gif|png)$/i;return _.match($)}function quick_validate(_){if($("seccode")){var A=$("seccode").value,B=new Ajax();B.get("cp.php?ac=common&op=seccode&code="+A,function(A){A=trim(A);if(A!="succeed"){alert(A);$("seccode").focus();return false}else{_.form.submit();return true}})}else{_.form.submit();return true}}function trim($){var _=/\s*(\S[^\0]*\S)\s*/;_.exec($);return RegExp.$1}function stopMusic(A,B){var _=A.toString()+"_"+B.toString();if($(_))$(_).SetVariable("closePlayer",1)}function showFlash(D,J,M,E){var N={"youku.com":"http://player.youku.com/player.php/sid/FLASHVAR=/v.swf","ku6.com":"http://player.ku6.com/refer/FLASHVAR/v.swf","youtube.com":"http://www.youtube.com/v/FLASHVAR","5show.com":"http://www.5show.com/swf/5show_player.swf?flv_id=FLASHVAR","sina.com.cn":"http://vhead.blog.sina.com.cn/player/outer_player.swf?vid=FLASHVAR","sohu.com":"http://v.blog.sohu.com/fo/v4/FLASHVAR","mofile.com":"http://tv.mofile.com/cn/xplayer.swf?v=FLASHVAR","music":"FLASHVAR","flash":"FLASHVAR"},A="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"480\" height=\"400\">"+"<param name=\"movie\" value=\"FLASHADDR\" />"+"<param name=\"quality\" value=\"high\" />"+"<param name=\"bgcolor\" value=\"#FFFFFF\" />"+"<embed width=\"480\" height=\"400\" menu=\"false\" quality=\"high\" src=\"FLASHADDR\" type=\"application/x-shockwave-flash\" />"+"</object>",F="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"480\" height=\"450\">"+"<param value=\"transparent\" name=\"wmode\"/>"+"<param value=\"FLASHADDR\" name=\"movie\" />"+"<embed src=\"FLASHADDR\" wmode=\"transparent\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"450\"></embed>"+"</object>",I="<object id=\"audioplayer_SHAREID\" height=\"24\" width=\"290\" data=\"image/player.swf\" type=\"application/x-shockwave-flash\">"+"<param value=\"image/player.swf\" name=\"movie\"/>"+"<param value=\"autostart=yes&bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=FLASHADDR\" name=\"FlashVars\"/>"+"<param value=\"high\" name=\"quality\"/>"+"<param value=\"false\" name=\"menu\"/>"+"<param value=\"#FFFFFF\" name=\"bgcolor\"/>"+"</object>",H="<object height=\"64\" width=\"290\" data=\"FLASHADDR\" type=\"audio/x-ms-wma\">"+"<param value=\"FLASHADDR\" name=\"src\"/>"+"<param value=\"1\" name=\"autostart\"/>"+"<param value=\"true\" name=\"controller\"/>"+"</object>",L=F,_=true;if(""==J){alert("\u97f3\u4e50\u5730\u5740\u9519\u8bef\uff0c\u4e0d\u80fd\u4e3a\u7a7a");return false}if("music"==D){var B=new RegExp(".mp3$","ig"),C=new RegExp(".swf$","ig");L=H;_=false;if(B.test(J)){_=true;L=I}else if(C.test(J)){_=true;L=A}}J=encodeURI(J);if(N[D]){A=N[D].replace("FLASHVAR",J);L=L.replace(/FLASHADDR/g,A);L=L.replace(/SHAREID/g,E)}if(!M){$("flash_div_"+E).innerHTML=L;return true}if($("flash_div_"+E)){$("flash_div_"+E).style.display="";$("flash_hide_"+E).style.display="";M.style.display="none";return true}if(N[D]){var K=document.createElement("div");K.id="flash_div_"+E;M.parentNode.insertBefore(K,M);K.innerHTML=L;M.style.display="none";var G=document.createElement("div");G.id="flash_hide_"+E;var O=document.createTextNode("\u6536\u8d77");G.appendChild(O);M.parentNode.insertBefore(G,M);G.style.cursor="pointer";G.onclick=function(){if(true==_){stopMusic("audioplayer",E);K.parentNode.removeChild(K);G.parentNode.removeChild(G)}else{K.style.display="none";G.style.display="none"}M.style.display=""}}}function userapp_open(){var _=new Ajax();_.get("cp.php?ac=common&op=getuserapp",function(_){$("my_userapp").innerHTML=_;$("a_app_more").className="on";$("a_app_more").innerHTML="\u6536\u8d77";$("a_app_more").onclick=function(){userapp_close()}})}function userapp_close(){var _=new Ajax();_.get("cp.php?ac=common&op=getuserapp&subop=off",function(_){$("my_userapp").innerHTML=_;$("a_app_more").className="off";$("a_app_more").innerHTML="\u5c55\u5f00";$("a_app_more").onclick=function(){userapp_open()}})}function startMarquee(H,D,G,_){var A=null,E=false,F=$(_);F.innerHTML+=F.innerHTML;F.onmouseover=function(){E=true};F.onmouseout=function(){E=false};F.scrollTop=0;function C(){A=setInterval(B,D);if(!E)F.scrollTop+=2}function B(){if(E)return;if(F.scrollTop%H!=0){F.scrollTop+=2;if(F.scrollTop>=F.scrollHeight/2)F.scrollTop=0}else{clearInterval(A);setTimeout(C,G)}}setTimeout(C,G)}function readfeed(A,$){if(Cookie.get("read_feed_ids")){var _=Cookie.get("read_feed_ids");_=$+","+_}else _=$;Cookie.set("read_feed_ids",_,48);A.className="feedread"}function showreward(){if(Cookie.get("reward_notice_disable"))return false;var $=new Ajax();$.get("do.php?ac=ajax&op=getreward",function($){if($)msgwin($,2000)})}function msgwin(A,_){var C=$("msgwin");if(!C){C=document.createElement("div");C.id="msgwin";C.style.display="none";C.style.position="absolute";C.style.zIndex="100000";$("append_parent").appendChild(C)}C.innerHTML=A;C.style.display="";C.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";C.style.opacity=0;var B=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;pbegin=B+(document.documentElement.clientHeight/2);pend=B+(document.documentElement.clientHeight/5);setTimeout(function(){showmsgwin(pbegin,pend,0,_)},10);C.style.left=((document.documentElement.clientWidth-C.clientWidth)/2)+"px";C.style.top=pbegin+"px"}function showmsgwin(B,A,C,_){step=(B-A)/10;var D=$("msgwin");newp=(parseInt(D.style.top)-step);if(newp>A){D.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+C+")";D.style.opacity=C/100;D.style.top=newp+"px";setTimeout(function(){showmsgwin(B,A,C+=10,_)},10)}else{D.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)";D.style.opacity=1;setTimeout("displayOpacity('msgwin', 100)",_)}}function displayOpacity(_,A){if(!$(_))return;if(A>=0){A-=10;$(_).style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+A+")";$(_).style.opacity=A/100;setTimeout("displayOpacity('"+_+"',"+A+")",50)}else{$(_).style.display="none";$(_).style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)";$(_).style.opacity=1}}function display(_){var A=$(_);A.style.display=A.style.display==""?"none":""}function urlto($){window.location.href=$}function explode(_,$){return $.split(_)}function selector(H,J){var D=new RegExp("([a-z]*)([.#:]*)(.*|$)","ig"),K=D.exec(H),G=[];if(K[2]=="#")G.push(["id",K[3]]);else if(K[2]==".")G.push(["className",K[3]]);else if(K[2]==":")G.push(["type",K[3]]);var I=K[3].replace(/\[(.*)\]/g,"$1").split("@");for(var E=0;E<I.length;E++){var M=null;if(M=/([\w]+)([=^%!$~]+)(.*)$/.exec(I[E]))G.push([M[1],M[2],M[3]])}var B=(J||document).getElementsByTagName(K[1]||"*");if(G){var L=[],_={"for":"htmlFor","class":"className"};for(E=0;E<B.length;E++){var F=true;for(var C=0;C<G.length;C++){var A=_[G[C][0]]||G[C][0],$=B[E][A]||(B[E].getAttribute?B[E].getAttribute(A):""),H=null;if(G[C][1]=="=")H=new RegExp("^"+G[C][2]+"$","i");else if(G[C][1]=="^=")H=new RegExp("^"+G[C][2],"i");else if(G[C][1]=="$=")H=new RegExp(G[C][2]+"$","i");else if(G[C][1]=="%=")H=new RegExp(G[C][2],"i");else if(G[C][1]=="~=")H=new RegExp("(^|[ ])"+G[C][2]+"([ ]|$)","i");if(H&&!H.test($)){F=false;break}}if(F)L.push(B[E])}return L}else return B}function reviewn(_){var $=document.getElementById("keydiv_"+_);if($.style.display=="");else{$.getElementsByTagName("TEXTAREA")[0].value="";$.style.display=""}document.getElementById("txtarea_"+_).style.display="";document.getElementById("btnreview_"+_).style.display=""}function checreview(A){for(var B=0;B<=10;B++){try{var $=document.getElementById("keydiv_"+B);if($==A)continue;$.style.display="none"}catch(_){continue}}}function reviewsub(_,B){var $=document.getElementById("keydiv_"+B),C=$.getElementsByTagName("TEXTAREA")[0];if(isNull(C.value)){alert("\u8bc4\u8bba\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\uff01");return}if(C==null||C.value==null||C.value.length==0){alert("\u8bc4\u8bba\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\uff01");return}var A=new Ajax("XML","ajax_wait");A.showLoading();A.post("source/ajax_handler.php","method=addreview&value1="+_+"&value2="+C.value,function($){if($=="0"||$==""){C.value="";alert("\u64cd\u4f5c\u6210\u529f!");window.location.reload()}else alert("\u64cd\u4f5c\u5931\u8d25!")})}function ajaxsumbit($){var _=new Ajax("XML","ajax_wait");_.showLoading();_.post("source/ajax_concern.php","uidlist="+$,function($){if($=="0"||$==""){alert("\u64cd\u4f5c\u6210\u529f!");window.location.reload()}else alert("\u64cd\u4f5c\u5931\u8d25!")})}function goodsubmit($){var _=new Ajax("HTML","ajax_wait");_.showLoading();_.post("source/ajax_handler.php","method=goodthis&value1="+$,function($){if($=="0"){alert("\u64cd\u4f5c\u6210\u529f!");window.location.reload()}else if($=="1")alert("\u4e0d\u80fd\u91cd\u590d\u64cd\u4f5c!");else alert("\u64cd\u4f5c\u5931\u8d25"+$)})}function isNull($){if($=="")return true;var _="^[ ]+$",A=new RegExp(_);return A.test($)}function changetojinpin(A,_){if(!window.confirm("\u4f60\u786e\u5b9a\u8981\u628a\u6b64\u77ed\u4fe1\u66f4\u6539\u4e3a\u7cbe\u54c1\u77ed\u4fe1\u5417?"))return false;var B=document.getElementsByName(A),$="";for(var C=0;C<B.length;C++)if(B[C].checked)$+=B[C].value+"|";if($==""){alert("\u8bf7\u9009\u62e9\u81f3\u5c11\u4e00\u6761\u77ed\u4fe1!");return}document.getElementById(_).value=$;return true}function todelsms(A,_){if(!window.confirm("\u4f60\u786e\u5b9a\u8981\u5220\u9664\u6b64\u6279\u77ed\u4fe1\u5417?"))return false;var B=document.getElementsByName(A),$="";for(var C=0;C<B.length;C++)if(B[C].checked)$+=B[C].value+"|";if($==""){alert("\u8bf7\u9009\u62e9\u81f3\u5c11\u4e00\u6761\u77ed\u4fe1!");return}document.getElementById(_).value=$;return true}function showdig(A){var $=document.getElementById("sf_author"),_=document.getElementById("sf_smsc");$.innerHTML=document.getElementById(A+"_author").innerHTML+"\uff1a";_.innerHTML=document.getElementById(A+"_smsc").innerHTML;document.getElementById("forwardsub").onclick=function(){var $=document.getElementById("dreview").value,_=new Ajax("HTML","ajax_wait");_.showLoading();_.post("source/ajax_handler.php","method=smsforward&value1="+A+"&value2="+$,function($){alert($)})};document.getElementById("smsforward").style.display=""}