var ie= ((document.all)&&(!document.layers)) ? true : false;
var ns= ((document.layers)&&(!document.getElementById)) ? true : false;
var moz= ((document.getElementById)&&(!document.all)) ? true : false;

function show(div){
if(ie) {document.all[div].style.visibility="visible";}
if(ns) {document.layers[div].visibility="show";}
if(moz) {document.getElementById(div).style.visibility="visible";}
}

function hide(div){
if(ie) (document.all[div].style.visibility="hidden")
if(ns) (document.layers[div].visibility="hide")
if(moz) (document.getElementById(div).style.visibility="hidden")
}

var hideMenue = null;

function setTopOn() {
hideMenue=setTimeout('hideAll()',0)
}

function setTopOff() {
clearTimeout(hideMenue);
hideAll();
}

function setOn() {
hideMenue=setTimeout('hideAll()',0)
}

function setOff() {
clearTimeout(hideMenue);
}

function hideAll(){
hide('m1');
hide('m2');
hide('m3');
}
Normal1 = new Image();
Normal1.src = "wp-content/themes/iam/images/startseite.gif";     
Highlight1 = new Image();
Highlight1.src = "wp-content/themes/iam/images/startseite-mo.gif";

Normal2 = new Image();
Normal2.src = "wp-content/themes/iam/images/beratung.gif";     
Highlight2 = new Image();
Highlight2.src = "wp-content/themes/iam/images/beratung-mo.gif";

Normal3 = new Image();
Normal3.src = "wp-content/themes/iam/images/referenzen.gif";     
Highlight3 = new Image();
Highlight3.src = "wp-content/themes/iam/images/referenzen-mo.gif";

Normal4 = new Image();
Normal4.src = "wp-content/themes/iam/images/ueberuns.gif";     
Highlight4 = new Image();
Highlight4.src = "wp-content/themes/iam/images/ueberuns-mo.gif";

Normal5 = new Image();
Normal5.src = "wp-content/themes/iam/images/verweise.gif";     
Highlight5 = new Image();
Highlight5.src = "wp-content/themes/iam/images/verweise-mo.gif";

Normal6 = new Image();
Normal6.src = "wp-content/themes/iam/images/kontakt.gif";     
Highlight6 = new Image();
Highlight6.src = "wp-content/themes/iam/images/kontakt-mo.gif";

Normal7 = new Image();
Normal7.src = "wp-content/themes/iam/images/seminare.gif";     
Highlight7 = new Image();
Highlight7.src = "wp-content/themes/iam/images/seminare-mo.gif";

Normal8 = new Image();
Normal8.src = "wp-content/themes/iam/images/impressum.gif";     
Highlight8 = new Image();
Highlight8.src = "wp-content/themes/iam/images/impressum-mo.gif";

function Bildwechsel (Bildnr, Bildobjekt) {
  window.document.images[Bildnr].src = Bildobjekt.src;
}
/*SCROLLEN*/
function ScrollUp() { 
  iframe.scrollBy(0,-3);
}
function StartScrollUp() { 
  ScrollAction = window.setInterval("ScrollUp()", 10);
}
function ScrollDown() { 
  iframe.scrollBy(0,3);
}
function StartScrollDown() { 
  ScrollAction = window.setInterval("ScrollDown()", 10);
}
function StopScroll() { 
  window.clearInterval(ScrollAction);
}
