/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {defineResource:function(_4,_5,_6){if(typeof window!="undefined"){_4.isBrowser=true;_4._name="browser";(function(){var d=_4;d.baseUrl=d.config.baseUrl;var n=navigator;var _7=n.userAgent;var _8=n.appVersion;var tv=parseFloat(_8);d.isMozilla=d.isMoz=tv;if(d.isMoz){d.isFF=parseFloat(_7.split("Firefox/")[1])||undefined;}d.isQuirks=document.compatMode=="BackCompat";d.locale=_4.config.locale||n.language.toLowerCase();d._xhrObj=function(){return new XMLHttpRequest();};var _9=d._loadUri;d._loadUri=function(_a,cb){var _b=["file:","chrome:","resource:"].some(function(_c){return String(_a).indexOf(_c)==0;});if(_b){var l=Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);var _d=l.loadSubScript(_a,d.global);if(cb){cb(_d);}return true;}else{return _9.apply(d,arguments);}};d._isDocumentOk=function(_e){var _f=_e.status||0;return (_f>=200&&_f<300)||_f==304||_f==1223||(!_f&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _10=false;d._getText=function(uri,_11){var _12=d._xhrObj();if(!_10&&_4._Url){uri=(new _4._Url(uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}var _13=["file:","chrome:","resource:"].some(function(_14){return String(uri).indexOf(_14)==0;});if(_13){var _15=Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);var _16=Components.classes["@mozilla.org/scriptableinputstream;1"].getService(Components.interfaces.nsIScriptableInputStream);var _17=_15.newChannel(uri,null,null);var _18=_17.open();_16.init(_18);var str=_16.read(_18.available());_16.close();_18.close();return str;}else{_12.open("GET",uri,false);try{_12.send(null);if(!d._isDocumentOk(_12)){var err=Error("Unable to load "+uri+" status:"+_12.status);err.status=_12.status;err.responseText=_12.responseText;throw err;}}catch(e){if(_11){return null;}throw e;}return _12.responseText;}};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};d.addOnWindowUnload=function(obj,_19){d._onto(d._windowUnloaders,obj,_19);};var _1a=[];var _1b=null;_4._defaultContext=[window,document];_4.pushContext=function(g,d){var old=[_4.global,_4.doc];_1a.push(old);var n;if(!g&&!d){n=_4._defaultContext;}else{n=[g,d];if(!d&&_4.isString(g)){var t=document.getElementById(g);if(t.contentDocument){n=[t.contentWindow,t.contentDocument];}}}_1b=n;_4.setContext.apply(_4,n);return old;};_4.popContext=function(){var oc=_1b;if(!_1a.length){return oc;}_4.setContext.apply(_4,_1a.pop());return oc;};_4._inContext=function(g,d,f){var a=_4._toArray(arguments);f=a.pop();if(a.length==1){d=null;}_4.pushContext(g,d);var r=f();_4.popContext();return r;};})();_4._initFired=false;_4._loadInit=function(e){_4._initFired=true;var _1c=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_1c!="domcontentloaded"&&_1c!="load")){return;}arguments.callee.initialized=true;if(_4._inFlightCount==0){_4._modulesLoaded();}};if(!_4.config.afterOnLoad){window.addEventListener("DOMContentLoaded",function(e){_4._loadInit(e);},false);}}(function(){var mp=_4.config["modulePaths"];if(mp){for(var _1d in mp){_4.registerModulePath(_1d,mp[_1d]);}}})();if(_4.config.isDebug){console.log=function(m){var s=Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);s.logStringMessage(m);};console.debug=function(){console.log(_4._toArray(arguments).join(" "));};}}};});