/*
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/dynamicindex5/texttool.htm
*/

if (!document.layers && !document.all && !document.getElementById) {
	event = "not supported";
}

function showtip(current,e,text) {
	if (document.all || document.getElementById) {
		thetitle = text.split('<br>');
		if (thetitle.length > 1){
			var temp_title = '';
			for (var i=0; i < thetitle.length; i++) {
				if (temp_title != '') {
					temp_title += '\n\r';	// doesn't quite work in NS7...
				}
				temp_title += thetitle[i];
			}
			current.title = temp_title;
		} else {
			current.title = text;
		}
	} else if (document.layers) {
		document.tooltip.document.write('<layer bgColor="#FFFF80" style="border:1px solid black;font-size:12px;">'+text+'</layer>');
		document.tooltip.document.close();
		document.tooltip.left = e.pageX+5;
		document.tooltip.top = e.pageY+5;
		document.tooltip.visibility = "show";
	}
}

function hidetip() {
	if (document.layers) {
		document.tooltip.visibility = "hidden";
	}
}
