jQuery(function($) {


var timer;
function mouseoverActiontooltip(event)
{
	 if(this.name){this.toolTipText = this.name; this.name='';}
	 var toolTipTextArray=this.toolTipText.split("|");
     $("body").append("<p id='tooltip'><strong>"+ toolTipTextArray[0] + "</strong><br />" + toolTipTextArray[1] + "</p>");
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 10) + "px");
}

function mouseoutActiontooltip(event)
{
     $("#tooltip").remove();
}

function mousemoveActiontooltip(event)
{
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 10) + "px");
}

function mouseoverActiontooltipImage(event)

{
	 if(this.name){this.bildSrc = this.name; this.name='';}
     $("body").append("<p id='tooltip'><img src="+ this.bildSrc + "></img></p>");
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 10) + "px");
}

function mouseoutActiontooltipImage(event)
{
     $("#tooltip").remove();
}

function mousemoveActiontooltipImage(event)
{
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 10) + "px");
}


		$('.tooltip').bind('mouseover', mouseoverActiontooltip);
		
		$('.tooltip').bind('mouseout', mouseoutActiontooltip);
		
		$('.tooltip').bind('mousemove', mousemoveActiontooltip);
		
		$('.tooltipImage').bind('mouseover', mouseoverActiontooltipImage);
		
		$('.tooltipImage').bind('mouseout', mouseoutActiontooltipImage);
		
		$('.tooltipImage').bind('mousemove', mousemoveActiontooltipImage);


});



