	function show_tooltip(element, text, isSmall)
	{
		/*
		 * check if iframe and ie
		 */
		shiftLeftIE6 = 0;
		shiftTopIE6 = 0;
		
		/*
		 * small tooltip for gallery and logo
		 */
		
		small = "";
		if (isSmall == true) 
		{
			shiftLeftIE6 = -12;
			small = "smallTooltip";
		}
		
//		if ((this.document.body.offsetHeight != parent.document.body.offsetHeight) && BrowserDetect.browser == "Explorer")
		if ((this.document.body.offsetHeight != parent.document.body.offsetHeight) && browser.isIE)
		{
			shiftLeftIE6 = -24;
			shiftTopIE6 = -20;
		}
		
		// check if alert tooltip
/* 		var tt_alert = false;
		var classTest = $(element).attr('class').split(" ");
		for (var i = 0; i < classTest.length; i++)
		{
			if (classTest[i] == 'tt_alert')
			{
				tt_alert = true;
			}
		} */
		
		var tt_alert = $(element).hasClass('tt_alert');
		
		// check, if IE and tt_alert
		if (browser.isIE && tt_alert)
		{
			shiftTopIE6 = 10;
		}
		
		var offset = $(element).offset({ scroll: false });
		var windowOffset = $(window).height();
		error = '<div class="h '+small+'" style="top:-800px; visibility:hidden;"><div class="head '+small+'">&nbsp;</div><div class="body">' + text + '</div><div class="foot '+small+'">&nbsp;</div></div>';
		
		$('body').append(error);
		
//		if (BrowserDetect.browser == "Explorer" && BrowserDetect.version >= 6)
		if (browser.isIE && browser.versionMajor >= 6)
		{
			this.setTimeout(function(){$(".h").css({ visibility:"visible"});},350);
		}
		else
		{
			$(".h").css({ visibility:"visible"});
		}
		
		var new_height = $('.h').height();
		
		if (((offset.top + shiftTopIE6) - new_height) < '196')
		{
			(tt_alert) ? new_height = -21 : new_height = -15;
			$('div.head').attr('class', 'headReverse '+small);
			$('div.foot').attr('class', 'footReverse '+small);
		}
		
/*		$('.h').css("top", (offset.top + shiftTopIE6) - (new_height+6) +"px");*/
/* 		$('.h').css("top", ((offset.top + shiftTopIE6) - new_height) + "px");
		$('.h').css("left", (offset.left + shiftLeftIE6 - 24) + "px");
		$('.h').css({ zIndex:"120000" }); */
		
		$('.h').css({ top: ((offset.top + shiftTopIE6) - new_height) + "px" , left: (offset.left + shiftLeftIE6 - 24) + "px" , zIndex: "120000" });
		
		// replace tt_alert image...
		if (tt_alert)
		{
			$(element).children("img.tt_alert").attr("src", "typo3conf/ext/go_tooltip/img/btn_alert_over.png");
		}
	}
	
	function hide_tooltip(element)
	{
		$('.h').remove();
		
		// replace tt_alert image...
		if ($(element).children("img.tt_alert") != 'undefined')
		{
			$(element).children("img.tt_alert").attr("src", "typo3conf/ext/go_tooltip/img/btn_alert_default.png");
		}
	}
