var xmp;if(!xmp){xmp={};}else if(typeof xmp!=="object"){throw new Error("xmp already exists and is not an object");}
xmp=function(){};xmp._globalNamespace=this;xmp.getGlobalNamespace=function(){return xmp._globalNamespace;};xmp.createNamespace=function(ns){var aa=ns.split(".");var ba=xmp.getGlobalNamespace();for(var i=0;i<aa.length;i++){if(typeof(ba[aa[i]])==="undefined"){ba[aa[i]]={};}
ba=ba[aa[i]];}};xmp.extractErrorMessage=function(e){if(e instanceof Error){return('Error name: '+e.name+', Error message: '+e.message);}
else{return"UNKNOWN ERROR";}};xmp.chooseValueOrDefault=function(ca,da){if(!((arguments.length===2)&&(da!==null)&&(typeof da!=='undefined'))){throw new xmp.util.internals.InvalidArgsError("Invalid invalid 'defaultValue' (undefined or null).");}
return(typeof ca===typeof da)?ca:da;};xmp.trimString=function(ea){return ea.replace(/^\s*/,'').replace(/\s*$/,'');};xmp.isNonEmptyString=function(fa){return((typeof fa==='string')&&(fa!==null)&&(fa.length>0));};xmp.getNamespacedMethod=function(ga){var ha=xmp.splitMethodAndNamespace(ga);var ia=xmp.getObjectFromString(ha.ns);return ia[ha.method];};xmp.splitMethodAndNamespace=function(ja){var ka=ja.lastIndexOf('.');var la={};la.method=ja;la.ns='';if(ka!==-1){la.method=ja.substring(ka+1);la.ns=ja.substring(0,ka);}
return la;};xmp.getObjectFromString=function(ma){var na=ma.split('.');var o=xmp.getGlobalNamespace();for(var i=0;i<na.length;i++){o=o[na[i]];}
return o;};xmp.isNumber=function(oa,pa){var qa=0;for(var i=0;i<oa.length;i++){var ra=oa.charCodeAt(i);if(ra>=48&&ra<=57){continue;}
if(ra===45){if(i!==0){return false;}
continue;}
if(ra===46){if(!pa){return false;}
qa++;if(qa>1){return false;}
continue;}
return false;}
return true;};xmp.escapeHtml=function(sa,ta,ua){var va='';var wa='@';for(var i=0;i<sa.length;i++){var c=sa.charAt(i);switch(c){case'&':va+='&amp;';break;case'<':va+='&lt;';break;case'>':va+='&gt;';break;case'\"':va+='&quot;';break;case'\'':if(false===ta){va+='&apos;';}break;case' ':{if(ua&&wa===' '){va+='&nbsp;';}
else{va+=c;}}
break;default:va+=c;break;}
wa=c;}
va=va.replace(/\r/g,'');if(ua){va=va.replace(/\n/g,'<br>');va=va.replace(/\t/g,'&nbsp;&nbsp;&nbsp;&nbsp;');}
return va;};xmp.validateArguments=function(xa,ya,za){if((xa.length>ya.length)||xa.length<ya.length){throw new xmp.util.internals.InvalidArgsError("Invalid argument count \""+xa.length+"\" for function/method \""+za+"\".  Expected count was \""+ya.length+"\".");}
for(var i=0;i<xa.length;i++){if(ya[i]==xmp.UNKNOWN_TYPE||typeof(xa[i])===ya[i]){continue;}
throw new xmp.util.internals.InvalidArgsError("Invalid \""+za+"\" function/method argument \""+i+"\" data type \""+typeof(xa[i])+"\".  Expected data type was \""+ya[i]+"\".");}};xmp.isDefined=function(Aa){return(typeof(Aa)!==xmp.UNDEFINED_TYPE);};xmp.fatalErrorCallback=null;xmp.handleFatalError=function(e){if(xmp.fatalErrorCallback!==null){xmp.fatalErrorCallback.call(e);}
else{xmp.showFatalErrorMessage(e.message);}};xmp.showFatalErrorMessage=function(Ba){alert(Ba);};xmp.escapeText=function(Ca){var Da=Ca.replace(/\"/g,"\\\"");Da=Da.replace(/\'/g,"\\\'");return Da.replace(/\n/g,"\\n");};xmp.formatTimeString=function(Ea){xmp.validateArguments(arguments,[xmp.NUMBER_TYPE],"formatTimeString");var Fa="";if(Ea<60){Fa="0:";if(Ea===0){Fa+="00";}
else{if(Ea<10){Fa+="0"+Ea;}
else{Fa+=Ea;}}}
else{var Ga=Math.floor(Ea/60);Fa=Ga+":";var Ha=(Ea-(Ga*60));if(Ha===0){Fa+="00";}
else{if(Ha<10){Fa+="0"+Ha;}
else{Fa+=Ha;}}}
return Fa;};xmp.getSWFRoot=function(){var Ia=xmp.util.SettingsManager.getInstance().getGlobalContextNode().getNodeForPath(xmp.SWF_CONFIGURATION_ROOT);return Ia.getString(xmp.ROOT_URL,xmp.NO_DEFAULT_VALUE)+"/";};xmp.getImageRoot=function(){var Ja=xmp.util.SettingsManager.getInstance().getGlobalContextNode().getNodeForPath(xmp.IMAGE_CONFIGURATION_ROOT);return Ja.getString(xmp.ROOT_URL,xmp.NO_DEFAULT_VALUE);};xmp.DERIVE_CLASS=function(Ka,La){function Inheritance(){}
Inheritance.prototype=Ka.prototype;La.prototype=new Inheritance();La.prototype.constructor=La;La.ctor=Ka;La.base=Ka.prototype;};xmp.UNKNOWN_TYPE="unknown";xmp.OBJECT_TYPE="object";xmp.STRING_TYPE="string";xmp.BOOLEAN_TYPE="boolean";xmp.NUMBER_TYPE="number";xmp.FUNCTION_TYPE="function";xmp.UNDEFINED_TYPE="undefined";xmp.TRUE="true";xmp.FALSE="false";xmp.MICROSOFT_BROWSER="Microsoft";xmp.OPERA_BROWSER="Opera";xmp.FIREFOX_BROWSER="Firefox";xmp.SAFARI_BROWSER="Safari";xmp.WINDOWS_PLATFORM="Windows";xmp.MAC_PLATFORM="Mac";xmp.UNKNOWN_ERROR="UnknownError";xmp.ROOT_URL="rootUrl";xmp.NO_DEFAULT_VALUE="";xmp.SWF_CONFIGURATION_ROOT="rootUrlMap/swf";xmp.IMAGE_CONFIGURATION_ROOT="rootUrlMap/image";xmp.DELIMITER="|";xmp.ID_ATTRIBUTE="id";xmp.NAME_ATTRIBUTE="name";xmp.DEFAULT_TIMER_INTERVAL=100;xmp.CONNECTING="Connecting";xmp.CONNECTED="Connected";xmp.OPEN="Open";xmp.BUFFERING="Buffering";xmp.FIRST_FRAME_RENDERED="FirstFrameRendered";xmp.MONITOR_INTERVAL=1000;xmp.DISPLAY_NONE="none";xmp.DISPLAY_BLOCK="block";xmp.CONTEXT="context";xmp.VOLUME="volume";xmp.MUTE="mute";xmp.BLACK_BACKGROUND_COLOR="#000000";xmp.FIRST_FRAME="First";xmp.LAST_FRAME="Last";xmp.NO_TIME_LIMIT=-1;xmp.IS_AVAILABLE="IsAvailable";xmp.GET_POSITION="GetPosition";xmp.GET_DURATION="GetDuration";xmp.GET_VOLUME="GetVolume";xmp.SET_VOLUME="SetVolume";xmp.GET_MUTE="GetMute";xmp.SET_MUTE="SetMute";xmp.FULLSCREEN="Fullscreen";xmp.GET_FULLSCREEN="GetFullscreen";xmp.SET_FULLSCREEN="SetFullscreen";xmp.GET_BUFFERING_PROGRESS="GetBufferingProgress";xmp.TYPE="type";xmp.ON_DEMAND_STREAMING_MODE="vod";xmp.LIVE_STREAMING_MODE="live";xmp.CONTROL_STREAMING_MODE="control";xmp.AD_STREAMING_MODE="ad";xmp.createNamespace("xmp.net");xmp.net.AbstractTransport=function(Ma,Na,Oa,Pa,Qa){this._requestId=Ma;this._loadId=Na;this._callback=Oa;this._cfg=Pa;this._contentType=Qa;this._response=new xmp.net.AjaxResponse(Na);this._timer=null;this._manager=xmp.net.AjaxRequestManager.getInstance();};xmp.net.AbstractTransport.prototype.getRequestId=function(){return this._requestId;};xmp.net.AbstractTransport.prototype.getLoadId=function(){return this._loadId;};xmp.net.AbstractTransport.prototype.getResponse=function(){return this._response;};xmp.net.AbstractTransport.prototype.getCallback=function(){return this._callback;};xmp.net.AbstractTransport.prototype.getConfiguration=function(){return this._cfg;};xmp.net.AbstractTransport.prototype.getContentType=function(){return this._contentType;};xmp.net.AbstractTransport.prototype.setLoadedData=function(Ra){throw new Error("Not supported.");};xmp.net.AbstractTransport.prototype.request=function(Sa,Ta){throw new Error("Must override.");};xmp.net.AbstractTransport.prototype.makeReport=function(){var Ua='';Ua+=('Request ID: '+this.getRequestId()+', ');Ua+=('Transport Type: '+xmp.net.TransportTypes.stringify(this.getConfiguration()['transportType'])+', ');Ua+=('Load ID: '+this.getLoadId()+', ');Ua+=('Root URL: '+this.getConfiguration()['rootUrl']+', ');Ua+=('Content Type: '+xmp.net.ContentTypes.stringify(this.getContentType()));return Ua;};xmp.net.AbstractTransport.prototype._getManager=function(){return this._manager;};xmp.net.AbstractTransport.prototype._handleTimeout=function(){throw new Error("Must override.");};xmp.net.AbstractTransport.prototype._startTimer=function(){if(this._timer){this._timer.start();}};xmp.net.AbstractTransport.prototype._stopTimer=function(){if(this._timer){this._timer.stop();}};xmp.net.AbstractTransport.prototype._checkAndCreateTimer=function(){if(this._timer){this._timer.stop();}
var Va=this.getConfiguration()['timeout'];if(Va!==-1){if(this._timer===null){this._timer=new xmp.util.Timer(this.getRequestId(),Va,1,new xmp.util.Callback(this.getRequestId(),this._handleTimer,this));}
return true;}
return false;};xmp.net.AbstractTransport.prototype._handleTimer=function(Wa,Xa){this._stopTimer();this._handleTimeout();};if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(Ya){return this.attributes[Ya];},addParam:function(Za,$a){this.params[Za]=$a;},getParams:function(){return this.params;},addVariable:function(ab,bb){this.variables[ab]=bb;},getVariable:function(db){return this.variables[db];},getVariables:function(){return this.variables;},getVariablePairs:function(){var eb=new Array();var fb;var gb=this.getVariables();for(fb in gb){eb.push(fb+"="+gb[fb]);}
return eb;},getSWFHTML:function(){var hb="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
hb="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";hb+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var ib=this.getParams();for(var jb in ib){hb+=[jb]+"=\""+ib[jb]+"\" ";}
var kb=this.getVariablePairs().join("&");if(kb.length>0){hb+="flashvars=\""+kb+"\"";}hb+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
hb="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";hb+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var lb=this.getParams();for(var mb in lb){hb+="<param name=\""+mb+"\" value=\""+lb[mb]+"\" />";}
var nb=this.getVariablePairs().join("&");if(nb.length>0){hb+="<param name=\"flashvars\" value=\""+nb+"\" />";}hb+="</object>";}
return hb;},write:function(ob){if(this.getAttribute("useExpressInstall")){var pb=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(pb)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof ob=="string")?document.getElementById(ob):ob;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!==""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var qb;var rb=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){rb=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{qb=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{qb=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");rb=new deconcept.PlayerVersion([6,0,21]);qb.AllowScriptAccess="always";}
catch(e){if(rb.major==6){return rb;}}try{qb=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(qb!==null){rb=new deconcept.PlayerVersion(qb.GetVariable("$version").split(" ")[1].split(","));}}
return rb;};deconcept.PlayerVersion=function(sb){this.major=sb[0]!==null?parseInt(sb[0],10):0;this.minor=sb[1]!==null?parseInt(sb[1],10):0;this.rev=sb[2]!==null?parseInt(sb[2],10):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(tb){var q=document.location.search||document.location.hash;if(q){var ub=q.substring(1).split("&");for(var i=0;i<ub.length;i++){if(ub[i].substring(0,ub[i].indexOf("="))==tb){return ub[i].substring((ub[i].indexOf("=")+1));}}}
return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var vb=document.getElementsByTagName("OBJECT");for(var i=0;i<vb.length;i++){vb[i].style.display="none";for(var x in vb[i]){if(typeof vb[i][x]=="function"){vb[i][x]=function(){};}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var wb=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();wb();};}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload();};}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push===null){Array.prototype.push=function(xb){this[this.length]=xb;return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;xmp.createNamespace("xmp.net");xmp.net.AbstractTagTransport=function(yb,zb,Ab,Bb,Cb){xmp.net.AbstractTagTransport.ctor.call(this,yb,zb,Ab,Bb,Cb);this._timedOut=false;};xmp.DERIVE_CLASS(xmp.net.AbstractTransport,xmp.net.AbstractTagTransport);xmp.net.AbstractTagTransport.prototype.setLoadedData=function(Db){this._completeResponse(Db);};xmp.net.AbstractTagTransport.prototype.request=function(Eb,Fb){try{this._timedOut=false;this._checkAndCreateTimer();var Gb=this.getConfiguration()['rootUrl']+Eb;if(Fb!==null){throw new Error("Headers not supported");}
this._initTag(Gb);this._startTimer();}
catch(e){this._finiTag();this._stopTimer();this.getResponse()._setError(e);this._getManager()._handleCompleteRequest(this);}};xmp.net.AbstractTagTransport.prototype._initTag=function(Hb){throw new Error("Must override this method!");};xmp.net.AbstractTagTransport.prototype._finiTag=function(){throw new Error("Must override this method!");};xmp.net.AbstractTagTransport.prototype._makeTagId=function(){throw new Error("Must override this method!");};xmp.net.AbstractTagTransport.prototype._getLogger=function(){throw new Error("Must override this method!");};xmp.net.AbstractTagTransport.prototype._completeResponse=function(Ib){try{this._stopTimer();if(this._timedOut){this._getLogger('Dropping data, request timed out.');return;}
if(this.getContentType()===xmp.net.ContentTypes.TEXT){if(typeof Ib!=='string'){throw new Error('Requested text but got data of type:'+(typeof Ib));}
this.getResponse()._setText(Ib);}
else if(this.getContentType()===xmp.net.ContentTypes.JSON){var Jb=null;if(typeof Ib==='string'){Jb=this._getManager()._parseJson(Ib);}
else if(typeof Ib==='object'&&Ib!==null){Jb=Ib;}
if(Jb!==null){this.getResponse()._setJsonObject(Jb);}
else{throw new Error('Requested JSON but got wrong data type:'+Ib);}}}
catch(e){this.getResponse()._setError(e);}
this._finiTag();this._getManager()._handleCompleteRequest(this);};xmp.net.AbstractTagTransport.prototype._handleTimeout=function(){this._timedOut=true;this.getResponse()._setTimedOut();this._finiTag();this._getManager()._handleCompleteRequest(this);};xmp.createNamespace("xmp.net");xmp.net.AjaxRequestManager=function(){this._logger=new xmp.util.internals.CategoryLogger('AjaxRequestManager');this._DEFAULT_TIMEOUT=3000;this._DEFAULT_RETRIES=1;this._DEFAULT_WAIT_BETWEEN_RETRIES=0;this._requestIdCounter=0;this._requestMap={};};xmp.net.AjaxRequestManager._singeltonInstance=null;xmp.net.AjaxRequestManager.getInstance=function(){if(xmp.net.AjaxRequestManager._singeltonInstance===null){xmp.net.AjaxRequestManager._singeltonInstance=new xmp.net.AjaxRequestManager();}
return xmp.net.AjaxRequestManager._singeltonInstance;};xmp.net.AjaxRequestManager.prototype.init=function(Kb){xmp.net.FlashXhrTransportManager.getInstance().init(Kb);};xmp.net.AjaxRequestManager.handleLoaded=function(Lb,Mb){xmp.net.AjaxRequestManager.getInstance()._handleLoadedCore(Lb,Mb);};xmp.net.AjaxRequestManager.ping=function(Nb,Ob){var cb=new xmp.util.Callback('Ping',xmp.net.AjaxRequestManager._pingCallback,null);xmp.net.AjaxRequestManager.getInstance().request(Ob,cb,Nb,Ob,xmp.net.ContentTypes.PING,null);};xmp.net.AjaxRequestManager._pingCallback=function(Pb,Qb){};xmp.net.AjaxRequestManager.prototype.request=function(Rb,Sb,Tb,Ub,Vb,Wb){var ok=xmp.isNonEmptyString(Rb)&&xmp.isNonEmptyString(Tb)&&xmp.isNonEmptyString(Ub);if(ok){ok=(Sb!==null)&&(typeof Sb==='object');}
if(ok){Vb=xmp.net.ContentTypes._calc(Vb);ok=(Vb!==xmp.net.ContentTypes.INVALID);}
if(ok){if(!Wb){Wb=null;}
ok=((Wb===null)||(typeof Wb==='object'));}
if(!ok){throw new xmp.util.internals.InvalidArgsError('Invalid arguments, please read documentation for xmp.net.AjaxRequestManager.prototype.request.');}
var Xb=this._findConfiguration(Tb);if(!Xb){throw new Error('Could not find proper configuration for URL root type: '+Tb);}
this._requestWithConfiguration(Xb,Rb,Sb,Ub,Vb,Wb);};xmp.net.AjaxRequestManager.prototype._requestWithConfiguration=function(Yb,Zb,$b,ac,bc,cc){var dc=this._createTransport(Yb['transportType'],Zb,$b,Yb,bc);this._requestMap[dc.getRequestId()]=dc;if(this._logger.isDebugEnabled()){this._logger.debug(this._buildRequestReport(dc,ac,cc));}
dc.request(ac,cc);};xmp.net.AjaxRequestManager.prototype._buildRequestReport=function(ec,fc,gc){var hc='Making request = ';hc+=(ec.makeReport()+', ');hc+=('Relative URL: '+fc+', ');hc+=('Request Headers: ');if(gc===null){hc+='NONE';}
else{for(var i=0;i<gc.length;i++){var ic=gc[i];hc+=(ic.name+' = '+ic.value);if(i!==(gc.length-1)){hc+=' & ';}}}
return hc;};xmp.net.AjaxRequestManager.prototype._createTransport=function(jc,kc,lc,mc,nc){var oc=xmp.net.TransportTypes;var pc=oc._calc(jc);this._requestIdCounter++;var qc=this._requestIdCounter.toString();switch(pc){case oc.XHR:return new xmp.net.XhrTransport(qc,kc,lc,mc,nc);case oc.IFRAME:return new xmp.net.IFrameTagTransport(qc,kc,lc,mc,nc);case oc.SCRIPT:return new xmp.net.ScriptTagTransport(qc,kc,lc,mc,nc);case oc.FLASH_XHR:return new xmp.net.FlashXhrTransport(qc,kc,lc,mc,nc);case oc.MOCK:return new xmp.net.MockTransport(qc,kc,lc,mc,nc);default:return null;}};xmp.net.AjaxRequestManager.prototype._parseJson=function(rc){rc=xmp.trimString(rc);return this._parseJavaScript('('+rc+')');};xmp.net.AjaxRequestManager.prototype._parseJavaScript=function(sc){return eval(sc);};xmp.net.AjaxRequestManager.prototype._handleCompleteRequest=function(tc){var uc=tc.getRequestId();if(!this._requestMap[uc]){this._logger.warn("Did not find transport: "+uc);return;}
delete this._requestMap[uc];try{if(tc.getResponse().isError()){if(tc.getResponse().isTimedOut()||(tc.getResponse().isCriticalOrFatalError())){var vc=xmp.CriticalException.createCriticalException(xmp.XmpErrorCodes.CRITICAL_UNSPECIFIED_AJAX_ERROR,'ARM',this._buildReponseReport(tc));this._logger.critical('ARM transport timeout',vc);}
else{this._logger.warn(this._buildReponseReport(tc));}}
else{if(this._logger.isDebugEnabled()){this._logger.debug(this._buildReponseReport(tc));}}
tc.getCallback().call(tc.getResponse());}
catch(e){this._logger.warn("Error while calling request callback.",e);}};xmp.net.AjaxRequestManager.prototype._buildReponseReport=function(wc){var xc='Request complete (Request ID: '+wc.getRequestId()+'), response = '+wc.getResponse().makeReport();return xc;};xmp.net.AjaxRequestManager.prototype._handleLoadedCore=function(yc,zc){try{var Ac='';for(Ac in this._requestMap){var Bc=this._requestMap[Ac];if(Bc.getLoadId()===yc){Bc.setLoadedData(zc);return;}}
this._logger.info("Dropping loaded data, could not find transport for: "+yc);}
catch(e){this._logger.warn("Error while calling _handleLoadedCore.",e);}};xmp.net.AjaxRequestManager.prototype._findConfiguration=function(Cc){var Dc=xmp.util.SettingsManager.getInstance().getGlobalContextNode();if(!Dc.nodeExists('rootUrlMap/'+Cc)){return null;}
var Ec=Dc.getNodeForPath('rootUrlMap/'+Cc);var Fc=Ec.getString('rootUrl','');if(Fc.length===0){return null;}
var Gc=xmp.net.TransportTypes.fromString(Ec.getString('transportType',''));if(Gc===xmp.net.TransportTypes.INVALID){return null;}
var Hc={};Hc['rootUrl']=Fc;Hc['transportType']=Gc;Hc['timeout']=Ec.getInt('timeout',this._DEFAULT_TIMEOUT);Hc['retries']=Ec.getInt('retries',this._DEFAULT_RETRIES);Hc['waitBetweenRetries']=Ec.getInt('waitBetweenRetries',this._DEFAULT_WAIT_BETWEEN_RETRIES);return Hc;};xmp.createNamespace("xmp.net");xmp.net.AjaxResponse=function(id){this._id=id;this._errorObject=null;this._jsonObject=null;this._text='';this._timedOutError=false;this._isCriticalOrFatalError=false;};xmp.net.AjaxResponse.prototype.getId=function(){return this._id;};xmp.net.AjaxResponse.prototype.isError=function(){return(this._errorObject!==null);};xmp.net.AjaxResponse.prototype.isTimedOut=function(){return this._timedOutError;};xmp.net.AjaxResponse.prototype.isCriticalOrFatalError=function(){return this._isCriticalOrFatalError;};xmp.net.AjaxResponse.prototype.getErrorObject=function(){return this._errorObject;};xmp.net.AjaxResponse.prototype.getJsonObject=function(){this._accessGuard();return this._jsonObject;};xmp.net.AjaxResponse.prototype.getText=function(){this._accessGuard();return this._text;};xmp.net.AjaxResponse.prototype.getErrorMessage=function(){if(this.isError()){return xmp.extractErrorMessage(this.getErrorObject());}
else{return'No Error';}};xmp.net.AjaxResponse.prototype._accessGuard=function(){if(this.isError()){var ex=new xmp.net.AjaxResponseException('Tried to access AjaxResponse while in an error state, see nested exception.');ex.message+=('\nNESTED ERROR: '+xmp.extractErrorMessage(this._errorObject));throw ex;}};xmp.net.AjaxResponse.prototype._setError=function(Ic){this._setErrorCore(Ic);};xmp.net.AjaxResponse.prototype._setTimedOut=function(){this._timedOutError=true;this._setErrorCore(new Error("AjaxResponse: Request timed out."));};xmp.net.AjaxResponse.prototype._setJsonObject=function(Jc){this._jsonObject=Jc;};xmp.net.AjaxResponse.prototype._setText=function(Kc){this._text=Kc;};xmp.net.AjaxResponse.prototype._setErrorCore=function(Lc){this._isCriticalOrFatalError=false;if(Lc instanceof Error){this._errorObject=new xmp.net.AjaxResponseException('AjaxResponse, see nested exception');this._errorObject.message+=('\nNESTED ERROR: '+xmp.extractErrorMessage(Lc));if((Lc instanceof xmp.FatalException)||(Lc instanceof xmp.CriticalException)){this._isCriticalOrFatalError=true;}}
else{this._errorObject=new xmp.net.AjaxResponseException("AjaxResponse: UNKNOWN ERROR");}};xmp.net.AjaxResponse.prototype.makeReport=function(){var Mc='';Mc+=('Response ID: '+this.getId()+'\n');if(this.isError()){Mc+=('Response Text: '+this._text+'\n');Mc+=('Response JSON: null\n');Mc+=('ERROR Message: '+this.getErrorMessage());}
else{Mc+=('Response Text: '+this.getText()+'\n');Mc+=('Response JSON: '+((this.getJsonObject()===null)?'null':'not null')+'\n');Mc+='SUCCESS';}
return Mc;};xmp.net.AjaxResponseException=function(Nc){this.name="AjaxResponseException";this.message=Nc;};xmp.DERIVE_CLASS(Error,xmp.net.AjaxResponseException);xmp.createNamespace("xmp.net");xmp.net.ContentTypes=function(){};xmp.net.ContentTypes.INVALID=-1;xmp.net.ContentTypes.TEXT=0;xmp.net.ContentTypes.JSON=1;xmp.net.ContentTypes.PING=2;xmp.net.ContentTypes._BEGIN=-1;xmp.net.ContentTypes._END=2;xmp.net.ContentTypes._calc=function(Oc){var Pc=xmp.net.ContentTypes;if((typeof Oc!=='number')||(Oc<Pc._BEGIN)||(Oc>Pc._END)){return Pc._BEGIN;}
return Oc;};xmp.net.ContentTypes.stringify=function(Qc){var Rc=xmp.net.ContentTypes;var Sc=Rc._calc(Qc);switch(Sc){case Rc.INVALID:return'invalid';case Rc.TEXT:return'text';case Rc.JSON:return'json';case Rc.PING:return'ping';default:return'invalid';}};xmp.net.ContentTypes.fromString=function(Tc){var Uc=xmp.net.ContentTypes;switch(Tc){case'invalid':return Uc.INVALID;case'text':return Uc.TEXT;case'json':return Uc.JSON;case'ping':return Uc.PING;default:return Uc.INVALID;}};xmp.createNamespace("xmp.net");xmp.net.FlashXhrTransport=function(Vc,Wc,Xc,Yc,Zc){xmp.net.FlashXhrTransport.ctor.call(this,Vc,Wc,Xc,Yc,Zc);this._HTTP_GET_VERB="GET";this._FLASH_XML_REQUEST_MIME_TYPE="text/html";this._handle="";this._url="";this._flashXhrManager=xmp.net.FlashXhrTransportManager.getInstance();this._isIEWin=((navigator.appName.indexOf(xmp.MICROSOFT_BROWSER)!==-1)&&(xmp.util.internals.BrowserDetect.OS===xmp.WINDOWS_PLATFORM));};xmp.DERIVE_CLASS(xmp.net.AbstractTransport,xmp.net.FlashXhrTransport);xmp.net.FlashXhrTransport.prototype._getHandle=function(){return this._handle;};xmp.net.FlashXhrTransport.prototype._getUrl=function(){return this._url;};xmp.net.FlashXhrTransport.prototype._getRequestVerb=function(){return this._HTTP_GET_VERB;};xmp.net.FlashXhrTransport.prototype._getRequestMimeType=function(){return this._FLASH_XML_REQUEST_MIME_TYPE;};xmp.net.FlashXhrTransport.prototype._getFlashXhrManager=function(){return this._flashXhrManager;};xmp.net.FlashXhrTransport.prototype.request=function($c,ad){try{this._url=this.getConfiguration()['rootUrl']+$c;this._handle=this._getFlashXhrManager().getXhrComponentName()+this.getRequestId();this._getFlashXhrManager().open(this);}
catch(e){this.handleError(e.name,e.message);}};xmp.net.FlashXhrTransport.prototype.doRequest=function(){this._checkAndCreateTimer();this._getFlashXhrManager().doRequest(this);this._startTimer();};xmp.net.FlashXhrTransport.prototype.handleData=function(bd){this._stopTimer();this.getResponse()._setText(bd);if(this.getContentType()===xmp.net.ContentTypes.JSON){var cd=this._getManager()._parseJson(bd);this.getResponse()._setJsonObject(cd);}
this._getFlashXhrManager().close(this);this._getManager()._handleCompleteRequest(this);};xmp.net.FlashXhrTransport.prototype.handleError=function(dd,ed){this._stopTimer();var fd="Type:  "+dd+"\nDescription:  "+ed;this._getFlashXhrManager().close(this);var gd=this._extractErrorCode(ed);var hd=null;if(this._isIEWin&&(gd===0)){hd=xmp.CriticalException.createCriticalException(xmp.XmpErrorCodes.CRITICAL_UNSPECIFIED_AJAX_ERROR,'FlashXhrTransport',ed);}
else{hd=new Error(fd);}
this.getResponse()._setError(hd);this._getManager()._handleCompleteRequest(this);};xmp.net.FlashXhrTransport.prototype._extractErrorCode=function(jd){var re=/XML\/HTTP Error:  (\d{1,6}) \w*/;var kd=jd.match(re);if(kd!==null&&kd.length>1){return parseInt(kd[1],0);}
return-1;};xmp.net.FlashXhrTransport.prototype._handleTimeout=function(){this._getFlashXhrManager().close(this);this.getResponse()._setTimedOut();this._getManager()._handleCompleteRequest(this);};xmp.createNamespace("xmp.net");xmp.net.FlashXhrTransportManager=function(){this._logger=new xmp.util.internals.CategoryLogger('FlashXhrTransportManager');this._CREATION_TIMEOUT=5000;this._FLASH_DATA_CALLBACK="dataCallback";this._FLASH_XML_HTTP_REQUEST_COMPONENT="XMLHttpRequest.swf";this._FLASH_XML_HTTP_REQUEST_COMPONENT_NAME="FlashXMLHttpRequest";this._FLASH_XML_HTTP_REQUEST_COMPONENT_CONTAINER_NAME="FlashXMLHttpRequestContainer";this._NativeFlashXmlHttpRequestInitialized=false;this._FlashXmlHttpRequestRegistry={};this._create_cb=null;};xmp.net.FlashXhrTransportManager._singeltonInstance=null;xmp.net.FlashXhrTransportManager.getInstance=function(){if(xmp.net.FlashXhrTransportManager._singeltonInstance===null){xmp.net.FlashXhrTransportManager._singeltonInstance=new xmp.net.FlashXhrTransportManager();}
return xmp.net.FlashXhrTransportManager._singeltonInstance;};xmp.net.FlashXhrTransportManager.prototype.init=function(ld){try{if(this._create_cb!==null||this._NativeFlashXmlHttpRequestInitialized){throw new Error('FlashXhrTransportManager - Already started initialization.');}
this._create_cb=ld;var md=new xmp.util.Callback('FlashXhrTransportManager_init',this._initTimeout,this);xmp.util.Timer.doSimpleCallbackEx(this._CREATION_TIMEOUT,md);this.createFlashXMLHttpRequest();}
catch(ex){ld.call(new Error(xmp.extractErrorMessage(ex)));}};xmp.net.FlashXhrTransportManager.prototype._initTimeout=function(nd){if(this._create_cb===null||this._NativeFlashXmlHttpRequestInitialized){return;}
var od=this._create_cb;this._create_cb=null;od.call(xmp.FatalException.createFatalException(xmp.XmpErrorCodes.FATAL_PLUGIN_INIT,'FlashXhrTransportManager','timed out intializing flash XHR SWF'));};xmp.net.FlashXhrTransportManager.prototype.getXhrComponentName=function(){return this._FLASH_XML_HTTP_REQUEST_COMPONENT_NAME;};xmp.net.FlashXhrTransportManager.prototype._getXhrComponent=function(){return document.getElementById(this.getXhrComponentName());};xmp.net.FlashXhrTransportManager.prototype.doRequest=function(pd){var qd=this._getXhrComponent();qd.xhrOpen(pd._getHandle(),pd._getRequestVerb(),pd._getRequestMimeType());if(pd.getContentType()===xmp.net.ContentTypes.PING){qd.xhrSetResultData(pd._getHandle(),'ping');}
qd.xhrSend(pd._getHandle(),pd._getUrl());};xmp.net.FlashXhrTransportManager.prototype.createFlashXMLHttpRequest=function(){if(document.getElementById(this._FLASH_XML_HTTP_REQUEST_COMPONENT_CONTAINER_NAME)===null){var rd=document.createElement("div");rd.setAttribute(xmp.ID_ATTRIBUTE,this._FLASH_XML_HTTP_REQUEST_COMPONENT_CONTAINER_NAME);rd.setAttribute(xmp.NAME_ATTRIBUTE,this._FLASH_XML_HTTP_REQUEST_COMPONENT_CONTAINER_NAME);if(navigator.appName.indexOf(xmp.MICROSOFT_BROWSER)!==-1){document.body.insertAdjacentElement("beforeEnd",rd);}
else{document.body.insertBefore(rd,null);}
var sd=new SWFObject(xmp.getSWFRoot()+this._FLASH_XML_HTTP_REQUEST_COMPONENT,this.getXhrComponentName(),1,1,8,"#FFFFFF");sd.addParam(xmp.ALLOW_SCRIPT_ACCESS,xmp.ALWAYS_ACCESS);sd.addVariable(xmp.CONTEXT,'create_handle');var td='xmp.net.FlashXhrTransportManager.getInstance().';sd.addVariable(xmp.FLASH_INITIALIZATION_CALLBACK,td+'onInit');sd.addVariable(this._FLASH_DATA_CALLBACK,td+'onData');sd.addVariable(xmp.FLASH_ERROR_CALLBACK,td+'onError');sd.write(this._FLASH_XML_HTTP_REQUEST_COMPONENT_CONTAINER_NAME);xmp.util.FlashUtility.buildFSCommandScript(rd,this.getXhrComponentName(),td+"_handleFSCommand(command, args);");}};xmp.net.FlashXhrTransportManager.prototype.handleInit=function(ud){this._NativeFlashXmlHttpRequestInitialized=true;var vd=this._create_cb;this._create_cb=null;vd.call('Ready');};xmp.net.FlashXhrTransportManager.prototype.close=function(wd){this._getXhrComponent().xhrClose(wd._getHandle());this._FlashXmlHttpRequestRegistry[wd._getHandle()]=null;delete this._FlashXmlHttpRequestRegistry[wd._getHandle()];};xmp.net.FlashXhrTransportManager.prototype.open=function(xd){this._FlashXmlHttpRequestRegistry[xd._getHandle()]=xd;if(true===this._NativeFlashXmlHttpRequestInitialized){xd.doRequest();}
else{throw new Error('Must initialize FlashXhrTransportManager first.');}};xmp.net.FlashXhrTransportManager.prototype._handleFSCommand=function(yd,zd){try{var Ad='xmp.net.FlashXhrTransportManager.getInstance().';var Bd=xmp.util.FlashUtility;var Cd=null;switch(yd){case Ad+'onInit':Cd=Bd.splitFSCommandData(zd,2);this.onInit(Cd[0],Cd[1]);break;case Ad+'onData':Cd=Bd.splitFSCommandData(zd,2);this.onData(Cd[0],Cd[1]);break;case Ad+'onError':Cd=Bd.splitFSCommandData(zd,3);this.onError(Cd[0],Cd[1],Cd[2]);break;default:this._logger.warn('Unrecognized FSCommand: '+yd);break;}}
catch(e){this._logger.warn('Error executing FSCommand: '+yd,e);}};xmp.net.FlashXhrTransportManager.prototype.onInit=function(Dd,Ed){var Fd=null;try{Fd=this._FlashXmlHttpRequestRegistry[Dd];this.handleInit(Fd);}
catch(e){if(Fd!==null){Fd.handleError(e.name,e.message);}}};xmp.net.FlashXhrTransportManager.prototype.onData=function(Gd,Hd){var Id=null;try{Id=this._FlashXmlHttpRequestRegistry[Gd];Id.handleData(xmp.util.FlashUtility.externalInterfaceDecode(Hd));}
catch(e){if(Id!==null){Id.handleError(e.name,e.message);}}};xmp.net.FlashXhrTransportManager.prototype.onError=function(Jd,Kd,Ld){var Md=null;try{Md=this._FlashXmlHttpRequestRegistry[Jd];Md.handleError(Kd,Ld);}
catch(e){if(Md!==null){Md.handleError(e.name,e.message);}}};xmp.createNamespace("xmp.net");xmp.net.IFrameTagTransport=function(Nd,Od,Pd,Qd,Rd){xmp.net.IFrameTagTransport.ctor.call(this,Nd,Od,Pd,Qd,Rd);this._logger=new xmp.util.internals.CategoryLogger('IFrameTagTransport');};xmp.DERIVE_CLASS(xmp.net.AbstractTagTransport,xmp.net.IFrameTagTransport);xmp.net.IFrameTagTransport.prototype._initTag=function(Sd){var Td=document.createElement('iframe');Td.id=this._makeTagId();document.body.appendChild(Td);Td.src=Sd;};xmp.net.IFrameTagTransport.prototype._finiTag=function(){try{var Ud=document.getElementById(this._makeTagId());if(Ud){document.body.removeChild(Ud);}}
catch(e){this._logger.warn('Error removing tag with ID: '+this._makeTagId(),e);}};xmp.net.IFrameTagTransport.prototype._makeTagId=function(){return'IFrameTagTransport'+'_'+this.getRequestId();};xmp.net.IFrameTagTransport.prototype._getLogger=function(){return this._logger;};xmp.createNamespace("xmp.net");xmp.net.MockTransport=function(Vd,Wd,Xd,Yd,Zd){xmp.net.MockTransport.ctor.call(this,Vd,Wd,Xd,Yd,Zd);};xmp.DERIVE_CLASS(xmp.net.AbstractTransport,xmp.net.MockTransport);xmp.net.MockTransport.prototype.request=function($d,ae){this._url=$d;this.doRequest();};xmp.net.MockTransport.prototype.doRequest=function(){this._checkAndCreateTimer();this._startTimer();if(this._networkDelayTimer){this._networkDelayTimer.stop();}
this._dataItem=xmp.net.MockTransportData.getInstance().getItem(this._url);var be=this._dataItem?this._dataItem.delay:200;this._networkDelayTimer=new xmp.util.Timer(this.getRequestId(),be,1,new xmp.util.Callback(this.getRequestId(),this._handleRequest,this));this._networkDelayTimer.start();};xmp.net.MockTransport.prototype._handleRequest=function(ce,de){de.stop();try{if(this._dataItem){this.handleData(this._dataItem.data);}
else{this.handleError("MockTransportError","No mock data found for "+this._url);}}
catch(e){this.handleError(e.nam,e.message);}};xmp.net.MockTransport.prototype.handleData=function(ee){this._stopTimer();var fe=null;var ge=null;if(typeof ee==='string'){fe=ee;}
else{ge=ee;fe="";}
this.getResponse()._setText(fe);if(this.getContentType()===xmp.net.ContentTypes.JSON){if(!ge){ge=this._getManager()._parseJson(fe);}
this.getResponse()._setJsonObject(ge);}
this._getManager()._handleCompleteRequest(this);};xmp.net.MockTransport.prototype.handleError=function(he,ie){this._stopTimer();var je="Type:  "+he+"\nDescription:  "+ie;this.getResponse()._setError(new Error(je));this._getManager()._handleCompleteRequest(this);};xmp.net.MockTransport.prototype._handleTimeout=function(){this.getResponse()._setTimedOut();this._getManager()._handleCompleteRequest(this);};xmp.createNamespace("xmp.net");xmp.net.MockTransportData=function(){this._logger=new xmp.util.internals.CategoryLogger('MockTransportData');this._dataMap={};};xmp.net.MockTransportData._singeltonInstance=null;xmp.net.MockTransportData.getInstance=function(){if(xmp.net.MockTransportData._singeltonInstance===null){xmp.net.MockTransportData._singeltonInstance=new xmp.net.MockTransportData();}
return xmp.net.MockTransportData._singeltonInstance;};xmp.net.MockTransportData.prototype.setDataMap=function(ke){this._dataMap=ke;};xmp.net.MockTransportData.prototype.getDataMap=function(){return this._dataMap;};xmp.net.MockTransportData.prototype.setItem=function(le,me){var ne=this._transformUrl(le);this._dataMap[ne]=me;};xmp.net.MockTransportData.prototype.getItem=function(oe){this._logger.info("MockTransportData.getData for "+oe);var pe=this._transformUrl(oe);return this._dataMap[pe];};xmp.net.MockTransportData.prototype._transformUrl=function(qe){var se=this._hasTileId(qe)?this._removeTileId(qe):qe;return se;};xmp.net.MockTransportData.prototype._hasTileId=function(te){return te.match(/tile=\d+/);};xmp.net.MockTransportData.prototype._removeTileId=function(ue){var ve=ue.replace(/tile=\d+&/,'');if(ve===ue){ve=ue.replace(/&tile=\d+/,'');}
return ve;};xmp.createNamespace("xmp.net");xmp.net.ScriptTagTransport=function(we,xe,ye,ze,Ae){xmp.net.ScriptTagTransport.ctor.call(this,we,xe,ye,ze,Ae);this._logger=new xmp.util.internals.CategoryLogger('ScriptTagTransport');};xmp.DERIVE_CLASS(xmp.net.AbstractTagTransport,xmp.net.ScriptTagTransport);xmp.net.ScriptTagTransport.prototype._initTag=function(Be){var Ce=document.createElement('script');Ce.id=this._makeTagId();document.body.appendChild(Ce);Ce.src=Be;};xmp.net.ScriptTagTransport.prototype._finiTag=function(){try{var De=document.getElementById(this._makeTagId());if(De){document.body.removeChild(De);}}
catch(e){this._logger.warn('Error removing tag with ID: '+this._makeTagId(),e);}};xmp.net.ScriptTagTransport.prototype._makeTagId=function(){return'ScriptTagTransport'+'_'+this.getRequestId();};xmp.net.ScriptTagTransport.prototype._getLogger=function(){return this._logger;};xmp.createNamespace("xmp.net");xmp.net.TransportTypes=function(){};xmp.net.TransportTypes.INVALID=-1;xmp.net.TransportTypes.XHR=0;xmp.net.TransportTypes.IFRAME=1;xmp.net.TransportTypes.SCRIPT=2;xmp.net.TransportTypes.FLASH_XHR=3;xmp.net.TransportTypes.MOCK=4;xmp.net.TransportTypes._BEGIN=-1;xmp.net.TransportTypes._END=4;xmp.net.TransportTypes._calc=function(Ee){var Fe=xmp.net.TransportTypes;if((typeof Ee!=='number')||(Ee<Fe._BEGIN)||(Ee>Fe._END)){return Fe._BEGIN;}
return Ee;};xmp.net.TransportTypes.stringify=function(Ge){var He=xmp.net.TransportTypes;var Ie=He._calc(Ge);switch(Ie){case He.INVALID:return'invalid';case He.XHR:return'xhr';case He.IFRAME:return'iframe';case He.SCRIPT:return'script';case He.FLASH_XHR:return'flash';case He.MOCK:return'mock';default:return'invalid';}};xmp.net.TransportTypes.fromString=function(Je){var Ke=xmp.net.TransportTypes;switch(Je){case'invalid':return Ke.INVALID;case'xhr':return Ke.XHR;case'iframe':return Ke.IFRAME;case'script':return Ke.SCRIPT;case'flash':return Ke.FLASH_XHR;case'mock':return Ke.MOCK;default:return Ke.INVALID;}};xmp.createNamespace("xmp.net");xmp.net.XhrTransport=function(Le,Me,Ne,Oe,Pe){xmp.net.XhrTransport.ctor.call(this,Le,Me,Ne,Oe,Pe);this._requestObject=this._createRequestObject();var Qe=this;this._requestObject.onreadystatechange=function(){Qe._handleStateChange();};};xmp.DERIVE_CLASS(xmp.net.AbstractTransport,xmp.net.XhrTransport);xmp.net.XhrTransport.prototype.request=function(Re,Se){try{this._checkAndCreateTimer();var Te=this.getConfiguration()['rootUrl']+Re;this._requestObject.open('GET',Te);if(Se!==null){for(var i=0;i<Se.length;i++){var Ue=Se[i];this._requestObject.setRequestHeader(Ue.name,Ue.value);}}
this._requestObject.send(null);this._startTimer();}
catch(e){this._stopTimer();this.getResponse()._setError(e);this._getManager()._handleCompleteRequest(this);}};xmp.net.XhrTransport.prototype._completeResponse=function(){try{this._stopTimer();if(this._requestObject.status!==200){throw new Error('Status: '+this._requestObject.status);}
var Ve=this._requestObject.responseText;this.getResponse()._setText(Ve);if(this.getContentType()===xmp.net.ContentTypes.JSON){var We=this._getManager()._parseJson(Ve);this.getResponse()._setJsonObject(We);}}
catch(e){this.getResponse()._setError(e);}
this._getManager()._handleCompleteRequest(this);};xmp.net.XhrTransport.prototype._handleTimeout=function(){this._requestObject.abort();this.getResponse()._setTimedOut();this._getManager()._handleCompleteRequest(this);};xmp.net.XhrTransport.prototype._handleStateChange=function(){if(this._requestObject.readyState===4){this._completeResponse();}};xmp.net.XhrTransport._factories=[function(){return new XMLHttpRequest();},function(){return new ActiveXObject('Msxml2.XMLHTTP');},function(){return new ActiveXObject('Microsoft.XMLHTTP');}];xmp.net.XhrTransport._factory=null;xmp.net.XhrTransport.prototype._createRequestObject=function(){if(xmp.net.XhrTransport._factory!==null){return xmp.net.XhrTransport._factory();}
for(var i=0;i<xmp.net.XhrTransport._factories.length;i++){try{var Xe=xmp.net.XhrTransport._factories[i];var Ye=Xe();if(Ye!==null){xmp.net.XhrTransport._factory=Xe;return Ye;}}
catch(e){continue;}}
xmp.net.XhrTransport._factory=function(){throw new Error('XMLHttpRequest not supported.');};xmp.net.XhrTransport._factory();return null;};