<!--
var posX=+35;
var posY=-50;
var allSupport = (document.all!=null || window.sidebar!=null);
var dict_descriptions = new Array();
function getElement(elName) {
	// Get an element from its ID
	if (allSupport) return document.getElementById(elName);
	else return document.layers[elName]
}
function writeContents(el, tip) {
	// Replace the contents of the tooltip
	if (allSupport) el.innerHTML = tip
	else {
		// In NS, insert a table to work around
		// stylesheet rendering bug.
		// NS fails to apply style sheets when writing
		// contents into a positioned element.
		el.document.open()
		el.document.write("<table width='230' cellpadding='3' cellspacing='0'><tr><td width=100% bgcolor=#ced7e7>")
		el.document.write(tip)
		el.document.write("</td></tr></table>")
		el.document.close()
	}
}
function getOffset(el, which) {
	// Function for IE to calculate position
	// of an element.
	var amount = el["offset"+which]
	if (which=="Top") amount+=el.offsetHeight
	el = el.offsetParent
	while (el!=null) {
		amount+=el["offset"+which]
		el = el.offsetParent
	}
	return amount
}
function setPosition(el, src) {
	// Set the position of an element
	//src = window.event.srcElement
	if (allSupport) {
		el.style.pixelTop = getOffset(src, "Top") + posY
		el.style.pixelLeft = getOffset(src, "Left") + posX
		//alert(el.style.pixelTop+','+el.style.pixelLeft);
		//mozilla
		el.style.top = getOffset(src, "Top") + posY + "px";
		el.style.left = getOffset(src, "Left")+ posX + "px";
		// alert(el.style.top);
	}
	else {
		el.top = src.y + 20 + posY
		el.left = src.x + posX
		//alert(el.top);
	}
}
function setVisibility(el, bDisplay) {
	// Hide or show to tip
	if (bDisplay)
		if (allSupport)	el.style.visibility = "visible"
		else el.visibility = "show";
	else if (allSupport) el.style.visibility = "hidden"
		else el.visibility = "hidden"
}
function setVisibility2(el, bDisplay) {
	// Hide or show to tip
	if (bDisplay)
		if (allSupport) el.style.visibility = ""
		else el.visibility = "show";
	else if (allSupport) el.style.visibility = "hidden"
		else el.visibility = "hidden"
}
function getDescriptionFor(tip) {
	if (typeof(dict_descriptions[tip]) == "undefined") {
		return "Keine Beschreibung (" + tip + ") verfügbar.";
	}
	return dict_descriptions[tip];
}
function getContent(code, id) {
	var content;
	content =
	"<table width='220' cellspacing='0' cellpadding='0'  border='0' style='margin:3px;' >" +
	"	<tr>" +
	"		<td  class='hilfe'><b>" + getDescriptionFor("pikto_name_" +id) + "</b></td>" +
	"	</tr>"  +
	"	<tr>" +
	//"		<td ><img src ='" + getDescriptionFor("pikto_image_" + id) + "' /></td>" +
	"		<td class='hilfe'>" + getDescriptionFor("pikto_text_" + id) + "</td>" +
	"	</tr>" +
	"</table>";
	return content;
}
function displayContents(srcObj, code, id) {
	// Display the tooltip.
	var el = getElement("HilfeFenster")
	var content = getContent(code, id);
	writeContents(el, content)
	setPosition(el, srcObj)
	setVisibility(el, true)
}
function hilfe(srcObj, code, id) {
	window.status='Hilfe';
	code = unescape(code);
	if (typeof(dict_descriptions) == "undefined") return;
	code = code.substr(0,code.length);
	displayContents(srcObj, code, id);
	return true;
}
function hilfeOut() {
	window.status='';
	setVisibility(getElement("HilfeFenster"), false);
	return true;
}
//-->