var J = jQuery.noConflict();

J(document).ready(function() {

   J('.foot-icon a').children("img").height('36px').width('41px');
   J('.foot-icon a').hover(function() {
   
      J('#footnavi2').animate({'paddingTop': '0px'},{duration: "fast", queue: false} );
      J(this).children("img").animate({    
         'height': '54px',
         'width': '62px'
      }, {duration: "fast", queue: false} );      
   }, function() {
      J('#footnavi2').animate({'paddingTop': '0px'},{duration: "fast", queue: false} );
      J(this).children("img").animate({
         'height': '36px',
         'width': '41px'
      }, {duration: "fast", queue: false});      
   });   
});

this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	J("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		J("body").append("<p id='tooltip'>"+ this.t +"</p>");
		J("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		J("#tooltip").remove();
    });	
	J("a.tooltip").mousemove(function(e){
		J("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

// starting the script on page load
J(document).ready(function(){
	tooltip();
});