<!-- Begin

// PRELOAD VON BILDERN

var imagedir="img/";
var myimages=new Array();
function preloadimages()
{
for (i=0;i<preloadimages.arguments.length;i++)
{
myimages[i]=new Image()
myimages[i].src=imagedir + preloadimages.arguments[i]
}
}

preloadimages(
"start_mitte.gif",
"start_mitte_over.gif",
"start_l2.gif",
"start_l2_over.gif",
"start_l3.gif",
"start_l3_over.gif",
"start_l4.gif",
"start_l4_over.gif",
"start_l5.gif",
"start_l5_over.gif",
"start_l6.gif",
"start_l6_over,gif",
"start_r2.gif",
"start_r2_over.gif",
"start_r3.gif",
"start_r3_over.gif",
"start_r4.gif",
"start_r4_over.gif",
"start_r5.gif",
"start_r5_over.gif",
"start_r6.gif",
"start_r6_over.gif",
"bg_l2.gif"
"bg_l2_over.gif"
"bg_l3.gif"
"bg_l3_over.gif"
"bg_l4.gif"
"bg_l4_over.gif"
"bg_l5.gif"
"bg_l5_over.gif"
"bg_l6.gif"
"bg_l6_over.gif"
"bg_r2.gif"
"bg_r2_over.gif"
"bg_r3.gif"
"bg_r3_over.gif"
"bg_r4.gif"
"bg_r4_over.gif"
"bg_r5.gif"
"bg_r5_over.gif"
"bg_r6.gif"
"bg_r6_over.gif"

);

// FORMULAR ABSCHICKEN

function submitform(){
document.formular.submit();
}

// TOGGLE

function toggle(DivID) {
  if (document.layers) { // NN4+
    if (document.layers[DivID].visibility == 'visible') {
      document.layers[DivID].visibility = "hide";
      document.layers[DivID].display = "none";
      //document.layers[DivID+"FONT"].fontWeight = "normal";
    } else {
      document.layers[DivID].visibility = "show";
      document.layers[DivID].display = "inline";
      //document.layers[DivID+"FONT"].fontWeight = "bold";
    }
  } else if (document.getElementById) { // gecko(NN6) + IE 5+
    var obj = document.getElementById(DivID);
    //var objFONT = document.getElementById(DivID);

    if (obj.style.visibility == 'visible') {
      obj.style.visibility = "hidden";
      obj.style.display = "none";
      //objFONT.style.fontWeight = "normal";
    } else {
      obj.style.visibility = "visible";
      obj.style.display = "inline";
      //objFONT.style.fontWeight = "bold";
    }
  } else if (document.all) { // IE 4
    if (document.all[DivID].style.visibility == 'visible') {
      document.all[DivID].style.visibility = "hidden";
      document.all[DivID].style.display = "none";
      //document.all[DivID+"FONT"].style.fontWeight = "normal";
    } else {
      document.all[DivID].style.visibility = "visible";
      document.all[DivID].style.display = "inline";
      //document.all[DivID+"FONT"].style.fontWeight = "bold";
    }
  }
}

// BILD POPUP

var newwindow;
var wheight = 0, wwidth = 0;
function popup(url, title, iwidth, iheight, colour) {
var pwidth, pheight;
// SCREEN MITTE
links = (screen.width/2)-(iwidth/2);
oben = (screen.height/2)-(iheight/2);
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top='+oben+',left='+links);
wheight=iheight;
wwidth=iwidth;
}
if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+60;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html>');
newwindow.document.writeln('<head>');
newwindow.document.writeln('<title>' + title + '<\/title>');
newwindow.document.writeln('<\/head>');
newwindow.document.writeln('<body bgcolor= \"' + colour + '\">');
newwindow.document.writeln('<table border=\"0\" width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\" align=\"center\">');
newwindow.document.writeln('<a href=\"javascript:window.close()\">');
newwindow.document.writeln('<img src=' + url + ' border=\"0\" alt=\"Fenster schliessen/Close Window\">');
newwindow.document.writeln('<\/a>');
newwindow.document.writeln('<\/td><\/tr><\/table>');
newwindow.document.writeln('<\/body>');
newwindow.document.writeln('<\/html>');
newwindow.document.close();
newwindow.focus();
}
function tidy5() {
if (newwindow && !newwindow.closed) { newwindow.close(); }
}


// -->