// JavaScript Document
// Copyright © 2007 Stefan NICOLAE
// This script is the intelectual property of Stefan NICOLAE a.k.a. shakabut
// You can use it anyway you want as long as you leave this copyright intact
// and you send me an e-mail. You'll probably find the latest version on my site: http://www.shakabut.com
// 
// This script uses jQuery (you'll find the latest version on http://www.jquery.com)
							
// THIS SCRIPT IS NOT FOR COMMERCIAL USE.

$(document).ready(function() {		
	 //$('[@title!=""]').addClass('red');
	  $('<div id="tooltipDiv"></div>').prependTo('body');
	  $('[@title!=""]').hover(function() {
		$('div#tooltipDiv').html($(this).attr("title")); 
		$(this).attr("title","");
		$(this).attr("alt","");
		$(this).children().attr("alt","");
		$(this).css("cursor","pointer");
		//$('div#tooltipDiv').show("fast");
		$('div#tooltipDiv').css("display","block");
		$().mousemove(function(e){
     		$('div#tooltipDiv').css("left" , e.pageX+15 );
			$('div#tooltipDiv').css("top" , e.pageY+10 );
   }); 
	  }
	  , function() {	
		$(this).attr("title",$('div#tooltipDiv').html());
		$('div#tooltipDiv').css("display","none");
		//$('div#tooltipDiv').hide("fast");
	  });	  
});


