if(window.navigator.systemLanguage && !window.navigator.language) {
  function hoverIE() {
    var LI = document.getElementById("navigation").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;
}

function changeDlSel(imSrc, color) {
 	document.getElementById('dlShapes').src = "layout/dlShapes/" + imSrc;
	document.getElementById('dlDescriptions').style.borderColor = color;
}

function changeDlToDef() {
  	document.getElementById('dlShapes').src = "layout/dlShapes/default.gif";
	document.getElementById('dlDescriptions').style.borderColor = '#AFAFAF';	
}

function changeRefPhoto(imSrc) {
	document.getElementById('photolayer').style.visibility = "visible";
 	document.getElementById('photo').src = imSrc;
 	document.getElementById('photoframe').style.visibility = "visible";
}

function closePhotolayer() {
 	document.getElementById('photolayer').style.visibility = "hidden";
 	document.getElementById('photoframe').style.visibility = "hidden";
}


function unmaskEmail(mailadr, maildom) {
	document.write('<img src="layout/email.gif" alt="E-Mail schreiben an: " border="0"> <a href="mailto:'+mailadr+'@'+maildom+'">'+mailadr+'@'+maildom+'</a>');
}


