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);


var expireDate = new Date
var hasFlash = false
var numVisits = 0
var skipFlashURL = "noflash.html"
//Sets the browser cookie

function setCookie(){

expireDate.setMonth(expireDate.getMonth() + 6)

document.cookie = "numVisits=" + 0 + "; expires=" + expireDate.toGMTString()

	}

//Check for flash if browser is netscape
//submitted to www.a1javascripts.com by Joshua Luft-Glidden
if(navigator.appName == "Netscape"){

for(i=0; i<navigator.plugins.length; i++){

if(navigator.plugins[i].name == "Shockwave Flash"){

hasFlash = true

	}

}

}

//Check for flash if browser is IE

else if(navigator.appName == "Microsoft Internet Explorer"){

document.writeln("<script language='VBscript'>")
document.writeln('\'Test to see if VBScripting works')
document.writeln("detectableWithVB = False")
document.writeln("If ScriptEngineMajorVersion >= 2 then")
document.writeln("   detectableWithVB = True")
document.writeln("End If")
document.writeln('\'This will check for the plugin')
document.writeln("Function detectActiveXControl(activeXControlName)")
document.writeln("   on error resume next")
document.writeln("   detectActiveXControl = False")
document.writeln("   If detectableWithVB Then")
document.writeln("      detectActiveXControl = IsObject(CreateObject(activeXControlName))")
document.writeln("   End If")
document.writeln("End Function")
document.writeln("</scr" + "ipt>")
hasFlash = detectActiveXControl("ShockwaveFlash.ShockwaveFlash.1")

}


Normal1 = new Image();
Normal1.src = "berlac/deutsch/pics/aktuelles.gif";
Highlight1 = new Image();
Highlight1.src = "berlac/deutsch/pics/aktuelles_grau.gif";

Normal2 = new Image();
Normal2.src = "berlac/deutsch/pics/wir_ueber_uns.gif";
Highlight2 = new Image();
Highlight2.src = "berlac/deutsch/pics/wir_ueber_uns_grau.gif";

Normal3 = new Image();
Normal3.src = "berlac/deutsch/pics/anwendungsgebiet.gif";
Highlight3 = new Image();
Highlight3.src = "berlac/deutsch/pics/anwendungsgebiet_grau.gif";

Normal4 = new Image();
Normal4.src = "berlac/deutsch/pics/lacke_effekte.gif";
Highlight4 = new Image();
Highlight4.src = "berlac/deutsch/pics/lacke_effekte_grau.gif";

Normal5 = new Image();
Normal5.src = "berlac/deutsch/pics/produktinfo.gif";
Highlight5 = new Image();
Highlight5.src = "berlac/deutsch/pics/produktinfo_grau.gif";

Normal6 = new Image();
Normal6.src = "berlac/deutsch/pics/services.gif";
Highlight6 = new Image();
Highlight6.src = "berlac/deutsch/pics/services_grau.gif";

Normal7 = new Image();
Normal7.src = "berlac/deutsch/pics/kontakt.gif";
Highlight7 = new Image();
Highlight7.src = "berlac/deutsch/pics/kontakt_grau.gif";


Normal11 = new Image();
Normal11.src = "berlac/deutsch/pics/suche.gif";
Highlight11 = new Image();
Highlight11.src = "berlac/deutsch/pics/suche_grau.gif";

Normal22 = new Image();
Normal22.src = "berlac/deutsch/pics/sitemap.gif";
Highlight22 = new Image();
Highlight22.src = "berlac/deutsch/pics/sitemap_grau.gif";

Normal33 = new Image();
Normal33.src = "berlac/deutsch/pics/english.gif";
Highlight33 = new Image();
Highlight33.src = "berlac/deutsch/pics/english_grau.gif";

Normal44 = new Image();
Normal44.src = "berlac/deutsch/pics/chinese_traditional.gif";
Highlight44 = new Image();
Highlight44.src = "berlac/deutsch/pics/chinese_traditional_grau.gif";

Normal55 = new Image();
Normal55.src = "berlac/deutsch/pics/chinese_simplified.gif";
Highlight55 = new Image();
Highlight55.src = "berlac/deutsch/pics/chinese_simplified_grau.gif";

function Bildwechsel(Bildnr,Bildobjekt) {
 window.document.images[Bildnr].src = Bildobjekt.src;
}
