Request.prototype.rqs=[];Request.prototype.nm="__rqs";window[Request.prototype.nm]=Request.prototype.rqs;Request.prototype.charset="ISO-8859-1";Request.prototype.type="text/javascript";Request.prototype.eHead=document.getElementsByTagName("head")[0]||document.documentElement;Request.prototype.doCB=true;Request.prototype.killTime=50;Request.prototype.request=request;Request.prototype.wrapCB=callBack;Request.prototype.autoDestroy=autoDestroy;Request.prototype.destroy=destroy;function Request(b,c,a,g,h,f){this.src=undefined;this.userCBs=[];this.userObj=undefined;this.id=-1;this.status=0;if(g!=undefined){this.doCB=g}if(h){this.request=h}if(f){this.wrapCB=f}if(typeof b=="string"){if(c&&!(c instanceof Array)){c=[c]}for(var e=0,d=this.rqs.length;(e<d)&&(this.id<0);e++){if(!this.rqs[e]){this.id=e;this.rqs[e]=this}}if(this.id==-1){this.id=this.rqs.length;this.rqs.push(this)}this.src=b;this.userObj=a;this.userCBs=c?c:[];this.obText=this.nm+"["+this.id+"]";this.cbText=this.obText+".wrapCB";this.status=1;if(b){this.request()}}return this}function request(a,d,b,c){if(c!=undefined){this.doCB=c}this.eScript=document.createElement("script");this.eScript.request=this;this.eScript.id=this.nm+this.id;this.eScript.type=d?this.type=d:this.type;this.eScript.charset=b?this.charset=b:this.charset;this.eScript.src=a?this.src=a:this.src;this.eScript.onreadystatechange=this.eScript.onload=wrapXBrowser;this.eScript.onerror=reqError;this.eHead.insertBefore(this.eScript,this.eHead.firstChild);if(typeof this.status!="boolean"){this.status=2}}function wrapXBrowser(){var a=false;for(var b in arguments.callee){if(b.indexOf("__operaReadyStateAlreadyCalled")==0){a=true}}if(typeof this.request.status!="boolean"){switch(this.readyState){case null:case undefined:case"complete":case"loaded":if((__br.n=="Op")&&!a){this.request.status++}else{this.request.status=4}if(this.request.doCB){if(this.request.status==4){this.request.wrapCB()}}else{this.request.status=true}break;default:this.request.status=3;break}}if(typeof this.request.status=="boolean"){this.onload=this.onreadystatechange=this.onerror=function(){};this.request.autoDestroy()}}function reqError(){this.request.status=false;this.request.autoDestroy()}function callBack(){try{for(var b=0,a=this.userCBs.length;b<a;b++){this.userCBs[b].apply(this.userObj?this.userObj:this,arguments)}this.status=true}catch(c){this.status=false}}function autoDestroy(){setTimeout("if("+this.obText+")"+this.obText+".destroy();",this.killTime)}function destroy(){if(this.eScript){try{this.eScript.request=undefined;this.eScript.onload=this.eScript.onreadystatechange=this.eScript.onerror=undefined;this.eHead.removeChild(this.eScript)}catch(b){}}this.rqs[this.id]=undefined;while(this.rqs.length&&(!this.rqs[this.rqs.length-1])){this.rqs.pop()}for(var a in this){try{if((a!="status")&&this.hasOwnProperty&&this.hasOwnProperty(a)){this[a]=undefined;delete this[a]}}catch(b){}}}ServCBRequest.prototype=new Request;ServCBRequest.prototype.CBRE=/(\?|&amp;|&)(cb|callback)=([^&]+)(&amp;|&|$)/i;ServCBRequest.prototype.cb="cb";function ServCBRequest(c,d,b,e){this.base=Request;this.base(c?"":undefined,d,b,false);this.cbText=encodeURIComponent(this.cbText);if(e){this.cb=e;this.CBRE=new RegExp("(\\?|&amp;|&)("+this.cb+")=([^&]+)(&amp;|&|$)","i")}var a=c.match(this.CBRE);if(a&&a[3]){a=a[3];this.userCBs.push(b&&b[a]?b[a]:window[a]);c=c.replace(a,this.cbText)}else{c+="&"+this.cb+"="+this.cbText}this.src=c;this.request()}XMLHTTPReq.prototype=new Request;XMLHTTPReq.prototype.type="text/xml";function XMLHTTPReq(c,d,b,f,e,a,g){this.method=f?f:"GET";this.src=c;this.async=e!=undefined?e:true;this.u=a;this.pw=g;this.oXMLHTTPRq=undefined;this.xBrowser=false;this.base=Request;this.base(c,d,b,false,XMLReq,XMLCallBack)}function XMLReq(c,f,d,b,h){if(c){this.src=c}if(f){this.method=f}if(d!=undefined){this.async=d}if(b){this.u=b}if(h){this.pw=h}if(window.XMLHttpRequest){this.oXMLHTTPRq=new XMLHttpRequest();if((this.oXMLHTTPRq.a4&&(this.oXMLHTTPRq.a4 instanceof Array))||(this.oXMLHTTPRq._listeners&&(this.oXMLHTTPRq._listeners instanceof Array))){this.xBrowser=true}}else{if(window.ActiveXObject){this.oXMLHTTPRq=new ActiveXObject("Microsoft.XMLHTTP")}}var a=new Function(this.cbText+"();");try{this.oXMLHTTPRq.open(this.method,this.src,this.async,this.u,this.pw);if(this.xBrowser){this.oXMLHTTPRq.addEventListener("readystatechange",a)}else{this.oXMLHTTPRq.onreadystatechange=a}this.oXMLHTTPRq.send(null)}catch(g){alert("Problem retrieving external data!\n"+this.src+"\n"+g)}}function XMLCallBack(){if(this.oXMLHTTPRq.readyState==4){if(this.oXMLHTTPRq.status==200){for(var b=0,a=this.userCBs.length;b<a;b++){this.userCBs[b].apply(this.userObj?this.userObj:this.oXMLHTTPRq,arguments)}this.status=true;this.autoDestroy()}else{alert("Problem retrieving external data!\n"+this.src+"\n\nReady State: "+this.oXMLHTTPRq.readyState+", Status: "+this.oXMLHTTPRq.status)}}};
