DOMAssistant.attach(function(){var getXHR=function(){var http;try{http=new XMLHttpRequest();getXHR=function(){return new XMLHttpRequest()
}}catch(e){var msxml=["MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];
for(var i=0,len=msxml.length;i<len;++i){try{http=new ActiveXObject(msxml[i]);getXHR=function(){return new ActiveXObject(msxml[i])
};break}catch(e2){}}}return http};var contentReady=function(http,callBack,options){if(http.readyState===4){if(this.timer){clearTimeout(this.timer)
}if(http.status>399){if(options.onError&&typeof options.onError==="function"){options.onError.call(this)
}}else{if(callBack&&typeof callBack==="function"){var data;switch(options.format){case"xml":data=http.responseXML;
break;case"json":try{data=eval("("+http.responseText+")")}catch(e){data=false}break;default:data=http.responseText;
break}callBack.call(this,data)}}}};return{request:function(url,callBack,options){if(!options){options={}
}if(this.http){this.http.onreadystatechange=function(){};this.http.abort()}this.http=getXHR();if(this.http){if(options.onStart&&typeof options.onStart==="function"){options.onStart.call(this)
}this.http.open(options.post?"POST":"GET",url,true);switch(options.format){case"json":this.http.setRequestHeader("Accept","application/json");
break;case"plain":this.http.setRequestHeader("Accept","text/plain");break;case"xml":this.http.setRequestHeader("Accept","text/xml,application/xml");
break;default:this.http.setRequestHeader("Accept","text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,text/*;q=0.5");
this.http.setRequestHeader("X-Requested-With","XMLHttpRequest");break}var targetElem=this,params=null;
if(typeof options.params==="object"&&options.post){params="";for(var i in options.params){params=params+"&"+i+"="+options.params[i]
}if(params.length>0){this.http.setRequestHeader("Content-type","application/x-www-form-urlencoded");params=params.slice(1)
}else{params=null}}this.http.onreadystatechange=function(){contentReady.call(targetElem,targetElem.http,callBack,options)
};this.http.send(params);this.timer=setTimeout(function(){targetElem.http.onreadystatechange=function(){};
targetElem.http.abort();if(options.onError&&typeof options.onError==="function"){options.onError.call(targetElem)
}},60000);return true}else{return false}}}}());
