var AJAX=(function(){var f={};f.load=function(a,b,p){var xhr=null;if(typeof XMLHttpRequest!=="undefined"){xhr=new XMLHttpRequest();try{xhr.overrideMimeType("text/xml; charset=iso-8859-1")}catch(ignored){}}else{var c=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"];for(var i=0,len=c.length;i<len;i++){try{xhr=new ActiveXObject(c[i]);break}catch(e){}}}xhr.onreadystatechange=function(){if(xhr.readyState<4){return}if(xhr.status!==200){return}if(xhr.readyState===4){if(xhr.responseText.indexOf("Critical Application Error")>-1){alert("Error processing request (ajax)")}else{if(typeof(b)=="function"){b(xhr)}else{if(typeof(b)=="string"){eval(b+'("'+escape(xhr.responseText)+'")')}}}}};if(p){xhr.open("POST",a,true);xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr.send(p)}else{xhr.open("GET",a,true);xhr.send(null)}};return f})();
