// BEGINN des JAVA CODES //

//////////////////////////////////////////////////
// Copyright by netart 2000 all Rights reserved //
// Funktionen zur Navigation 2 Fenster          //
// Lizensiert für TRIP                          //
// Lizenz Nummer : netart                       //
//////////////////////////////////////////////////


// Browser Abfrage //

function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.op3 = (agent.indexOf("opera") != -1);
    this.win   = (agent.indexOf("win")!=-1);
    this.mac   = (agent.indexOf("mac")!=-1);
    this.unix  = (agent.indexOf("x11")!=-1);
}
var is = new Is();
if(is.ns4) {
    doc = "document";
    sty = "";
    htm = ".document"
} else if(is.ie4) {
    doc = "document.all";
    sty = ".style";
    htm = ""
}

// Vorladen der BUTTONS //

var count = 0;
function preLoad() {
    button_up = new Image();
    button_up.onload = (is.ns4b) ? loadCheck() : loadCheck;
    button_up.src = "button_up.gif";
    button_dn = new Image();
    button_dn.onload = (is.ns4b) ? loadCheck() : loadCheck;
    button_dn.src = "button_dn.gif";
    button_ac = new Image();
    button_ac.onload = (is.ns4b) ? loadCheck() : loadCheck;
    button_ac.src = "button_ac.gif";
}
function loadCheck() {
    count++;
    if(count == 3) {
        positionLayers();
    }
}

// Setzen des Layers //

function positionLayers() {
    buttonImg = eval(doc + '["menuLyr"]' + '.document');
    menuObj = eval(doc + '["menuLyr"]' + sty);
    menuObj.left = 0;
    menuObj.top = 0;
    menuObj.visibility = "visible";
    menuToggle('men1');
    buttonOver('men1');
}

// Abfrage ob Maus über Buttons //

var move_poser = true;
var moveDirection = "moveHoriz";
var zindex_toggle = true;
var menu_selection = "men1";
function buttonOver(selection,pos) {
    if(menu_selection != selection) {
        buttonImg[selection].src = button_dn.src;
    }
}
function buttonOut(selection) {
    if(menu_selection != selection) {
        buttonImg[selection].src = button_up.src;

    }
}

// Zieladressen der Kapitel //
// Hier bitte die Links eintragen //

function menuToggle(selection) {
    buttonImg[menu_selection].src = button_up.src;
    buttonImg[selection].src = button_ac.src;
    menu_selection = selection;

// Kapittel 1 //
        if (selection == "men1"){parent.frames[2].location.href="home.html"};

// Kapittel 2 //
        if (selection == "men2"){parent.frames[2].location.href="info.html"};

// Kapittel 3 //
        if (selection == "men3"){parent.frames[2].location.href="bilder/bilder.html"};

// Kapittel 4 //
        if (selection == "men4"){parent.frames[2].location.href="links.html"};

// Kapittel 5 //
        if (selection == "men5"){parent.frames[2].location.href="guestbook/guestbook.html"};

// Kapittel 6 //
        if (selection == "men6"){parent.frames[2].location.href="mail.html"};

// Kapittel 7 //
        if (selection == "men7"){parent.frames[2].location.href="chat.html"};

// Kapittel 8 //
        if (selection == "men8"){parent.frames[2].location.href="track.html"};

// Kapittel 9 //
        if (selection == "men9"){parent.frames[2].location.href="reserve.html"};

}
// Ende der Linkverzweigung //

// Ende des Java Codes //

