startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navi").firstChild;
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}



//GUIDED-TOUR

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// resize fix for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

// link style change
var cur_link;
function doLinkClass(lnk) {
	if (lnk && lnk.blur) lnk.blur();	// remove marquee
	if (!lnk || cur_link == lnk) return;
	if (cur_link) cur_link.className = "done";
	lnk.className = "on";
	cur_link = lnk;
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(lnk,id) {
	doLinkClass(lnk);
	if (cur_lyr) hideLayer(cur_lyr);
	showLayer(id);
	cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested layer for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getLyrRef(lyr,doc) {
	if (document.layers) {
		var theLyr;
		for (var i=0; i<doc.layers.length; i++) {
	  		theLyr = doc.layers[i];
			if (theLyr.name == lyr) return theLyr;
			else if (theLyr.document.layers.length > 0) 
	    	if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
			return theLyr;
		}
		return null;
	}
}

function init(id,lyr) {
	var lnk = getElemRefs(id);
	swapLayers(lnk,lyr);
}

//select-felder ausblenden
function hideSelects(action) {
	//documentation for this script at http://www.shawnolson.net/a/1198/
	//possible values for action are 'hidden' and 'visible'
	if (action!='visible'){action='hidden';}
		if (navigator.appName.indexOf("MSIE")) {
		for (var S = 0; S < document.forms.length; S++){
			for (var R = 0; R < document.forms[S].length; R++) {
				if (document.forms[S].elements[R].options) {
					document.forms[S].elements[R].style.visibility = action;
				}
			}
		}
	}
}


// variablen fuer die ausgabe der flash inhalte
function tour(lang) {
	var tour	= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="760" height="500" id="guided-tour" align="top">'
				+ '<param name="allowScriptAccess" value="sameDomain" />'
				+ '<param name="movie" value="/el/falkenhahn-gt-' + lang + '-090417.swf" />'
				+ '<param name="quality" value="high" />'
				+ '<param name="scale" value="noscale" />'
				+ '<param name="wmode" value="transparent" />'
				+ '<param name="bgcolor" value="#ffffff" />'
				+ '<embed src="/el/falkenhahn-gt-' + lang + '-090417.swf" quality="high" scale="noscale" wmode="transparent" bgcolor="#ffffff" width="760" height="500" name="guided-tour" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
				+ '</object>';
	return tour;
}

var blank			 = '';


//startzustand schreiben
function startZustand() {
	document.write ('<div id="lyr1">&nbsp;</div>');
	
	document.write ('<div id="lyr2">');
	document.write ('<div id="guidedTourHG"></div>');
	document.write ('<div id="guidedTour">');
	document.write ('<div id="guidedTourContainer">');
	document.write ('&nbsp;');
	document.write ('</div>');
	document.write ('</div>');
	document.write ('</div>');
}

// tour schreiben
function startTour(lang) {
	WriteLayer('lyr1',null,blank);
	WriteLayer('guidedTourContainer',null,tour(lang));
	hideSelects('hidden');
	swapLayers(this._parent,'lyr2');
}

// alles stoppen (tour)
function stopAll() {
	WriteLayer('lyr1',null,blank);
	WriteLayer('guidedTourContainer',null,blank);
	hideSelects('visible');
	swapLayers(this._parent,'lyr1');
}

function WriteLayer(ID,parentID,sText) {
	if (document.layers) {
		var oLayer;
			if(parentID){
				oLayer = eval('document.' + parentID + '.document.' + ID + '.document');
			}else{
				oLayer = document.layers[ID].document;
			}
		oLayer.open();
		oLayer.write(sText);
		oLayer.close();
	} else if (parseInt(navigator.appVersion)>=5&&navigator.
		appName=="Netscape") {
		document.getElementById(ID).innerHTML = sText;
	} else if (document.all) document.all[ID].innerHTML = sText
}