/*****************************************************
For Tip's
*****************************************************/

var mtips = {};
//for pause
mtips.flag=0;

//determination browser
switch(navigator.appName) {
	case "Netscape":
		mtips.stX = "e.pageX";
		mtips.stY = "e.pageY";
		break;
	default:
		mtips.stX = "event.clientX";
		mtips.stY = "event.clientY+document.body.scrollTop";
};

//current X and Y (px)
mtips.getXY = function (e) {
	mtips.curX=eval(mtips.stX);
	mtips.curY=eval(mtips.stY);	
};

//show tip if user hovers over link title for 2 seconds
mtips.show = function (idDivs) {
	if (mtips.flag) {
		var tobject=document.getElementById(idDivs);
//		var tWidth = tobject.offsetWidth/2;
//		if ((mtips.curX-tWidth)<0) mtips.curX=tWidth+30;
//		if ((mtips.curX+tWidth)>document.body.offsetWidth) mtips.curX=document.body.offsetWidth-tWidth-30;
//		if ((mtips.curY-tobject.offsetHeight-50)<0) mtips.curY=tobject.offsetHeight+50;
//		tobject.style.left=mtips.curX-tWidth;
//		tobject.style.top=mtips.curY-tobject.offsetHeight-50; 
		tobject.style.visibility='visible';
	};
};

//hide tip
mtips.hide = function (idDivs) {
	mtips.flag=0;
	var tobject=document.getElementById(idDivs);
	tobject.style.visibility='hidden';
};

//inicial tip
mtips.preparation = function (idDivs) {
	if (!mtips.flag) {
		mtips.flag=1;
		mtips.temp=idDivs;
		setTimeout("mtips.show(mtips.temp);",2000);
	};
};

/*********************************************
END
*********************************************/