/*
	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(_4.config["baseUrl"]){_4.baseUrl=_4.config["baseUrl"];}else{_4.baseUrl="./";}_4.locale=_4.locale||String(java.util.Locale.getDefault().toString().replace("_","-").toLowerCase());_4._name="rhino";_4.isRhino=true;if(typeof print=="function"){console.debug=print;}if(!("byId" in _4)){_4.byId=function(id,_7){if(id&&(typeof id=="string"||id instanceof String)){if(!_7){_7=document;}return _7.getElementById(id);}return id;};}_4._isLocalUrl=function(_8){var _9=(new java.io.File(_8)).exists();if(!_9){var _a;try{_a=(new java.net.URL(_8)).openStream();_a.close();}finally{if(_a&&_a.close){_a.close();}}}return _9;};_4._loadUri=function(_b,cb){if(_4._loadedUrls[_b]){return true;}try{var _c;try{_c=_4._isLocalUrl(_b);}catch(e){return false;}_4._loadedUrls[_b]=true;if(cb){var _d=(_c?_e:_f)(_b,"UTF-8");if(!eval("'‏'").length){_d=String(_d).replace(/[\u200E\u200F\u202A-\u202E]/g,function(_10){return "\\u"+_10.charCodeAt(0).toString(16);});}_d=/^define\(/.test(_d)?_d:"("+_d+")";cb(eval(_d));}else{load(_b);}_4._loadedUrls.push(_b);return true;}catch(e){_4._loadedUrls[_b]=false;console.debug("rhino load('"+_b+"') failed. Exception: "+e);return false;}};_4.exit=function(_11){quit(_11);};function _e(_12,_13){_13=_13||"utf-8";var jf=new java.io.File(_12);var is=new java.io.FileInputStream(jf);return _14(is,_13);};function _f(uri,_15){var _16=(new java.net.URL(uri)).openConnection();_15=_15||_16.getContentEncoding()||"utf-8";var is=_16.getInputStream();return _14(is,_15);};function _14(is,_17){var _18=new java.io.BufferedReader(new java.io.InputStreamReader(is,_17));try{var sb=new java.lang.StringBuffer();var _19="";while((_19=_18.readLine())!==null){sb.append(_19);sb.append(java.lang.System.getProperty("line.separator"));}return sb.toString();}finally{_18.close();}};_4._getText=function(uri,_1a){try{var _1b=_4._isLocalUrl(uri);var _1c=(_1b?_e:_f)(uri,"UTF-8");if(_1c!==null){_1c+="";}return _1c;}catch(e){if(_1a){return null;}else{throw e;}}};_4.doc=typeof document!="undefined"?document:null;_4.body=function(){return document.body;};if(typeof setTimeout=="undefined"||typeof clearTimeout=="undefined"){_4._timeouts=[];clearTimeout=function(idx){if(!_4._timeouts[idx]){return;}_4._timeouts[idx].stop();};setTimeout=function(_1d,_1e){var def={sleepTime:_1e,hasSlept:false,run:function(){if(!this.hasSlept){this.hasSlept=true;java.lang.Thread.currentThread().sleep(this.sleepTime);}try{_1d();}catch(e){console.debug("Error running setTimeout thread:"+e);}}};var _1f=new java.lang.Runnable(def);var _20=new java.lang.Thread(_1f);_20.start();return _4._timeouts.push(_20)-1;};}if(_4.config["modulePaths"]){for(var _21 in _4.config["modulePaths"]){_4.registerModulePath(_21,_4.config["modulePaths"][_21]);}}}};});