var main=domain(),search_,xhr=null,ready_=false,isIE=/*@cc_on!@*/!1;var l_={};for(key in location){l_[key]=location[key]}document.domain=main.replace("www.","");var em=$,cElement=$c,eName=$t;function $(a){return document.getElementById(a)}function $c(a){return document.createElement(a)}function $t(a){var b=arguments[1]||document;return b.getElementsByTagName(a)}function $cls(a){var b=arguments[1]||document,rs=[],o=b.getElementsByTagName("*");for(var i=0,t,len=o.length;i<len;i++){t=o[i];if(t.className==a){rs.push(t)}}return rs}function domain(){search_=location.search;var a=location.host,_pos=a.indexOf(":");return(_pos==-1)?a:a.substring(0,_pos)}function g_cookie(a){var b=storeUtil.get(a,arguments[1]);if(b||b==""){return b}else{return cookieStore.get(a)}}function subs(a,b){var c=0,_out="";for(var d=0;i<a.length;d++){(a.charCodeAt(d)>128)?c+=2:c++;_out+=a.charAt(d);if(l>=b)return _out}return _out}function s_cookie(){var a=[],_para={};for(var b=0,_len=arguments.length;b<_len;b++){a[b]=arguments[b]}if(String.prototype.toLowerCase.apply(typeof(a[0]))!="string"){switch(a[0].store){case"ie":_para.store=ieStore.init();break;case"ff":_para.store=mozillaStore.init();break;case"cookie":default:_para.store=cookieStore.init()}a.splice(0,1)}_para.exps=typeof(a[2])!="undefined"?Math.ceil(a[2]/(3600*24)):undefined;_para.name=a[0];_para.val=a[1];_para.path=a[3];_para.domain=a[4];_para.secure=a[5];storeUtil.set(_para);return false};function _body(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function initXhr(){if(window.XMLHttpRequest){try{xhr=new XMLHttpRequest()}catch(e){xhr=false}}else if(window.ActiveXObject){try{xhr=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){xhr=false}}}}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};var storeUtil={_init:false,init:function(){var a=arguments[0],_store;if(!a){if(isIE){_store=ieStore}else if(window.globalStorage){_store=mozillaStore}else{_store=cookieStore}}else{switch(a){case"ie":_store=ieStore;break;case"ff":_store=mozillaStore;break;case"cookie":default:_store=cookieStore}}this.store=_store.init();this._init=this.store.isInit()?true:false;return this.isInit()},get:function(a){var b=arguments[1]||this.store;return b.get(a)},set:function(a){var b=a.store||this.store;b.set(a)},del:function(a){var b=arguments[1]||this.store;b.del(a)},isInit:function(){return this._init}},ieStore={exps:180,_init:false,init:function(){if(!this.isInit()&&!$("_ieStore")){this.store=$c("INPUT"),this.store.type="hidden",this.store.id="_ieStore",this.store.addBehavior("#default#userData");$("header").appendChild(this.store);this._init=true}else if($("_ieStore")){this.store=$("_ieStore");this._init=true}return this},get:function(a){try{this.store.load(a)}catch(e){return null}return this.store.getAttribute("__store__")||null},set:function(a){var b=a.name,_val=a.val,_exps=typeof(a.exps)!="undefined"?a.exps:this.exps;var c=new Date();c.setDate(c.getDate()+_exps);this.store.load(b);this.store.expires=c.toUTCString();this.store.setAttribute("__store__",_val);this.store.save(b)},del:function(a){this.set({name:a},false,-1)},isInit:function(){return this._init}},mozillaStore={_init:false,init:function(){this._domain=main.replace("www.","");this._init=true;return this},get:function(a){var b=window.globalStorage[this._domain].getItem(a);return b?b.value||0:null},set:function(a){window.globalStorage[this._domain].setItem(a.name,a.val)},del:function(){window.globalStorage[this._domain].removeItem(_name)},isInit:function(){return this._init}},cookieStore={_init:false,_exps:180,_secure:"",init:function(){if(!this.isInit()){this._domain=main.replace("www.","");this._init=true};return this},get:function(a){var b=document.cookie.split("; "),a=a+"=";for(var c=0,_len=b.length;c<_len;c++){if(b[c].indexOf(a)!="-1"){try{return decodeURIComponent(b[c].replace(a,""))}catch(e){return unescape(b[c].replace(a,""))}}}return null},set:function(a){var b=new Date();var c=a.name,_val=a.val,_exps=typeof(a.exps)!="undefined"?a.exps:this._exps,_domain=a.domain||this._domain,_path=a.path||"/",_secure=a.secure||this._secure;b.setDate(b.getDate()+_exps);var d=c+"="+escape(_val)+(_exps?";expires="+b.toUTCString():"")+(_path?";path="+_path:"")+(_domain?";domain="+_domain:"")+(_secure?";secure=":"");document.cookie=d},del:function(a){if(String.prototype.toLowerCase.apply(typeof(a))=="string"){_name=a;a={name:_name,val:""}}a.exps=-1;a.secure="";this.set(a)},isInit:function(){return this._init}};document.onready=function(){if(ready_){return};ready_=true;storeUtil.init()};function bindReady(){if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);document.onready()},false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);document.onready()}});if(document.documentElement.doScroll&&window==window.top)(function(){if(ready_)return;try{document.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}document.onready()})()}}bindReady();