jQuery(document).ready(function() {

	// Set animation to show title of links with class hoverLink
	jQuery('a.leftMenuHoverLink').hover(function(e){showLeftMenuHoverText(this.hoverText);},function(){hideLeftMenuHoverText();});

	// Remove title so that tooltip does not display
	jQuery('a.leftMenuHoverLink').attr("title","");

	function showLeftMenuHoverText(text) {
		if (  typeof(jQuery) == "undefined" ) return; // This should not be needed but for some reason it is
		while ( jQuery("#leftMenuHoverInfo").queue().length ) { jQuery("#leftMenuHoverInfo").stop(true, true); }
		jQuery("#leftMenuHoverInfo").css({'display':'none'});
		jQuery("#leftMenuHoverInfo").text(text);
		jQuery("#leftMenuHoverInfo").fadeIn("fast");
	}

	function hideLeftMenuHoverText() {
		if (  typeof(jQuery) == "undefined" ) return; // This should not be needed but for some reason it is
		while ( jQuery("#leftMenuHoverInfo").queue().length ) { jQuery("#leftMenuHoverInfo").stop(true, true); }
		jQuery("#leftMenuHoverInfo").css({'display':'none'});
	}
});
