context: 		init:function(){			//	start by setting up the domNode			if(this.domNode.style.position != "absolute"){				this.domNode.style.position = "relative";			}			//	clean out any children			while(this.domNode.childNodes.length>0){				this.domNode.removeChild(this.domNode.childNodes[0]);			}						//	set ourselves up.			this.domNode.style.width="150px";			this.domNode.style.height="150px";			this.surface=dojo.gfx.createSurface(this.domNode, 150, 150);			this.surface.createRect({width: 150, height: 150});			this.surface.createImage({width: 150, height: 150, src: this.image+""});						var hP=[ {x: -3, y: -4}, {x: 3, y: -4}, {x: 1, y: -27}, { x:-1, y:-27}, {x: -3, y: -4} ];			var mP=[ {x: -3, y: -4}, {x: 3, y: -4}, {x: 1, y: -38}, {x:-1, y:-38}, {x: -3, y: -4} ];			var sP=[ {x: -2, y: -2}, {x: 2, y: -2}, {x: 1, y: -45}, {x: -1, y: -45}, {x: -2, y: -2} ];						this.shadows.hour.shadow = this._initPoly(this.surface, hP)				.setFill([0, 0, 0, 0.1]);			this.hands.hour = this._initPoly(this.surface, hP)				.setStroke({color: this.handStroke, width:1 })				.setFill({ 					type:"linear", 					x1:0, y1:0, x2:0, y2:-27, 					colors:[{offset:0, color:"#fff"}, {offset:0.33, color:this.handColor}]				});			this.shadows.minute.shadow = this._initPoly(this.surface, mP)				.setFill([0, 0, 0, 0.1]);			this.hands.minute = this._initPoly(this.surface, mP)				.setStroke({color: this.handStroke, width:1 })				.setFill({ 					type:"linear", 					x1:0, y1:0, x2:0, y2:-38, 					colors:[{offset:0, color:"#fff"}, {offset:0.33, color:this.handColor}]				});			this.surface.createCircle({r: 6})				.setStroke({color: this.handStroke, width:2 })				.setFill("#fff")				.setTransform({dx: 75, dy: 75});			this.shadows.second.shadow = this._initPoly(this.surface, sP)				.setFill([0, 0, 0, 0.1]);			this.hands.second = this._initPoly(this.surface, sP)				.setFill(this.secondHandColor);			//	clock centers, doesn't move.			this.surface.createCircle({r: 4})				.setFill(this.secondHandColor)				.setTransform({dx: 75, dy: 75});			//	labels			this.topLabelNode=document.createElement("div");			with(this.topLabelNode.style){				position="absolute";				top="3px";				left="0px";				color=this.topLabelColor;				textAlign="center";				width="150px";				fontFamily="sans-serif";				fontSize="11px";				textTransform="uppercase";				fontWeight="bold";			}			this.topLabelNode.innerHTML=((this.date.getHours()+this.timeZoneOffset)>11)?"PM":"AM";			this.domNode.appendChild(this.topLabelNode);			this.labelNode=document.createElement("div");			with(this.labelNode.style){				position="absolute";				top="134px";				left="0px";				color=this.labelColor;				textAlign="center";				width="150px";				fontFamily="sans-serif";				fontSize="10px";				textTransform="uppercase";				fontWeight="bold";			}			this.labelNode.innerHTML=this.label||"&nbsp;";			this.domNode.appendChild(this.labelNode);						this.draw();		},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Clock.js/buggy/www/resources/dojo-ajax/src/widget/Clock.js