(function(window,undefined){var jutil=function(selector,context){return new jutil.fn.init(selector,context);},_$=window.$,document=window.document,rootjutil,useragent=navigator.useragent,browsermatch,rnotwhite=/\s/,rtrim=/^(\s|\u00a0)+|(\s|\u00a0)+$/g,readybound=false,domcontentloaded,readylist=[],tostring=object.prototype.tostring,hasownproperty=object.prototype.hasownproperty;jutil.fn=jutil.prototype={init:function(selector,context){if(!selector){return this;} if(selector.nodetype){this.context=this.elements[0]=selector;this.length=1;return this;} if(selector==="body"&&!context){this.context=document;this.elements[0]=document.body;this.selector="body";this.length=1;return this;} if(typeof selector==="string"){var jes=[];var doc=(context?context.ownerdocument||context:document);var elements=doc.queryselectorall(selector);if(elements&&elements.length){for(var i=0;i-1){return true;}} return false;},text:function(text){if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerdocument||document).createtextnode(text));} return jutil.gettext(this.elements);},empty:function(){for(var i=0,elem;(elem=this.elements[i])!=null;i++){if(elem.nodetype===1){} while(elem.firstchild){elem.removechild(elem.firstchild);}} return this;},append:function(elem){if(this.length){var parent=this.elements[0];if(parent.nodetype===1){parent.appendchild(elem);}} return this;},prepend:function(elem){if(this.length){var parent=this.elements[0];if(parent.nodetype===1){parent.insertbefore(elem,this.firstchild);}} return this;},html:function(value){if(value===undefined){var elem=this.elements[0];return elem&&elem.nodetype===1?elem.innerhtml:null;} if(typeof value==="string"){try{for(var i=0,l=this.length;i/gi,rselecttextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g;jutil.extend({get:function(url,data,callback,type){if(jutil.isfunction(data)){type=type||callback;callback=data;data=null;} return jutil.ajax({type:"get",url:url,data:data,success:callback,datatype:type});},getscript:function(url,callback){return jutil.get(url,null,callback,"script");},getjson:function(url,data,callback){return jutil.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jutil.isfunction(data)){type=type||callback;callback=data;data={};} return jutil.ajax({type:"post",url:url,data:data,success:callback,datatype:type});},ajaxsettings:{url:location.href,global:true,type:"get",contenttype:"application/x-www-form-urlencoded",processdata:true,async:true,xhr:function(){return new window.xmlhttprequest();},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastmodified:{},etag:{},ajax:function(origsettings){var s=jutil.extend(true,{},jutil.ajaxsettings,origsettings);var jsonp,status,data,callbackcontext=origsettings&&origsettings.context||s,type=s.type.touppercase();if(s.data&&s.processdata&&typeof s.data!=="string"){s.data=jutil.param(s.data,s.traditional);} if(s.datatype==="jsonp"){if(type==="get"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";} s.datatype="json";} if(s.datatype==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.jsonpcallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");} s.url=s.url.replace(jsre,"="+jsonp+"$1");s.datatype="script";window[jsonp]=window[jsonp]||function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){} if(head){head.removechild(script);}};} if(s.datatype==="script"&&s.cache===null){s.cache=false;} if(s.cache===false&&type==="get"){var ts=(new date()).gettime();var ret=s.url.replace(rts,"$1_="+ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");} if(s.data&&type==="get"){s.url+=(rquery.test(s.url)?"&":"?")+s.data;} var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol||parts[2]!==location.host);if(s.datatype==="script"&&type==="get"&&remote){var head=document.getelementsbytagname("head")[0]||document.documentelement;var script=document.createelement("script");script.src=s.url;if(s.scriptcharset){script.charset=s.scriptcharset;} if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readystate||this.readystate==="loaded"||this.readystate==="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;if(head&&script.parentnode){head.removechild(script);}}};} head.insertbefore(script,head.firstchild);return undefined;} var requestdone=false;var xhr=s.xhr();if(!xhr){return;} if(s.username){xhr.open(type,s.url,s.async,s.username,s.password);}else{xhr.open(type,s.url,s.async);} try{if(s.data||origsettings&&origsettings.contenttype){xhr.setrequestheader("content-type",s.contenttype);} if(s.ifmodified){if(jutil.lastmodified[s.url]){xhr.setrequestheader("if-modified-since",jutil.lastmodified[s.url]);} if(jutil.etag[s.url]){xhr.setrequestheader("if-none-match",jutil.etag[s.url]);}} if(!remote){xhr.setrequestheader("x-requested-with","xmlhttprequest");} xhr.setrequestheader("accept",s.datatype&&s.accepts[s.datatype]?s.accepts[s.datatype]+", */*":s.accepts._default);}catch(e){} if(s.beforesend&&s.beforesend.call(callbackcontext,xhr,s)===false){xhr.abort();return false;} var onreadystatechange=xhr.onreadystatechange=function(istimeout){if(!xhr||xhr.readystate===0||istimeout==="abort"){if(!requestdone){complete();} requestdone=true;if(xhr){xhr.onreadystatechange=jutil.noop;}}else if(!requestdone&&xhr&&(xhr.readystate===4||istimeout==="timeout")){requestdone=true;xhr.onreadystatechange=jutil.noop;status=istimeout==="timeout"?"timeout":!jutil.httpsuccess(xhr)?"error":s.ifmodified&&jutil.httpnotmodified(xhr,s.url)?"notmodified":"success";var errmsg;if(status==="success"){try{data=jutil.httpdata(xhr,s.datatype,s);}catch(err){status="parsererror";errmsg=err;}} if(status==="success"||status==="notmodified"){if(!jsonp){success();}}else{jutil.handleerror(s,xhr,status,errmsg);} complete();if(istimeout==="timeout"){xhr.abort();} if(s.async){xhr=null;}}};try{var oldabort=xhr.abort;xhr.abort=function(){if(xhr){oldabort.call(xhr);} onreadystatechange("abort");};}catch(e){} if(s.async&&s.timeout>0){settimeout(function(){if(xhr&&!requestdone){onreadystatechange("timeout");}},s.timeout);} try{xhr.send(type==="post"||type==="put"||type==="delete"?s.data:null);}catch(e){jutil.handleerror(s,xhr,null,e);complete();} if(!s.async){onreadystatechange();} function success(){if(s.success){s.success.call(callbackcontext,data,status,xhr);}} function complete(){if(s.complete){s.complete.call(callbackcontext,xhr,status);}} return xhr;},handleerror:function(s,xhr,status,e){if(s.error){s.error.call(s.context||s,xhr,status,e);}},active:0,httpsuccess:function(xhr){try{return!xhr.status&&location.protocol==="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status===304||xhr.status===0;}catch(e){} return false;},httpnotmodified:function(xhr,url){var lastmodified=xhr.getresponseheader("last-modified"),etag=xhr.getresponseheader("etag");if(lastmodified){jutil.lastmodified[url]=lastmodified;} if(etag){jutil.etag[url]=etag;} return xhr.status===304||xhr.status===0;},httpdata:function(xhr,type,s){var ct=xhr.getresponseheader("content-type")||"",xml=type==="xml"||!type&&ct.indexof("xml")>=0,data=xml?xhr.responsexml:xhr.responsetext;if(xml&&data.documentelement.nodename==="parsererror"){jutil.error("parsererror");} if(s&&s.datafilter){data=s.datafilter(data,type);} if(typeof data==="string"){if(type==="json"||!type&&ct.indexof("json")>=0){data=jutil.parsejson(data);}else if(type==="script"||!type&&ct.indexof("javascript")>=0){jutil.globaleval(data);}} return data;},param:function(a,traditional){var s=[];if(traditional===undefined){traditional=jutil.ajaxsettings.traditional;} if(jutil.isarray(a)||a.jutil){jutil.each(a,function(){add(this.name,this.value);});}else{for(var prefix in a){buildparams(prefix,a[prefix]);}} return s.join("&").replace(r20,"+");function buildparams(prefix,obj){if(jutil.isarray(obj)){jutil.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v);}else{buildparams(prefix+"["+(typeof v==="object"||jutil.isarray(v)?i:"")+"]",v);}});}else if(!traditional&&obj!=null&&typeof obj==="object"){jutil.each(obj,function(k,v){buildparams(prefix+"["+k+"]",v);});}else{add(prefix,obj);}} function add(key,value){value=jutil.isfunction(value)?value():value;s[s.length]=encodeuricomponent(key)+"="+encodeuricomponent(value);}}});window.jutil=window.$=jutil;})(window);