rem: if(this.options.width > this.options.maxWidth) { this.options.width = this.options.maxWidth; this.tooltip.style.width = this.options.width + 'px'; }   if(this.xCord + this.options.width >= Element.getWidth(document.body)) { this.options.align = "right"; this.xCord = this.xCord - this.options.width + 20; } 
add: this.setup(); 
context: 	appear: function() {		// Building tooltip container		//this.tooltip = Builder.node("div", {className: "tooltip", style: "display: none; width: " + this.options.width + "px;" }, [		this.tooltip = Builder.node("div", {className: "tooltip", style: "display: none;" }, [			Builder.node("div", {className:"xtop"}, [				Builder.node("div", {className:"xb1", style:"background-color:" + this.options.borderColor + ";"}),				Builder.node("div", {className:"xb2", style: "background-color:" + this.options.backgroundColor + "; border-color:" + this.options.borderColor + ";"}),				Builder.node("div", {className:"xb3", style: "background-color:" + this.options.backgroundColor + "; border-color:" + this.options.borderColor + ";"}),				Builder.node("div", {className:"xb4", style: "background-color:" + this.options.backgroundColor + "; border-color:" + this.options.borderColor + ";"})			]),			Builder.node("div", {className: "xboxcontent", style: "background-color:" + this.options.backgroundColor + 				"; border-color:" + this.options.borderColor + 				((this.options.textColor != '') ? "; color:" + this.options.textColor : "") + 				((this.options.textShadowColor != '') ? "; text-shadow:2px 2px 0" + this.options.textShadowColor + ";" : "")}, this.content), 			Builder.node("div", {className:"xbottom"}, [				Builder.node("div", {className:"xb4", style: "background-color:" + this.options.backgroundColor + "; border-color:" + this.options.borderColor + ";"}),				Builder.node("div", {className:"xb3", style: "background-color:" + this.options.backgroundColor + "; border-color:" + this.options.borderColor + ";"}),				Builder.node("div", {className:"xb2", style: "background-color:" + this.options.backgroundColor + "; border-color:" + this.options.borderColor + ";"}),				Builder.node("div", {className:"xb1", style:"background-color:" + this.options.borderColor + ";"})			]),		]);		document.body.insertBefore(this.tooltip, document.body.childNodes[0]);				this.options.width = this.tooltip.getWidth();				if(this.options.width > this.options.maxWidth) {// If content width is more then allowed max width, set width to max			this.options.width = this.options.maxWidth;			this.tooltip.style.width = this.options.width + 'px';		}					// Tooltip doesn't fit the current document dimensions		if(this.xCord + this.options.width >= Element.getWidth(document.body)) {			this.options.align = "right";			this.xCord = this.xCord - this.options.width + 20;		}				this.tooltip.style.left = this.xCord - 7 + "px";		this.tooltip.style.top = this.yCord + 12 + "px";					this.initialized = true;		this.appearingFX = new Effect.Appear(this.tooltip, {duration: this.options.appearDuration, to: this.options.opacity });	},
meta: 2671	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2671/bea5d49557b0cf4cddfee5ac29b294f2489513dc/tooltips.js/clean/tooltips.js