// tooltip rollover functions
ShowTooltip = function(e)
{
	var text = $(this).next('.show-tooltip-text');
	if (text.attr('class') != 'show-tooltip-text')
		return false;
	/*text.show()
		.css('top', 70)
		.css('left', 332);
	$('.tooltip_ins_inner').hide();*/
	$('.tooltip_ins_inner').html(text.html());
	$('.tooltip_ins_inner').show();
	return false;
}


HideTooltip = function(e)
{
	var text = $(this).next('.show-tooltip-text');
	if (text.attr('class') != 'show-tooltip-text')
		return false;
	/*text.hide();*/
	$('.tooltip_ins_inner').hide();
}

SetupTooltips = function()
{
	$('.hero2, .hero')
		.each(function(){
			$(this)
				.after($('<span/>')
					.attr('class', 'show-tooltip-text')
					.html($(this).attr('title')))
				.attr('title', '');
		})
		.hover(ShowTooltip, HideTooltip);
}
$(document).ready(function() {
	SetupTooltips();
});


// hide tooltip on zeros
$(document).ready(function(){
$('.zero')
		.each(function(){
			$(this)
				.after($('<span/>')
					.attr('class', 'show-tooltip-text')
					.html($(this).attr('title')))
				.attr('title', '');
		})
		.hover(HideTooltip);
});
