function init() {
  sHeight = 0
	if (document.all) {
		// IE hacks
		document.all.container.style.width = 798 + "px"
		document.all.submenu.style.width = 265 + "px"
		//document.all.content.style.left = 267 + "px"
		// screen height
		sHeight = document.body.clientHeight
	} 
	else {
		sHeight = window.innerHeight
	}
	if (parseInt(document.getElementById("container").offsetHeight) < (sHeight - 30)) {
		document.getElementById("container").style.height = sHeight - 32 + "px"
	}
	if (parseInt(document.getElementById("container").offsetHeight) < 658)
			document.getElementById("container").style.height = 658 + "px"

	document.getElementById("submenu").style.height = (parseInt(document.getElementById("container").offsetHeight) - 202) + "px"
	
	document.getElementById("container").style.visibility='visible';
}

preloadImages()

function preloadImages() {
  arrImages = new Array ("/img/blisterverpackung_lo.gif",
                          "/img/blisterverpackung_act.gif",
                          "/img/blisterverpackung_hi.gif",
                          "/img/cellophanierung_lo.gif",
                          "/img/cellophanierung_act.gif",
                          "/img/cellophanierung_hi.gif",
                          "/img/kontakt_lo.gif",
                          "/img/kontakt_act.gif",
                          "/img/kontakt_hi.gif",
                          "/img/leistungen_lo.gif",
                          "/img/leistungen_act.gif",
                          "/img/leistungen_hi.gif",
                          "/img/schrumpfen_lo.gif",
                          "/img/schrumpfen_act.gif",
                          "/img/schrumpfen_hi.gif",
                          "/img/schrumpfen_lo.gif",
                          "/img/schrumpfen_hi.gif",
                          "/img/schrumpfen_act.gif",
                          "/img/ueber_kesko_lo.gif",
                          "/img/ueber_kesko_act.gif",
                          "/img/ueber_kesko_hi.gif")
  
  arrImageList = new Array ()

  for (i in arrImages) {
     arrImageList[i] = new Image()
     arrImageList[i].src = arrImages[i]
  }
}
