
/* Navigation */

/*
old drop down version... problem in ie with li
*/
jkHover = function()
{
	var jkElement = document.getElementById("top_menue").getElementsByTagName("li")
	for ( var i=0; i<jkElement.length; i++ )
	{
		jkElement[i].onmouseover = function()
		{
			this.className+=" jkhover";
		}
		
		jkElement[i].onmouseout = function()
		{
			this.className = this.className.replace(new RegExp(" jkhover\\b"), "");
		}
		
	}
}

if ( window.attachEvent )
 window.attachEvent("onload", jkHover);


/* *** Picture View *** */
/* v1
function jkShowPicture(jkPicture)
{
	document.getElementById("div_picView").innerHTML = "<img src=\"" + jkPicture + "\" alt=\"\" />";
}

function jkHidePicture()
{
	document.getElementById("div_picView").innerHTML = "";
}
*/

/* good, but not run with ie6 :-(
if ( window.navigator.systemLanguage && !window.navigator.language )
{

  function hoverIE()
	{
    var LI = document.getElementById("top_menue").firstChild;
    do {
      if (sucheUL(LI.firstChild)) {
        LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
      }
      LI = LI.nextSibling;
    }
    while(LI);
  }

  function sucheUL(UL) {
    do {
      if(UL) UL = UL.nextSibling;
      if(UL && UL.nodeName == "UL") return UL;
    }
    while(UL);
    return false;
  }

  function einblenden() {
    var UL = sucheUL(this.firstChild);
    UL.style.display = "block"; UL.style.backgroundColor = "silver";
  }
  function ausblenden() {
    sucheUL(this.firstChild).style.display = "none";
  }

  window.onload=hoverIE;
}
*/

