function G($){return document.getElementById($)}function C($){return document.createElement($)}function GN($){return document.getElementsByName($)}function Ci(_,A){var $=C("input");$.name=_;$.value=A;$.type="hidden";return $}function encodeText($){$=$.replace(/</g,"&lt;");$=$.replace(/>/g,"&gt;");$=$.replace(/\'/g,"&#39;");$=$.replace(/\"/g,"&#34;");$=$.replace(/\\/g,"&#92;");$=$.replace(/\[/g,"&#91;");$=$.replace(/\]/g,"&#93;");return $}function decodeHtml($){$=$.replace(/&lt;/g,"<");$=$.replace(/&gt;/g,">");$=$.replace(/&#39;/g,"'");$=$.replace(/&#34;/g,'"');$=$.replace(/&#92;/g,"\\");$=$.replace(/&#91;/g,"[");$=$.replace(/\&#93;/g,"]");return $}function setStyle(A,$){var _=document.styleSheets[0];if(_.addRule){A=A.split(",");for(var C=0,B=A.length;C<B;C++)_.addRule(A[C],$)}else if(_.insertRule)_.insertRule(A+" { "+$+" }",_.cssRules.length)}var on=function($,B,D){var _=[],B=B.replace(/^on/,"").toLowerCase();_.push($);for(var C=3,A=arguments.length;C<A;C++)_.push(arguments[C]);if($.attachEvent){$[B+D]=function(){D.apply(window.event,_)};$.attachEvent("on"+B,$[B+D])}else{$[B+D]=function($){D.apply($,_)};$.addEventListener(B,$[B+D],false)}};function trim($){$=$.replace(/(^\u3000+)|(\u3000+$)/g,"");$=$.replace(/(^ +)|( +$)/g,"");return $}function byteLength($){return $.replace(/[^\u0000-\u007f]/g,"aa").length}var format=function(_,B){if(arguments.length>1){var F=format,H=/([.*+?^=!:${}()|[\]\/\\])/g,C=(F.left_delimiter||"{").replace(H,"\\$1"),A=(F.right_delimiter||"}").replace(H,"\\$1"),E=F._r1||(F._r1=new RegExp("#"+C+"([^"+C+A+"]+)"+A,"g")),G=F._r2||(F._r2=new RegExp("#"+C+"(\\d+)"+A,"g"));if(typeof(B)=="object")return _.replace(E,function(_,A){var $=B[A];if(typeof $=="function")$=$(A);return typeof($)=="undefined"?"":$});else if(typeof(B)!="undefined"){var D=Array.prototype.slice.call(arguments,1),$=D.length;return _.replace(G,function(A,_){_=parseInt(_,10);return(_>=$)?A:D[_]})}}return _},isType={types:["Array","RegExp","Date","Number","String","Object"]};for(var i=0,c;c=isType.types[i++];)isType[c]=(function($){return function(_){return Object.prototype.toString.call(_)=="[object "+$+"]"}})(c);var cache=(function(){var $={};function B(_){if($[_])return $[_];return null}function C(B,_,A){if(!A)$[B]=_;else{if(!isType.Array($[B]))$[B]=[];$[B].push(_)}}function A(_){delete $[_]}function _($){return(B($)==null)?false:true}return{get:B,set:C,is:_,remove:A}})(),Browser=(function(){var H=navigator.userAgent,F=0,E=0,I=0,D=0,A=0,_=0,C=0,B;if(H.indexOf("Chrome")>-1&&/Chrome\/(\d+(\.d+)?)/.test(H))C=RegExp.$1;if(H.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(H))F=RegExp.$1;if(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(H))I=RegExp.$2;if(H.indexOf("Gecko")>-1&&H.indexOf("KHTML")==-1&&/rv\:(\d+(\.\d+)?)/.test(H))A=RegExp.$1;if(/MSIE (\d+(\.\d+)?)/.test(H))D=RegExp.$1;if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(H))_=RegExp.$2;if(H.indexOf("KHTML")>-1&&/AppleWebKit\/([^\s]*)/.test(H))E=RegExp.$1;try{B=!!external.max_version}catch($){}function G(){var _=false;if(navigator.plugins)for(var B=0;B<navigator.plugins.length;B++)if(navigator.plugins[B].name.toLowerCase().indexOf("shockwave flash")>=0)_=true;if(!_){try{var $=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if($)_=true}catch(A){_=false}}return _}return({isStrict:document.compatMode=="CSS1Compat",isChrome:C,isSafari:F,isWebkit:E,isOpera:I,isGecko:A,isIE:D,isFF:_,isMaxthon:B,isFlash:G(),isCookie:(navigator.cookieEnabled)?true:false})})();function getHost(A){var _=A||location.host,$=_.indexOf(":");return($==-1)?_:_.substring(0,$)}window.baidu=window.baidu||{version:"1-0-0",emptyFn:function(){}};baidu.isString=function($){return(typeof $=="object"&&$&&$.constructor==String)||typeof $=="string"};baidu.sio=baidu.sio||{};baidu.url=baidu.url||{};baidu.string=baidu.string||{};baidu.string.escapeReg=function($){return String($).replace(new RegExp("([.*+?^=!:${}()|[\\]/\\\\])","g"),"\\$1")};baidu.url.parseQuery=function(G,H){if(H){var E=new RegExp("(^|&|\\?|#)"+baidu.string.escapeReg(H)+"=([^&]*)(&|$)",""),A=G.match(E);if(A)return A[2]}else if(G){G=G.substr(G.indexOf("?")+1,G.length);var _=G.split("&"),C={},$=[],B,D,F;for(var I=0;I<_.length;I++){B=_[I].split("=");D=B[0],F=B[1];if(D==="")continue;if(typeof C[D]=="undefined")C[D]=F;else if(baidu.isString(C[D]))continue;else C[D].push(F)}return C}return null};baidu.sio.get=function(E,D){if(!E||!baidu.isString(E))return null;var D=D||function(){},B=baidu.url.parseQuery(E,"callback"),_=document.createElement("SCRIPT");if(!B){var $=false;_.onreadystatechange=_.onload=function(){if($)return false;if(typeof _.readyState==="undefined"||_.readyState=="loaded"||_.readyState=="complete"){$=true;try{D()}finally{if(_&&_.parentNode)_.parentNode.removeChild(_);_.onreadystatechange=null;_.onload=null;_=null}}}}else{var A="CB"+Math.floor(Math.random()*2147483648).toString(36);E=E.replace(/(&|\?)callback=([^&]*)/,"$1callback="+A);window[A]=function(){try{var $=(D||window[B]);$.apply(null,arguments)}finally{if(_&&_.parentNode)_.parentNode.removeChild(_);_=null;window[A]=null}}}_.src=E;_.type="text/javascript";var C=document.getElementsByTagName("HEAD")[0];C.insertBefore(_,C.firstChild)};function json2Query(_){var $=[];if(!_)return"";for(var A in _)$.push(A+"="+encodeURIComponent(_[A]));return $.join("&")}baidu.json=baidu.json||{};-function(){var $=new(function(){var D={}.hasOwnProperty?true:false,_=function($){return $<10?"0"+$:$},C={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},B=function($){if(/["\\\x00-\x1f]/.test($))return'"'+$.replace(/([\x00-\x1f\\"])/g,function(A,$){var _=C[$];if(_)return _;_=$.charCodeAt();return"\\u00"+Math.floor(_/16).toString(16)+(_%16).toString(16)})+'"';return'"'+$+'"'},E=function(C){var B=["["],A,E,D=C.length,_;for(E=0;E<D;E+=1){_=C[E];switch(typeof _){case"undefined":case"function":case"unknown":break;default:if(A)B.push(",");B.push(_===null?"null":$.encode(_));A=true}}B.push("]");return B.join("")},A=function($){return'"'+$.getFullYear()+"-"+_($.getMonth()+1)+"-"+_($.getDate())+"T"+_($.getHours())+":"+_($.getMinutes())+":"+_($.getSeconds())+'"'};this.encode=function(F){if(typeof F=="undefined")return"undefined";else if(F===null)return"null";else if(F instanceof Array)return E(F);else if(F instanceof Date)return A(F);else if(typeof F=="string")return B(F);else if(typeof F=="number")return isFinite(F)?String(F):"null";else if(typeof F=="boolean")return String(F);else{var C=["{"],_,G,$;for(G in F)if(!D||F.hasOwnProperty(G)){$=F[G];switch(typeof $){case"undefined":case"function":case"unknown":break;default:if(_)C.push(",");C.push(this.encode(G),":",$===null?"null":this.encode($));_=true}}C.push("}");return C.join("")}}})();baidu.json.encode=$.encode}();function jsonToString($){return baidu.json.encode($)}