Obj1 = null;
function view(Obj) {
  if (document.getElementById) {
    disable();
    Obj1 = null;
    for (var i=0;i<Obj.parentNode.childNodes.length;i++) {
      if (Obj.parentNode.childNodes[i].nodeType == 1 && Obj.parentNode.childNodes[i].nodeName == "UL") {
        Obj1 = Obj.parentNode.childNodes[i];
      }
    }
    if (Obj1) {
      Obj2 = document.getElementById("NavH");
      Obj3 = document.getElementById("Rahmen");
      Obj1.style.height = "auto";
      
      if (navigator.appName == "Netscape" ||
          navigator.appName == "Opera") {
        if (navigator.appVersion.indexOf("Safari") > -1)
        {
            //Obj1.style.left = (Obj.offsetLeft - 12) + "px";
            //Obj1.style.top = (Obj2.offsetTop + 36) + "px";
        }
        else
        {
            //Obj1.style.left = (Obj.offsetLeft - 12) + "px";
            //Obj1.style.top = (Obj2.offsetTop + 22) + "px";
        }
      } else {
        if (Obj2.offsetLeft > 0) {
          //Obj1.style.left = (Obj.offsetLeft - 12) + "px";
        } else {
          //Obj1.style.left = (Obj.offsetLeft + Obj2.offsetLeft + Obj3.offsetLeft - 12) + "px";
        }
        if (Obj.offsetTop > Obj2.offsetTop) {
          //Obj1.style.top = (Obj.offsetTop + 33) + "px";
        } else {
          //Obj1.style.top = (Obj.offsetTop + Obj2.offsetTop + 33) + "px";
        }
      }
      //Obj1.style.display = "block";
      Obj1.style.visibility = "visible";
    }
  }
  
  for (var i=0; i < Obj.parentNode.parentNode.childNodes.length; i++){
    Obj.parentNode.parentNode.childNodes[i].firstChild.style.backgroundImage = 'none';
  }
  Obj.style.backgroundImage = 'url(fileadmin/kraemerit/lay/anavhactive.gif)';
  Obj.style.backgroundPosition = 'top left';
  Obj.style.backgroundRepeat = 'repeat-x';

}

function keepover(Obj){
  for (var i=0; i < Obj.parentNode.parentNode.parentNode.parentNode.childNodes.length; i++){
    Obj.parentNode.parentNode.parentNode.parentNode.childNodes[i].firstChild.style.backgroundImage = 'none';
  }
  Obj.parentNode.parentNode.parentNode.firstChild.style.backgroundImage = 'url(fileadmin/kraemerit/lay/anavhactive.gif)';
  Obj.parentNode.parentNode.parentNode.firstChild.style.backgroundPosition = 'top left';
  Obj.parentNode.parentNode.parentNode.firstChild.style.backgroundRepeat = 'repeat-x';
}


function disable() {
  if (Obj1) {
    Obj1.style.visibility="hidden";
    Obj1.style.height = "1px";
    
    for (var i=0; i < Obj1.parentNode.parentNode.childNodes.length; i++){
      Obj1.parentNode.parentNode.childNodes[i].firstChild.style.backgroundImage = '';
    }
  }
}
