;
var $=(function(){var _IE=(window.attachEvent&&window.ActiveXObject&&!window.opera)?parseInt(navigator.userAgent.toLowerCase().match(/msie ([\d.]+)/)[1]):0;function _isStr(v){return typeof v=="string";};function _isArr(v){return v&&v.constructor===Array;};function _isAO(v){return v instanceof Object&&!_isFn(v)&&!(v.nodeName&&_isNum(v.nodeType));};function _isNum(v){return typeof v=="number";};function _isEl(v){return v&&v.nodeName&&v.nodeType==1;};function _isFn(v){return typeof v=="function";};function _gid(s,f){return _isStr(s)?document.getElementById(s):f?s&&s._oEQueryFlag_===null?true:false:s&&s._oEQueryFlag_===null?s.D:s;};function _toArr(i){if(!i)return[];if(_isArr(i))return i;if(i.toArray)return i.toArray();if(_isNum(i.length)&&!_isStr(i)){try{return Array.prototype.slice.call(i);}catch(e){var r=[],j=0;for(;j<i.length;j++)r.push(i[j]);return r;}};return[i];};function _toObj(k,f){if(typeof k=="string"){var v={};v[k]=f;return v;};return k;};function _toXML(t){try{var X=new ActiveXObject("Microsoft.XMLDOM");var f=X.loadXML(t);if(f)return X;else return null;}catch(e){try{var X=new DOMParser().parseFromString(t,"text/xml");if(X.documentElement)return X;else return null;}catch(e){return null;}}};function _extra(e,t,c){t=t||this;t=(c&&t!=this)?_extra(t,{}):t;for(var n in e){if(c&&_isAO(e[n]))_extra(e[n],{},true);else t[n]=e[n];};return t;}; function _each(colls,fun,filter,yield){function doFilter(_coll,i){if(filter){if(filter(_coll,i)){doFun(_coll,i);return true;}}else{doFun(_coll,i);}};function doFun(_coll,i){if(fun){fun(_coll,i);}};for(var i in colls){var breakFlag=doFilter(colls[i],i);if(yield&&breakFlag)break;}} ;_asyncIns=function(html,fun){var temp=null;if(typeof html!="string"){temp=html;}else{temp=document.createElement('div'),frag=document.createDocumentFragment();temp.innerHTML=html;};(function(){if(temp.firstChild){frag.appendChild(temp.firstChild);arguments.callee();}else{fun?fun(frag):null;}})();};function _pFormat(p,l1,l2,fn){l1=l1||"=";l2=l2||"&";var s=[];if(p){for(var n in p){s.push(n+l1+(_isFn(fn)?fn(p[n]):p[n]));}};return s.join(l2);};function _cHttp(){if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest();}else if(window.ActiveXObject){var Versions=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];for(var i=0;i<Versions.length;i++){try{var XMLHttp=new ActiveXObject(Versions[i]);return XMLHttp;}catch(e){}}}};function _execScripttxt(){try{window.execScript(txt);return true;}catch(e){try{window.eval(txt);return true;}catch(e){return false;}}};var _$=function(id){this.doms=[];if(/^#(.*)(\[)([^\]]*)\]$/.test(id)){var q=RegExp["$1"]==""?"":(RegExp["$1"]+"."),Rx=RegExp["$3"].split(/[ ]/g);for(var i=0;i<Rx.length;i+=1){this.doms.push(_gid(q+Rx[i]));}}else if(/^#(.*)(\{)([^\]]*)\}$/.test(id)){var q=RegExp["$1"]==""?"":(RegExp["$1"]+"."),Rx=RegExp["$3"].split(/[ ]/g);for(var i=0;i<Rx.length;i+=1){this.doms[Rx[i]]=_gid(q+Rx[i]);}}else if(/^&(.*)$/.test(id)){this.doms=_toArr(document.getElementsByName(RegExp["$1"]));}else if(/^\*(.*)\[([^\]]*)\]$/.test(id)){var fa=RegExp["$1"]?document.getElementById(RegExp["$1"]):document,Rx=RegExp["$2"].split(/[ ]/g);for(var i=0;i<Rx.length;i+=1){this.doms=this.doms.concat(_toArr(fa.getElementsByTagName(Rx[i])));}}else{this.doms.push(_gid(id));};return this;};_$._helper={};_extra({setInputValue:function(elem,value){if(typeof(elem)=="string"){elem=document.getElementsByName(elem);};if(elem&&elem[0]){var type=elem[0].type||elem.type;switch(type){case"radio":var len=elem.length;for(var i=0;i<len;i++){if(elem[i].value.toString()==value.toString()){elem[i].checked=true;break;}};break;case"checkbox":var len=elem.length;if(value instanceof Array){value=value.join();};for(var i=0;i<len;i++){elem[i].checked=(value.search(elem[i].value)>-1);};break;case"select-one":if(elem.tagName=="SELECT"){elem.value=value;try{elem.onchange();}catch(ex){}}else{elem[0].value=value;try{elem[0].onchange();}catch(ex){}};break;default:var len=elem.length;for(var i=0;i<len;i++){elem[i].value=value;}}}},getInputValue:function(elem){var value="";if(elem&&elem[0]){var type=elem[0].type||elem.type;switch(type){case"radio":var len=elem.length;for(var i=0;i<len;i++){if(elem[i].checked){value=elem[i].value;break;}};break;case"checkbox":var tmp=[];var len=elem.length;for(var i=0;i<len;i++){if(elem[i].checked){tmp.push(elem[i].value);}};value=tmp.join();break;case"select-one":value=elem.value||elem[0].value;break;default:var tmp=[];var len=elem.length;for(var i=0;i<len;i++){tmp.push(elem[i].value);};value=tmp.join();break;}};return value;}},_$._helper);_extra({ val:function(v){if(v){_$._helper.setInputValue(this.doms,v);return this;}else{return _$._helper.getInputValue(this.doms);}}, vals:function(vals){if(vals){this.each(this.doms,function(_dom,i){vals[i]?_dom.value=vals[i]:null;});return this;}else{var val=[];this.each(this.doms,function(_dom,i){val[i]=_dom.value;});return val;}},html:function(h){if(h){this.each(this.doms,function(_dom,i){var _h=typeof(h)=="string"?h:h[i];if(_h)_dom.innerHTML=_h;});return this;}else{var str=[];this.each(this.doms,function(_dom,i){str[i]=this.innerHTML;});return str;}},text:function(t){if(t){this.each(this.doms,function(_dom,i){var _t=typeof(h)=="string"?t:t[i];if(_t)_dom.text=_doms.textContent=_t;});return this;}else{var str=[];this.each(this.doms,function(_dom,i){str[i]=this.doms.text||this.doms.textContent;});return str;}},get:function(idx){for(var i in this.doms)break;idx=idx||i;return this.doms[idx];},addClassName:function(clsNm){var reg=new RegExp("\\b"+clsNm+"\\b");this.each(function(_dom){_dom.className=_dom.className.trim()+" "+clsNm;},function(_dom){return!reg.test(_dom.className);});return this;},removeClassName:function(clsNm){var reg=new RegExp("\\b"+clsNm+"\\b\\s?","g");this.each(function(_dom){_dom.className=_dom.className.replace(reg,"").trim();},function(_dom){return reg.test(_dom.className);});return this;},oneShow:function(showSubId,_show){var _showCls=_show||"";this.each(function(_dom){if(!_dom)return;var _regId=new RegExp("\\."+showSubId+"$");_dom.style.display=(showSubId==_dom.id||_regId.test(_dom.id))?_showCls:"none";});return this;},oneSe:function(showSubId,clsSe,clsOt,isAttach){clsSe=clsSe||"";clsOt=clsOt||"";if(isAttach){this.each(function(_dom){if(!_dom)return;var reg=new RegExp("\\b"+clsSe+"\\b");var _regId=new RegExp("\\."+showSubId+"$");if(showSubId==_dom.id||_regId.test(_dom.id)){_dom.className.search(reg)!=-1||(_dom.className+=" "+clsSe);}else{_dom.className.search(reg)==-1||(_dom.className=_dom.className.replace(clsSe,clsOt).replace(/^\s+|\s+$/g,""));}});}else{this.each(function(_dom){if(!_dom)return;var _regId=new RegExp("\\."+showSubId+"$");_dom.className=(showSubId==_dom.id||_regId.test(_dom.id))?clsSe:clsOt;});};return this;},clearChildNodes:function(){this.each(function(_dom){while(_dom.lastChild){_dom.removeChild(_dom.lastChild);}});return this;},each:function(fun,filter){_each(this.doms,fun,filter);}},_$.prototype);Function.prototype.bind=function(){if(arguments[0]===undefined)return this;var args=(_isArr(arguments[1])&&arguments[2]===undefined)?arguments[1]:Array.prototype.slice.call(arguments,1);var method=this,obj=arguments[0];return function(){return method.apply(obj||this,args.concat(Array.prototype.slice.call(arguments,0)));}};var _C=function(){};_C.prototype={$init:function(){},extra:function(e){for(var n in e)this[n]=e[n];return this;}};_C.extend=function(e){var c=function(){if(arguments[0]!==_C)this.$init.apply(this,arguments);};var p=new this(_C);var s=this.prototype,i;for(var n in e){i=e[n];if(_isFn(i)&&s[n])i.superset=s[n];p[n]=i;};c.prototype=p;c.extend=this.extend;return c;};var _H=_C.extend({allowCache:true,$init:function(url,tt,p,rt){this.setDefUrl(url);this.setTransType(tt);this.setDefPar(p);this.setRequestType(rt);this.setNoServing();this.opening=false;},setDefUrl:function(url){this.defUrl=url;return this;},setOvTime:function(t){this.ovTime=t;return this;},setTransType:function(tt){this.transType=((tt||"POST").toUpperCase()=="POST")?"POST":"GET";return this;},setRequestType:function(rt){this.requestType=rt||this.requestType||"text/xml";return this;},setDefPar:function(p,f){if(_isStr(p)){var v={};v[p]=f;f=true;}else{v=p;};if(f===true){_extra(v,this.defPar);}else{this.defPar=v||{};};return this;},setNoServing:function(noServing){this.noServing=noServing||"数据请求失败，请稍后...";return this;},syncAsk:function(paras,flag){return this._ask(false,paras,flag);},asyncAsk:function(paras,flag){this._ask(true,paras,flag);return this;},$chkXML:function(){if(this.backData&&this.backData.documentElement){return true;}else{return{code:-1,des:this.noServing};}},$chkJSON:function(){if(this.backData){return true;}else{return{code:-1,des:this.noServing,msg:this.noServing};}},_ask:function(async,para,flag){if(this.opening){if(flag){this._blur();if(this.blurer){clearTimeout(this.blurer);}}else{return;}};this.opening=true;this.HO=_cHttp();if(!this.HO){try{this.$noHttpRequest();}catch(e){};return;};var aUrl=this.allowCache
?this.defUrl:this.defUrl+(this.defUrl.indexOf("?")>-1?"&r=":"?r=")+new Date().getTime();if(typeof para=="string"){para=para.replace(/^\?/,"");var _paraObj=para.split("&");var _tmpObj={};for(var _po in _paraObj){var __keyVal=_paraObj[_po].split("=");_tmpObj[__keyVal[0]||""]=__keyVal[1]||"";};para=_tmpObj;delete _tmpObj;};var paras=_extra(para||{},this.defPar||{},true);if(this.requestType=="text/json"&&paras.jsback==null){paras.jsback="()";paras.fm="json";};var parasStr=_pFormat(paras,"=","&",encodeURIComponent);try{this.$loading();}catch(e){};if(this.transType=="POST"){this.HO.open("POST",aUrl,async);this.HO.setRequestHeader("Method","POST "+aUrl+" HTTP/1.1");this.HO.setRequestHeader("Content-Type","application/x-www-form-urlencoded");parasStr=parasStr.replace(/[\x00-\x08\x11-\x12\x14-\x20]/g,"*");}else{if(parasStr){aUrl=(aUrl.indexOf("?")>-1)?aUrl+"&"+parasStr:aUrl+"?"+parasStr;};this.HO.open("GET",aUrl,async);parasStr=null;};this.paras=paras;if(_isNum(this.ovTime)&&this.ovTime>0){this.blurer=setTimeout(this._blur.bind(this),this.ovTime);};if(async){this.HO.onreadystatechange=this._askChange.bind(this,true);this.HO.send(parasStr);}else{this.HO.send(parasStr);return this._askReady();}},_askChange:function(){if(this.HO&&this.HO.readyState==4){this._askReady();}},_askReady:function(){this.opening=false;if(this.blurer){clearTimeout(this.blurer);};try{this.$onComplete();}catch(e){};try{this.$onCallback();}catch(e){};if(this.HO.status==200||this.HO.status==0){switch(this.requestType){case"text/text":case"text/html":this.backData=this.HO.responseText;try{this.$onSuccessed();}catch(e){};break;case"text/xml":this.backData=_toXML(this.HO.responseText);var ret=this.$chkXML();if(ret==true){try{this.$onSuccessed();}catch(e){};}else{this.backData=ret;try{this.$onFailed();}catch(e){};};break;case"text/json":try{this.backData=eval("("+this.HO.responseText+")");}catch(e){this.backData=this.HO.responseText;};var ret=this.$chkJSON();if(ret==true){try{this.$onSuccessed();}catch(e){};}else{this.backData=ret;try{this.$onFailed();}catch(e){};};break;case"text/javascript":case"application/javascript":case"application/x-javascript":if(_execScript(this.HO.responseText)){this.backData=null;try{this.$onSuccessed();}catch(e){};}else{this.backData=null;try{this.$onFailed();}catch(e){};};break;};try{this.$onFinally();}catch(e){};this._destroy();}else{if(this.HO.status=="402"){try{__Global.noRights();}catch(e){}};if(!this._blurFlag){this.backData={code:-2,status:this.HO.status,des:"服务器错误:"+this.HO.status};try{this.$onFailed();}catch(e){};this._destroy();}};return this.backData;},_blur:function(){this.opening=false;this._blurFlag=true;this.HO.abort();this.backData=null;try{this.$onAbort();}catch(e){};this._blurFlag=null;},_destroy:function(){if(this.HO){setTimeout((function(){if(!this.opening){this.HO=null;delete this.HO;}}).bind(this));}}}); function scriptLoader(url,postVars,callback,keepCache){this.url=url||"";this.vars=postVars||{};this.keepCache=!!keepCache;this.callback=this.$onCallback=callback;this.keepScript=false;return this;};scriptLoader.prototype={isIE:/MSIE/i.test(navigator.userAgent),extra:function(obj){for(var i in obj){this[i]=obj[i];};return this;},getPostVars:function(vars){var tmp=[];for(var i in vars){tmp.push(i+"="+vars[i]);};var ret=tmp.join("&")+(this.keepCache?"":"&t="+(new Date().getTime()));var url=(this.url&&this.url.indexOf("?")>-1?"&":"?")+ret;return url.replace(/[&?]$/,"");},ask:function(para,hide){var tmpVar=this.vars;if(para){for(var i in para){tmpVar[i]=para[i];}};var hidePara="";var url=this.url;if(hide){var tmpHide=[];for(var i in hide){tmpHide.push(hide[i]);};hidePara="/"+tmpHide.join("/");url=this.url.replace(/\?/,hidePara+"?");};var postUrl=url+this.getPostVars(tmpVar);var script=document.createElement("script");script.type="text/javascript";var callback=this.callback||this.$onCallback;var me=this;if(this.isIE){script.onreadystatechange=function(){if(script.readyState=="complete"||script.readyState=="loaded"){script.onreadystatechange=null;if(callback){callback();};try{me.$onFinally();}catch(e){};if(!me.keepScript){try{script.parentNode.removeChild(script);}catch(ex){}}}};}else{script.onload=function(){if(callback){callback();};try{me.$onFinally();}catch(e){};if(!me.keepScript){script.parentNode.removeChild(script);}};};script.onerror=function(){(me.$onFailed)?me.$onFailed():alert("请求出错！");try{me.$onFinally();}catch(e){};return false;};script.src=postUrl;document.getElementsByTagName("head")[0].appendChild(script);this.script=script;}};var _T={cashe:{},names:{"className":"class"},exs:function(name){var RV=_isArr(this)?[]:{};for(var n in this){if(_isEl(this[n])){RV[n]=_Ex[name].apply(this[n],Array.prototype.slice.call(arguments,1));}else if(_isArr(this[n])){RV[n]=_Exs[name].apply(this[n],Array.prototype.slice.call(arguments,1));}};return RV;},ac:function(name,key,value){var RV=_isArr(this)?[]:{};for(var n in this){if(_isEl(this[n])){if(_isStr(key)&&_isAO(value)){RV[n]=_Ex[name].call(this[n],key,value[n]);}else{RV[n]=_Ex[name].call(this[n],key,value);}}else if(_isArr(this[n])){RV[n]=_Exs[name].call(this[n],key,value);}};return RV;},ht:function(name,v,s){var RV=_isArr(this)?[]:{},k=[],isOv=_isAO(v),isOs=_isAO(s);for(var n in this){if(_isEl(this[n])){k[0]=isOv?v[n]:v;k[1]=isOs?s[n]:s;RV[n]=_Ex[name].apply(this[n],k);}else if(_isArr(this[n])){RV[n]=_Exs[name].call(this[n],v);}};return RV;},bind:function(n,f,flag){return function(){var RV=_T[f].apply(_gid(this),[n].concat(Array.prototype.slice.call(arguments,0)));if(_gid(this,true)){if(flag===true){return RV;}else if(flag===false){return this;}else{for(var x in RV){return this.D[x]==RV[x]?this:RV;}}};return RV;}}};var _Ex={attr:function(key,value){var me=_gid(this);if(value===undefined&&_isStr(key)){return me[key]===undefined?me.getAttribute(key):me[key];}else{if(_isStr(key)){var att={};att[key]=value;}else{var att=key;};for(var t in att){if(t=="style"){_Ex.css.call(me,att[t]);continue;};var aname=(!_IE)?_T.names[t]||t:t,v=att[t];if(_isFn(v)){me[aname]=v;}else  if(v===false||v===null||v===undefined){me.removeAttribute(aname);}else  if(v===true){me.setAttribute(aname,aname);}else{if(aname=="className"||aname=="innerHTML"){me[aname]=v;}else if(aname=="ref"){IDo.refCache.push({_name:v,_dom:me});}else{me.setAttribute(aname,v);}}};return this;}},css:function(key,value){var me=_gid(this);if(value===undefined&&_isStr(key)){return me.style[key.replace(/\-(\w)/g,function(){return arguments[1].toUpperCase();})];}else{if(_isStr(key)){var css={};css[key]=value;}else{var css=key;};for(var k in css){try{me.style[k.replace(/\-(\w)/g,function(){return arguments[1].toUpperCase();})]=css[k];}catch(e){}};return this;}},html:function(h){var me=_gid(this);if(h===undefined){return me.innerHTML;}else{me.innerHTML=h;return this;}},text:function(t){var me=_gid(this);if(t===undefined){return me.textContent||me.innerText;}else{if(_IE){me.innerText=t;}else{me.textContent=t;};return this;}},clear:function(){var me=_gid(this);while(me.childNodes.length){me.removeChild(me.lastChild);};return this;},getCoord:function(){var left=0;var top=0;var elm=_gid(this);var width=elm.offsetWidth;var height=elm.offsetHeight;while(elm.offsetParent){left+=elm.offsetLeft;top+=elm.offsetTop;left-=elm.scrollLeft;top-=elm.scrollTop;elm=elm.offsetParent;};left+=elm.offsetLeft;top+=elm.offsetTop;return{left:left,top:top,width:width,height:height};},append:function(dm){var me=_gid(this);if(_isStr(dm)||(dm&&dm.nodeName&&_isNum(dm.nodeType))){dm=_gid(dm);if(dm){me.appendChild(dm);}}else{if(_isAO(dm)){for(var n in dm){_Ex.append.call(me,dm[n]);}}};return this;},appendTo:function(dm){var me=_gid(this);dm=_gid(dm);if(_isEl(dm)){_Ex.append.call(dm,me);};return this;},addEvent:function(ev,fn){var me=_gid(this);if(me.addEventListener){me.addEventListener(ev,fn,false);}else  if(me.attachEvent){me.attachEvent("on"+ev,fn);}else{me["on"+ev]=fn;};return this;},removeEvent:function(ev,fn){var me=_gid(this);if(me.removeEventListener){me.removeEventListener(ev,fn,false);}else  if(me.detachEvent){me.detachEvent("on"+ev,fn);}else{me["on"+ev]=false;};return this;},setHover:function(ov,ot){ot=ot||"";ov=ov||"";var me=_gid(this);_Ex.addEvent.call(me,"mouseover",function(event){if(_isStr(ov)){me.className=ov;}else{_Ex.css.call(me,ov);}});_Ex.addEvent.call(me,"mouseout",function(event){if(_isStr(ot)){me.className=ot;}else{_Ex.css.call(me,ot);}});return this;},setIptCue:function(inf){var me=_gid(this);me.value=inf;_Ex.addEvent.call(me,"focus",function(){if(me.value.replace(/^\s+|\s+$/g,"")==inf){me.value="";};});_Ex.addEvent.call(me,"blur",function(){if(me.value.replace(/^\s+|\s+$/g,"")==""){me.value=inf;}});return this;},setEnterDo:function(d,c){var me=_gid(this);_Ex.addEvent.call(me,"keyup",function(event){if(event.keyCode*1==13&&(!c||event.ctrlKey)){if(_isFn(d)){d();}else{_Ex.doEvent.call(_gid(d),_isStr(c)?c:"click");}};});return this;},rollback:function(dis){var me=_gid(this);dis=(dis||dis=="")?dis:"block";if(me.style.display=="none"){me.style.display=dis;}else{me.style.display="none";};return this;},doEvent:function(f){f=f||"click";var me=_gid(this);if(document.createEvent){var evObj=document.createEvent('MouseEvents');evObj.initEvent(f,true,false);me.dispatchEvent(evObj);}else  if(document.createEventObject){me.fireEvent('on'+f);};return this;}};var _Exs={attr:_T.bind("attr","ac"),css:_T.bind("css","ac"),html:_T.bind("html","ht"),text:_T.bind("text","ht"),clear:_T.bind("clear","exs",false),getCoord:_T.bind("getCoord","exs",true),appendTo:_T.bind("appendTo","exs",false),addEvent:_T.bind("addEvent","ht",false),removeEvent:_T.bind("removeEvent","ht",false),setHover:_T.bind('setHover',"exs",false),setIptCue:_T.bind('setIptCue',"ht",false),setEnterDo:_T.bind('setEnterDo',"ht",false),rollback:_T.bind('rollback',"exs",false),doEvent:_T.bind('doEvent',"ht",false),oneShow:function(key,display){display=display||"";var me=_gid(this);for(var n in me){if(_isEl(me[n])){if(n==key||me[n]==key){me[n].style.display=display;}else{me[n].style.display="none";}}};return me;},oneSe:function(key,s,d){if(!s){return this;};d=d||"";var me=_gid(this);for(var n in me){if(_isEl(me[n])){var v=(n==key||me[n]==key)?s:_isAO(d)?d[n]||"":d;if(_isStr(v)){me[n].className=v;}else{_Ex.css.call(me[n],v);}}};return this;},radioValue:function(){var me=_gid(this);for(var n in me){if(_isEl(me[n])){if(me[n].checked){return me[n].value;}}};return null;}};var _oEx=_C.extend(_extra(_Ex,{$init:function(D){this.D=D;this._oEQueryFlag_=null;},get:function(){return this.D;}}));var _oExs=_C.extend(_extra(_Exs,{$init:function(D){this.D=D;this._oEQueryFlag_=null;},get:function(k,f){if(k===undefined)return this.D;else  if(this.D[k])return f?new _oEx(this.D[k]):this.D[k];else  return null;}}));var _Toolkit={log:function(s,t){try{console.log([s,t].join("->"))}catch(e){}},error:function(s,t){try{console.error([s,t].join("->"))}catch(e){}},info:function(s,t){try{console.info([s,t].join("->"))}catch(e){}}};try{document.execCommand("BackgroundImageCache",false,true);}catch(e){};return IDo=_extra({version:"1.0.0 Beat",get:function(s){return eval("_"+s);},Class:_C,HitUp:_H,Ajax:_H,scriptLoader:scriptLoader,extra:_extra,each:_each,asyncIns:_asyncIns, Fn:{},ready:function(f){if(document.addEventListener){document.addEventListener("DOMContentLoaded",f,false);}else{document.attachEvent("onreadystatechange",function(){if(document.readyState=="complete"||document.readyState=="loaded"){f();}});};return this;},loadXML:function(xmlStr){return _toXML(xmlStr);},setEx:function(k,f){k=_toObj(k,f);for(var n in k)_oEx.prototype[n]=_Ex[n]=k[n];return this;},setExs:function(k,f){k=_toObj(k,f);for(var n in k)_oExs.prototype[n]=_Exs[n]=k[n];return this;},CN:function(t,b,h,y){if(b=="text"){var e=document.createTextNode(t);}else{b=b||{};t=t.toLowerCase();if(_IE&&(b.name||b.checked||b.hidefocus)){t='<'+t;if(b.name){t=t+' name="'+b.name+'"';delete b.name;};if(b.checked){t=t+' checked="checked"';delete b.checked;};if(b.hidefocus){t=t+' hidefocus="true"';delete b.hidefocus;};t=t+" >";var e=document.createElement(t);}else{if(!_T.cashe[t]){_T.cashe[t]=document.createElement(t);};var e=_T.cashe[t].cloneNode(false);};if(_isStr(h)||_isNum(h)){e.innerHTML=h;};_Ex.attr.call(e,b);};if(y===true){return new _oEx(e);}else if(y&&y.push){y.push(e);}else if(_isEl(y)||_isStr(y)){_Ex.appendTo.call(e,y);};return e;},refCache:[],CNs:function(t,to){var callerFlag=!arguments.callee.caller||arguments.callee.caller!=arguments.callee;if(_isStr(t[0])){var rv=IDo.CN(t[0],t[1],t[2],(t[3]&&_isArr(t[3]))?t[3]:undefined);if(_isArr(t[2])){_Ex.append.call(rv,IDo.CNs(t[2]));}}else if(_isArr(t[0])){var rv=[];for(var i=0;i<t.length;i+=1){rv.push(IDo.CNs(t[i]));}};if(to===true){return new _oExs(rv);}else if(_isStr(to)||_isEl(to)){_Ex.appendTo.call(rv,to);};if(callerFlag){while(IDo.refCache.length){if(!rv["refs"]){rv["refs"]={}};var ref=IDo.refCache.shift();rv["refs"][ref["_name"]]=ref["_dom"];}};return rv;},$:function(id){return new _$(id);},log:_Toolkit.log,error:_Toolkit.error,info:_Toolkit.info},function(s,f){if(!s)return s;if(_isStr(s)){var d=_gid(s);if(d)s=d;else if(/^#(.*)(\[)([^\]]*)\]$/.test(s)){var q=RegExp["$1"]==""?"":(RegExp["$1"]+"."),Rx=RegExp["$3"].split(/[ ]/g);s=[];for(var i=0;i<Rx.length;i+=1){s.push(_gid(q+Rx[i]));}}else if(/^#(.*)(\{)([^\]]*)\}$/.test(s)){var q=RegExp["$1"]==""?"":(RegExp["$1"]+"."),Rx=RegExp["$3"].split(/[ ]/g);s={};for(var i=0;i<Rx.length;i+=1){s[Rx[i]]=_gid(q+Rx[i]);}}else if(/^&(.*)$/.test(s)){s=_toArr(document.getElementsByName(RegExp["$1"]));}else if(/^\*(.*)\[([^\]]*)\]$/.test(s)){var fa=RegExp["$1"]?document.getElementById(RegExp["$1"]):document,Rx=RegExp["$2"].split(/[ ]/g);s=[];for(var i=0;i<Rx.length;i+=1){s=s.concat(_toArr(fa.getElementsByTagName(Rx[i])));}}else return null;};if(f===true){return new(_isEl(s)?_oEx:_oExs)(s);}else if(_isStr(f)||_isFn(f)){return(_isFn(f)?f:(_isEl(s)||window==s||document==s?_Ex:_Exs)[f]).apply(s,Array.prototype.slice.call(arguments,2));}else return s;});})(); Date.prototype.format=function(join){join=join||"YYYY-MM-DD";var dStr=join.replace(/YYYY/g,this.getFullYear());dStr=dStr.replace(/YY/g,String(this.getYear()).slice(-2));dStr=dStr.replace(/MM/g,("0"+String(this.getMonth()+1)).slice(-2));dStr=dStr.replace(/M/g,this.getMonth()+1);dStr=dStr.replace(/DD/g,("0"+String(this.getDate())).slice(-2));dStr=dStr.replace(/D/g,this.getDate());dStr=dStr.replace(/hh/g,("0"+String(this.getHours())).slice(-2));dStr=dStr.replace(/h/g,this.getHours());dStr=dStr.replace(/mm/g,("0"+String(this.getMinutes())).slice(-2));dStr=dStr.replace(/m/g,this.getMinutes());dStr=dStr.replace(/ss/g,("0"+String(this.getSeconds())).slice(-2));dStr=dStr.replace(/s/g,this.getSeconds());return dStr;};String.prototype.uniLength=function(){return this.replace(/[^\x00-\xff]/g,'**').length;};String.prototype.uniSubstr=function(start,len){var i=0,ss=start,tempStr,returnStr="",a;while(i<len){tempStr=this.substr(ss,1);if(tempStr==""){break;};returnStr+=tempStr;a=tempStr.uniLength();i=i+a;ss+=1;};return returnStr;};String.prototype.uniLeft=function(len,suffix){if(!suffix){suffix="";};return this.uniLength()>len?this.uniSubstr(0,len-suffix.uniLength())+suffix:String(this);};String.prototype.oReplace=function(ks,vs){if(!ks){return this;};ks=IDo.get("toArr")(ks);vs=IDo.get("toArr")(vs);var v=this;for(var i=0;i<ks.length;i+=1){v=v.replace(ks[i],vs[i]);};return v;};String.prototype.htmlEncode=function(ks,vs){var v=this.oReplace([/&/g,/</g,/>/g,/\"/g,/\'/g],["&amp;","&lt;","&gt;","&quot;","&acute;"]);return v.oReplace(ks,vs);};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}; String.prototype.format=function(){var paras=arguments;return this.replace(/\{\d+\}/g,function(k){var idx=k.replace(/[{}]/g,"");return paras[idx];});};String.prototype.htmlFormat=function(_obj){var v=this;if(!$.isIE){v=unescape(v);};return v.replace(/\{([#@])([\w\$\.]+)\}/g,function($0,$1,$2){var rv;try{var rv=_obj[$2];if(rv==null){rv="#"+$2}}catch(e){};if(!rv&&!$.isNum(rv)){rv="";};if($1=="@"){rv=rv.replace(/\\/g,'\\\\').replace(/\'/g,'\\\'');};return rv;});};Function.prototype.extend=function(_Father){this.prototype=new _Father();this.prototype.constructor=this;return this;};IDo.HitUp.prototype.$chkXML=function(){if(this.backData&&this.backData.documentElement){var xml=this.backData.documentElement;if(!xml.getAttribute("error")||xml.getAttribute("error")=="0"){return true;}else{var ns=xml.childNodes,des=this.noServing,code=-1;for(var i=0;i<ns.length;i+=1){if(IDo.get("isEl")(ns[i])){des=ns[i].getAttribute("des")||this.noServing;code=ns[i].getAttribute("code")||code;break;}};if(this[this.backData.code]){try{this[this.backData.code]();}catch(e){}};return{code:code,des:des};}}else{return{code:-1,des:this.noServing};}};IDo.HitUp.prototype.$chkJSON=function(){if((this.backData)&&typeof this.backData=="object"&&(!this.backData.code||this.backData.code*1==0)){return true;};if(this[this.backData.code]){try{this[this.backData.code]();}catch(e){}};return this.backData?{code:this.backData.code||-1,des:this.backData.msg||this.noServing}:{code:-1,des:this.noServing};};IDo.Fn.xml2EnumObj=function(xml,flag){if(!xml){return{};};if(flag===true||flag===undefined){var attrs=(flag?xml.selectNodes(".//@*"):xml.attributes)||[];var nodes=(flag?xml.selectNodes(".//*"):xml.childNodes)||[];var para={};for(var i=0;i<attrs.length;i++){var attr=attrs[i];para[attr.nodeName]=attr.nodeValue;};for(var i=0;i<nodes.length;i++){var node=nodes[i];para[node.nodeName]=node.text;};return para;}else if(typeof flag=="string"){return xml.selectSingleNode(flag).nodeValue;}else{var para={};for(var n in flag){try{para[n]=xml.selectSingleNode(flag[n]).nodeValue;}catch(e){para[n]="";}};return para;}};try{XN}catch(e){XN={}};$.extra({doMain:(function(){var ds=document.domain.split(/\./g);if(ds.length>1){ds.shift();};return ds.join(".");})(),toPath:function(_num,_dimension,_step){var infoStr="";_step=(FWK.isNum(_step))?_step:1000;_dimension=(FWK.isNum(_dimension))?_dimension:4;var gene=1;for(var i=1;i<_dimension;i++){gene*=_step;};var tempUserID=parseInt(_num);for(var i=0;i<_dimension;i++){if(_dimension!=i+1){var temp=Math.floor(tempUserID/gene);tempUserID=tempUserID%gene;infoStr+="/"+temp;gene/=_step;}else{infoStr+="/"+_num;}};return infoStr;},getCookieQuery:function(sName){if(FWK.isStr(sName)){var sRE="(?:; )?"+sName+"=([^;]*);?";var oRE=new RegExp(sRE);if(oRE.test(document.cookie)){return decodeURIComponent(RegExp["$1"]);}else{return null;}}else if(FWK.isArr(sName)){for(var i=0,ilen=sName.lenght;i<ilen;i+=1){sName[i]=XN.getCookieQuery(sName[i]);};return sName;};return sName;},getCookie:function(sName){return this.getCookieQuery(sName);},setCookie:function(sName,sValue,oExpires,sPath,sDomain,bSecure){var sCookie=sName+"="+encodeURIComponent(sValue);if(oExpires){if(typeof(oExpires)=="string"){var d=new Date();d.setTime(new Date().getTime()+parseInt(oExpires));oExpires=d.toGMTString();}else{oExpires=oExpires.toGMTString();};sCookie+="; expires="+oExpires;};if(sPath){sCookie+="; path="+sPath;};if(sDomain){sCookie+="; domain="+sDomain;};if(bSecure){sCookie+="; secure";};document.cookie=sCookie;},removeCookie:function(sName,sPath,sDomain,bSecure){this.setCookie(sName,"",new Date(0),sPath,sDomain,bSecure);},getQuery:function(sName){if(FWK.isStr(sName)){var sRE="[?& ]+"+sName+"=([^(&)]*)[&]?";var oRE=new RegExp(sRE);if(oRE.test(document.location.search)){return decodeURIComponent(RegExp["$1"]);}else{return"";}}else if(FWK.isArr(sName)){for(var i=0,ilen=sName.length;i<ilen;i+=1){sName[i]=XN.getQuery(sName[i]);};return sName;}},toArray:IDo.get("toArr")},XN);try{FWK}catch(e){FWK={}};$.extra({Class:IDo.Class,isStr:IDo.get("isStr"),isIE:IDo.get("IE"),isIE6:IDo.get("IE")==6,isArr:IDo.get("isArr"),isObj:function(v){return IDo.get("isAO")(v)&&!IDo.get("isArr")(v)},isFun:IDo.get("isFn"),isNum:IDo.get("isNum"),extra:IDo.extra,createElement:IDo.CN,createXElement:IDo.CNs,addEvent:function(oTarget,sEventType,fnHandler){IDo(IDo.get("gid")(oTarget),"addEvent",sEventType,fnHandler);},Util:{HitUp:IDo.HitUp,AjaxList:new IDo.HitUp().extra({$chkXML:function(){return true;},open:function(aURL,aTransType,ParameterObj,callBack,time){if(this.opening){this.list.push(arguments);}else{this.$init(aURL,aTransType,{},"text/xml");this.setOvTime(time);this.callBack=callBack;this.asyncAsk(ParameterObj);}},$onSuccessed:function(){try{this.callBack(this.backData);}catch(e){};this.goNext();},$onFailed:function(){try{this.callBack(false);}catch(e){};this.goNext();},goNext:function(){if(this.list.length){this.open.apply(this,this.list.shift());}},$onAbort:function(){try{this.callBack(false);}catch(e){};this.goNext();},list:[]}),createElement:function(tag,paras,childs,parent){var dom=IDo.CNs([tag,paras,childs]);if(parent){parent.appendChild(dom);};return dom;}},Element:{addChild:IDo.get("Ex").append,clearChild:IDo.get("Ex").clear},xml2EnumObj:IDo.Fn.xml2EnumObj,json2str:function(o,f){var r=[];if(o===undefined||o===null)return"null";if(typeof o=="string")return"\""+o.replace(/([\'\"\\])/g,"\\$1").replace(/(\n)/g,"\\n").replace(/(\r)/g,"\\r").replace(/(\t)/g,"\\t")+"\"";if(typeof o=="object"){if(!o.sort){for(var i in o){r.push((f?"\""+i+"\":":i+":")+this.json2str(o[i],f));};if(IDo.get("IE")&&!/^\n?function\s*toString\(\)\s*\{\n?\s*\[native code\]\n?\s*\}\n?\s*$/.test(o.toString))r.push("toString:"+o.toString.toString());r="{"+r.join()+"}";}else{for(var i=0;i<o.length;i++)r.push(this.json2str(o[i],f));r="["+r.join()+"]";};return r;};return o.toString();}},FWK);IDo.Fn.json2str=FWK.json2str;var $CT=function(text){return document.createTextNode(text);};IDo.extra(XN,$);IDo.extra(FWK,$);_gg_uacct_m="UA-15014942-1";(function(){var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");new $.scriptLoader(gaJsHost+"google-analytics.com/ga.js",null,function(){pageTracker=_gat._getTracker(_gg_uacct_m);pageTracker._setDomainName(".woniu.com");pageTracker._trackPageview();},true).ask();})();if(!IDo.get("IE")&&navigator.userAgent.indexOf("Opera")<0){XMLDocument.prototype.__proto__.__defineGetter__("xml",function(){try{return new XMLSerializer().serializeToString(this);}catch(ex){var d=document.createElement("div");d.appendChild(this.cloneNode(true));return d.innerHTML;}});Element.prototype.__proto__.__defineGetter__("xml",function(){try{return new XMLSerializer().serializeToString(this);}catch(ex){var d=document.createElement("div");d.appendChild(this.cloneNode(true));return d.innerHTML;}});XMLDocument.prototype.__proto__.__defineGetter__("text",function(){return this.firstChild.textContent});Element.prototype.__proto__.__defineGetter__("text",function(){return this.textContent});if(document.implementation&&document.implementation.createDocument){if(document.implementation.hasFeature("XPath","3.0")){XMLDocument.prototype.selectNodes=function(cXPathString,xNode){if(!xNode){xNode=this;};var oNSResolver=this.createNSResolver(this.documentElement);var aItems=this.evaluate(cXPathString,xNode,oNSResolver,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var aResult=[];for(var i=0;i<aItems.snapshotLength;i++){aResult[i]=aItems.snapshotItem(i);};return aResult;};Element.prototype.selectNodes=function(cXPathString){if(this.ownerDocument.selectNodes){return this.ownerDocument.selectNodes(cXPathString,this);}else{throw"For XML Elements Only";}};};if(document.implementation.hasFeature("XPath","3.0")){XMLDocument.prototype.selectSingleNode=function(cXPathString,xNode){if(!xNode){xNode=this;};var xItems=this.selectNodes(cXPathString,xNode);if(xItems.length>0){return xItems[0];}else{return null;}};Element.prototype.selectSingleNode=function(cXPathString){if(this.ownerDocument.selectSingleNode){return this.ownerDocument.selectSingleNode(cXPathString,this);}else{throw"For XML Elements Only";}};}}};

