/*    HTTP Host:  b.static.ak.fbcdn.net                                        */
/*    Generated:  February 7th 2010 7:00:47 PM PST                             */
/*      Machine:  10.16.140.108                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/deprecated/ajax.js h:2vrzvd7w                             */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/deprecated/ajax.js                                        */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/deprecated\/ajax.js"]); }

function Ajax(_L0,_L1){newAjax=this;this.onDone=_L0;this.onFail=_L1;this.transport=this.getTransport();(this.transport.onreadystatechange=this.stateDispatch.bind(this))();}Ajax.prototype.get=function(uri,_L1,_L2){_L2=_L2||false;if(_L1&&(typeof _L1!='string'))_L1=URI.implodeQuery(_L1);fullURI=uri+(_L1?('?'+_L1):'');this.transport.open('GET',fullURI,!_L2);this.transport.send('');};Ajax.prototype.post=function(uri,_L1,_L2,_L3){_L2=_L2||false;_L3=_L3||false;if(_L1&&(typeof _L1!='string'))_L1=URI.implodeQuery(_L1);if(!_L3){var _L4=ge('post_form_id');if(_L4)_L1+='&post_form_id='+_L4.value;}this.transport.open('POST',uri,!_L2);this.transport.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.transport.send(_L1);};Ajax.prototype.stateDispatch=function(){try{if(this.transport.readyState==4)if(this.transport.status>=200&&this.transport.status<300&&this.transport.responseText.length>0){try{if(this.onDone)this.onDone(this,this.transport.responseText);}catch(tempError){console?console.error(tempError):false;}}else try{if(this.onFail)this.onFail(this);}catch(tempError){console?console.error(tempError):false;}}catch(error){if(this.onFail)this.onFail(this);}};Ajax.prototype.getTransport=function(){var _L0=null;try{_L0=new XMLHttpRequest();}catch(e){_L0=null;}try{if(!_L0)_L0=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){_L0=null;}try{if(!_L0)_L0=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){_L0=null;}return _L0;};

if (window.Bootloader) { Bootloader.done(["js\/deprecated\/ajax.js"]); }