/*
Text Link/Image Map Tooltip Script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, and 100's more DHTML scripts
Visit http://www.dynamicdrive.com
*/

/////////////////////////////////////////////////////////////////////
// Displays a tool tip.
// 1. If the index value is a number the tool tip will come from an array.
// 2. If the index value is a string, it is the tool tip.
/////////////////////////////////////////////////////////////////////
function showTip(current,e,index) {
	var text;
	var aCertificate;
	var iCategory;
			
	if (isNaN(index)) {
		text = index;
	} else {
		text = "Click here to go to the " + m_asCertificate[index] + " section.";
	}
			
	if (document.all||document.getElementById) {
		thetitle=text.split('<br>');
		if (thetitle.length>1) {
			thetitles='';
			for (i=0;i<thetitle.length;i++) {
				thetitles+=thetitle[i];
			}
			current.title=thetitles;
		} else {
			current.title=text;
		}
	}	else if (document.layers) {
		document.divTooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
		document.divTooltip.document.close()
		document.divTooltip.left=e.pageX+5
		document.divTooltip.top=e.pageY+5
		document.divTooltip.visibility="show"
	}
}

/////////////////////////////////////////////////////////////////////
// Hides the tool tip.
/////////////////////////////////////////////////////////////////////
function hideTip(){
	if (document.layers) {
		document.divTooltip.visibility="hidden";
	}
}

