if (navigator.appVersion.indexOf("2.") != -1){
	check = false;
	}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
	check = false;
	}
else
 {
	check = true;
	}
if (check == true){
	image1 = new Image();
	image1.src = "img/logo_sw.gif";
	image1on = new Image();
	image1on.src = "img/logo_color.gif";
	image1alt = new Image();
	image1alt.src = "img/logo_color.gif";
	
	image2 = new Image();
	image2.src = "img/sponsorleiste_sw.gif";
	image2on = new Image();
	image2on.src = "img/sponsorleiste_f.gif";
	image2alt = new Image();
	image2alt.src = "img/sponsorleiste_f.gif";
	
	image3 = new Image();
	image3.src = "img/v_logo_bfn_sw.gif";
	image3on = new Image();
	image3on.src = "img/v_logo_bfn.gif";
	image3alt = new Image();
	image3alt.src = "img/v_logo_bfn.gif";
	
	image4 = new Image();
	image4.src = "img/v_logo_dshs_sw.gif";
	image4on = new Image();
	image4on.src = "img/v_logo_dshs.gif";
	image4alt = new Image();
	image4alt.src = "img/v_logo_dshs.gif";
	
	image5 = new Image();
	image5.src = "img/v_logo_vdn_sw.gif";
	image5on = new Image();
	image5on.src = "img/v_logo_vdn.gif";
	image5alt = new Image();
	image5alt.src = "img/v_logo_vdn.gif";
	
	image6 = new Image();
	image6.src = "img/v_logo_dsb_sw.gif";
	image6on = new Image();
	image6on.src = "img/v_logo_dsb.gif";
	image6alt = new Image();
	image6alt.src = "img/v_logo_dsb.gif";
	
	image7 = new Image();
	image7.src = "img/v_logo_kmv_sw.gif";
	image7on = new Image();
	image7on.src = "img/v_logo_kmv.gif";
	image7alt = new Image();
	image7alt.src = "img/v_logo_kmv.gif";

	
				
}
imagealt = ""
function imageon(name){
	if (imagealt != name){
        	document[name].src = eval(name + "on.src");
	}
}
function imageoff(name){
	if (imagealt != name){
        	document[name].src = eval(name + ".src");
	}
}
function on(name){
        if (check == true){
	imageon(name);
	}
}
function off(name){
        if (check == true){
	imageoff(name);
	}
}
function alt(name){
	if (check == true){
	document[name].src = eval(name + "alt.src");
	if (imagealt != name){
		if (imagealt != ""){
			document[imagealt].src = eval(imagealt + ".src");
		}
	}
	imagealt = name
	}
}


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();
}
MM_reloadPage(true);


function auf(menu) {
if (document.all) {
document.all[menu].style.visibility="visible";
}
if (document.layers) {
document.layers[menu].visibility="visible";
}
if (document.getElementById)
document.getElementById(menu).style.visibility = "visible";
}

function zu(menu) {
if (document.all) {
document.all[menu].style.visibility="hidden";
}
if (document.layers) {
document.layers[menu].visibility="hidden";
}
if (document.getElementById)
document.getElementById(menu).style.visibility = "hidden";
}

function OpenNetzkostWindow (Url,Title, breite,hoehe, Scrollbars,Resizable) {
  links=(screen.width-breite)/2
  oben=(screen.height-hoehe)/2
	
  var win_opt= "toolbar=0,location=0,directories=0,status=0,menubar=0,";
  win_opt += "scrollbars=" + Scrollbars + ",resizable=" + Resizable + ",copyhistory=0,";
  win_opt += "dependent=yes,	width="+breite+",height="+hoehe+",top="+oben+",screenY="+oben+",left="+links+",screenX="+links;
	
  newWindow = window.open('',Title,win_opt);
  if (newWindow != null) {
    if (newWindow.opener == null)
      newWindow.opener = self;

    newWindow.location.href = Url;
    if (newWindow.focus) 
		  newWindow.focus();
  }
}


Fensterzahl=0
function fenster(URL1,breite,hoehe){
  links=(screen.width-breite)/2
  oben=(screen.height-hoehe)/2
  if(Fensterzahl>0){
    if(F1.closed==false)
      F1.close()
  }
  Fensterzahl=1
  F1=open("","","width="+breite+",height="+hoehe+",top="+oben+",screenY="+oben+",left="+links+",screenX="+links)
  F1.document.open();
  F1.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">')
  F1.document.write('<a href="javascript:window.close()"><img src="'+URL1+'" alt="Fenster schlie&szlig;en" title="Fenster schlie&szlig;en" border="0"></a></body>')
  F1.document.close();
}

function OpenSubmitWindow(fr){
  eval("actionwin=window.open('','"+fr+"','width=250,height=200,resize=no,scrollbars=no,menubar=no,directories=no').focus();");
}



function SubmitForm(fn,fr){
  if (document.forms[fn].email.value== ""){
   alert("Bitte geben Sie eine Emailadresse an!");
  }else{
    OpenSubmitWindow(fr);
    document.forms[fn].submit();
  }
}
