<!--
    
    // This code has been taken from www.inode.at

  var posX = 10;
  var posY = 1;
  var allSupport = (document.all!=null || window.sidebar!=null);

  var dict_descriptions = new Array();

  var timeout = 0;
  
  function getElement(elName) {
    // Get an element from its ID
    if (allSupport)
      return document.getElementById(elName);
    else
      return document.layers[elName]
  }

  function writeContents(el, tip, widthPopup) {
    // 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="+widthPopup+" BORDER=1 bordercolor=black cellpadding=0 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
    //alert ( getOffset(src, "Left") );
    if ( ( getOffset(src, "Left") + posX ) < 0 )
        posX = posX * -1;
    
    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 + ":" + el.style.left);
    } else
    {
      el.top = src.y + 20 + posY
      el.left = src.x + posX
      //alert(el.top + ":" + el.left);
    }
  }
      
  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 + ") verfgbar.";
	}

	return dict_descriptions[tip];

  }

  function getContent(code, keyword) {
	
	var content;

	content = 
	"<table border='0' cellspacing='0' cellpadding='3' width='100%'>" +
	"	<tr>" +
	"		<td class='dictionaryTitle'>test1</td>" +
	"   </tr>"  +
	"   <tr>" +
	"   	<td class='dictionaryText'>test2</td>" +
	"   </tr>" +
	"   <tr>" +
	"   	<td height='5'><spacer type='block' width='1' height='1'></td>" +
	"   </tr>" +
	"   <tr>" +
	"   	<td class='dictionaryFooter' align='right' bgcolor='#E2DBC4'><a href='#' onClick='nukeTip();' />Fenster schliessen</a></td>" +
//	"   	<td class='dictionaryFooter' align='right' bgcolor='#E2DBC4'>Inode-W&ouml;rterbuch<img src='" + image_path + "dictionary.gif' width='10' height='12' border='0'></td>" +
	"   </tr>" +
	"</table>";

	return content;
  }

  function displayContents(srcObj, tipBox, content, refreshPopup, widthPopup) {
    // Display the tooltip. 
    var el = getElement(tipBox)
    
    if (typeof(content) == "undefined") 
        content = getContent();
    else
        content = getElement ( content ).innerHTML;
    
    writeContents(el, content, widthPopup)
    setPosition(el, srcObj)
    setVisibility(el, true)
    
    if ( typeof(refreshPopup) != "undefined" )
        if ( refreshPopup == false )
            return;
            
    if (timeout) clearTimeout(timeout);
    timeout = setTimeout("nukeTip('" + tipBox + "')", 2500);
  }

  function popup(srcObj, tipBox, content, refreshPopup, widthPopup) {
    if ( typeof(widthPopup) == "undefined" )
        var widthPopup = 700;
        
    displayContents(srcObj, tipBox, content, refreshPopup, widthPopup); 
  }

  function refreshPopup( tipBox ) {
    if (timeout) clearTimeout(timeout);
    timeout = setTimeout("nukeTip('" + tipBox + "')", 2500);
  }
    
  function nukeTip( tipBox ) {
	  setVisibility(getElement( tipBox ), false);
  }
  
  function goFromTip ( url, tipBox ) {
      nukeTip( tipBox );
      window.document.location.href = url;
  }

//-->
