/* * Tooltip script * powered by jQuery (http://www.jquery.com) * * originally written by Alen Grakalic (http://cssglobe.com) * modified by Daniel Sokoll (http://www.medienpark.net) */this.ToolTip = function(tip){	/* CONFIG */		xOffset = 75;		yOffset = 120;		// these 2 variable determine popup's distance from the cursor		// you might want to adjust to get the right result	/* END CONFIG */	if(!tip)	{    tip = 'ToolTip';	}	$("." + tip).hover(function(e){	  this.backup = this.title;	  this.t = this.title.split('::');		this.title = "";		$("body").append("<div id='ToolTip' class='tool-tip' style='position: absolute; top: 478px; left: 932px; display:none;'>" +         "<div>" +          "<div class='tool-title'>" +             "<span>" + this.t[0] + "</span>" +           "</div>" +           "<div class='tool-text'>" +             "<span>" + this.t[1] + "</span>" +          "</div>" +        "</div>" +      "</div>");		$("#ToolTip")			.css("top",(e.pageY - xOffset) + "px")			.css("left",(e.pageX - yOffset) + "px")			.fadeIn("fast");    },	function(){		this.title = this.backup;		$("#ToolTip").remove();	    });	$("." + tip).mousemove(function(e){		$("#ToolTip")			.css("top",(e.pageY - xOffset) + "px")			.css("left",(e.pageX - yOffset) + "px");	});};// starting the script on page load$(document).ready(function(){	ToolTip();});