rem: if (closeElement = document.getElementById("ToolBoxClose")) { closeElement.parentNode.removeChild(closeElement); 
add: 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; 
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"))  {	var win_width = (window.innerWidth)?window.innerWidth:document.body.offsetWidth;	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/2006_temp/2006/5635/35ff45cd3454a68834c723b66dc8347076cf358d/tooltip.js/clean/core/lib/js/tooltip.js