<!--
var topColor, subColor, ContentInfo;
ContentInfo = "";
topColor = "#808080"
subColor = "#C0C0C0"

var mouse_X;
var mouse_Y;
var iframeObj2;

var tip_active = 0;

function update_tip_pos(){

	if ( mouse_X > document.body.offsetWidth/3 )
	{
		document.getElementById('ToolTip').style.left = mouse_X - 3 - GLB_TAncho;
		document.getElementById('ToolTip').style.top  = mouse_Y + 15;
	}
	else
	{
		document.getElementById('ToolTip').style.left = mouse_X + 12;
		document.getElementById('ToolTip').style.top  = mouse_Y + 15;
	}
	iframeObj2.style.left = document.getElementById('ToolTip').style.left;
	iframeObj2.style.top = document.getElementById('ToolTip').style.top;
}

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;
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(TTitle, TContent, TAncho, TBGColorTitle, TBGColorHint){

ContentInfo = '<div><table border="0" style="border:1px solid #484848" width="'+TAncho+'" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="#000000">'+

'<table border="0" width="100%" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="'+TBGColorTitle+'">'+

'<table border="0" width="90%" cellspacing="1" cellpadding="0" align="center">'+
'<tr><td width="100%">'+

'<font class="tooltiptitle">'+TTitle+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+

'<tr><td width="100%" bgcolor="'+TBGColorHint+'">'+

'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+

'<tr><td width="100%">'+

'<font class="tooltipcontent">'+TContent+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table></div>';

}


function ShowToolTip(which, TTitle, TContent, TAncho, TBGColorTitle, TBGColorHint){

	if(which){
		GLB_TAncho = TAncho;

		iframeObj2 = document.createElement('IFRAME');
		iframeObj2.style.display = 'none';
		update_tip_pos();
	
		tip_active = 1;
		
		document.getElementById('ToolTip').style.visibility = "visible";
		
		EnterContent(TTitle, TContent, TAncho, TBGColorTitle, TBGColorHint);

		iframeObj2.style.position = 'absolute';
		iframeObj2.style.border = '0px';
		iframeObj2.style.width = TAncho+'px';
		iframeObj2.style.display = 'block';
		document.body.appendChild(iframeObj2);
		
		document.getElementById('ToolTip').innerHTML = ContentInfo;
		iframeObj2.style.height = document.getElementsByTagName("table").item(0).offsetHeight + "px";
	
	}else{
		if( document.getElementById('ToolTip') != null )
		{
			tip_active = 0;
			document.getElementById('ToolTip').style.visibility = "hidden";
		}
		if ( iframeObj2 != false )
			iframeObj2.style.display = 'none';
	}

}

//-->
