window.debug=false;window.onerror=function(D,B,A){if(window.debug){var C="url  �?"+B+"\nline �?"+A+" 行\nerror�?"+D;if(!window.confirm(C+"\n\n页面含有如上脚本错误,是否继续报告错误?")){window.debug=false}}return true};String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s*/,"")};String.prototype.rtrim=function(){return this.replace(/\s*$/,"")};String.prototype.size=function(){var A=0;for(var B=0;B<this.length;B++){if(this.charCodeAt(B)>127||this.charCodeAt(B)==94){A+=2}else{A++}}return A};String.prototype.escape=function(){};String.prototype.leftPad=function(B,C){var A=this;if(!C){C=" "}while(A.length<B){A=C+A}return A.toString()};String.prototype.format=function(){var A=arguments;return this.replace(/\{(\d+)\}/g,function(B,C){return A[C]})};String.prototype.byteLength=function(){return this.replace(/[^\u0000-\u007f]/g,"\u0061\u0061").length};Array.prototype.inArray=function(B){if(this.length==0){return false}for(var A in this){if(this[A].toString().toLowerCase()==B.toString().toLowerCase()){return true}}return false};var Tswc={};Tswc.Cookie={set:function(B,C,A){if(undefined==A){A=3600}var D=new Date();D.setTime(D.getTime()+A);document.cookie=B+"="+escape(C)+";expires="+D.toGMTString()},get:function(B){var A=document.cookie.match(new RegExp("(^| )"+B+"=([^;]*)(;|$)"));if(A!=null){return unescape(A[2])}return null},remove:function(A){var B=new Date();B.setTime(B.getTime()-1);var C=this.get(A);if(C!=null){document.cookie=A+"="+C+";expires="+B.toGMTString()}}};Tswc.Browser={IE:navigator.userAgent.indexOf("MSIE")>0?true:false,Firefox:navigator.userAgent.indexOf("Firefox")>0?true:false,IE6:navigator.userAgent.indexOf("MSIE 6.0")>0?true:false,IE7:navigator.userAgent.indexOf("MSIE 7.0")>0?true:false};Tswc.Element={setOpacity:function(B,C){if(Tswc.Browser.IE){var A=100;A*=C;B.style.filter="Alpha(Opacity="+A+")"}else{if(Tswc.Browser.Firefox){var A=1;A*=C;B.style.opacity=A}else{}}}};var opValue=1;var oFadeElement=null;function setOpacity(){opValue-=0.1;if(opValue<0){oFadeElement.parentNode.removeChild(oFadeElement);opValue=1;oFadeElement=null;return }Tswc.Element.setOpacity(oFadeElement,opValue);setTimeout("setOpacity()",50)}var JsLoader=function(A,B){this.load=function(){var E=document.getElementsByTagName("script");for(i=0;i<E.length;i++){if(E[i].src&&E[i].src.indexOf(A)!=-1){B();return }}if(!document.body){document.write('<script type="text/javascript" src="'+A+'"><\/script>')}else{oJs=document.createElement("script");oJs.type="text/javascript";oJs.src=A;var D=document.getElementsByTagName("head")[0];D.appendChild(oJs);var C=this;oJs.onload=oJs.onreadystatechange=function(){if(this.readyState&&this.readyState=="loading"){return }else{B()}}}oJs.onerror=function(){D.removeChild(oJs)}};this.load()};var CssLoader=function(A,B){this.load=function(){var E=document.getElementsByTagName("link");for(i=0;i<E.length;i++){if(E[i].src&&E[i].src.indexOf(A)!=-1){B();return }}if(!document.body){document.write('<link href="'+A+'" rel="stylesheet" type="text/css" />')}else{oCss=document.createElement("link");oCss.type="text/css";oCss.href=A;oCss.rel="stylesheet";var D=document.getElementsByTagName("head")[0];D.appendChild(oCss);var C=this;oCss.onload=oCss.onreadystatechange=function(){if(this.readyState&&this.readyState=="loading"){return }else{B()}}}oCss.onerror=function(){D.removeChild(oCss)}};this.load()};