<!--
// Browserbestimmung
var ie = document.all ? true : false;
var ns = document.layers ? true : false;

NS4    = (document.layers) ? true : false;
IE     = (document.all) ? true : false;
DOM    = ((document.getElementById) && (document.createElement)) ? true : false;
Opera  = (!DOM && IE && (document.getElementById)) ? true : false;
Mac    = (navigator.appVersion.indexOf("Mac") != -1);
NS6    = !IE && DOM;
IE4    = IE && !DOM;
IE5    = IE && DOM;
MacIE4 = IE4 && Mac;
MacIE5 = IE5 && Mac;
WinIE5 = IE5 && !Mac;

StrBrowser = NS4 ? "ns4" : DOM ? "dom" : Opera ? "opera" : "ie4";
//-----------------------------------------------------------------------------------

//Define global variables

var timecount = 1000;
var what = null;
var newbrowser = true;
var check = false;
var h=null; //HELP

function init()
{
	if (document.layers) 
	{
		layerRef="document.layers";
		styleSwitch="";
		visibleVar="show";
		screenSize = window.innerWidth;
		what ="ns4";
	}
	else if(document.all)
	{
		layerRef="document.all";
		styleSwitch=".style";
		visibleVar="visible";
		screenSize = document.body.clientWidth + 18;
		what ="ie";
	}
	else if(document.getElementById)
	{
		layerRef="document.getElementByID";
		styleSwitch=".style";
		visibleVar="visible";
		what="moz";
	}
	else
	{
		what="none";
		newbrowser = false;
	}

	window.status='ok!';
	check = true;
}

// Turns the layers on and off
function showLayer(layerName) 
{ 
         if(check) 
        { 
                if (what =="none") 
                { 
                        return; 
                } 
                else if (what == "moz") // NS 6 
                { 
                	document.getElementById(layerName).style.visibility="visible";    
                } 
                else if (what == "ns4") // NS 4 
                { 
                       eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="show"');         
                } 
                else   // IE 
                { 
                        eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); 
                } 
        } 
        else 
        { 
                return; 
       } 
} 

function hideLayer(layerName) 
{ 
        if(check) 
        { 
                if (what =="none") 
                { 
                        return; 
                } 
                else if (what == "moz") 
                { 
                        // Prüfen, ob Ebene existiert (*)
						if(document.getElementById(layerName)){
							document.getElementById(layerName).style.visibility="hidden";
						}
                } 
                else if (what == "ns4") 
                { 
                        // *
						eval('h='+layerRef+'["'+layerName+'"]');
						if(h){
							eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hide"');
						} 
                } 
                else 
                { 
                        // *
						eval('h='+layerRef+'["'+layerName+'"]');
						if(h){
							eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
						} 
                } 
        } 
        else 
        { 
                return; 
        } 
} 


// Alles oberhalb der Ebene x ausblenden
function hideAll(x)
{
	for(j=(x+1);j<=e.length;j++){
		for(i=1;i<=e[j];i++){
			eval('hideLayer("mNav'+j+i+'");');
		}
	}
}

function startTime(x,y) 
{
	eval('h=(timerOn'+x+y+' == false);');
	if(h)
	{	
		eval('timerID'+x+y+'=setTimeout(\'hideLayer("mNav'+x+y+'")\', timecount);');
		eval('timerOn'+x+y+' = true;');
		if(x>2){ // Level >2 => ZwischenEbenen starten
			for(i=2;i<x;i++){
				eval('timerID'+i+y+'=setTimeout(\'hideLayer("mNav'+i+y+'")\', timecount);');
				eval('timerOn'+i+y+' = true;');
			}
		}
	}
}

function stopTime(x,y) 
{
	eval('h=timerOn'+x+y+';');
	if(h)
	{	
		eval('clearTimeout(timerID'+x+y+');');
		eval('timerID'+x+y+' = null;');
		eval('timerOn'+x+y+' = false;');
		if(x>2){ // Level > 2 => ZwischenEbenen stoppen
			for(i=2;i<x;i++){
				eval('clearTimeout(timerID'+i+y+');');
				eval('timerID'+i+y+' = null;');
				eval('timerOn'+i+y+' = false;');
			}
		}
	}	
}

function onLoad()
{
	init();
}


// Rollover für Web-Links Level1---------------------
	function high1(LinkObject)	{
		LinkObject.style.background='#FFDD00'; 
		LinkObject.style.borderColor='#0AA245';
	}
	
	function low1(LinkObject)	{
		LinkObject.style.background='#B2B2B2'; 
		LinkObject.style.borderColor='#0AA245';
	}
//-----------------------------------------------------

// Rollover für Web-Links Level2---------------------
	function high2(LinkObject)	{
		LinkObject.style.background='#FFE794';
		LinkObject.style.borderColor='#FFFFFF';
	}
	
	function low2(LinkObject)	{
		LinkObject.style.background='#FFD400'; 
		LinkObject.style.borderColor='#FFD400';
	}

// Rollover für Web-Links Level3---------------------
	function high3(LinkObject)	{
		LinkObject.style.background='#FFDD00'; 
		LinkObject.style.borderColor='#FFFFFF';
	}
	
	function low3(LinkObject)	{
		LinkObject.style.background='#B2B2B2'; 
		LinkObject.style.borderColor='#FFFFFF';
	}
// Clear --------------------------------------------
function clearLevel3(){
	if(o3!=null) low3(o3);
}
//-----------------------------------------------------

function low_s(LinkObject)	{
	LinkObject.style.background='#cccccc'; 
	LinkObject.style.border='solid';
	LinkObject.style.borderWidth='1px';
	LinkObject.style.borderColor='#cccccc';
}


// Rollover im Service
function lmOut(elem){
	elem.style.backgroundColor='';
}

function lmOver(elem){
	elem.style.backgroundColor='#006600';
	elem.style.cursor='hand';
}
//-->