// *****************************************************************************
// **                                SETTINGS                                 **
// *****************************************************************************

// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';

// the filename of the page the menu appears in eg 'menu.html'
thisPage='menu.html';

// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='img/';

// do you want to use images for the category bullets?
lev1img='yes';                                        // insert yes or no

// give image names and dimensions
lev1OpName='bullet.gif';                        // open image name
lev1OpHeight='5';                                // image height
lev1OpWidth='7';                                // image width

lev1ClosName='bullet.gif';                // closed image name
lev1ClosHeight='5';                        // image height
lev1ClosWidth='7';                                // image width

// do you want to use images for the sub-category bullets?
lev2img='yes';                // insert yes or no



// do you want to use a text character for the sub-category bullets?
lev2Char='no';                // insert yes or no

// set bullet character for level 2 bullets
bullet = '&#155; ';

// base target - the frame that the links are targetting
base = 'main';

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL - do not alter
        var x = 0
        page = location.search.substr(1).split("?")
        for (x=0;x<=page.length;x++) {
                eval(page)
                }
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');




// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************


// Civils & Drainage Menu
if (page=='aetherische') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Produkte','aeth_prod.html');
thisMenu[1] = new subMenu('Anwendungen','aeth_anwend.html');
parent.main.location.href = 'aetherische.html';
parent.headlines.location.href = 'aeth_headl.html';
}

// Clothing Menu
if (page=='parfum') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Produkte','parf_prod.html');
thisMenu[1] = new subMenu('Anwendungen','parf_anwend.html');
parent.main.location.href = 'parfumoele.html';
parent.headlines.location.href = 'parfum_headline.html';
}

// Decorating Menu
if (page=='arom') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Produkte','aromen_prod.html');
thisMenu[1] = new subMenu('Anwendungen','aromen_anwend.html');
parent.main.location.href = 'aromen.html';
parent.headlines.location.href = 'arom_headline.html';
}

// Duft- und Geschmacksstoffe
if (page=='duft') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Produkte','duft_prod.html');
thisMenu[1] = new subMenu('Anwendungen','duft_anwend.html');
parent.main.location.href = 'duft.html';
parent.headlines.location.href = 'duft_headline.html';
}

// Qualität und Technik
if (page=='quali') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Qualitätssicherung','quali_sich.html');
thisMenu[1] = new subMenu('Produktion','quali_prod.html');
thisMenu[2] = new subMenu('Forschung & Entwicklung','quali_forsch.html');
thisMenu[3] = new subMenu('Umweltmanagement','quali_umwelt.html');
parent.main.location.href = 'qualitaet.html';
parent.headlines.location.href = 'quali_headline.html';
}


// Ihr Service
if (page=='serv') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Kurze Lieferzeiten','serv_lieferz.html');
thisMenu[1] = new subMenu('Herausragende Qualität','serv_qualit.html');
thisMenu[2] = new subMenu('Preis-Leistungs-Verhältnis','serv_preis.html');
thisMenu[3] = new subMenu('Engagement der Mitarbeiter','serv_engage.html');
thisMenu[4] = new subMenu('Inhabergeführtes Management','serv_inhab.html');
parent.main.location.href = 'service.html';
parent.headlines.location.href = 'serv_headline.html';
}


// Wir über uns
if (page=='wir') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Das Unternehmen','wir_unterneh.html');
thisMenu[1] = new subMenu('Die Geschäftsführung','wir_gfuehr.html');
thisMenu[2] = new subMenu('Weltweite Verbindung','wir_weltweit.html');
parent.main.location.href = 'wir.html';
parent.headlines.location.href = 'wir_headline.html';
}




var win = null;
function newwindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',toolbar=no,status=no,resizable=yes'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function navimachzu(url1,f1,url2,f2)
{
top.frames[f1].location.href=url1;
top.frames[f2].location.href=url2;
}

/*onclick="newwindow(this.href,'kontaktformular','438','530','yes');return false"*/