// Deluxe PopUp Fenster //////////////////////////////////////////////

var winID = 0;
var popUp = new Array();

function fensterAuf(inhalt, breite, hoehe, winname) {
  var xOff = null,yOff = null;
  var cv4 = (parseInt(navigator.appVersion)>=4);
  var fArgs = fensterAuf.arguments,wp = new Array(0,0,0,0,0,0);

  if (fArgs.length > 4) {
    for (a=4;a<fArgs.length;a++) {
      if (fArgs[a].length == 6) {
        for (i=0;i<6;i++) {wp[i] = fArgs[a].substr(i,1);}
      } else {
        if (xOff != null) yOff = fArgs[a]; else xOff = fArgs[a];
      }
    }
  }

  if (xOff == null) {
    if (cv4) xOff = (screen.width-breite)/2; else xOff = 10;
  }
  if (yOff == null) {
    if (cv4) {
      yOff = (screen.height-(hoehe))/2;
      yOff -= 20;
    } else {
      yOff = 10;
    }
  }

  popUp[winID] = window.open(inhalt,winname,"toolbar="+wp[0]+",status="+wp[1]+",location="+wp[2]+",menubar="+wp[3]+",resizable="+wp[4]+",scrollbars="+wp[5]+",width="+breite+",height="+hoehe+",left="+xOff+",top="+yOff);
  winID++;
}
//////// Ende Deluxe PopUp Fenster ////////////////////////////////// 


// DOM Call //////////////////////////////////////////////////////////
function DOMCall(name) {
  if (document.layers)
    return document.layers[name];
  else if (document.all)
    return document.all[name];
  else if (document.getElementById)
    return document.getElementById(name);
}

// funktion zum aufklappen der navigation //////////////////////////
function einblenden(currentDiv) {
		if(previousDiv) DOMCall(previousDiv).style.display = "none";
		previousDiv = currentDiv;
		with(DOMCall(currentDiv).style){
		  if(display=="none" || display == null || display =="") {
				  display="inline";
				}
				else display="none";
  }
}

function imageCycle(currentClass) {
  if(previousClass) DOMCall(previousClass).className = "liNaviTopNa";
		previousClass = currentClass;
		with(DOMCall(currentClass)) {
  		if(className == "liNaviTopNa") {
		  	 className = "liNaviTop";
		  }
		  else className = "liNaviTopNa";
		}
}