/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 


this.kbc_tooltip = function(){	
	/* CONFIG */		
		xOffset2 = -10;
		yOffset2 = 10;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	jQuery(".kbc_tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		jQuery("body").append("<div id='kbc_tooltip'>"+ this.t +"</div>");
		jQuery("#kbc_tooltip")
			.css("top",(e.pageY - xOffset2) + "px")
			.css("left",(e.pageX + yOffset2) + "px")
			.show(200);		
    },
	function(){
		this.title = this.t;
                jQuery("#kbc_tooltip").remove();               
                               
		
    });	
	jQuery(".kbc_tooltip").mousemove(function(e){
		jQuery("#kbc_tooltip")
			.css("top",(e.pageY - xOffset2) + "px")
			.css("left",(e.pageX + yOffset2) + "px");
	});			
};



// starting the script on page load
jQuery(document).ready(function(){
	kbc_tooltip();
});
