/*
	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._Widget"],["require","dijit._WidgetBase"],["require","dijit._base"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dijit._Widget"]){_4._hasResource["dijit._Widget"]=true;_4.provide("dijit._Widget");_4.require("dijit._WidgetBase");_4.require("dijit._base");_4.connect(_4,"_connect",function(_7,_8){if(_7&&_4.isFunction(_7._onConnect)){_7._onConnect(_8);}});_5._connectOnUseEventHandler=function(_9){};_5._lastKeyDownNode=null;if(_4.isIE){(function(){var _a=function(_b){_5._lastKeyDownNode=_b.srcElement;};_4.doc.attachEvent("onkeydown",_a);_4.addOnWindowUnload(function(){_4.doc.detachEvent("onkeydown",_a);});})();}else{_4.doc.addEventListener("keydown",function(_c){_5._lastKeyDownNode=_c.target;},true);}(function(){_4.declare("dijit._Widget",_5._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:_5._connectOnUseEventHandler,onDblClick:_5._connectOnUseEventHandler,onKeyDown:_5._connectOnUseEventHandler,onKeyPress:_5._connectOnUseEventHandler,onKeyUp:_5._connectOnUseEventHandler,onMouseDown:_5._connectOnUseEventHandler,onMouseMove:_5._connectOnUseEventHandler,onMouseOut:_5._connectOnUseEventHandler,onMouseOver:_5._connectOnUseEventHandler,onMouseLeave:_5._connectOnUseEventHandler,onMouseEnter:_5._connectOnUseEventHandler,onMouseUp:_5._connectOnUseEventHandler,create:function(_d,_e){this._deferredConnects=_4.clone(this._deferredConnects);for(var _f in this.attributeMap){delete this._deferredConnects[_f];}for(_f in this._deferredConnects){if(this[_f]!==_5._connectOnUseEventHandler){delete this._deferredConnects[_f];}}this.inherited(arguments);if(this.domNode){for(_f in this.params){this._onConnect(_f);}}},_onConnect:function(_10){if(_10 in this._deferredConnects){var _11=this[this._deferredConnects[_10]||"domNode"];this.connect(_11,_10.toLowerCase(),_10);delete this._deferredConnects[_10];}},focused:false,isFocusable:function(){return this.focus&&(_4.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(_12,_13){_4.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(_12,_13);},attr:function(_14,_15){if(_4.config.isDebug){var _16=arguments.callee._ach||(arguments.callee._ach={}),_17=(arguments.callee.caller||"unknown caller").toString();if(!_16[_17]){_4.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_17,"","2.0");_16[_17]=true;}}var _18=arguments.length;if(_18>=2||typeof _14==="object"){return this.set.apply(this,arguments);}else{return this.get(_14);}},nodesWithKeyClick:["input","button"],connect:function(obj,_19,_1a){var d=_4,dc=d._connect,_1b=this.inherited(arguments,[obj,_19=="ondijitclick"?"onclick":_19,_1a]);if(_19=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_1a);_1b.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==_5._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=null;return m(e);}}));}}return _1b;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}}};});