
var menuplan = true;

// Höhe Content-div's  

function skalierungMenuPlan(){	

	var y, x, v;
	if (self.innerHeight){ // all except Explorer
		y = self.innerHeight;
		x = self.innerWidth;
	}else if (document.documentElement && document.documentElement.clientHeight){// Explorer 6 Strict Mode
		y = document.documentElement.clientHeight;
		x = document.documentElement.clientWidth;
	}else if (document.body){ // other Explorers
		y = document.body.clientHeight;
		x = document.body.clientWidth;
	}
	
	xb = x - 264 ;
	yb = y - 35 ;
	
	v = xb/yb;
	if(v < 1.4) { xb = ( 1.4 * yb) ;}
	
	
	var mb = document.getElementById("mainboxMenuplan");
	//mb.style.height = yb +'px';
	mb.style.width = xb +'px';

}

function zufallsBildTischdecke(){
	var imgNr = Math.floor(Math.random()*3 + 1);	
	var pfad = 'images/menuplan/'+ imgNr +'.jpg' ;
	document.tischdecke.src = pfad;	
}

