
function laenge(btn,bereich){
	var l=0;
	hoehe();
	
	GetDivObject3('btnr1').style.backgroundColor="#333333";
	GetDivObject3('btnr2').style.backgroundColor="#333333";
	GetDivObject3('btnr3').style.backgroundColor="#333333";
	GetDivObject3('btnr4').style.backgroundColor="#333333";
	GetDivObject3('btnr5').style.backgroundColor="#333333";
	GetDivObject3('btnr6').style.backgroundColor="#333333";

	switch(btn){
		case "start":
			GetDivObject3('btnr1').style.backgroundColor="#ffcc00";
			break;
		case "unternehmen":
			GetDivObject3('btnr2').style.backgroundColor="#ffcc00";
			bildwechsel();
			break;
		
		case "service":
			GetDivObject3('btnr3').style.backgroundColor="#ffcc00";
			break;
		case "shop":
			GetDivObject3('btnr4').style.backgroundColor="#333333";
			break;
		case "anfahrt":
			GetDivObject3('btnr5').style.backgroundColor="#ffcc00";
			break;
		case "kontakt":
			GetDivObject3('btnr6').style.backgroundColor="#ffcc00";
			break;
		case "top":
			GetDivObject3('btnr1').style.backgroundColor="#333333";
			GetDivObject3('btnr2').style.backgroundColor="#333333";
			GetDivObject3('btnr3').style.backgroundColor="#333333";
			GetDivObject3('btnr4').style.backgroundColor="#333333";
			GetDivObject3('btnr5').style.backgroundColor="#333333";
			GetDivObject3('btnr6').style.backgroundColor="#333333";
			break;
			}
	}

function bildwechsel(){
	//alert("Bildwechsel "+zahl);
	top.mainframe.document.imgchange.src=ubilder[zahl].src;
	window.setTimeout("bildwechsel()",5000);
	if(zahl<5){
		zahl++;
		}
	else{
		zahl=0;
		}
	}
	
	
function hoehe(){
	l= GetDivObject2('seite').offsetHeight;
	GetDivObject3('tabelle').height=l;
	GetDivObject3('mainframe').height=l;
}
function GetDivObject2(Div_ID){
var result="";
if(window.document.all){
	result = eval("window.document.all." + Div_ID);
	}
if(typeof(window.document.getElementById)=="function"){
	result = window.document.getElementById(Div_ID);
	}
return result;
}
	
	
	
function GetDivObject(Div_ID){
var result="";
if(window.document.all){
	result = eval("window.document.all." + Div_ID + ".style");
	}
if(typeof(window.document.getElementById)=="function"){
	result = window.document.getElementById(Div_ID).style;
	}
return result;
}

function GetDivObject3(Div_ID){
var result="";
if(window.document.all){
	result = eval("top.window.document.all." + Div_ID);
	}
if(typeof(window.document.getElementById)=="function"){
	result =top.window.document.getElementById(Div_ID);
	}
return result;
}
