<!--
ns4 = document.layers;
ie4 = document.all;
nn6 = document.getElementById && !document.all; 
var opacity = "0.95";

function showTextPopup(buttonEvent,textToDisplay)
{
	opacity = "0.95";
	var body = document.getElementsByTagName("body")[0];
	var div = document.createElement("div");
	var span = document.createElement("span");	
	var input = document.createElement("input");
	
	div.setAttribute('class', 'partiallyTransparent');

	div.style.position = "absolute";
	div.style.opacity = opacity;	
	div.style.zIndex = "1";
	
	body.appendChild(div);
	
	span.innerHTML = getText(textToDisplay);	
		
	span.style.position = "absolute";
	span.style.top = "50%";
	span.style.left = "50%";
	span.style.width = "600px";
	span.style.height = "" + span.innerHTML.length/4.4 + "px";
	span.style.padding = "6px";
	span.style.border = "3px double #999999";
	span.style.backgroundColor = "#DCDAC9";
	span.style.fontSize = "15px";
	span.style.fontFamily = "Arial, Helvetica, sans-serif";
	span.style.color = "#3B7300";
	
	span = div.appendChild(span);	
	
	input.type = "text";
	input.style.backgroundColor = "#DCDAC9";
	input.style.border = "none"
	input.readOnly = true;
	input = span.appendChild(input);	
	

	var xAxis;
	var yAxis;
	if (ns4) {
		div.left = buttonEvent.pageX;
		div.top = buttonEvent.pageY;	 
	}
	else if (ie4) {
		div.style.left = buttonEvent.clientX;
		div.style.top = buttonEvent.clientY;
		xAxis = buttonEvent.clientX;
		yAxis = buttonEvent.clientY+document.body.scrollTop;
	}
	else if (nn6) {
		div.style.top = buttonEvent.clientY;
		div.style.left = buttonEvent.clientX;
		xAxis = buttonEvent.clientX;
		yAxis = buttonEvent.clientY+window.pageYOffset;
	} 

	align(span, xAxis, yAxis);

	input.focus();

	input.onblur = function(e)
	{
		opacityDown(this.parentNode.parentNode);
	}
};

function opacityDown(theElement)
{
	if (opacity < 0.08)
	{
		theElement.parentNode.removeChild(theElement);
	}
	else
	{		
		opacity -= 0.07;
		if (ie4) {
			//theElement.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + opacity*100 + ");";
			//theElement.style.filter = 'alpha(opacity=' + opacity*100 + ')';
			theElement.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100);";
		}
		else {
			theElement.style.opacity = opacity;
		}
		setTimeout(function(){opacityDown(theElement);}, 50);
	}
	
	return true;
};


function align(theElement, xAxis, yAxis)
{
	var height = theElement.clientHeight;
	//low button click
	if (yAxis > 400) {
		theElement.parentNode.style.top = yAxis-parseInt(height) + "px";		
	}
	else {	
		if (parseInt(height) < 120)	{ 
			theElement.parentNode.style.top = yAxis;
		}
		else { 
			theElement.parentNode.style.top = yAxis-parseInt(height / 5) + "px";
		}
	}
	
	var width = theElement.clientWidth;
	var xAxisDiff = parseInt(xAxis)-width;
		
	if (parseInt(xAxis) > 450)	{ 
		if (xAxisDiff < 200) {
			var i = 200-xAxisDiff;
			theElement.parentNode.style.left = xAxis-width+i + "px";
		}
		else {
			theElement.parentNode.style.left = xAxis-width + "px";
		}
	}
	return true;
};