// JavaScript Document

function addHoverTo(itemId,hozpoz,vertpoz)
{
	$("#hoverTitle").text($("dt .proj" + itemId).text());
	posn = $("dt .proj" + itemId).position();
	if(hozpoz<233)
	{
		// show to right
		hozpoz = hozpoz+12;
	}else{
		hozpoz = hozpoz-232;
	}
	// get height of the hovertext box
	hgt = $("#hoverTitle").height();
	if(vertpoz+hgt>280)
	{
		// text would be off bottom of screen, so move up
		vertpoz = 280 - hgt;
	}
	
	$("#hoverTitle").css({'top':vertpoz+'px','left':hozpoz+'px'});
	$("#hoverTitle").show();
}
