var nn=document.layers?true:false;var n6=document.getElementById?true:false;var ie=document.all?true:false;if((ie)&&(n6))n6=false;var sichtbar="visible";var unsichtbar="hidden";if(window.navigator.systemLanguage&&!window.navigator.language){function hoverIE(){if(document.getElementById("Navigation")){var LI=document.getElementById("Navigation").firstChild;do{if(sucheUL(LI.firstChild)){LI.onmouseover=einblenden;LI.onmouseout=ausblenden;}
LI=LI.nextSibling;}
while(LI);}}
function sucheUL(UL){do{if(UL)UL=UL.nextSibling;if(UL&&UL.nodeName=="UL")return UL;}
while(UL);return false;}
function sucheA(A){return A.getElementsByTagName("A")[0];}
var BGOrgi="";var ColorOrgi="#0A6BB3";var FWOrgi="bold";function einblenden(){var UL=sucheUL(this.firstChild);var A=sucheA(this);UL.style.display="block";BGOrgi=this.style.backgroundColor;ColorOrgi=A.style.color;FWOrgi=A.style.fontWeight;this.style.backgroundColor="#FFFFFF";A.style.color="#E8E8E8";A.style.fontWeight="bold";}
function ausblenden(){sucheUL(this.firstChild).style.display="none";this.style.backgroundColor=BGOrgi;sucheA(this).style.color=ColorOrgi;sucheA(this).style.fontWeight=FWOrgi;}
window.onload=hoverIE;}
var xmlHttp;var xmlHttp=null;function GetXmlHttpObject(){var xmlHttp=null;try{xmlHttp=new XMLHttpRequest();if(xmlHttp.overrideMimeType){xmlHttp.overrideMimeType('text/xml;charset=iso-8859-1');}}
catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
var BrowserName=null;var BuggyBrowsers="ie4,IE6,ie5,ie5.5";aryBuggyBrowsers=new Array();aryBuggyBrowsers=BuggyBrowsers.split(",");browser=getBrowser();if(!Array.indexOf){Array.prototype.indexOf=function(el){for(var i=0;i<this.length;i++)if(el==this[i])return i;}}
var ausblendCount=0;var aryAusgeblendeteSelLists=new Array();function ShowOverlay(anaus){if(anaus){if(document.getElementById("overlayBG").style.display!="block")
{getWahreHoehe();if(aryBuggyBrowsers.indexOf(BrowserName)>-1){ausblendCount=0;aryAusgeblendeteSelLists=new Array();var selListen=document.getElementById('container').getElementsByTagName('select');for(var i=0;i<selListen.length;i++){if(selListen[i].style.display=="none")
{aryAusgeblendeteSelLists[ausblendCount]=selListen[i];ausblendCount++;}
selListen[i].style.display="none";}
document.getElementById("overlayBG").style.filter="Alpha(opacity=60, finishopacity=60, style=0)";}
document.getElementById("overlayBG").style.height=wahreHoehe+"px";document.getElementById("overlayBG").style.display="block";}}
else{if(aryBuggyBrowsers.indexOf(BrowserName)>-1){var selListen=document.getElementById('container').document.getElementsByTagName('select');for(var i=0;i<selListen.length;i++){check=1;for(var x=0;x<aryAusgeblendeteSelLists.length;x++)
{if(aryAusgeblendeteSelLists[x]==selListen[i])
{check=0;}}
if(check==1)
{selListen[i].style.display="inline";}}}
document.getElementById("overlayBG").style.display="none";document.getElementById("overlayBG").style.height="100%";}
return true;}
var aktivBild=0;var tmpDivBildAnzeige="";var tmpDivBildNavi="";var tmpDivDiashow="";var tmpDivBildContainer="";var tmpDivBildText="";var goDiashow=null;var tmpCheck=true;var tmpCheckLoad=false;var bild="";function zoomBild(id)
{aktivBild=id;tmpDivBildNavi=document.getElementById("bildnavi");tmpDivDiashow=document.getElementById("diashow");if(aktivBild<0)aktivBild=zoomFiles.length-1;if(aktivBild>zoomFiles.length-1)aktivBild=0;var tmpFile=zoomFiles[aktivBild];var tmpText=zoomText[aktivBild];if((zoomFiles.length>1)&&(tmpDivBildNavi))
{if(zoomFiles.length<5)
{tmpDivDiashow.style.display="none";}
tmpDivBildNavi.style.display="block";}
anzeigeBild(tmpFile,tmpText);}
function anzeigeBild(tmpFile,tmpText)
{tmpCheckLoad=false;if(ShowOverlay(true))
{ladeAnimation(true);}
if(zoomFiles.length>1&&tmpCheck)
{for(i=0;i<zoomFiles.length;i++)
{if(tmpFile==zoomFiles[i])
{tmpCheck=false;zoomBild(i);}}}
bild=new Image();bild.src=tmpFile;bild.onload=function(){anzeigeBildDiv(tmpFile,tmpText);};if(bild.complete&&bild.height>50&&bild.width>50)
{anzeigeBildDiv(tmpFile,tmpText);}}
function anzeigeBildDiv(tmpFile,tmpText)
{if(!tmpCheckLoad&&bild.height>50&&bild.width>50)
{document.images["bildxl"].alt=tmpText;document.images["bildxl"].height=bild.height;document.images["bildxl"].width=bild.width;tmpDivBildContainer=document.getElementById("bildcontainer");tmpDivBildAnzeige=document.getElementById("bildanzeige");tmpDivBildText=document.getElementById("bildtext");if(bild.width>570)
{tmpDivBildAnzeige.style.width=bild.width+30+"px";tmpDivBildAnzeige.style.marginLeft=(bild.width+30)/-2+"px";}
else
{tmpDivBildAnzeige.style.width="600px";tmpDivBildAnzeige.style.marginLeft="-300px";}
tmpDivBildContainer.style.width=bild.width+"px";tmpDivBildContainer.style.backgroundImage="url("+tmpFile+")";tmpDivBildContainer.style.backgroundRepeat="no-repeat";tmpDivBildContainer.style.backgroundPosition="0px 0px";tmpDivBildText.innerHTML=tmpText;tmpDivBildAnzeige.style.top=50+document.documentElement.scrollTop+"px";tmpDivBildAnzeige.style.display="block";ladeAnimation(false);tmpCheckLoad=true;}}
function diashow()
{if(goDiashow==null)
{document.getElementById("diashowStartStop").innerHTML="stoppen"}
zoomBild(aktivBild);aktivBild+=1;goDiashow=setTimeout("diashow()",3000);}
function diashowStop()
{if(goDiashow!=null)
{window.clearTimeout(goDiashow);document.getElementById("diashowStartStop").innerHTML="starten"
goDiashow=null;}}
function bildanzeigeSchliessen()
{diashowStop();tmpDivBildAnzeige.style.display="none";if(tmpDivBildNavi)
{tmpDivBildNavi.style.display="none";tmpDivDiashow.style.display="block";}
tmpCheck=true;tmpDivBildAnzeige="";if(tmpDivPopUp=="")
{ShowOverlay(false);}
tmpCheckLoad=false;}
function getBrowser(){if(document.ids){BrowserName="nc4";}
else if(document.all&&!document.getElementById){BrowserName="ie4";}
else if(window.opera&&!document.createElement){BrowserName="op5";}
else if(window.opera&&window.getComputedStyle){if(document.createRange){BrowserName="op8";}
else if(window.navigate){BrowserName="op7.5";}
else{BrowserName="op7.2";}}
else if(window.opera&&document.compatMode){BrowserName="op7";}
else if(window.opera&&document.releaseEvents){BrowserName="op6";}
else if(document.contains&&!window.opera){BrowserName="kq3";}
else if(window.pkcs11&&window.XML){BrowserName="f15";}
else if(window.getSelection&&window.atob){BrowserName="nn7";}
else if(window.getSelection&&!document.compatMode){BrowserName="nn6";}
else if(window.clipboardData&&document.compatMode){BrowserName=window.XMLHttpRequest?"IE7":"IE6";}
else if(window.clipboardData){BrowserName="ie5";if(!document.createDocumentFragment){BrowserName+=".5";}
if(document.doctype&&!window.print){BrowserName+="m";}}
else if(document.getElementById&&!document.all){BrowserName="op4";}
else if(document.images&&!document.all){BrowserName="nn3";}
else if(document.clientWidth&&!window.RegExp){BrowserName="kq2";}
return BrowserName;}
var wahreHoehe=0;function getWahreHoehe()
{if(window.innerHeight&&window.scrollMaxY)
{wahreHoehe=window.innerHeight+window.scrollMaxY;}
else if(document.body.scrollHeight>document.body.offsetHeight)
{wahreHoehe=document.body.scrollHeight;}
else
{wahreHoehe=document.body.offsetHeight;}
if(wahreHoehe==0)
{if(window.innerHeight)
{wahreHoehe=window.innerHeight;}
if(document.documentElement.clientHeight>(205+document.getElementById("inhalt").scrollHeight))
{wahreHoehe=document.documentElement.clientHeight;}
else
{wahreHoehe=215+document.getElementById("inhalt").scrollHeight;}}}
var tmpDivLadeAni="";function ladeAnimation(anaus)
{tmpDivLadeAni=document.getElementById("ladeani");if(anaus)
{tmpDivLadeAni.style.top=150+document.documentElement.scrollTop+"px";tmpDivLadeAni.style.display="block";}
else
{tmpDivLadeAni.style.display="none";}}
var tmpDivPopUp="";var tmpDivPopUpInhalt="";var tmpPopUpBreite=600;function openPopUp(seite,breite)
{tmpDivPopUp=document.getElementById("popup");tmpDivPopUpInhalt=document.getElementById("popup_content");tmpDivPopUp.style.top=50+document.documentElement.scrollTop+"px";if(breite)
{tmpDivPopUp.style.width=breite+"px";tmpDivPopUp.style.marginLeft=(breite)/-2+"px";tmpPopUpBreite=breite;}
else
{tmpDivPopUp.style.width="600px";tmpDivPopUp.style.marginLeft="-300px";}
if(ShowOverlay(true))
{ladeAnimation(true);}
tmpDivPopUpInhalt.src=seite;}
function showPopUp()
{if(!tmpDivPopUp)
{tmpDivPopUp=document.getElementById("popup");}
if(!tmpDivPopUpInhalt)
{tmpDivPopUpInhalt=document.getElementById("popup_content");}
tmpDivPopUp.style.height="";tmpDivPopUpInhalt.height=1;if(ShowOverlay(true))
{ladeAnimation(false);tmpDivPopUp.style.display="block";}
tmpDivPopUpInhaltRahmen=parent.frames["popup_frame"].document.getElementById("popup_content_rahmen");if(tmpPopUpBreite)
{tmpDivPopUpInhaltRahmen.style.width=tmpPopUpBreite+"px";}
else
{tmpDivPopUpInhaltRahmen.style.width="600px";}
var tmp=document.getElementById("popup_content").contentWindow.document.body;if(tmp.scrollHeight>tmp.offsetHeight)
{var hoehe=tmp.scrollHeight+10;}
else
{var hoehe=tmp.offsetHeight+10;}
tmpDivPopUpInhalt.height=hoehe;tmpDivPopUp.style.height=(hoehe+10)+"px";tmpDivPopUp.style.minHeight=(hoehe+55)+"px";}
function closePopUp()
{tmpDivPopUp.style.display="none";tmpDivPopUp.style.height="";tmpDivPopUpInhalt.src="";tmpDivPopUpInhalt.height=1;tmpDivPopUp="";if(tmpDivBildAnzeige=="")
{ShowOverlay(false);}}
function ieFake(fake)
{if((fake)&&(fake.blur))
{fake.blur();}}
var tmpTxt;function statAnzeige(mtxt)
{tmpTxt=txt;setTimeout("window.status = tmpTxt;",0);return true;}
var wi=null;function info(datei,x,y,scbar)
{tmpScroll="yes";if(scbar==0)tmpScroll="no";if(!x)var tmpX=520;else var tmpX=x+20;if(!y)var tmpY=350;else var tmpY=y+30;if(wi!=null)if(!wi.closed)wi.close();wi=window.open(datei,'Infofenster','left='+((screen.availWidth/2)-tmpX/2)+',top='+((screen.availHeight/2)-tmpY/2)+',marginwidth=0 marginheight=0,leftmargin=0,topmargin=0,scrollbars='+tmpScroll+',status=no,width='+tmpX+',height='+tmpY+',resizable=no');if(wi.opener==null)wi.opener=self;return;}
function feldGr(feld,inhalt,max)
{who=feld;if(inhalt>=max)
{alert('Achtung, maximale Feldgröße erreicht!');who.value=who.value.substr(0,max-1);}}
function popup_drucken()
{if(document.frames)
{document.frames.popup_frame.focus();document.frames.popup_frame.drucken();}
else
{popup_frame.drucken();}}
function drucken()
{if(window.print)self.print();if(document.all&&navigator.appVersion.substring(22,23)==4)
{self.focus();var OLECMDID_PRINT=6;var OLECMDEXECOPT_DONTPROMPTUSER=2;var OLECMDEXECOPT_PROMPTUSER=1;var WebBrowser='<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';document.body.insertAdjacentHTML('beforeEnd',WebBrowser);WebBrowser1.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER);WebBrowser1.outerHTML='';}}
function checkAnforderung()
{var count=0;var text1="";var iCheck=true;text=new Array(6);iCheck=true;for(i=0;i<document.anforderung.firma.value.length;i++){if(document.anforderung.firma.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.firma.value=='')||(iCheck)){text[count]="Firma";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.anrede.value.length;i++){if(document.anforderung.anrede.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.anrede.value=='')||(iCheck)){text[count]="Anrede";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.vorname.value.length;i++){if(document.anforderung.vorname.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.vorname.value=='')||(iCheck)){text[count]="Vorname";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.nachname.value.length;i++){if(document.anforderung.nachname.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.nachname.value=='')||(iCheck)){text[count]="Nachname";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.funktion.value.length;i++){if(document.anforderung.funktion.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.funktion.value=='')||(iCheck)){text[count]="Funktion";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.strasse.value.length;i++){if(document.anforderung.strasse.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.strasse.value=='')||(iCheck)){text[count]="Straße";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.plz.value.length;i++){if(document.anforderung.plz.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.plz.value=='')||(iCheck)){text[count]="PLZ";count+=1;}
iCheck=true;for(i=0;i<document.anforderung.ort.value.length;i++){if(document.anforderung.ort.value.substr(i,1)!=' ')iCheck=false;}
if((document.anforderung.ort.value=='')||(iCheck)){text[count]="Ort";count+=1;}
if(document.anforderung.email.value==""){text[count]="eMail";count+=1;}
else{var checkMail=document.anforderung.email.value.indexOf("@");var checkMail1=document.anforderung.email.value.lastIndexOf(".");var checkMail2=document.anforderung.email.value.lastIndexOf(" ");var checkMailLaenge=document.anforderung.email.value.length;if((checkMail2!=-1)||(checkMail1==-1)||(checkMail<1)||(checkMail==checkMailLaenge-1)||(checkMail==checkMail1-1)||(checkMail1>checkMailLaenge-3)||(checkMailLaenge<6)){text[count]="gültige eMail";count+=1;}}
if(count>=2)
{text1="Folgende Felder müssen Sie noch ausgefüllen:\n"}
else
{text1="Füllen Sie bitte auch noch das folgende Feld aus:\n"}
for(i=0;i<count;i++)
{text1+="- "+text[i]+"\n";}
if(count>0)
{alert(text1);return false;}
return;}
function checkStichwortSuche(feld)
{var iCheck=true;var tmpFeld=feld.stichwort;var tmpAction=feld.action;for(i=0;i<tmpFeld.value.length;i++)
{if(tmpFeld.value.substr(i,1)!=' ')
{iCheck=false;i=tmpFeld.value.length;}}
if((tmpFeld.value=='')||(iCheck))
{alert("Bitte geben Sie erst einen Suchbegriff in das Textfeld ein,\nnach dem gesucht werden soll.");return false;}
tmpAction=tmpAction.replace(/#suchwort#/g,tmpFeld.value);feld.action=tmpAction;return;}
function inhaltCheck(field,txt,url)
{iCheck=true;for(i=0;i<field.value.length;i++)
{if(field.value.substr(i,1)!=' ')
{iCheck=false;i=field.value.length;}}
if(iCheck)
{alert(txt);}
else
{document.location.href=url;}}
function divBG(div,farbe)
{var tmpDiv=document.getElementById(div);if(tmpDiv)
{tmpDiv.style.backgroundColor=farbe;}}
function divEin(div)
{var tmpDiv=document.getElementById(div);if(tmpDiv)
{tmpDiv.style.display="block";}}
function divAus(div)
{var tmpDiv=document.getElementById(div);if(tmpDiv)
{tmpDiv.style.display="none";}}
partnerCount=new Array(0,0,0);function partnerWechsler(id)
{var tmp=document.images["partner_bild_"+id];if(ie)tmp.filters.revealTrans.Apply();tmp.src=aryPartnerBilder[partnerCount[id]];if(ie)tmp.filters.revealTrans.Play();partnerCount[id]++;if(partnerCount[id]==partnerAnzahl)
{partnerCount[id]=0;}
setTimeout('partnerWechsler( '+id+' )',4000);}
tmpURL=new Array();function bannerWechsler()
{var tmp1=document.images["banner_1"];var tmp2=document.images["banner_2"];var tmp3=document.images["banner_3"];var tmp4=document.images["banner_4"];var tmpBanner1=-1;var tmpBanner2=-1;var tmpBanner3=-1;var tmpBanner4=-1;var tmpZufallsZahl=0;while(tmpBanner1<0||tmpBanner1==bannerAnzahl)
{tmpBanner1=Math.floor(Math.random()*bannerAnzahl);}
while(tmpBanner2<0||tmpBanner2==tmpBanner1||tmpBanner2==bannerAnzahl)
{tmpBanner2=Math.floor(Math.random()*bannerAnzahl);}
while(tmpBanner3<0||tmpBanner3==tmpBanner1||tmpBanner3==tmpBanner2||tmpBanner3==bannerAnzahl)
{tmpBanner3=Math.floor(Math.random()*bannerAnzahl);}
while(tmpBanner4<0||tmpBanner4==tmpBanner1||tmpBanner4==tmpBanner2||tmpBanner4==tmpBanner3||tmpBanner4==bannerAnzahl)
{tmpBanner4=Math.floor(Math.random()*bannerAnzahl);}
tmp1.src=aryBannerBilder[tmpBanner1];tmp1.title=aryBannerTexte[tmpBanner1];tmpURL[1]=aryBannerURLs[tmpBanner1];tmp2.src=aryBannerBilder[tmpBanner2];tmp2.title=aryBannerTexte[tmpBanner2];tmpURL[2]=aryBannerURLs[tmpBanner2];tmp3.src=aryBannerBilder[tmpBanner3];tmp3.title=aryBannerTexte[tmpBanner3];tmpURL[3]=aryBannerURLs[tmpBanner3];tmp4.src=aryBannerBilder[tmpBanner4];tmp4.title=aryBannerTexte[tmpBanner4];tmpURL[4]=aryBannerURLs[tmpBanner4];setTimeout('bannerWechsler()',20000);}
function bannerClick(welcher)
{window.open(tmpURL[welcher]);}
function maillink(wert)
{var mail=wert.replace("_","@");document.location.href="mailto:"+mail;}
function topSprung()
{window.scrollTo(0,0);}
