<!--
  var posX=20;
  var posY=-13;
  var allSupport = (document.all!=null || window.sidebar!=null);

  var dict_descriptions = new Array();
  var image_path = "/images/";

  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=300 BORDER=1 bordercolor=black cellpadding=0 cellspacing=0><TR><TD WIDTH=100% BGCOLOR=#F2F7D4>")
      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);
	  //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 getDescriptionFor(tip) {


	if (typeof(dict_descriptions[tip]) == "undefined") {
		return "Keine Beschreibung (" + tip + ") verfügbar.";
	}

	return dict_descriptions[tip];

  }

  function getContent(code, keyword) {

	var content;

	content =
	"<table border='0' cellspacing='0' cellpadding='3'>" +
	"	<tr>" +
	"		<td class='dictionaryTitle'>" + keyword + "</td>" +
	"   </tr>"  +
	"   <tr>" +
	"   	<td class='dictionaryText'>" + getDescriptionFor(code) + "</td>" +
	"   </tr>" +
	"   <tr>" +
	"   	<td height='5'><spacer type='block' width='1' height='1'></td>" +
	"   </tr>" +
	"</table>";

	return content;


  }

  function displayContents(srcObj, code, keyword) {
    // Display the tooltip.
    var el = getElement("tipBox")
	var content = getContent(code, keyword);
    writeContents(el, content)
    setPosition(el, srcObj)
    setVisibility(el, true)
  }

  function tip(srcObj, code, keyword) {

		code = unescape(code);
		if (typeof(dict_descriptions) == "undefined") return;
		//window.alert("check 2");
		displayContents(srcObj, code, keyword);
  }

  function nukeTip() {
	  setVisibility(getElement("tipBox"), false);
  }

//-->