<!--
var tip=" ";
var x;
var y;
var timer = null;

document.write("<span id='span0' class='toolTip'>")
document.write(" ");
document.write("</span>");


function mouseMoved(e){
if (document.body) {
		x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX;
		y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY;
	}
}

function trackTip() {
  var thisspan;
    
	if (document.all) {
		thisspan = eval("span0.style");
		thisspan.posLeft=x;
		thisspan.posTop=y+20;
	} else if (document.layers) {
		thisspan = eval("document.span0");
		thisspan.left=x;
		thisspan.top=y+20;
	}
}

function showTip() {
  timer=setInterval("trackTip()",5);
}

function setTipOn(msg){
	changeTip(msg);
	showTip();
}

function setTipOff(){
	changeTip('off');
	clearInterval(this.timer);
	timer = null;
}


if (document.layers) { 
	document.captureEvents(Event.MOUSEMOVE); 
}

function changeTip(msg){
	if(msg=="off"){
		tip = " ";
	}
	else {
		tip = "<table class='toolText'><tr><td style='padding : 4px;'>";
		//var dwellTags = msg.split(",");
		//for(var i in dwellTags){
		//	tip = tip + "<tr><td>" + dwellTags[i] + "</td></tr>";
		//}
		tip = tip + msg
		tip = tip + "</td></tr></table>";
	}
	//if IE 4+
	if (document.all){
		span0.innerHTML=tip;
	}
	//else if NS 4
	else if (document.layers){
		document.span0.document.write(tip);
		document.span0.document.close();
	}
	//else if NS 6 (supports new DOM)
	else if (document.getElementById){
		rng = document.createRange();
		el = document.getElementById("span0");
		rng.setStartBefore(el);
		htmlFrag = rng.createContextualFragment(tip);
		while (el.hasChildNodes())
		el.removeChild(el.lastChild);
		el.appendChild(htmlFrag);
	}

}

document.onmousemove = mouseMoved;
//-->
