if(typeof window.zjj=="undefined"||typeof window.J=="undefined")window["undefined"]=window["undefined"];var zjj=window.zjj=window.J=function($,_){if(zjj.isNull($)||$.J)return $;var A;if(zjj.isString($)){if(!_&&!this.alert)_=this;_=_||document;A=XpathDom.query($,_)}else A=$;if(A&&!A.J)if(A.nodeType&&"unknown"!==typeof A.getAttribute)A=zjj.extend(A,zjj.Util.Dom);else A=zjj.extend(zjj.toArray(A),zjj.Util.Dom);return A};zjj.apply=function(B,A,$){if(A&&typeof A=="object")for(var _ in A)B[_]=A[_];return $?zjj.apply(B,$):B};!function(){var _ua=navigator.userAgent.toLowerCase(),_d=document,_w=window,_mr=Math.round,_hd=_d.getElementsByTagName("head")[0],_pd=window.parent.document,_st=_w.setTimeout,_pi=_w.parseInt,_pf=_w.parseFloat,strict=_d.compatMode=="CSS1Compat",_cs=_d.uniqueID?function($){return $.currentStyle||$.style}:_d.defaultView.getComputedStyle,msie=!!_d.uniqueID,msie_v=msie&&_ua.match(/msie ([\d]\.[\d][\w]?)/)[1],ie6=msie&&_pf(msie_v)===6,ie7=msie&&_pf(msie_v)===7,ie8=msie&&_pf(msie_v)===8,gecko=_ua.indexOf("gecko/")>=0,firefox2=gecko&&_ua.indexOf("firefox/2")>=0,firefox3=gecko&&_ua.indexOf("firefox/3")>=0,safari=_ua.indexOf("webkit")>=0,opera=!!_w.opera;if(msie&&!ie7){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}zjj.apply(zjj,{version:"2009/05/26(v 0.3.1)",isIE:msie,isIE6:ie6,isIE7:ie7,isIE7:ie8,isFF:gecko,isFF2:firefox2,isFF3:firefox3,isSafari:safari,isOpera:opera,isStrict:strict,namespace:function($,B){if(!$||!$.length)return zjj;var _=$.split("."),A=zjj;for(var D=(_[0]=="zjj")?1:0,C=_.length;D~+,])\s*/g,ISSIMPLE:/^#?([\w\u00c0-\uFFFF_-]+)$/,IMPLIEDALL:/([>\s~\+,]|^)([#\.\[:])/g,ATTRALUES:/=(["'])([^'"]*)\1]/g,ATTR:/\[\s*([\w\u00c0-\uFFFF_-]+)\s*(?:(\S?\=)\s*(.*?))?\s*\]/g,PSEUDOSEQ:/\(([^\(\)]*)\)$/g,BEGINIDAPART:/^(?:\*#([\w\u00c0-\uFFFF_-]+))/,STANDARD:/^[>\s~\+:]/,STREAM:/[#\.>\s\[\]:~\+]+|[^#\.>\s\[\]:~\+]+/g,ISINT:/^\d+$/,tempAttrValues:[],tempAttrs:[],idName:"uniqueIdForzjj",id:1,query:function($,G){var _,E,C,B,A,H,I,D,F,J;$=zjj.String.trim($);if(""===$)return;if(this.ISSIMPLE.test($))if(0===$.indexOf("#")&&typeof G.getElementById!=="undefined")return this.getElemById(G,$.substr(1));else if(typeof G.getElementsByTagName!=="undefined")return zjj.toArray(G.getElementsByTagName($));if(!zjj.isArray(G))G=G.nodeType?[G]:zjj.toArray(G);E=$.replace(this.SPACE,"$1").replace(this.ATTRALUES,this.analyzeAttrValues).replace(this.ATTR,this.analyzeAttrs).replace(this.IMPLIEDALL,"$1*$2").split(",");C=E.length;B=-1;_=[];while(++B":function(_,$){return XpathDom.getElemsByTagName(_,"firstChild",$)},"+":function(B,A){var $=[],E=-1,D=B.length,_,C;if("*"===A)C=true;else A=A.toUpperCase();while(++E=0},"!=":function(_,$){return $!==_},"^=":function(_,$){return _.indexOf($)===0},"$=":function(_,$){return _.substr(_.length-$.length)===$},"*=":function(_,$){return _.indexOf($)>=0}},pseOperators:{"first-child":function($){return XpathDom.getElemsBySeq($,1,"firstChild","nextSibling")},"nth-child":function(_,$){return XpathDom.getElemsBySeq(_,$,"firstChild","nextSibling")},"last-child":function($){return XpathDom.getElemsBySeq($,1,"lastChild","previousSibling")},"nth-last-child":function(_,$){return XpathDom.getElemsBySeq(_,$,"lastChild","previousSibling")}}}}();zjj.forEach=zjj.each=function(A,C,$){if(zjj.isEnum(A)){if(Array.prototype.forEach)Array.prototype.forEach.call(A,C,$);else for(var D=0,B=A.length;D]*>/g,"");$=$.replace(/[ | ]*\n/g,"\n");$=$.replace(/\n[\s| | ]*\r/g,"\n");return $},extend:function($,A){for(var _ in A)$[_]=A[_];return $}};zjj.Util.Cookie={createCookie:function(A,B,_){if(_){var C=new Date();C.setTime(C.getTime()+(_*24*60*60*1000));var $="; expires="+C.toGMTString()}else $="";document.cookie=A+"="+B+$+"; path=/"},readCookie:function($){var _=document.cookie.split(";");for(var A=0;A<_.length;A++){while(_[A].charAt(0)==" ")_[A]=_[A].substring(1,_[A].length);if(_[A].indexOf($+"=")==0)return _[A].substring(_[A].indexOf("=")+1);return null}},eraseCookie:function($){this.createCookie($,"",-1)},isSupportCookie:function(){if(navigator.cookieEnabled)return true;return false}};zjj.Ajax=function(options){options={method:options.method||"GET",url:options.url||"",timeout:options.timeout||8000,data:options.data||"",params:options.params||"",onComplete:options.onComplete||function(){},onError:options.onError||function(){},onSuccess:options.onSuccess||function(){},onLoading:options.onLoading||function(){}};if(window.XMLHttpRequest)var xReq=new XMLHttpRequest();else if(window.ActiveXObject)xReq=new ActiveXObject("Microsoft.XMLHTTP");var requestDone=false;setTimeout(function(){requestDone=true},options.timeout);if(options.method=="GET"){xReq.open(options.method,options.url+"?"+serialize(options.params)+"&rm="+zjj.time(),true);xReq.onreadystatechange=readyStateChange;xReq.send(null)}else if(options.method=="POST"){xReq.open(options.method,options.url+"?rm="+zjj.time(),true);xReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(xReq.overrideMimeType)xReq.setRequestHeader("Connection","close");xReq.onreadystatechange=readyStateChange;xReq.send(serialize(options.params))}function readyStateChange(){if(xReq.readyState==4&&!requestDone){if(httpReqSuccess(xReq))options.onSuccess(httpResData(xReq,options.method));else if(!requestDone)options.onLoading();else options.onError();options.onComplete();xReq=null}}function httpReqSuccess(_){try{return!_.status&&location.protocol=="file:"||(_.status>=200&&_.status<300)||_.status==304||zjj.isSafari&&typeof _.status=="undefined"}catch($){}return false}function httpResData(r,method){var ct=r.getResponseHeader("content-type"),data=ct&&ct.indexOf("xml")>=0;data=(options.data=="xml"||data)?r.responseXML:r.responseText;if(options.data=="json")eval("data="+data);else if(options.data=="script")if(window.execScript)window.execScript(data);else eval.call(window,data);return data}function serialize(_){if(!_)return"";var $=[];if(_.constructor==Array){for(var B=0;B<_.length;B++)$.push(_[B].name+"="+encodeURIComponent(_[B].value))}else for(var A in _)$.push(A+"="+encodeURIComponent(_[A]));return $.join("&")}};zjj.Util.Ajax={get:function(){return zjj.Ajax({method:"GET",url:arguments[0],params:(arguments.length==3?arguments[1]:""),data:"html",onSuccess:(arguments.length==3?arguments[2]:arguments[1])})},post:function(){return zjj.Ajax({method:"POST",url:arguments[0],params:(arguments.length==3?arguments[1]:""),data:"html",onSuccess:(arguments.length==3?arguments[2]:arguments[1])})},getXML:function(){return zjj.Ajax({method:"POST",url:arguments[0],params:(arguments.length==3?arguments[1]:""),data:"xml",onSuccess:(arguments.length==3?arguments[2]:arguments[1])})},getJSON:function(){return zjj.Ajax({method:"POST",url:arguments[0],params:(arguments.length==3?arguments[1]:""),data:"json",onSuccess:(arguments.length==3?arguments[2]:arguments[1])})},getScript:function($){return zjj.Ajax({method:"POST",url:$,data:"script",onSuccess:function($){var A=document.getElementsByTagName("head")[0]||document.documentElement,_=document.createElement("script");_.type="text/javascript";if(zjj.msie)_.text=$;else _.appendChild(document.createTextNode($));A.insertBefore(_,A.firstChild)},onError:function(){alert("\u811a\u672c\u52a0\u8f7d\u5931\u8d25\uff01")}})}};zjj.Util.Dom={find:function($,_){return window.J.call(this,$,_)},each:function(_,$){if(zjj.isArray(this)){var B=-1,A=this.length;while(++B=0,$=A.indexOf(":")>=0;if(_||$){if($){A=A.replace(this.STYLENAME,function($,_){return _.replace(zjj.NAMETOFIX,zjj.fixName)}).match(this.SPLITER);if(A.length%2!==0)throw"invalid inline style"}else A=A.match(this.SPLITER);A.styleType="Style"}else{A=A.split(/\s/);A.styleType="Class"}return A},fixName:function($,_){return _.toUpperCase()}};zjj.alias("Util.Type");zjj.alias("Util.Comm");zjj.alias("Util.Cookie");zjj.alias("Util.Ajax");zjj.alias("Util.Css");(function(){var $=0;len=arguments[0].length;while(len>$)with({nativeName:arguments[0][$++]}){var addMethodName=nativeName+"Method";zjj[addMethodName]=function($){zjj.each($,function(_,$){zjj.namespace(nativeName)[$]=function(){if(_)return _.apply(null,arguments);var A=arguments[0],B=zjj.slice(arguments,1);return zjj.toEval(nativeName).prototype[$].apply(A,B)}})}}})(["String","Array","Function","Number"]);zjj.StringMethod({include:function(_,$){return _.indexOf($)>-1},is:function(_,$,A){return A?_.toString()===$:_.toLowerCase()===zjj._toString($).toLowerCase()},startWith:function(_,$){return _.indexOf($)===0},endWith:function(A,$){var _=A.length-$.length;return _>=0&&A.lastIndexOf($)===_},trim:function($,A){var _=/^\s+|\s+$/g;switch(A){case"all":_=/\s/g;break;case"left":_=/^\s+/g;break;case"right":_=/\s+$/g;break}return $.replace(_,"")},replaceAll:function($,_,A){raRegExp=new RegExp(_,"g");return $.replace(raRegExp,A)},len:function($){return $.replace(/[\u00FF-\uFFFF]/g," ").length},subString:function(_,A,C){var B="",$=0;for(var D=0;D<_.length;D++){if(A<=$&&$]+>/gi,"")},unique:function($){var _=$.split(""),A={},C=[];for(var E=0,B;B=_[E];E++)A[B]=E;for(var D in A)C[A[D]]=D;return C.join("")},getNumber:function($){return $.replace(/[\D]/g,"")}});zjj.ArrayMethod({indexOf:Array.prototype.indexOf?0:function(A,$,_){var B=A.length;_=zjj.toInt(_);if(_<0)_=Math.max(_+B,0);for(var C=_;C=B)_=B-1;for(var C=_;C>=0;C--)if($===A[C])return C;return-1},include:function(_,$){return(zjj.Array.indexOf(_,$)>-1)},contain:function(_,$){if(!zjj.include(_,$))_.push($);return _},merge:function(){var _=[],B=[],A={},D=0,$;while($=arguments[D++])if(zjj.isArray($))_=_.concat($);for(var C=_.length-1;C>=0;C--){if(A[_[C]])continue;A[_[C]]=_[C];B.push(_[C])}return B},_merge:function(_,$){var B=$.length,A=_.length;while(--B>=0)_[A+B]=$[B];return _},uniq:function(){var B=[],C={},_={},G=0,$;while($=arguments[G++])if(zjj.isArray($))B=B.concat($);for(var G=0,D=0,E=0;G";return $+">"+this.innerHTML+""});HTMLElement.prototype.__defineSetter__("outerHTML",function(_){var A=this.ownerDocument.createRange();A.setStartBefore(this);var $=A.createContextualFragment(_);this.parentNode.replaceChild($,this);return _});HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent});HTMLElement.prototype.__defineSetter__("innerText",function($){this.textContent=$;return $});HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){return!/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(this.tagName.toLowerCase())})}zjj.apply(window,{onerror:function($,B,A){var _=["\u5f53\u524d\u754c\u9762\u53d1\u751f\u811a\u672c\u9519\u8bef.
","\u9519\u8bef\u6d88\u606f: "+$+"
","\u53d1\u751f\u7684\u884c: "+A+"
","\u53d1\u751f\u7684URL: "+B+"
"].join("");zjj.log(_);delete _;return true},getWidth:function(){var $=0;if(zjj.safari)$=this.innerWidth;else if(zjj.opera)$=document.body.clientWidth;else $=zjj.isStrict?document.documentElement.clientWidth:document.body.clientWidth;return $},getHeight:function(){var $=0;if(zjj.safari)$=this.innerHeight;else if(zjj.opera)$=document.body.clientHeight;else $=zjj.isStrict?document.documentElement.clientHeight:document.body.clientHeight;return $},getScrollWidth:function(){var $=0;if(zjj.msie)$=Math.max(document.documentElement.offsetWidth,document.documentElement.scrollWidth);else if(zjj.safari)$=document.body.scrollWidth;else $=document.documentElement.scrollWidth;return $},getScrollHeight:function(){var $=0;if(zjj.msie)$=Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight);else if(zjj.safari)$=document.body.scrollHeight;else $=document.documentElement.scrollHeight;return $},getScrollX:function(){return this.pageXOffset||document.documentElement.scrollLeft},getScrollY:function(){return this.pageYOffset||document.documentElement.scrollTop},getSize:function(){return{"size":{"w":getWidth(),"h":getHeight()},"scrollSize":{"w":getScrollWidth(),"h":getScrollHeight()},"scroll":{"x":getScrollX(),"y":getScrollY()}}}})