dijit.setWaiState(this.internalProgress, "describedby", this.label.id); 
	update: function(/*Object?*/attributes){		// summary: update progress information		//		// attributes: may provide progress and/or maximum properties on this parameter,		//	see attribute specs for details.		dojo.mixin(this, attributes||{});		var percent = 1, classFunc;		if(this.indeterminate){			classFunc = "addClass";			dijit.removeWaiState(this.internalProgress, "valuenow");			dijit.removeWaiState(this.internalProgress, "valuemin");			dijit.removeWaiState(this.internalProgress, "valuemax");		}else{			classFunc = "removeClass";			if(String(this.progress).indexOf("%") != -1){				percent = Math.min(parseFloat(this.progress)/100, 1);				this.progress = percent * this.maximum;			}else{				this.progress = Math.min(this.progress, this.maximum);				percent = this.progress / this.maximum;			}			var text = this.report(percent);			this.label.firstChild.nodeValue = text;			dijit.setWaiState(this.internalProgress, "valuenow", this.progress);			dijit.setWaiState(this.internalProgress, "valuemin", 0);			dijit.setWaiState(this.internalProgress, "valuemax", this.maximum);		}		dojo[classFunc](this.domNode, "dijitProgressBarIndeterminate");		this.internalProgress.style.width = (percent * 100) + "%";		this.onChange();	},
3035	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3035/424724c061bd5080f7ffe05554eb0b2644803f63/ProgressBar.js/buggy/ProgressBar.js