ContentInfo = "";
topColor = "#dae4e8"
subColor = "#dae4e8"
var mouse_X;
var mouse_Y;
var tip_active = 0;
function update_tip_pos(){
var temp = eval(document.body.offsetWidth-500);
var temp2 = eval(document.body.offsetHeight-50);
//alert(temp);
if (mouse_X > temp)
{
document.getElementById('ToolTip').style.left = mouse_X -390;
}else {
document.getElementById('ToolTip').style.left = mouse_X +20;
}
if (mouse_Y > temp2){
document.getElementById('ToolTip').style.top  = mouse_Y-15;
}
else {
document.getElementById('ToolTip').style.top  = mouse_Y+10;
}
}
var ie = document.all?true:false;
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

function getMouseXY(e) {
if (ie) { // grab the x-y pos.s if browser is IE
mouse_X = event.clientX + document.body.scrollLeft;
//alert(document.body.offsetWidth);
mouse_Y = event.clientY + document.body.scrollTop;
}
else { // grab the x-y pos.s if browser is NS
mouse_X = e.pageX;
mouse_Y = e.pageY;
}
if (mouse_X < 0){mouse_X = 0;}
if (mouse_Y < 0){mouse_Y = 0;}

if(tip_active){update_tip_pos();}
}
function EnterContent(TContent){

ContentInfo = '<table border="0" cellpadding="0" cellspacing="0" width="372"><tr><td><img src="/images/tooltip-1lft.png" width="11" height="12"></td><td><img src="/images/tooltip-top1.png" width="345" height="12"></td><td><img src="/images/tooltip-rt1.png" width="16" height="12"></td></tr><tr><td width=\'11\' style=\'background:url(/images/tooltip-lftbar.png) #dae4e8 repeat-y\'><img src=\'/images/blank.gif\' width=\'11\' height=\'5\'></td><td width=\'340\' valign=\'top\' bgcolor=#dae4e8 style="font-size:11px"><img src="/images/msglogo.jpg" width="30" height="31" align=left><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px;">'+TContent+'</font></td><td width="15" style="background:url(/images/tooltip-rtbar.png) #dae4e8 repeat-y"><img src="/images/blank.gif" width="16" height="5"></td></tr><tr><td><img src="/images/tooltip-bot1.png" width="11" height="16"></td><td><img src="/images/tooltip-botbar.png" width="345" height="16"></td><td><img src="/images/tooltip-botrt.png" width="16" height="16"></td></tr></table>'
}
function tip_it(which,  TContent){

	if(which){
     update_tip_pos();
	 version=0;
	 tip_active = 1;
     t = window.setTimeout("document.getElementById('ToolTip').style.visibility = 'visible';", 500);
	 EnterContent( TContent);
	 document.getElementById('ToolTip').innerHTML = ContentInfo;
	} else{
	  tip_active = 0;
	  clearTimeout(t);
	  document.getElementById('ToolTip').style.visibility = "hidden";
	}
}
