//Verschiedene Scripts - 2003, mr

function sidepop(img){
    var sidepop;
    sidepop = window.open('sidepop.php?'+img,'sidepop','width=100,height=100,top=0,left=0,scrollbars=yes,resizable=yes');
    sidepop.focus();
}



// Copyright © 1999 Doug Popeney

if (navigator.appVersion.indexOf("2.") != -1){
        check = true;
        }
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
        check = true;
        }
else {
        check = true;
        }
if (check == true){


        news = new Image();
        news.src = "images/menu/news_no.gif";
        newson = new Image();
        newson.src = "images/menu/news_hi.gif";

        wirueberuns = new Image();
        wirueberuns.src = "images/menu/wirueberuns_no.gif";
        wirueberunson = new Image();
        wirueberunson.src = "images/menu/wirueberuns_hi.gif";

        hotel = new Image();
        hotel.src = "images/menu/hotel_no.gif";
        hotelon = new Image();
        hotelon.src = "images/menu/hotel_hi.gif";

        restaurant = new Image();
        restaurant.src = "images/menu/restaurant_no.gif";
        restauranton = new Image();
        restauranton.src = "images/menu/restaurant_hi.gif";

        partyservice = new Image();
        partyservice.src = "images/menu/partyservice_no.gif";
        partyserviceon = new Image();
        partyserviceon.src = "images/menu/partyservice_hi.gif";

        umgebung = new Image();
        umgebung.src = "images/menu/umgebung_no.gif";
        umgebungon = new Image();
        umgebungon.src = "images/menu/umgebung_hi.gif";

        kontakt = new Image();
        kontakt.src = "images/menu/kontakt_no.gif";
        kontakton = new Image();
        kontakton.src = "images/menu/kontakt_hi.gif";

        prospekt = new Image();
        prospekt.src = "images/menu/prospekt_no.gif";
        prospekton = new Image();
        prospekton.src = "images/menu/prospekt_hi.gif";
		
}

imageStay = ""

function imageon(name){
        if (imageStay != name){
                document[name].src = eval(name + "on.src");
        }
}
function imageoff(name){
        if (imageStay != name){
                document[name].src = eval(name + ".src");
        }
}

function on(name){
        if (check == true){
        imageon(name);
        }
}


function off(name){
        if (check == true){
        imageoff(name);
        }
}

function stay(name){
        if (check == true){
        document[name].src = eval(name + "on.src");
        if (imageStay != name){
                if (imageStay != ""){
                        document[imageStay].src = eval(imageStay + ".src");
                }
        }
        imageStay = name
        }

}

