function swapImg(next){
        if(act != next){
                document["menu" + next].src = "images/0" + next + "_menu_2.gif";
        }
}

function restoreImg(next){
        if(act != next){
                document["menu" + next].src = "images/0" + next + "_menu_1.gif";
        }
}

function layout2(){
	if(document.getElementById){

                  if(navigator.appName == "Microsoft Internet Explorer") {
                  	document.getElementById('tourdaten').style.height = document.body.offsetHeight - 236;
                  }else{
                  	document.getElementById('tourdaten').style.height = window.innerHeight - 236;
                  }

                  window.clearInterval(i);

         }
}

function layout1(){
	i = setInterval("layout2()",500);
}

function select(next,iframe){
         document["menu" + next].src = "images/0" + next + "_menu_2.gif";

         if (iframe == "yes"){
         	layout1();
         }

         act = next;
}

function init(){
        for (i=0;i<7;i++){
                menuOff[i] = new Image;
                menuOff[i].src = "images/0" + i + "_menu_1.gif";
                menuOn[i] = new Image;
                menuOn[i].src = "images/0" + i + "_menu_2.gif";
        }
        select(1);
}