/*
	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 {depends:[["provide","dojox.lang.docs"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.lang.docs"]){_4._hasResource["dojox.lang.docs"]=true;_4.provide("dojox.lang.docs");(function(){function _7(_8){console.log("Warning, the API docs must be available at ../util/docscripts/api.json "+"or ../util/docscripts/api/*.json "+"in order for dojox.lang.docs to supply schema information, but it could not be loaded: "+_8);};var _9={};var _a=[];var _b=_6.lang.docs._loadedDocs={};var _c=function(_d,_e){_9[_e]=_d;};var _f=function(_10){var _11=_10.type||"";var _12,_13=false,_14=false,_15;_11=_11.replace(/\?/,function(){_13=true;return "";});_11=_11.replace(/\[\]/,function(){_14=true;return "";});if(_11.match(/HTML/)){_11="string";}else{if(_11=="String"||_11=="Number"||_11=="Boolean"||_11=="Object"||_11=="Array"||_11=="Integer"||_11=="Function"){_11=_11.toLowerCase();}else{if(_11=="bool"){_11="boolean";}else{if(_11){_12=_4.getObject(_11)||{};_15=true;}else{_12={};}}}}_12=_12||{type:_11};if(_14){_12={items:_12,type:"array"};_15=false;}if(!_15){if(_13){_12.optional=true;}if(/const/.test(_10.tags)){_12.readonly=true;}}return _12;};var _16=function(_17,_18){var _19=_b[_18];if(_19){_17.description=_19.description;_17.properties={};_17.methods={};if(_19.properties){var _1a=_19.properties;for(var i=0,l=_1a.length;i<l;i++){if(_1a[i].scope=="prototype"){var _1b=_17.properties[_1a[i].name]=_f(_1a[i]);_1b.description=_1a[i].summary;}}}if(_19.methods){var _1c=_19.methods;for(i=0,l=_1c.length;i<l;i++){_18=_1c[i].name;if(_18&&_1c[i].scope=="prototype"){var _1d=_17.methods[_18]={};_1d.description=_1c[i].summary;var _1e=_1c[i].parameters;if(_1e){_1d.parameters=[];for(var j=0,k=_1e.length;j<k;j++){var _1f=_1e[j];var _20=_1d.parameters[j]=_f(_1f);_20.name=_1f.name;_20.optional="optional"==_1f.usage;}}var ret=_1c[i]["return-types"];if(ret&&ret[0]){var _21=_f(ret[0]);if(_21.type){_1d.returns=_21;}}}}}var _22=_19.superclass;if(_22){_17["extends"]=_4.getObject(_22);}}};var _23=function(_24){_a.push(_24);};var _25=_4.declare;_4.declare=function(_26){var _27=_25.apply(this,arguments);_c(_27,_26);return _27;};_4.mixin(_4.declare,_25);var _28;var _29=_4.require;_4.require=function(_2a){_23(_2a);var _2b=_29.apply(this,arguments);return _2b;};_6.lang.docs.init=function(_2c){function _2d(){_4.require=_29;_a=null;try{_4.xhrGet({sync:!_2c,url:_4.baseUrl+"../util/docscripts/api.json",handleAs:"text"}).addCallbacks(function(obj){_b=(new Function("return "+obj))();obj=null;_c=_16;for(var i in _9){_c(_9[i],i);}_9=null;},_7);}catch(e){_7(e);}};if(_28){return null;}_28=true;var _2e=function(_2f,_30){return _4.xhrGet({sync:_30||!_2c,url:_4.baseUrl+"../util/docscripts/api/"+_2f+".json",handleAs:"text"}).addCallback(function(obj){obj=(new Function("return "+obj))();for(var _31 in obj){if(!_b[_31]){_b[_31]=obj[_31];}}});};try{var _32=_a.shift();_2e(_32,true).addCallbacks(function(){_23=function(_33){if(!_b[_33]){try{_2e(_33);}catch(e){_b[_33]={};}}};_4.forEach(_a,function(mod){_23(mod);});_a=null;_c=_16;for(i in _9){_c(_9[i],i);}_9=null;},_2d);}catch(e){_2d();}return null;};})();}}};});