// JavaScript Document
<!--


    var RmenuIT = new Object();
    
    // menu without a displayable url use / as its url
    var de = 0;
    var fr = 1;
    var it = 2;
    var en = 3;

    var pn = new Array(); // page names
    var mi = ''; // menu index

    RmenuIT.menuItem = function(id, isOwnUrl, urls)
    {
        this.id = id;
        this.isOwnUrl = isOwnUrl;
        this.urls = urls;
    }


    function ChangeLanguage(targetLanguage)
	{
		var selectedMenuId = $('#navigationContainer li a[href=\"' + location.pathname + '\"]').attr('id');
		var langIndex = GetLanguageIndex(targetLanguage);
		//alert('New:' + pn[selectedMenuId].urls[langIndex]);
		
		if (typeof selectedMenuId  == "undefined")
		{
			window.location = '/' + targetLanguage + '/' + 'index.html'; // fallback
		}
		else
		{
			window.location = '/' + targetLanguage + '/' + pn[selectedMenuId].urls[langIndex];
		}
		return false;
	}
	
	function GetLanguageIndex(language)
	{
		switch(language)
		{
			case 'de' : return de;
						break;
			case 'fr' : return fr;
						break;
			case 'it' : return it;
						break;
			case 'en' : return en;
						break;
			default : 	return de;
						break;
		}
	}
	
	function GetLanguageFromUrl()
	{
		var pathname = location.pathname;
		if (pathname.length > 4)
		{
			var lang = pathname.substring(1,3); 
			switch(lang)
			{
				case 'de' : 
				case 'fr' :
				case 'it' :
				case 'en' :
							return lang;
							break;
				default : 	return 'de';
							break;
			}		
		}
		return 'de';
	}

	function InitializeMenu()
	{
		
		mi = 'm_00';
		pn[mi] = new RmenuIT.menuItem(mi, true, new Array('index.html','index.html','index.html','index.html'));
	
		mi = 'm_01';
		pn[mi] = new RmenuIT.menuItem(mi, false, new Array('kalk.html','chaux.html','calce.html','lime.html'));

			mi = 'm_01_01';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kalk.html','chaux.html','calce.html','lime.html'));
			
				mi = 'm_01_01_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kalkstein-calciumcarbonat.html','roche-calcaire-carbonate-de-calcium.html','calcare-carbonato-di-calcio.html','limestone-calcium-carbonate.html'));
			
				mi = 'm_01_01_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kalkherstellung.html','fabrication-de-la-chaux.html','produzione-della-calce.html','lime-production.html'));
			
				mi = 'm_01_01_03';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('stueckkalk-calciumoxid.html','chaux-en-morceaux-oxyde-de-calcium.html','calce-viva-in-zolle-ossido-di-calcio.html','lump-lime-calcium-oxide.html'));
			
				mi = 'm_01_01_04';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('weissfeinkalk-calciumoxid.html','chaux-vive-moulue-oxyde-de-calcium.html','calce-viva-in-polvere-ossido-di-calcio.html','quicklime-calcium-oxide.html'));
			
				mi = 'm_01_01_05';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('weisskalkhydrat-calciumhydroxid.html','chaux-hydratee-hydroxyde-de-calcium.html','idrato-di-calce-bianca-idrossido-di-calcio.html','hydrated-lime-calcium-hydroxide.html'));
			
				mi = 'm_01_01_06';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kalkstein.html','roche-calcaire-graviers-pierres-concassees.html','pietra-calcare-ghiaia-pietrisco.html','limestone-aggregate.html'));
			
				mi = 'm_01_01_07';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kalksteinmehl.html','farine-calcaire.html','calcare-macinato.html','ground-limestone.html'));
		
			mi = 'm_01_02';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kies.html','graviers.html','ghiaia.html','aggregate.html'));
				
				mi = 'm_01_02_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('sand-splitt-betonkies.html','sable-gravillon-gravier-pour-beton.html','sand-splitt-betonkies.html','sand-splitt-betonkies.html'));
			
				mi = 'm_01_02_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kfn-sickerschotter.html','kfn-sickerschotter.html','kfn-sickerschotter.html','kfn-sickerschotter.html'));
			
				mi = 'm_01_02_03';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kfn-kiessand.html','kfn-kiessand.html','kfn-kiessand.html','kfn-kiessand.html'));
			
				mi = 'm_01_02_04';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('ungebundenes-gemisch.html','ungebundenes-gemisch.html','ungebundenes-gemisch.html','ungebundenes-gemisch.html'));
			
				mi = 'm_01_02_05';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('kfn-netstaler.html','kfn-netstaler.html','kfn-netstaler.html','kfn-netstaler.html'));
			
				mi = 'm_01_02_06';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('bergschotter.html','bergschotter.html','bergschotter.html','bergschotter.html'));
			
				mi = 'm_01_02_07';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('steinkorbsteine.html','steinkorbsteine.html','steinkorbsteine.html','steinkorbsteine.html'));
			
				mi = 'm_01_02_08';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('bruchsteine-wuhrsteine.html','bruchsteine-wuhrsteine.html','bruchsteine-wuhrsteine.html','bruchsteine-wuhrsteine.html'));

		mi = 'm_02';
		pn[mi] = new RmenuIT.menuItem(mi, false, new Array('anwendung-kalk.html','applications-chaux.html','impieghi-calce.html','applications-lime.html'));
	
			mi = 'm_02_01';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('anwendung-kalk.html','applications-chaux.html','impieghi-calce.html','applications-lime.html'));
		
			mi = 'm_02_02';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('anwendung-kies.html','applications-graviers.html','impieghi-ghiaia.html','applications-aggregate.html'));
		
			mi = 'm_02_03';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('umweltschutz.html','environnement.html','ambiente.html','environment.html'));
		
			mi = 'm_02_04';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('industrien.html','industries.html','industrie.html','industries.html'));
		
			mi = 'm_02_05';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('baugewerbe.html','batiment.html','edilizia.html','building.html'));
		
			mi = 'm_02_06';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('landwirtschaft.html','agriculture.html','agricoltura.html','agriculture.html'));
	
		mi = 'm_03';
		pn[mi] = new RmenuIT.menuItem(mi, false, new Array('sprengen.html','dynamitage.html','brillare.html','blasting.html'));
	
			mi = 'm_03_01';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('sprengen.html','dynamitage.html','brillare.html','blasting.html'));

			mi = 'm_03_02';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('brechen.html','broyage.html','frantumare.html','crushing.html'));

			mi = 'm_03_03';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('brennen.html','cuisson.html','cuocere.html','burning.html'));

			mi = 'm_03_04';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('mahlen.html','concassage.html','macinare.html','grinding.html'));

			mi = 'm_03_05';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('loeschen.html','extinction.html','spegnere.html','slaking.html'));

		mi = 'm_04';
		pn[mi] = new RmenuIT.menuItem(mi, false, new Array('portrait.html','portrait.html','presentazione.html','portrait.html'));
	
			mi = 'm_04_01';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('portrait.html','portrait.html','presentazione.html','portrait.html'));

			mi = 'm_04_02';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('jubilaeum.html','jubile.html','anniversario.html','jubilee.html'));

				mi = 'm_04_02_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('jubilaeum.html','jubile.html','anniversario.html','jubilee.html'));
	
				mi = 'm_04_02_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('impressionen.html','impressions.html','impressioni.html','impressions.html'));
	
			mi = 'm_04_03';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('qualitaet.html','qualite.html','qualita.html','quality.html'));

				mi = 'm_04_03_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('qualitaet.html','qualite.html','qualita.html','quality.html'));

				mi = 'm_04_03_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('leitsatz1.html','directives1.html','linee-guida1.html','leading-ideas1.html'));

				mi = 'm_04_03_03';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('leitsatz2.html','directives2.html','linee-guida2.html','leading-ideas2.html'));

				mi = 'm_04_03_04';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('leitsatz3.html','directives3.html','linee-guida3.html','leading-ideas3.html'));

				mi = 'm_04_03_05';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('leitsatz4.html','directives4.html','linee-guida4.html','leading-ideas4.html'));

				mi = 'm_04_03_06';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('leitsatz5.html','directives5.html','linee-guida5.html','leading-ideas5.html'));

				mi = 'm_04_03_07';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('leitsatz6.html','directives6.html','linee-guida6.html','leading-ideas6.html'));

			mi = 'm_04_04';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('geschichte1.html','histoire1.html','storia1.html','history1.html'));

				mi = 'm_04_04_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('geschichte1.html','histoire1.html','storia1.html','history1.html'));

				mi = 'm_04_04_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('geschichte2.html','histoire2.html','storia2.html','history2.html'));

			mi = 'm_04_05';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('umwelt1.html','environnement1.html','ambiente1.html','environment1.html'));

				mi = 'm_04_05_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('umwelt1.html','environnement1.html','ambiente1.html','environment1.html'));

				mi = 'm_04_05_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('umwelt2.html','environnement2.html','ambiente2.html','environment2.html'));

		mi = 'm_05';
		pn[mi] = new RmenuIT.menuItem(mi, false, new Array('adresse.html','adresse.html','indirizzo.html','address.html'));
	
			mi = 'm_05_01';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('adresse.html','adresse.html','indirizzo.html','address.html'));
 
			mi = 'm_05_02';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('situationsplan.html','plan.html','cartina.html','location.html'));
 
 			mi = 'm_05_03';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('organigramm.html','organigramme.html','organigramma.html','organigram.html'));
	
	

		mi = 'm_06';
		pn[mi] = new RmenuIT.menuItem(mi, false, new Array('publikationen.html','publications.html','pubblicazioni.html','publications.html'));
	
			mi = 'm_06_01';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('publikationen.html','publications.html','pubblicazioni.html','publications.html'));

				mi = 'm_06_01_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('response.html','response.html','response.html','response.html'));
	
			mi = 'm_06_02';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('film.html','film.html','film.html','film.html'));
	
			mi = 'm_06_03';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('merkblaetter.html','feuilles.html','schede-dati.html','data-sheets.html'));

			mi = 'm_06_04';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('zertifikate.html','certificats.html','certificati.html','certificates.html'));

			mi = 'm_06_05';
			pn[mi] = new RmenuIT.menuItem(mi, true, new Array('ce-kennzeichnungen.html','sigles-ce.html','marchi-ce.html','ce-labels.html'));

			mi = 'm_06_06';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('schemas-kalk.html','schemas-chaux.html','schemi-calce.html','schemes-lime.html'));

				mi = 'm_06_06_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('schemas-kalk.html','schemas-chaux.html','schemi-calce.html','schemes-lime.html'));

				mi = 'm_06_06_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('schemas-kies.html','schemas-graviers.html','schemi-ghiaia.html','schemes-aggregate.html'));

				mi = 'm_06_06_03';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('schema-produktionsprozess.html','schema-processus-de-production.html','schema-processo-produttivo.html','scheme-production-process.html'));

			mi = 'm_06_07';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('news.html','news.html','news.html','news.html'));

				mi = 'm_06_07_01';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news.html','news.html','news.html','news.html'));

				mi = 'm_06_07_02';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news01.html','news/news01.html','news/news01.html','news/news01.html'));

				mi = 'm_06_07_03';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news02.html','news/news02.html','news/news02.html','news/news02.html'));

				mi = 'm_06_07_04';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news03.html','news/news03.html','news/news03.html','news/news03.html'));

				mi = 'm_06_07_05';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news04.html','news/news04.html','news/news04.html','news/news04.html'));

				mi = 'm_06_07_06';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news05.html','news/news05.html','news/news05.html','news/news05.html'));

				mi = 'm_06_07_07';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news06.html','news/news06.html','news/news06.html','news/news06.html'));

				mi = 'm_06_07_08';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news07.html','news/news07.html','news/news07.html','news/news07.html'));

				mi = 'm_06_07_09';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news08.html','news/news08.html','news/news08.html','news/news08.html'));

				mi = 'm_06_07_10';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news09.html','news/news09.html','news/news09.html','news/news09.html'));

				mi = 'm_06_07_11';
				pn[mi] = new RmenuIT.menuItem(mi, true, new Array('news/news10.html','news/news10.html','news/news10.html','news/news10.html'));

			mi = 'm_06_08';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('sitemap.html','sitemap.html','sitemap.html','sitemap.html'));

			mi = 'm_06_09';
			pn[mi] = new RmenuIT.menuItem(mi, false, new Array('offene_stellen.html','offres_d_emploi.html','posto_vacante.html','vacancies.html'));

	}



-->
