function hoehe() {

var x,y;
if (self.innerHeight) // all except Explorer
{
	x = self.innerWidth;
	y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	x = document.body.clientWidth;
	y = document.body.clientHeight;
}
   y=y-190;
   if (y < (document.getElementById("content").offsetHeight+90)) y=document.getElementById("content").offsetHeight+90;
   return y;   

}
function setheight() {

   //document.getElementById("leermenu").style.height= hoehe()-210;
   //document.getElementById("content").style.height= hoehe()-292;
   //alert(document.getElementById("content").offsetHeight);

   document.getElementById("leermenu").setAttribute("height", hoehe());

  if (document.getElementById("contact_unten") != null ) document.getElementById("contact_unten").style.top=document.getElementById("leermenu").offsetHeight+180;


   }

function bereich_an(id) {

   document.getElementById(id).style.visibility='visible';
   window.scrollTo(1,0);

};

function bereich_aus(id) {   document.getElementById(id).style.visibility='hidden';

};

function wechsel_bild(id,nr) {
   ort="standort"+id;
   switch (nr) {
     case "1":   document.getElementById(id).setAttribute("src", ort+".jpg"); break;
     case "de":   document.getElementById(id).setAttribute("src", "welcome2.gif"); break;
     case "en":   document.getElementById(id).setAttribute("src", "welcome1.gif"); break;
     case "jp":   document.getElementById(id).setAttribute("src", "welcome4.gif"); break;
   };


};

function zufallsbild(id) {
  zahl=(Math.round(Math.random()*12))+1;
  if (zahl==13) zahl=12;
  bild="welcome"+zahl+".jpg"; 
  document.getElementById(id).setAttribute("src", bild);
};

function set_contact_height() {
//   hoehe=document.getElementById("content").offsetHeight+20;
   document.getElementById("contact_unten").style.top='50px';
// alert();
};