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);function jsonToString(_){var $="";if(isType.String(_))$+='"'+_+'"';if(isType.Number(_))$+=_;if(isType.Array(_)){$="[";for(var B=0,A=_.length;B<A;B++)$+=jsonToString(_[B])+",";$=$.substring(0,$.lastIndexOf(","));$+="]"}if(isType.Object(_)){$="{";for(B in _)$+=B+":"+jsonToString(_[B])+",";$=$.substring(0,$.lastIndexOf(","));$+="}"}return $}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,$)}