var tooltips = new Array();
tooltips['divMenuHome'] = "Click here to return to the home page.";
tooltips['divMenuBlog'] = "Access my blog.";
tooltips['divMenuResume'] = "View my online resume.";
tooltips['divMenuSlackbuilds'] = "Build software using my SlackBuild scripts.";
tooltips['divMenuPackages'] = "Download my available Slackware packages";
tooltips['divMenuGit'] = "Browse my Git repository";
tooltips['divMenuProjects'] = "Learn about my projects.";
tooltips['divMenuBugs'] = "Submit a bug report for the site, a project, etc.";
tooltips['divMenuContact'] = "Contact Me.";

function hiLiteMenu(cell, status) {
	document.getElementById("tooltip").style.visibility="hidden";
	if(status == 1) {
		cell.style.backgroundColor='#D2E7F9';
		cell.style.borderRightColor='#427cbc';
		cell.style.cursor="pointer";
	} else {
		cell.style.backgroundColor='#fff';
		cell.style.borderRightColor='#fff';
		cell.style.cursor="default";
	}
}

function tooltip(event) {
	var target = (event.target) ? event.target : event.srcElement;
	var ttip = document.getElementById("tooltip");

	if(target.className == "menuItem") {
		ttip.style.visibility="visible";
		ttip.style.position="absolute";
		ttip.style.left=(event.pageX+20) + 'px';
		ttip.style.top=(event.pageY+20) + 'px';
		ttip.style.height='17px';
		ttip.style.cursor="pointer";
		ttip.innerHTML=tooltips[target.id];
//		ttip.innerHTML=target.innerHTML.substr(target.innerHTML.lastIndexOf(";") + 1);
//		alert(tooltips['Home']);
	} else {
		ttip.style.visibility="hidden";
	}
}
