function init_tooltip() {
		
	// Does element exist ?.

	if(!$('.tooltip').length){
	
		// If not then exit
		return
	}
	
	// Insert tooltip (hidden).
	
	$('body').append('<div id="tooltip_outer"><div id="tooltip_inner"></div></div>');
	
	// Empty variables.
	var tt_title, tt_alt;
	
	var tt = $('#tooltip_outer');
	var tt_i = $('#tooltip_inner');
	
	// Watch for hover
	
	$('.tooltip').hover(function(){
	
		tt_i.html('');
		
		//#####################################################################
		//###  Detection du parent pour savoir quel background mettre  ########
		
		current_tagname = $(this).get(0).tagName;
		
		if(current_tagname == 'TD' && $(this).attr('title') != '')
		{
			tt.css('background-color',$(this).css('background-color'));
		}
		else if($(this).attr('title') != '')
		{
			tt.css('background-color','#2572B2');
		}
		
		//#####################################################################
		
		// Store title and emtpy it
		
		if($(this).attr('title') != '') {
			tt_title = $(this).attr('title');
			$(this).attr('title', '');
		}
		
		// Store alt and emtpy it
		
		if($(this).attr('alt')) {
			tt_alt = $(this).attr('alt');
			$(this).attr('alt', '');
		}
		
		// Insert text
		
		tt_i.html(tt_title);
		
		// Show tool tip
		if(tt_i.html != '')
		{
			tt.stop(true, true).fadeIn(350);
		}
	},
	function() {
	
		// Hide tool tip
		tt.hide();
			
		// Empty text
		
		tt_i.html('');
	
		// Fix title
		
		if (tt_title) {
			$(this).attr('title', tt_title);
		}
		
		// Fix alt
		
		/*if (tt_alt) {
			$(this).attr('alt', tt_alt);
		}*/
		
		
	}).mousemove(function(ev) {
	
		// Event coordinates
		var ev_x = ev.pageX;
		var ev_y = ev.pageY;
		
		// Tooltip coordinates
		var tt_x = tt.outerWidth();
		var tt_y = tt.outerHeight();
		
		// Body coordinates
		var bd_x = $('body').outerWidth();
		var bd_y = $('body').outerHeight();
		
		// Move tool tip
		
		tt.css({
			'top': ev_y + tt_y > bd_y ? ev_y - tt_y : ev_y,
			'left': ev_x + tt_x > bd_x ? ev_x - tt_x - 10 : ev_x + 15
		});
	});

}
