/*
	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","dijit._base.manager"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dijit._base.manager"]){_4._hasResource["dijit._base.manager"]=true;_4.provide("dijit._base.manager");_4.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_7){if(this._hash[_7.id]){throw new Error("Tried to register widget with id=="+_7.id+" but that id is already registered");}this._hash[_7.id]=_7;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_8,_9){_9=_9||_4.global;var i=0,id;for(id in this._hash){_8.call(_9,this._hash[id],i++,this._hash);}return this;},filter:function(_a,_b){_b=_b||_4.global;var _c=new _5.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_a.call(_b,w,i++,this._hash)){_c.add(w);}}return _c;},byId:function(id){return this._hash[id];},byClass:function(_d){var _e=new _5.WidgetSet(),id,_f;for(id in this._hash){_f=this._hash[id];if(_f.declaredClass==_d){_e.add(_f);}}return _e;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_10,_11){return _4.map(this.toArray(),_10,_11);},every:function(_12,_13){_13=_13||_4.global;var x=0,i;for(i in this._hash){if(!_12.call(_13,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_14,_15){_15=_15||_4.global;var x=0,i;for(i in this._hash){if(_14.call(_15,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){_5.registry=new _5.WidgetSet();var _16=_5.registry._hash,_17=_4.attr,_18=_4.hasAttr,_19=_4.style;_5.byId=function(id){return typeof id=="string"?_16[id]:id;};var _1a={};_5.getUniqueId=function(_1b){var id;do{id=_1b+"_"+(_1b in _1a?++_1a[_1b]:_1a[_1b]=0);}while(_16[id]);return _5._scopeName=="dijit"?id:_5._scopeName+"_"+id;};_5.findWidgets=function(_1c){var _1d=[];function _1e(_1f){for(var _20=_1f.firstChild;_20;_20=_20.nextSibling){if(_20.nodeType==1){var _21=_20.getAttribute("widgetId");if(_21){var _22=_16[_21];if(_22){_1d.push(_22);}}else{_1e(_20);}}}};_1e(_1c);return _1d;};_5._destroyAll=function(){_5._curFocus=null;_5._prevFocus=null;_5._activeStack=[];_4.forEach(_5.findWidgets(_4.body()),function(_23){if(!_23._destroyed){if(_23.destroyRecursive){_23.destroyRecursive();}else{if(_23.destroy){_23.destroy();}}}});};if(_4.isIE){_4.addOnWindowUnload(function(){_5._destroyAll();});}_5.byNode=function(_24){return _16[_24.getAttribute("widgetId")];};_5.getEnclosingWidget=function(_25){while(_25){var id=_25.getAttribute&&_25.getAttribute("widgetId");if(id){return _16[id];}_25=_25.parentNode;}return null;};var _26=(_5._isElementShown=function(_27){var s=_19(_27);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_17(_27,"type")!="hidden");});_5.hasDefaultTabStop=function(_28){switch(_28.nodeName.toLowerCase()){case "a":return _18(_28,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _29;try{var _2a=_28.contentDocument;if("designMode" in _2a&&_2a.designMode=="on"){return true;}_29=_2a.body;}catch(e1){try{_29=_28.contentWindow.document.body;}catch(e2){return false;}}return _29.contentEditable=="true"||(_29.firstChild&&_29.firstChild.contentEditable=="true");default:return _28.contentEditable=="true";}};var _2b=(_5.isTabNavigable=function(_2c){if(_17(_2c,"disabled")){return false;}else{if(_18(_2c,"tabIndex")){return _17(_2c,"tabIndex")>=0;}else{return _5.hasDefaultTabStop(_2c);}}});_5._getTabNavigable=function(_2d){var _2e,_2f,_30,_31,_32,_33,_34={};function _35(_36){return _36&&_36.tagName.toLowerCase()=="input"&&_36.type&&_36.type.toLowerCase()=="radio"&&_36.name&&_36.name.toLowerCase();};var _37=function(_38){_4.query("> *",_38).forEach(function(_39){if((_4.isIE&&_39.scopeName!=="HTML")||!_26(_39)){return;}if(_2b(_39)){var _3a=_17(_39,"tabIndex");if(!_18(_39,"tabIndex")||_3a==0){if(!_2e){_2e=_39;}_2f=_39;}else{if(_3a>0){if(!_30||_3a<_31){_31=_3a;_30=_39;}if(!_32||_3a>=_33){_33=_3a;_32=_39;}}}var rn=_35(_39);if(_4.attr(_39,"checked")&&rn){_34[rn]=_39;}}if(_39.nodeName.toUpperCase()!="SELECT"){_37(_39);}});};if(_26(_2d)){_37(_2d);}function rs(_3b){return _34[_35(_3b)]||_3b;};return {first:rs(_2e),last:rs(_2f),lowest:rs(_30),highest:rs(_32)};};_5.getFirstInTabbingOrder=function(_3c){var _3d=_5._getTabNavigable(_4.byId(_3c));return _3d.lowest?_3d.lowest:_3d.first;};_5.getLastInTabbingOrder=function(_3e){var _3f=_5._getTabNavigable(_4.byId(_3e));return _3f.last?_3f.last:_3f.highest;};_5.defaultDuration=_4.config["defaultDuration"]||200;})();}}};});