var states = ['mout', 'mover', 'mdown'],
MENU_ITEMS0 = [
        [wrap_root('Hotel', '0', '1'), 'rundgang.php',
                //text hauptnavid unavid
                [wrap_child('Rundgang', '0', '2'), 'rundgang.php'],
                [wrap_child('Leistungen', '0', '3'), 'leistungen.php'],
                [wrap_child('Team', '0', '4'), 'team.php'],
                [wrap_child('Unsere Werte', '0', '5'), 'werte.php'],
                [wrap_child('Geschichte', '0', '6'), 'geschichte.php'],
                [wrap_child('Broschüre Download', '0', '7'), 'broschuere.php'],
                [wrap_child('Lage / Anfahrt', '0', '8'), 'anfahrt.php'],
                [wrap_child('Foto-Galerie', '0', '9'), 'fotoalbum.php']
        ], //Rundgang, Leistungen, Team, Unsere Werte, Geschichte, Broschüre Download, Lage/Anfahrt
        [wrap_root('Zimmer/Preise', '1', '1'), 'preise.php',
                [wrap_child('Zimmer und Preise 2010', '1', '2'), 'preise.php'],
                //[wrap_child('Zimmer und Preise 2009', '1', '3'), 'preise1.php'],
                [wrap_child('Infos zum Zimmerpreis', '1', '4'), 'infos_zimmer.php'],
                [wrap_child('Preisliste (PDF)', '1', '5'), 'preisliste.php'],
                [wrap_child('Langbucher-Rabatt', '1', '6'), 'rabatt.php'],
                [wrap_child('Rezeptions-Team', '1', '7'), 'rezeptions_team.php'],
                [wrap_child('Etagen-Team', '1', '8'), 'etagen_team.php']
        ], //Zimmer und Preise 2008, Zimmer und Preise 2009 (sobald neue Preise vorhanden), Infos zum Zimmerpreis, Preisliste Download,  Langbucher-Rabatt, Etagen-Team
        [wrap_root('Pauschalen', '2', '1'), 'pauschalen.php',
                [wrap_child('Pauschalen 2010', '2', '1'), 'pauschalen.php']
                //[wrap_child('Pre Medical Active Wochen', '2', '2'), 'pre_medical_active_wochen.php'],
                //[wrap_child('Pauschalen 2009', '2', '3'), 'pauschalen1.php']
        ],//Pauschalen 2008, Pauschalen 2009
        [wrap_root('Schrothkur', '3', '1'), 'wie_schrothkur.php',
                [wrap_child('Wie geht Schrothkur?', '3', '2'), 'wie_schrothkur.php'],
                [wrap_child('Warum Schrothkur?', '3', '3'), 'warum_schrothkur.php'],
                [wrap_child('Schroth-Pauschalen', '3', '4'), 'schrothkur_pauschalen.php'],
                [wrap_child('Schrothkur-Team', '3', '5'), 'schrothkur_team.php'],
                [wrap_child('Tipps zur Kur', '3', '6'), 'tipps_schrothkur.php'],
                [wrap_child('Schrothkur-Bücher', '3', '7'), 'schrothkur_buecher.php'],
                [wrap_child('Schrothkur-Film', '3', '8'), 'schrothkur_film.php'],
                [wrap_child('Schrothkur-Flyer', '3', '9'), 'schrothkur_flyer.php']
        ],//Wie geht Schrothkur?, Warum Schrothkur?, Schroth-Pauschalen, Schrothkur-Team, Tipps zur Kur, Schrothkur-Bücher, Schrothkur-Film, Schrothkur-Flyer
        [wrap_root('Halbpension', '4', '1'), 'halbpension.php',
                [wrap_child('Halbpension', '4', '2'), 'halbpension.php'],
                [wrap_child('Gasträume', '4', '3'), 'gastraeume.php'],
                [wrap_child('Küchenchef', '4', '4'), 'kuechenchef.php']
        ],//Halbpension, Gasträume, Küchenchef
        [wrap_root('Wellness', '5', '1'), 'wellness.php',
                [wrap_child('Wellness-Angebote', '5', '2'), 'wellness.php'],
                [wrap_child('Wellness-Preisliste', '5', '3'), 'wellness_preisliste.php'],
                [wrap_child('Hallenbad und Saunen', '5', '4'), 'hallenbad_sauna.php'],
                [wrap_child('Wellness-Team', '5', '5'), 'wellness_team.php']
        ],//Wellness-Angebote, Wellness-Preisliste, Hallenbad und Saunen, Wellness-Team
        [wrap_root('Aktuell', '6', '1'), 'aktuelles.php',
                [wrap_child('Aktuelles', '6', '2'), 'aktuelles.php'],
                [wrap_child('Wochenprogramm', '6', '3'), 'wochenprogramm.php'],
                [wrap_child('Tagespost', '6', '4'), 'tagespost.php'],
                [wrap_child('Newsletter', '6', '5'), 'newsletter.php'],
                [wrap_child('Fotoalbum', '6', '6'), 'fotoalbum.php']
        ],//Aktuelles, Wochenprogramm, Tagespost, Newsletter, Fotoalbum
        [wrap_root('Natur/Aktiv', '7', '1'), 'aktiv_angebot.php',
                [wrap_child('Aktiv-Angebot', '7', '2'), 'aktiv_angebot.php'],
                [wrap_child('Oberstaufen', '7', '3'), 'oberstaufen.php'],
                [wrap_child('Ausflüge Umgebung', '7', '4'), 'ausfluege.php'],
                [wrap_child('Kultur und Heimat', '7', '5'), 'kultur.php']
        ], //Aktiv-Angebote, Oberstaufen, Ausflüge Umgebung, Kultur und Heimat
        [wrap_root('Golf & Ski gratis', '8', '1'), 'golf.php',
                [wrap_child('Oberstaufen PLUS GOLF', '8', '2'), 'golf.php']
        ],
        [wrap_root('Kontakt', '9', '1'), 'kontakt.php',
                [wrap_child('Kontakt / Anfrage', '9', '2'), 'kontakt.php'],
                [wrap_child('Lage / Anfahrt', '9', '3'), 'anfahrt.php'],
                [wrap_child('Broschüre Download', '9', '4'), 'broschuere.php'],
                [wrap_child('Preisliste Download', '9', '5'), 'preisliste.php'],
                [wrap_child('Impressum', '9', '6'), 'impressum.php']
        ]//Kontakt/Anfrage, Lage/Anfahrt, Broschüre Download, Preisliste Download, Impressum
]

function wrap_child (text, c, id) {
        var navtext = '&nbsp;&nbsp;' + text + '&nbsp;&nbsp;';
        if((unavid == id)&&(c == navid)){
          navtext = '<table vspace="0" hspace="0" class=oversaba height=100% cellpadding=0 cellspacing=0 border=0 width=100%><tr><td valign=middle align=left>' + navtext + '</td></tr></table>';
        }
        return navtext;
}

function wrap_root (text, id, c) {
         //c = laufender CSS und id ist selected
        var res = [];
        var saba_id = "saba"+id;
        var tabclass = "s0table"+id;
        if(navid == id){
          tabclass = "oversaba";
        }else{
        if(navid != ""){
          tabclass = "s0table"+id;
          }
        }
        for (var i in states)
                res[i] = '<table id="' + saba_id + '" vspace="0" hspace="0" class='+ tabclass +' height=100% cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=m0' + states[i] + 'i valign=middle align=center>&nbsp;&nbsp;' + text + '&nbsp;&nbsp;</td></tr></table>'
        return res;
}