function toggleToolTip(el, show)
{
	if(show)
	{
		Element.addClassName(el,'showToolTip');
		el.onmousemove=mousepositionLeft;
	}
	else
	{
		Element.removeClassName(el,'showToolTip');
	}
}


function mouseposition(e)
{
	if(e == null)
	{
		var x = window.event.screenX;
		var y = window.event.screenY;
	}
	else
	{
		var x = e.pageX;
		var y = e.pageY;
		var moveDiv = 'toolTip' + this.id;
		$(moveDiv).style.top = y + 15 + 'px';
		$(moveDiv).style.left = x + 15 + 'px';
	}
	
}

function mousepositionLeft(e)
{
	if (!e) var e = window.event;

	if(e == null)
	{
		var x = window.event.screenX;
		var y = window.event.screenY;
	}
	else
	{
		var screenMitte 		= screen.width/2;
		var screenMitteRechts 	= screenMitte+150;
		
		var x 		= mouseX(e);
		var y 		= mouseY(e);
		var moveDiv = 'toolTip' + this.id;
		
		//rechts produktdarstellungsblock
		if(x>screenMitteRechts)
		{
			var breiteDiv	      = $(moveDiv).offsetWidth;
			
			$(moveDiv).style.top  = y + 15 + 'px';
			$(moveDiv).style.left = x - 10 - breiteDiv + 'px';			
		}
		//links produktdarstellungsblock
		else
		{
			$(moveDiv).style.top  = y + 15 + 'px';
			$(moveDiv).style.left = x + 15 + 'px';			
		}
		
	}
	
}

