<!--

/* function init */

function init() {
  if (navigator.appVersion.substr(0,32) == "5.0 (compatible; Konqueror/3.0.0x") {
    document.getElementById('box-logo').style.backgroundImage = 'url(fileadmin/template/image/nix.gif)';
  }
  if (navigator.appVersion.substr(0,20) == "5.0 (Windows; de-AT)x") {
    window.location.href = "browser.html";
  }
  if (navigator.appVersion.substr(0,25) == "4.0 (compatible; MSIE 6.0x") {
    move = window.open("browser.html","name",
      "screenY=0,screenX=0,resizable=no,height=488,width=488,scrollbars=no");
    move.moveTo(screen.width/2-488/2-5,screen.height/2-488/2-29);
    move.focus();
  }

  if (document.getElementById('box-art-home')) {
    document.getElementById('box-middle-bottom').style.backgroundImage = 'url(fileadmin/template/image/nix.gif)';
  }

  if (document.getElementById('art-w1')) {
    x = document.URL.length; i = x;
    while (document.URL.substring(i-2,i) != "W=" && i != 0) { i = i - 1; }
    if (i != 0) {
      if (document.URL.substring(i,x) == '1') {artshow('1')};
      if (document.URL.substring(i,x) == '2') {artshow('2')};
      if (document.URL.substring(i,x) == '3') {artshow('3')};
      if (document.URL.substring(i,x) == '4') {artshow('4')};
    }
  }

  if (document.getElementById('box-nav-content')) {navcontent()};
  if (document.getElementById('box-nav-border')) {navborder()};

  if (document.anchors.length)
  /* document.captureEvents(Event.MOUSEOVER); */
  document.onmouseover = statusHandler;
  function statusHandler() {window.status=''; return true}
}

/* function artshow */

function artshow(name) {
  for (var i=1;i<=4;i++) {
    if (i == name) {
      document.getElementById('art-w'+i).style.display='block';
      document.getElementById('art-i'+i).style.display='block';
    } else {
      document.getElementById('art-w'+i).style.display='none';
      document.getElementById('art-i'+i).style.display='none';
    }
  }
  navcontent(); navborder();
}

/* function navcontent */

function navcontent() {
  if (navigator.appName.substr(0,9) == "Microsoft") {
    document.getElementById('box-nav-content').style.marginLeft = '-16px';
    document.getElementById('box-nav-content').style.marginTop = 
      document.getElementById('box-middle').offsetHeight+173+'px';
    document.getElementById('box-nav-content').style.width = '482px';
  } else {
    document.getElementById('box-nav-content').style.marginLeft = '-15px';
    document.getElementById('box-nav-content').style.marginTop = 
      document.getElementById('box-middle').offsetHeight+174+'px';
    document.getElementById('box-nav-content').style.width = '480px';
  }
}

/* function navborder */

function navborder() {
  if (navigator.appName.substr(0,9) == "Microsoft") {
    document.getElementById('box-nav-border').style.marginLeft = '-16px';
    document.getElementById('box-nav-border').style.marginTop = 
      document.getElementById('box-middle').offsetHeight+173+'px';
    document.getElementById('box-nav-border').style.width = '277px';
  } else {
    document.getElementById('box-nav-border').style.marginLeft = '-15px';
    document.getElementById('box-nav-border').style.marginTop = 
      document.getElementById('box-middle').offsetHeight+174+'px';
    document.getElementById('box-nav-border').style.width = '275px';
  }
}

/* function popup */

function popup(target,name,height,width,scrollbars) {
  var properties = "screenY=0,screenX=0,resizable=no";
  properties = properties + ",height=" + height + ",width=" + width;
  properties = properties + ",scrollbars=" + scrollbars;
  move = window.open(target,name,properties);
  move.moveTo(screen.width/2-width/2-5,screen.height/2-height/2-29);
  move.focus();
}

/* function image */

if (document.images) {
  function image(name,path) {
    name = new Array(name);
    path = new Array(path);
    for (i=0;i<name.length;i++) {
      document.images[name[i]].src = path[i]
    }
  }
}

/* function iframeResize */

function iframeResize(obj) {
  docHeight = iframe.document.body.scrollHeight;
  if (navigator.appName.substr(0,9) == "Microsoft") {
    obj.style.height = docHeight - 12 + 'px';
  } else {
    obj.style.height = docHeight + 9 + 'px';
  }
}

//-->
