function getToolTip(sImage, bWobble, sText, sClass)
{
	/*
	if (sContent.length > 100)
	{
		sContent = sContent.substr(0, 20) + '...';
	}
	*/
	if (!sImage)
	{
		sImage = sImagePath + 'tooltip/wobble-figur-1-x59y90.gif';
	}
    
	var aResult = new Array();
	var sHtml = '';

	if (bWobble)
	{
		var aFlashParam = new Array();
		aFlashParam[0] = sImage;
		aFlashParam[1] = 'tooltip';
		aResult[3]  = true;
		aResult[4]  = aFlashParam;
	}

	sImage = '<img src="' + sImage + '" alt="" />';

	sHtml += '<div id="tooltip"';

	if (sClass)
	{
		sHtml += ' class="' + sClass + '"';
	}

	sHtml += '>';
	sHtml += '<div id="tooltip-image">';
	sHtml += sImage;
	sHtml += '</div>';
/*
	if (sText)
	{
		sHtml += '<table id="tooltip-text"><tr><td>' + sText + '</td></tr></table>';
	}
*/
	sHtml += '</div>';

    aResult[0]  = sHtml;
	aResult[1]  = 0; //Width
	aResult[2]  = 0; //Height
    return aResult;
}

function getToolTipText(sText, sClass)
{
	var aResult = new Array();
	var sHtml = '';

	sHtml += '<div id="tooltip"';

	if (sClass)
	{
		sHtml += ' class="' + sClass + '"';
	}

	sHtml += '>';
	sHtml += '<div id="tooltip-text">';
	sHtml += sText;
	sHtml += '</div>';
	sHtml += '</div>';

    aResult[0]  = sHtml;
	aResult[1]  = 0; //Width
	aResult[2]  = 0; //Height
    return aResult;
}

function startFlash(aParam)
{
	var oFlash = new SWFObject(sImagePath + '/flash/wooble.swf', 'tooltip-flash', 224, 161, 7);
	oFlash.addVariable('sSourceImage', aParam[0]);
	oFlash.addParam('wmode', 'transparent');
	oFlash.write(aParam[1]);
}

function showText(oElement, sText)
{
	if (document.getElementById('showText'))
	{
		Element.remove($('showText'));
	}

	var objTextContainer = document.createElement("div");
	objTextContainer.setAttribute('id','showText');
	objTextContainer.innerHTML = sText;
	oElement.appendChild(objTextContainer);
}

function deleteText(oElement)
{
	//oElement.removeChild($('showText')); sb 27.03.2008: Flimmern des Divs
}

function showMenuTooltip(sText)
{
	if (!oBrowser.isExplorer)
	{
		oToolTip.show(sText,15,15);
	}
	else
	{
		oToolTip.show(sText,589,15);
	}
}

function showContinueTooltip(sText)
{
	if (!oBrowser.isExplorer)
	{
		oToolTip.show(sText,15,15);
	}
	else
	{
		oToolTip.show(sText,629,60);
	}
}
