$(document).ready(function(){var a=0;$("#personalcenter").click(function(){$("#userPanel").animate({opacity:"toggle"},"slow",function(){a=1})});$("body").not("#userPanel").click(function(){if(a){$("#userPanel").animate({opacity:"toggle"},"slow")}a=0});$("a").bind("focus",function(){if(this.blur){this.blur()}})});var imgName="../img/icon_loading.gif";var submitObj="";function p_submit_loading(a){imgLoader=new Image();imgLoader.src=imgName;submitObj=document.getElementById(a).innerHTML;document.getElementById(a).innerHTML="<span id='img'><img src='"+imgName+"' width='46' height='44' /></span>"}function p_clear_inner(a){document.getElementById(a).innerHTML=""}function getUlWidth(c){var b=0;var a=$("li",$(c));for(i=0;i<a.size();i++){b+=a.eq(i).innerWidth();b+=parseInt(a.eq(i).css("margin-left"),10);b+=parseInt(a.eq(i).css("margin-right"),10)}return b}function getUlHeight(){var b=0;var a=$("li",$(obj));for(i=0;i<a.size();i++){b+=a.eq(i).innerHeight()}return b}function FlashCode(e,d,c,b,a){document.write('<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="'+c+'" height="'+b+'" id="'+e+'" align="middle">');document.write('<param name="allowScriptAccess" value="always">');document.write('<param name="movie" value="'+d+a+'">');document.write('<param name="menu" value="false">');document.write('<param name="quality" value="high">');document.write('<param name="wmode" value="transparent">');document.write('<param name="scale" value="noscale">');document.write('<embed src="'+d+a+'" menu="false" quality="high" wmode="transparent" scale="noscale" width="'+c+'" height="'+b+'" name="'+e+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write("</object>");document.write('<script language="javascript">');document.write("<\/script>")}var ajaxSubmitStatus=false;function changAjaxStatus(){ajaxSubmitStatus=false;tb_remove_box()}function frmReset(a){a.reset()}function calculationLen(d){var c=d.getAttribute("maxlength");var e=d.value.length;var a=d.value.match(/[\u4E00-\u9FA5\uF900-\uFA2D]/g);var b=0;if(a!=null){b=a.length;e+=b}if(e>c){d.value=d.value.substring(0,c-b);$("#tno").text("0")}else{$("#tno").text(c-e)}}function interceptString(d,a){if(d.length*2<=a){return d}var e=0;var c="";for(var b=0;b<d.length;b++){if(d.charCodeAt(b)>128){e=e+2;if(e>a){return c.substring(0,c.length-1)+"..."}}else{e=e+1;if(e>a){return c.substring(0,c.length-2)+"..."}}c=c+d.charAt(b)}return c}function findCutString(d){var e=$(d);for(var c=0;c<e.length;c++){var a=e[c].getAttribute("cutlen");if(a==null){continue}var f=e[c].innerHTML;var b=interceptString(f,a);e[c].innerHTML=b}}function mask_show(b){if(null==b){b=""}try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});if(document.getElementById("TB_HideSelect"+b)===null){$("body").append("<iframe id='TB_HideSelect"+b+"' class='TB_HideSelect'></iframe><div id='TB_overlay"+b+"' class='TB_overlay'></div><div id='TB_window"+b+"' class='TB_window'></div>")}}else{if(document.getElementById("TB_overlay"+b)===null){$("body").append("<div id='TB_overlay"+b+"' class='TB_overlay'></div><div id='TB_window"+b+"' class='TB_window'></div>")}}if(tb_detectMacXFF()){$("#TB_overlay"+b).addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay"+b).addClass("TB_overlayBG")}}catch(a){}if(b!=""){$("#TB_overlay"+b).css("z-index","50");$("#TB_overlay"+b).css("filter","alpha(opacity=20)");$("#TB_overlay"+b).css("-moz-opacity","0.2");$("#TB_overlay"+b).css("opacity","0.2")}else{$("#TB_overlay").css("z-index","8888");$("#TB_overlay").css("filter","alpha(opacity=50)");$("#TB_overlay").css("-moz-opacity","0.5");$("#TB_overlay").css("opacity","0.5");$("#TB_window").css("z-index","9999")}}function tb_remove(a){if(null==a){a=""}$("#TB_window"+a).fadeOut("fast",function(){$("#TB_window"+a+",#TB_overlay"+a+",#TB_HideSelect"+a).trigger("unload").unbind().remove()});if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_remove_box(){$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}};
