rem:  tool_box.bgColor 			= this.background; 
context: function tt_paint(top, left, text, title, close_button){	var tool_box = document.getElementById("ToolBox");	if (tool_box.filters) tool_box.filters[0].Apply();	if ((typeof(title) != "undefined" && title != "") || (typeof(top) == "undefined"))	{		document.getElementById("ToolBoxTitle").style.textAlign = this.title_align;		document.getElementById("ToolBoxTitle").style.font = this.title_font;		document.getElementById("ToolBoxTitle").style.background = this.title_bg;		document.getElementById("ToolBoxTitle").style.color = this.title_color;		document.getElementById("ToolBoxTitle").style.padding = "2px";		if (typeof(title) != "undefined") document.getElementById("ToolBoxTitle").innerHTML = unescape(title);		if (closeElement = document.getElementById("ToolBoxClose")) {			closeElement.parentNode.removeChild(closeElement);		}		if (typeof close_button != 'undefined') {			closeElement = document.createElement('th');			closeElement.style.textAlign = 'right';			closeElement.style.padding = '2px';			closeElement.style.backgroundColor = this.title_bg;			closeElement.id = 'ToolBoxClose';			if (close_button == true) {				close_button = 'X';			}			closeElement.innerHTML = '<a href="#" style="text-decoration: none; color: ' + this.title_color + '" onclick="tooltip.hide(); return false;">' + close_button + '</a>';			document.getElementById("ToolBoxTitle").parentNode.appendChild(closeElement);			document.getElementById("ToolBoxContent").colSpan = 2;		}	}	else	{		document.getElementById("ToolBoxTitle").style.background = this.normal_bg;		document.getElementById("ToolBoxTitle").style.padding = "0px";		document.getElementById("ToolBoxTitle").innerHTML = "";	}	if ((typeof(text) != "undefined" && text != "") || (typeof(top) == "undefined"))	{		if(typeof(text) != "undefined") document.getElementById("ToolBoxContent").innerHTML = unescape(text);		document.getElementById("ToolBoxContent").style.padding = "2px";		document.getElementById("ToolBoxContent").style.background = this.normal_bg;	}	else	{		document.getElementById("ToolBoxContent").innerHTML = "";		document.getElementById("ToolBoxContent").style.padding = "0px";		document.getElementById("ToolBoxContent").style.background = this.title_bg;	}	if ((typeof(top) != "undefined") && (typeof(left) != "undefined"))	{		// Remove some amount to take into account the fact that innerWidth		// includes the scrollbar width - 20 pixels should do		var win_width = ((window.innerWidth)?window.innerWidth:document.body.offsetWidth) - 20;		if ((tool_box.offsetWidth + left) > win_width) left -= (tool_box.offsetWidth + left) - win_width;		tool_box.style.top 	= top + "px";		tool_box.style.left	= left + "px";		if (window.event)		{		  var hider = document.getElementById("hider");		  hider.style.top = top;		  hider.style.left = left;		  hider.style.width = tool_box.offsetWidth;		  hider.style.height = tool_box.offsetHeight;		  hider.style.visibility = "visible";		}	}	tool_box.bgColor 			= this.background;	tool_box.style.font 		= this.normal_font;	tool_box.style.color 		= this.color;	tool_box.style.border 		= this.border;	tool_box.style.background 	= this.normal_bg;	tool_box.style.visibility 	= "visible";	if (tool_box.filters) tool_box.filters[0].Play();}//end tt_paint()
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5635/8fd2f2efc9c0a57534ede70520fa14b3864e6867/tooltip.js/clean/core/lib/js/tooltip.js