/*
	Copyright (c) 2004-2008, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/


window[(typeof (djConfig)!="undefined"&&djConfig.scopeMap&&djConfig.scopeMap[0][1])||"dojo"]._xdResourceLoaded({depends:[["provide","dijit.form.CheckBox"],["require","dijit.form.Button"]],defineResource:function(_1,_2,_3){if(!_1._hasResource["dijit.form.CheckBox"]){_1._hasResource["dijit.form.CheckBox"]=true;_1.provide("dijit.form.CheckBox");_1.require("dijit.form.Button");_1.declare("dijit.form.CheckBox",_2.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \ttype=\"${type}\" name=\"${name}\"\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",setValue:function(_4){if(typeof _4=="string"){this.setAttribute("value",_4);_4=true;}this.setAttribute("checked",_4);},_getValueDeprecated:false,getValue:function(){return (this.checked?this.value:false);},reset:function(){this.inherited(arguments);this.setAttribute("value",this._resetValueAttr);},postCreate:function(){this.inherited(arguments);this._resetValueAttr=this.value;}});_1.declare("dijit.form.RadioButton",_2.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_groups:{},postCreate:function(){(this._groups[this.name]=this._groups[this.name]||[]).push(this);this.inherited(arguments);},uninitialize:function(){_1.forEach(this._groups[this.name],function(_5,i,_7){if(_5===this){_7.splice(i,1);return;}},this);},setAttribute:function(_8,_9){this.inherited(arguments);switch(_8){case "checked":if(this.checked){_1.forEach(this._groups[this.name],function(_a){if(_a!=this&&_a.checked){_a.setAttribute("checked",false);}},this);}}},_clicked:function(e){if(!this.checked){this.setAttribute("checked",true);}}});}}});
