/*
Copyright (c) 2004-2010, 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
*/
if(!dojo._hasResource["dojox.form.Rating"]){dojo._hasResource["dojox.form.Rating"]=true;dojo.provide("dojox.form.Rating");dojo.require("dijit.form._FormWidget");dojo.declare("dojox.form.Rating",dijit.form._FormWidget,{templateString:null,numStars:3,value:0,constructor:function(_1){dojo.mixin(this,_1);var _2="
";var _3="";var _4="";for(var i=0;i_7){dojo.removeClass(_9,"dojoxRatingStarHover");dojo.removeClass(_9,"dojoxRatingStarChecked");}else{dojo.removeClass(_9,"dojoxRatingStar"+(_8?"Checked":"Hover"));dojo.addClass(_9,"dojoxRatingStar"+(_8?"Hover":"Checked"));}});},onStarClick:function(_a){var _b=+dojo.attr(_a.target,"value");this.setAttribute("value",_b==this.value?0:_b);this._renderStars(this.value);this.onChange(this.value);},onMouseOver:function(){},setAttribute:function(_c,_d){this.inherited("setAttribute",arguments);if(_c=="value"){this._renderStars(this.value);this.onChange(this.value);}}});}