/**
 * jq_toolTip Jan 2011 Version 1.0
 * Maritta Sturt
 * Copyright (c) M. Sturt 
 */
	
	
var text_tip;

$(function() {

	var offsetX = -200;
	var offsetY = -10;
	
	$('img.tip, input.tip, div.tip').unbind();
	
	$('img.tip, input.tip, div.tip').bind({
	  mouseover: function() {
		
		text_tip = $(this).attr('alt');
		$(this).removeAttr('alt');
		$('div#tool_tip').html(text_tip);

		$('div#tool_tip').css('display','block');
		
		if ( $(this).attr('id') == 'artist' ) {
			offsetY = 30;
			offsetX = -200;
			$('div#tool_tip').css({'background':'none', 'line-height': '12px'});
		}
		else if ( $(this).parents('#social').attr('id') == 'social' ) {
			offsetY = -30;
			offsetX = 20;
			$('div#tool_tip').css({'background':'#000 url(images/anim_heart.gif) no-repeat 90% 0%', 'line-height': '20px'});  
		}
		else if ( $(this).attr('id') == 'pp' ) {
			offsetY = -10;
			offsetX = 100;
			$('div#tool_tip').css({'background':'none', 'line-height': '12px'});
		}	
		else  {
			offsetY = -10;
			offsetX = -200;
			$('div#tool_tip').css({'background':'none', 'line-height': '12px'});
		}	
	  },
	  mouseout: function() {
		$('div#tool_tip').css('display','none');
		$(this).attr('alt', text_tip);
	  },
	  mousemove: function(e) {
		$("div#tool_tip").css('top', e.pageY + offsetY).css('left', e.pageX + offsetX);
	  }
	});
		
});//function
