// Copyright (C) 2002 onlineoffice

var imgBase = "images/"
var lang = "en";

function init() {
	debug(DEBUG, "", 0)

	// reload fix für ns aktivieren
	MM_reloadPage(true);

	// Hauptmenue aufstarten
	startMenu();

}
//
// Netscape Reload fix
//
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
// Fensterbreite zurueckgeben
function getW() {
	var extraWidthNS = 0 //16
	var extraWidthIE = 0 //20

	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false

	winW = (ns4)? window.innerWidth-extraWidthNS : document.body.offsetWidth-extraWidthIE
	winH = (ns4)? window.innerHeight : document.body.offsetHeight
	return winW;
}
// Fensterhoehe zurueckgeben
function getH() {
	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false

	winW = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20
	winH = (ns4)? window.innerHeight : document.body.offsetHeight
	return winH;
}
