var p = "images/";
var browser = navigator.appName;
var browserc = navigator.appCodeName;
var version = parseInt(navigator.appVersion);
var script = false;        


toload = new Array ("aktuell", "sv", "kunden", "dienstgeber", "vertragspartner","chipkarte", "medien", "medizin", "recht", "statistik", "bestellbar", "www", "info");

tonormal = new Array(15);
tohighlight = new Array(15);
toselected = new Array(15);

if ((browserc == "Mozilla" && version > 3) ||
    (browser == "Netscape" && version >= 3)) {

        script = true;

        for (i in toload) {

                tohighlight[toload[i]] = new Image();
                tohighlight[toload[i]].src = p + toload[i] + "_a.gif";   

                tonormal[toload[i]] = new Image();
                tonormal[toload[i]].src = p + toload[i] + ".gif";      

                toselected[toload[i]] = new Image();
                toselected[toload[i]].src = p + toload[i] + "_s.gif";      
                
                
        }
}

// Rollover 
// #######################
function swap(n,s) {

        if (script == true) {

                (s == "h")
                        ? document.images[n].src = tohighlight[n].src 
                        : document.images[n].src = tonormal[n].src;

        }
}

// Rollover selected 
// #######################
function swap_s(k,l) {

        if (script == true) {

                (l == "m")
                        ? document.images[k].src = tohighlight[k].src 
                        : document.images[k].src = toselected[k].src;

        }
}

// Aktualisiern 2er frames 
// #######################

function Fresh2Frames (URL1, framenum1, URL2, framenum2) {
    parent.frames[framenum1].location.href=URL1;
    parent.frames[framenum2].location.href=URL2;
}

// Aktualisiern von 3 frames
// #########################

function Fresh3Frames (URL1, framenum1, URL2, framenum2, URL3, framenum3) {
    parent.frames[framenum1].location.href=URL1;
    parent.frames[framenum2].location.href=URL2;
    parent.frames[framenum3].location.href=URL3;
}
