// JavaScript Document


ShowTooltip = function(e)
{
	var text = $(this).next('.show-tooltip');
	if (text.attr('class') != 'show-tooltip')
		return false;
 
	text.fadeIn()
		.css('top', e.pageY)
		.css('left', e.pageX+10);
 
	return false;
}
HideTooltip = function(e)
{
	var text = $(this).next('.show-tooltip');
	if (text.attr('class') != 'show-tooltip')
		return false;
 
	text.fadeOut();
}
 
SetupTooltips = function()
{
	$('.show-tooltip')
		.each(function(){
			$(this)
				.after($('<span/>')
					.attr('class', 'show-tooltip')
					.html($(this).attr('alt')))
				.attr('alt', '');
		})
		.hover(ShowTooltip, HideTooltip);
}
 
$(document).ready(function() {
	SetupTooltips();
});
 

