﻿// Browser ueberpruefenbrowser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))myPos = "none"// Navi --------------------------------------------// Sucht alle Pas-Bilder im Dokument und laedt die Akt-Bilder dazu.function setup(){if(browser){Bild = new Image();anzBild=document.images.length;for(n=1;n<anzBild;n++){bildName=document.images[n].src;pos=bildName.indexOf("_pas.gif")if(pos!=-1){ Bild[n]=new Image();Bild[n].src=bildName.substring(0,pos)+"_akt.gif" }}}}// Sucht alle Pas-bilder auf allen Layers im Dokument und laedt die Akt-Bilder dazu.function setupLayers(){if(browser){Bild = new Image();if(document.layers){anzLayers=document.layers.length;for(i=0;i<anzLayers;i++){anzBild=document.layers[i].document.images.length;for(n=1;n<anzBild;n++){bildName=document.layers[i].document.images[n].src;pos=bildName.indexOf("_pas.gif")if(pos!=-1){Bild[n]=new Image();Bild[n].src=bildName.substring(0,pos)+"_akt.gif"}}}anzBild=document.images.length;for(n=1;n<anzBild;n++){bildName=document.images[n].src;pos=bildName.indexOf("_pas.gif")if(pos!=-1){Bild[n]=new Image();Bild[n].src=bildName.substring(0,pos)+"_akt.gif"}}}}}// Rollovers auf Layersfunction mOverLayer(a,b){if(browser){if(document.layers){bildSrc = document.layers[b].document.images[a].src;document.layers[b].document.images[a].src = bildSrc.substring(0,bildSrc.length-8)+"_akt.gif";}else{ mOver(a) }}}function mOutLayer(a,b){ if(browser){if(document.layers){bildSrc = document.layers[b].document.images[a].src;document.layers[b].document.images[a].src = bildSrc.substring(0,bildSrc.length-8)+"_pas.gif";}else{ mOut(a) }}}// Normale Rolloversfunction mOver(a){if(browser){if(a!=myPos){bildSrc = document.images[a].src;document.images[a].src = bildSrc.substring(0,bildSrc.length-8) + "_akt.gif";}}}function mOut(a){if(browser){if(a!=myPos){bildSrc = document.images[a].src;document.images[a].src = bildSrc.substring(0,bildSrc.length-8) + "_pas.gif";}}}function mClick(a){if(browser){bildSrc = document.images[a].src;document.images[a].src = bildSrc.substring(0,bildSrc.length-8) + "_sel.gif";}}var ns = (navigator.appName == "Netscape")var mac = (navigator.userAgent.toLowerCase().indexOf('mac')>=0)var showStatus=falsevar vDat, bDatvar qsForm// Redirecting (Timeout) ALT !!! -----------------------------------function Redirecting(page) {setTimeout("'location.href='+'page'",2000)}/*function Redirecting() {	setTimeout("location.href='http://www.dogs-n-bandits.com'",3000)}*/// Ext. Windows --------------------------------------------// Photos (popup-wins)function ShowPhoto(where) {options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=yes,directories=no,width=520,height=460";newWindow = window.open('http://www.krautwasser.de/previews/projekte/'+where+'.html','photos',options);newWindow.focus()}// Sitemenus global (Disclaimer, Impressum) --> Noch ausarbeiten!!function ShowSitemenu(where) {layoutDisclaimer="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=380,height=270";layoutImpressum="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=240,height=400";newWindow = window.open('http://www.krautwasser.de/sitemenus/'+where+'.html','sitemenus',options);newWindow.focus()}// Disclaimerfunction ShowDisclaimer() {options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=458,height=324";newWindow = window.open('http://www.krautwasser.de/sitemenus/disclaimer.html','disclaimer',options);newWindow.focus()}// Impressumfunction ShowImpressum() {options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=254,height=452";newWindow = window.open('http://www.krautwasser.de/sitemenus/impressum.html','impressum',options);newWindow.focus()}// Anfahrtsplanfunction ShowMap() {options="location=no,scrollbars=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes,directories=no";newWindow = window.open('http://link2.map24.com/?lid=23b6dfdc&maptype=JAVA&width0=1500&street0=Seestrasse+1%2F1&zip0=73240&city0=Wendlingen&street0=Seestrasse+1%2F1&country0=DE&logo_url0=http://www.krautwasser.de&description0=Krautwasser+Bauberatung%2C+73240+Wendlingen','map',options);newWindow.focus()}// Routenplanerfunction ShowRoute() {options="location=no,scrollbars=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes,directories=no";newWindow = window.open('http://mail.map24.com/55498de','route',options);newWindow.focus()}// Weiterempfehlen-Funktion (Tell-A-Friend)function ShowTellafriend() {options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=340,height=460";newWindow = window.open('http://www.krautwasser.de/content/tellafriend/index.php','tellafriend',options);newWindow.focus()}// Hilfefunktionfunction ShowHelp() {options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=240,height=324";newWindow = window.open('http://www.krautwasser.de/sitemenus/hilfe.html','help',options);newWindow.focus()}
