
// reservierung = "paklausipa@onlinehome.de";

    var verantwortlicher = "paklausipa";
    verantwortlicher = verantwortlicher + "@";
    verantwortlicher = verantwortlicher + "onlinehome";
    verantwortlicher = verantwortlicher + ".de";

    var mailTo = "Ludwig.Maier";
    mailTo = mailTo + "@";
    mailTo = mailTo + "kulturbh";
    mailTo = mailTo + ".de";

    var reservierung = "info";
    reservierung = reservierung + "@";
    reservierung = reservierung + "kulturbh";
    reservierung = reservierung + ".de";

    var preise = "10,--";

    var kuenstlerhausseite = false;

    var ermaessigteEintrittspreise = '<div class=hinweis><center>Der erm&auml;ssigte Eintrittspreis gilt f&uuml;r folgende Personengruppen:</center><br><b><ul><li>&#149;&nbsp;Sch&uuml;ler</li><li>&#149;&nbsp;Studenten</li><li>&#149;&nbsp;Rentner</li><li>&#149;&nbsp;Schwerbehinderte</li></ul><br></div>';

    var ja = true;
    var nein = false;

    var cookie_prefix = "kulturnetzwerk_bb_";

    var standard_autoplay = ja;
    var standard_view_gallery_withpanel = nein;
    var standard_outlineType = "drop-shadow";
    var standard_menue = "visible";
    var standard_hinweis = "visible";
    var standard_hinweis_image = "visible";
    var standard_ausstellung = "visible";
    var standard_ausstellung_image = "visible";

    var farbe_aussen = "#2c2c2c";
    var farbe_kopf = "#595959";
    var farbe_menue = "#9c9c9c";
    var farbe_mitte = "#a5a5a5";
    var farbe_aktiv_schrift = "#26292e";
    var farbe_schrift = "#00519d";
    var farbe_bgcolor = "#00a8df";

    var page = "";

    var nachschau = "false";
 
    var aktiveURL = document.URL;
    var parameterzeile = aktiveURL.substr((aktiveURL.indexOf("?")+1))

    var galerie = new Array();

    var trennpos
    var endpos
    var paramname
    var paramwert

    var number = 0;

    var neu = "false";

    var nachschau = "false";

    var quote = '"';

    var bulletColor = "";
    bulletColor = "#000000";

    var browser = "";
    if (navigator.appName == 'Microsoft Internet Explorer') {
        browser = "IE";
    }
    var stelle  = navigator.userAgent.indexOf("Firefox");
    if (stelle != -1) {
        browser = 'Firefox';
    }
    stelle = 0;
    stelle  = navigator.userAgent.indexOf("Apple");
    if (stelle != -1) {
        browser = 'Safari';
    }

    function browserInfo()
    {
//alert("aaa");
    }

    function includeJavaScript(jsFile)
    {
      document.write('<script type="text/javascript" src="' + jsFile + '"></script>'); 
    }

    includeJavaScript('aktuelle_ausstellung.js');
    includeJavaScript('menues.js');
    includeJavaScript('js/bildlaufleiste.js');
    includeJavaScript('js/js03.js');
    includeJavaScript('js/js04.js');
    includeJavaScript('js/js01.js');
    includeJavaScript('js/js02.js');

    var myQuote = "'";
    var myXQuote = "'";

    var Fehler = "";

    window.onerror = Fehlerbehandlung;
    window.onerror = null;
    
    function Fehlerbehandlung (Nachricht, Datei, Zeile) {
        Fehler = "Fehlermeldung:\n" + Nachricht + "\n" + Datei + "\n" + Zeile;
        zeigeFehler();
        return true;
    }
    
    function zeigeFehler () {
      alert(Fehler);
    }

    var i = 0;
    var leftrightslide = new Array();

    function get_parameters() {
        while (parameterzeile != "") {
          trennpos = parameterzeile.indexOf("=")
          endpos = parameterzeile.indexOf("&")
          if (endpos < 0) { endpos = 500000 }
           paramname = parameterzeile.substr(0,trennpos)
           paramwert = parameterzeile.substring(trennpos+1,endpos)
           eval (paramname + " = \"" + paramwert + "\"")
           parameterzeile = parameterzeile.substr(endpos+1)
        }
    }

    function replaceIt(sString, sReplaceThis, sWithThis) {
        if (sReplaceThis != "" && sReplaceThis != sWithThis) {
            var counter = 0;
            var start = 0;
            var before = "";
            var after = "";
                while (counter<sString.length) {
                start = sString.indexOf(sReplaceThis, counter);
                    if (start == -1) {
                        break;
                    } else {
                        before = sString.substr(0, start);
                        after = sString.substr(start + sReplaceThis.length, sString.length);
                        sString = before + sWithThis + after;
                        counter = before.length + sWithThis.length;
                    }
                }
        }
    return sString;
    }

    function getCookie(name) {
        var start = document.cookie.indexOf( name + "=" );
        var len = start + name.length + 1;
        if ((!start) && (name != document.cookie.substring(0, name.length))) {
            return "";
        }
        if ( start == -1 ) return "... not found ...";
        var end = document.cookie.indexOf( ';', len );
        if ( end == -1 ) end = document.cookie.length;
        var sendText = unescape( document.cookie.substring( len, end ) );
        sendText = replaceIt(sendText,"+"," ");
        return sendText;
    } 

    function setCookie(name, value) {
        var days = 5365;
        var exp = new Date();
        exp.setTime(exp.getTime() + 24 * 60 * 60 * days * 1000);
        document.cookie = name+"="+value+"; expires="+exp.toGMTString();
    }

    if (!document.cookie) {
        setCookie(cookie_prefix + "autoplay",standard_autoplay);
        setCookie(cookie_prefix + "view_gallery_withpanel",standard_view_gallery_withpanel);
        setCookie(cookie_prefix + "outlineType",standard_outlineType);
        setCookie(cookie_prefix + "menue",standard_menue);
        setCookie(cookie_prefix + "hinweis",standard_hinweis);
        setCookie(cookie_prefix + "hinweis_image",standard_hinweis_image);
        setCookie(cookie_prefix + "ausstellung",standard_ausstellung);
        setCookie(cookie_prefix + "ausstellung_image",standard_ausstellung_image);
    }

    var retCode = false;

    retCode = getCookie(cookie_prefix + "autoplay");
    if (retCode != "") {
        if (retCode == "true") {
            standard_autoplay = true;
        } else {
            standard_autoplay = false;
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "view_gallery_withpanel");
    if (retCode != "") {
        if (retCode == "true") {
            standard_view_gallery_withpanel = true;
        } else {
            standard_view_gallery_withpanel = false;
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "menue");
    if (retCode != "") {
        if (retCode == "true") {
            standard_menue = "visible";
        } else {
            standard_menue = "hidden";
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "hinweis");
    if (retCode != "") {
        if (retCode == "true") {
            standard_hinweis = "visible";
        } else {
            standard_hinweis = "hidden";
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "hinweis_image");
    if (retCode != "") {
        if (retCode == "true") {
            standard_hinweis_image = "visible";
        } else {
            standard_hinweis_image = "hidden";
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "ausstellung");
    if (retCode != "") {
        if (retCode == "true") {
            standard_ausstellung = "visible";
        } else {
            standard_ausstellung = "hidden";
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "ausstellung_image");
    if (retCode != "") {
        if (retCode == "true") {
            standard_ausstellung_image = "visible";
        } else {
            standard_ausstellung_image = "hidden";
        }
    } else {
    }

    retCode = getCookie(cookie_prefix + "outlineType");
    if (retCode != "") {
        standard_outlineType = retCode;
    } else {
    }

    function bild_laden(bild)
    {
        var bild_klein = "";
        bild_klein = replaceIt(bild,".jpg","_klein.jpg");
        leftrightslide[i++] = '<div style="left:-60;position:relative;"><a href="' + bild + '" rel="lightbox[bildlaufleiste]"><img style="border:0px;" src="' + bild_klein + '"></a></div>';
    }

    var windowNumber = 0;
    var galerieNumber = 0;
    var galeriewindowNumber = 0;

    var slidebgcolor = "#fefffa";     // Hintergrundfarbe
    var sliderwidth = 120;               // Breite des Sliders
    var sliderheight = 364;              // Höhe des Sliders
    var slidespeed = 1;                    // Geschwindigkeit des Sliders 1=langsam ... 10=schnell
    var slidedir = "runter";             // Richtung - "hoch" oder "runter"

    hs.graphicsDir = 'js/graphics/';
    hs.outlineType = standard_outlineType;
    hs.outlineWhileAnimating = true;
    hs.align= 'center';
    hs.align= 'auto';
    hs.credit = false;
    hs.fadeInOut = true;
    hs.easing = 'easeInBack';
    hs.align='center';
    hs.dimmingOpacity = 0.75;
    hs.dimmingDuration = 75;
    hs.transitions = ["expand","fade"];
    hs.numberOfImagesToPreload = 10000;
//    hs.minWidth = 200;
//    hs.padToMinWidth = true;
    hs.allowMultipleInstances = true;    
    hs.restoreTitle= '';
//    hs.captionEval = 'this.a.href';
    hs.numberPosition = 'caption';
    hs.wrapperClassName = 'dark borderless';

    hs.lang = {
       cssDirection:     'ltr',
       loadingText :     'Lade...',
       loadingTitle :    'Klick zum Abbrechen',
       focusTitle :      'Klick um nach vorn zu bringen',
       fullExpandTitle : 'Zur Originalgr&ouml;&szlig;e erweitern',
       fullExpandText :  'Vollbild',
       creditsText :     'Powered by <i>Highslide JS</i>',
       creditsTitle :    'Gehe zur Highslide JS Homepage',
       previousText :    'Voriges',
       previousTitle :   'Voriges (Pfeiltaste links)',
       nextText :        'N&auml;chstes',
       nextTitle :       'N&auml;chstes (Pfeiltaste rechts)',
       moveTitle :       'Verschieben',
       moveText :        'Verschieben',
       closeText :       'Schlie&szlig;en',
       closeTitle :      'Schlie&szlig;en (Esc)',
       resizeTitle :     'Gr&ouml;&szlig;e wiederherstellen',
       playText :        'Abspielen',
       playTitle :       'Slideshow abspielen (Leertaste)',
       pauseText :       'Pause',
       pauseTitle :      'Pausiere Slideshow (Leertaste)',
//       number :          'Bild %1 von %2',
//           number :          '',
       restoreTitle :    'Klick um das Bild zu schlie&szlig;en, klick und ziehe um zu verschieben. Benutze Pfeiltasten f&uuml;r vor und zur&uuml;ck.'
    };

    hs.addSlideshow({
        	// slideshowGroup: 'group1',
        	interval: 5000,
        	repeat: true,
        	useControls: false,
        	fixedControls: 'fit',
        	overlayOptions: {
        		opacity: .6,
        		position: 'top center',
                hideOnMouseOut: true
            }
        });

    hs.Expander.prototype.onCreateOverlay = function (sender, e) {
       e.overlay.innerHTML = e.overlay.innerHTML.replace("{altattrib}", sender.thumb.alt);
    };

    hs.registerOverlay({
    	html: '<div class="closebutton" onclick="return hs.close(this)" title=" Fenster schlie&szlig;en "></div>',
    	position: 'top right',
    	fade: 2 // fading the semi-transparent overlay looks bad in IE
    });

    function writeUpperMenuEntries() {
        for (var i=1; i < (numberOfUpperEntries + 1); i++) {
            document.write('<li><a href="' + menueUpperEntriesHTTPs[i] + ' rel="">' + menueUpperEntries[i] + "</a></li>");
        }
        return;
    }

    var previous_bgcolor = "";
    var previous_color = "";
    function einsetzen(theObject, what) {
        previous_bgcolor = theObject.style.backgroundColor;
        previous_color = theObject.style.color;
        if (what == "1") {
        } else {
            theObject.style.backgroundColor = farbe_bgcolor;
            theObject.style.color = "#ffffff";
        }
    }

    function aussetzen(theObject) {
        theObject.style.backgroundColor = previous_bgcolor;
        theObject.style.color = previous_color;
    }

    var page = "";

    function writeMenuEntries() {
        var tmpString = "";
        for (var i=1; i < (numberOfEntries + 1); i++) {
            if (menueEntries[i] == page) {
                tmpString = '<tr><td class="navigation-tabelle-aktiv">' +  menueEntries[i] + '&nbsp;&nbsp;</td></tr>';
                tmpString = replaceIt(tmpString, 'Veranstaltungen - ', '') 
                tmpString = replaceIt(tmpString, 'Ausstellungen - ', '') 
                document.write(tmpString);
            } else {
                tmpString = '<tr><td class="navigation-tabelle">' + menueEntriesHTTPs[i] + menueEntries[i] + '</a></td></tr>';
                tmpString = replaceIt(tmpString, 'Veranstaltungen - ', '') 
                tmpString = replaceIt(tmpString, 'Ausstellungen - ', '') 
                document.write(tmpString);
            }
        }
        return;
    }

    function doBeginning()
    {

        if (standard_menue == "hidden" && standard_ausstellung == "hidden") {
            document.write('<div id="wrapper" style="background-image: url(img/wrapper_strich.jpg);">');
        } else {
            document.write('<div id="wrapper">');
        }

            document.write('<div id="header">');

                document.write('<div id="xlogo">');
                    document.write('<table width="98%" border="0">');
                        document.write('<tr>');
                            document.write('<td width="40%" valign="top" align="right">');
                                document.write('<img style="position:relative;top:+9px;" src="img/Logo.png" alt="" width="341px">');
                            document.write('</td>');
                            document.write('<td width="10%" valign="top">');
                                document.write('<font color="white"><br>&nbsp;&nbsp;&nbsp;Postplatz 6<br>&nbsp;&nbsp;&nbsp;71032 Böblingen</font>');
                            document.write('</td>');
                        document.write('</tr>');
                    document.write('</table>');
                    document.write('<div id="svCont">');
                            document.write('<h2 style="cursor: pointer;" class="hdTgBox">');
                                document.write('<a href="#">');
                                    document.write('<a href="#">');
                                        document.write('<img src="css/images/svHd.gif" alt="Näheres ... " border="0">');
                                            document.write('<span class="invisible">');
                                                document.write('Schnell &amp; Direkt');
                                            document.write('</span>');
                                    document.write('</a>');
                                document.write('</a>');
                            document.write('</h2>');
                            document.write('<div class="tgBox glHide">');
                                    document.write('<ul class="brdMid" style="list-style-type:none;">');
                                        writeUpperMenuEntries();
                                    document.write('</ul>');
                                    document.write('<div class="brdBot">');
                                    document.write('</div>');
                            document.write('</div>');
                    document.write('</div>');
                document.write('</div>');
                document.write('<div id="horizon-menue">');
                    document.write('<div align="right">');
                        document.write('<br>');
                        var myQuote = "'";
                        document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
                        document.write('<img title=" Seite drucken " src="img/druck.gif" onmouseover="this.style.cursor=' + myQuote + 'hand' + myQuote + ';" onClick="javascript:print();">');
                        document.write('&nbsp;&nbsp;');
                        document.write('<img title=" eine Seite zur&uuml;ck " src="img/icon_back.gif" onmouseover="this.style.cursor=' + myQuote + 'hand' + myQuote + ';" onClick="history.go(-1);return true;">');
                    document.write('</div>');
                document.write('</div>');

            document.write('</div>');

            if (standard_menue == "hidden" && standard_ausstellung == "hidden") {
                document.write('<div id="bg" style="background-image: url(img/wrapper_strich.jpg);">');
            } else {
                document.write('<div id="bg">');
            }

                document.write('<div id="linke-spalte" style="background-image: url(none);">');

                    document.write('<div id="menue-top" style="visibility:' + standard_menue + ';"></div>');

                    if (standard_menue == "hidden") {
                        document.write('<div id="menue" style="color:#683603;font-weight:bold;background-image: url(none);">');
                    } else {
                        document.write('<div id="menue" style="background-image: url(img/bg_menue.jpg);">');
                    }
                        document.write('<div id="menue-text">');
                            document.write('<div align="left">');
                                document.write('<table class="navigation-tabelle">');
                                    writeMenuEntries();
                                document.write('</table>');
                            document.write('</div>');
                        document.write('</div>');
                    document.write('</div>');
                    document.write('<div id="menue-bottom" style="visibility:' + standard_menue + ';"></div>');

                    document.write('<div class="highslide-html-content" id="highslide-html-newsletter" style="width: 600px;height:330px;">');
                        document.write('<div class="highslide-header" align="right" style="padding-right:10px;">');
                            document.write('<br><a href="#" onclick="return hs.close(this)"><div class="closebutton"></div></a>');
                        document.write('</div>');
                        document.write('<div class="highslide-body">');
                            document.write('<DIV style="text-align:left;font-size:0.75em;" style="padding: 10px 10px 10px 10px;">');
                                document.write("Hier könne Sie unseren Newsletter bestellen, um immer auf dem Laufenden zu sein.");
                                document.write("<br><br>");
                                document.write('<table style="background:#00a8df;color:#ffffff;" width="100%" cellspacing="15" style="padding: 10px 10px 10px 10px;background:#49628a;color:#ffffff;border-color:#4a6eaa;">');
                                    document.write('<tr>');
                                        document.write('<td width="50%" valign="top" align="left" style="padding:15px;">');
                                           document.write('<form action="http://kulturbh.createsend.com/t/r/s/djikkt/" method="post"><div><label for="name">Ihr Name:</label><br /><input type="text" name="cm-name" id="name" /><br /><label for="djikkt-djikkt"> Ihre E-Mail-Adresse:</label><br /><input type="text" name="cm-djikkt-djikkt" id="djikkt-djikkt" /><br /><input type="submit" value="Anmelden" /></form>');						
                                        document.write('</td>');
                                    document.write('</tr>');
                                document.write('</table>');
                            document.write('</DIV>');
                        document.write('</div>');
                    document.write('</div>');
                    document.write('<a href="#" class="highslide" onclick="return hs.htmlExpand(this, { contentId: ' + myQuote + 'highslide-html-newsletter' + myQuote + ',wrapperClassName: ' + myQuote + 'highslide-white' + myQuote + ', outlineType: ' + myQuote + 'rounded-white' + myQuote + ',transitions: [' + myQuote + 'fade' + myQuote + '] } )"><font color="#BDBDB4" size="0.2em"><input style="margin-left: 18px;width:139px;" type="button" name="test" value="newsletter abonnieren"></font></a>');

                    document.write('<a rel="shadowbox" href="http://kulturbh.createsend.com/t/r/p/czlr/5/1/0/0/1/"><font color="#BDBDB4" size="0.2em"><input style="margin-left: 18px;width:139px;" type="button" name="test" value="newsletter archiv"></font></a>');

                    if (standard_hinweis == "visible") {
                        document.write('<div id="hinweis-top" style="visibility:' + standard_hinweis_image + ';"></div>');
    
                        document.write('<div id="hinweis" style="visibility:' + standard_hinweis_image + ';">');
                            document.write('<div id="empfehlen-text" style="visibility:' + standard_hinweis + ';">');
                                document.write('Öffnungszeiten:');
                                document.write('<br><br>');
                                document.write('Freitag ');
                                document.write('<br>');
                                document.write('18:00 - 24:00');
                                document.write('<br><br>');
                                document.write('Besichtigungstermine');
                                document.write('<br>');
                                document.write('nach Vereinbarung');
                                document.write('<br>');
                                document.write('0177 - 425 11 88 ');
                                if (browser != "IE") {
                                    includeJavaScript('js/sponsoren_und_sonstiges.js');
                                } else {
                                    document.write('<table style="margin-top:10px;margin-left:0px;" width="130px">');
                                        document.write('<tr>');
                                            document.write('<td align="center">');
                                                document.write('<hr><br>');
                                                document.write('Unsere Seiten sind für den <b>Mozilla Firefox</b>');
                                                document.write(' Browser optimiert.<br><br><a href="http://www.browser1.de/"><font color="red">Diesen können Sie hier herunterladen.</font></a>');
                                            document.write('</td>');
                                        document.write('</tr>');
                                    document.write('</table>');
                                }
                            document.write('</div>');
                        document.write('</div>');
                    }

                    document.write('<div id="hinweis-bottom" style="visibility:' + standard_hinweis_image + ';"></div>');

                document.write('</div>');

                document.write('<div id="mitte">');
                    document.write('<div id="mitte-top" style="visibility:' + standard_ausstellung + ';"></div>');
                        if (standard_ausstellung == "hidden") {
                            document.write('<div id="mitte-back" style="background-image: url(none);">');
                            document.write('<div id="inhalt" style="width:670px">');
                        } else {
                            document.write('<div id="mitte-back" style="background-image: url(img/content_middle.png);">');
                            document.write('<div id="inhalt" style="width:470px" style="visibility:' + standard_ausstellung + ';">');
                        }

    }

    function doEnding() {

                        document.write('</div>');
                    document.write('</div>');
                    document.write('<div id="mitte-bottom" style="visibility:' + standard_ausstellung + ';">&nbsp;</div>');
                document.write('</div>');
                
                document.write('<div id="rechte-spalte">');
                    
                    if (standard_ausstellung == "visible") {
                        document.write('<div id="ausstellung-top" style="visibility:' + standard_ausstellung_image + ';"></div>');
                        if (standard_ausstellung_image == "visible") {
                            document.write('<div id="ausstellung" style="visibility:' + standard_ausstellung + ';">');
                        } else {
                            document.write('<div id="ausstellung" style="background-image: url(none);visibility:' + standard_ausstellung + ';">');
                        }
                            document.write('<div id="empfehlen-text-ueberschrift">');
                                document.write('Aktuelle<br>Ausstellung');
                            document.write('</div>');
                            document.write('<div id="empfehlen-text">');
                                document.write('<hr>');
                                document.write('<strong>' + aktuelle_ausstellung_titel + '</strong>');
                                document.write('<span id="ausstellung_datum">');
                                    document.write('<br>');
                                    document.write(aktuelle_ausstellung_name);
                                    document.write('<br><hr>&nbsp;');
                                    document.write(aktuelle_ausstellung_von);
                                    document.write('<br>bis<br>');
                                    document.write(aktuelle_ausstellung_bis);
                                document.write('</span>');
                                document.write('<br><br>');
                                if (iedom||document.layers){
                                    with (document){
                                        document.write('<table border="1" style=" border-style:inset;border-color:#333399;" frame="border" rules="all" cellspacing="0" cellpadding="0">');
                                            document.write('<tr>');
                                                document.write('<td>');
                                                    if (iedom){
                                                        document.write('<div style="border:0px;position:relative;width:' + sliderwidth + 'px;height:' + sliderheight + 'px;overflow:hidden">');
                                                            document.write('<div style="border:0px;position:absolute;width:' + sliderwidth + 'px;height:' + sliderheight + 'px;background-color:' + slidebgcolor + '" onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed">');
                                                                document.write('<div id="test2" style="position:absolute;left:0;top:0"></div>');
                                                                document.write('<div id="test3" style="position:absolute;top:-1000;left:0"></div>');
                                                            document.write('</div>');
                                                        document.write('</div>');
                                                    } else {
                                                        if (document.layers){
                                                            document.write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>');
                                                            document.write('<layer name="ns_slidemenu2" left=0 top=0 onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed"></layer>');
                                                            document.write('<layer name="ns_slidemenu3" left=0 top=0 onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed"></layer>');
                                                            document.write('</ilayer>');
                                                        }
                                                    }
                                                document.write('</td>');
                                            document.write('</tr>');
                                        document.write('</table>');
                                    }
                                }
                                fillup();
                            document.write('</div>');
                        document.write('</div>');
                        document.write('<div id="ausstellung-bottom" style="visibility:' + standard_ausstellung_image + ';"></div>');
                    }
                document.write('</div>');

                document.write('<div id="footer">');

                    document.write('<div id="login">');
                        document.write('<div class="bottom-navigation">');
    
                                var myQuote = "'";
                                document.write('<div class="highslide-html-content" id="highslide-html-siteinfo" style="width: 600px;height:280px;">');
                                    document.write('<div class="highslide-header" align="right" style="padding-right:10px;">');
                                        document.write('<br><a href="#" onclick="return hs.close(this)"><div class="closebutton"></div></a>');
                                    document.write('</div>');
                                    document.write('<div class="highslide-body" style="padding: 10px 10px 10px 10px">');
                                        document.write('<DIV style="text-align:left;font-size:1.2em;">');
                                            document.write("<h3>Site-Info&rsquo;s</h3>");
                                            browserInfo();
                                            document.write('<table style="background:#00a8df;color:#ffffff;" width="100%" cellspacing="15" style="padding: 10px 10px 10px 10px;background:#49628a;color:#ffffff;border-color:#4a6eaa;">');
                                                if (browser != "Firefox") {
                                                    document.write('<tr>');
                                                        document.write('<td colspan="2">');
                                                            document.write('<table cellspacing="15" style="padding: 10px 10px 10px 10px;background:#49628a;color:#ffffff;border-color:#4a6eaa;" style="background:#00a8df;color:#ffffff;" cellspacing="15" style="padding: 10px 10px 10px 10px;background:#49628a;color:#ffffff;border-color:#4a6eaa;">');
                                                                document.write('<tr>');
                                                                    document.write('<td>');
                                                                        document.write('Unsere Seiten sind für den <b>Mozilla Firefox</b>');
                                                                    document.write('</td>');
                                                                    document.write('<td>');
                                                                        document.write('<img src="img/133px-Firefox-logo.svg.png">');
                                                                    document.write('</td>');
                                                                    document.write('<td>');
                                                                        document.write(' Browser optimiert.<br><a href="http://www.browser1.de/"><span  style="color:#ffffff;">Diesen können Sie hier herunterladen.</span></a>');
                                                                    document.write('</td>');
                                                                document.write('</tr>');
                                                            document.write('</table>');
                                                        document.write('</td>');
                                                    document.write('</tr>');
                                                }
                                                document.write('<tr>');
                                                    document.write('<td width="60%" style="background:#00a8df;color:#ffffff;">');
                                                        document.write('Letzte Änderung an dieser Seite<br><font style="font-size:0.8em;">(' + window.location.pathname + ')</font>');
                                                    document.write('</td>');
                                                    document.write('<td width="40%">');
                                                        lastChange();
                                                    document.write('</td>');
                                                document.write('</tr>');
                                                document.write('<tr>');
                                                    document.write('<td>');
                                                        document.write('<table border="0" width="100%" style="background:#00a8df;color:#ffffff;" cellspacing="15" style="padding: 10px 10px 10px 10px;background:#49628a;color:#ffffff;border-color:#4a6eaa;">');
                                                            document.write('<tr>');
                                                                document.write('<td style="vertical-align:center;">');
                                                                    document.write('<img src="img/tools.png">');
                                                                document.write('</td>');
                                                                document.write('<td style="vertical-align:center;">');
                                                                    document.write('Anregungen und Verbesserungen zu unseren Web-Seiten ...');
                                                                document.write('</td>');
                                                            document.write('</tr>');
                                                        document.write('</table>');
                                                    document.write('<td>');
                                                        document.write('<table width="100%" style="background:#00a8df;color:#ffffff;">');
                                                            document.write('<tr>');
                                                                document.write('<td style="vertical-align:center;">');
                                                                    document.write('<img src="img/Sent-Mail.png" width="48px">');
                                                                document.write('</td>');
                                                                document.write('<td style="vertical-align:center;">');
                                                                    document.write('<a href="email.php?arg=<img class=eMailBild border=3 width=150 src=img/Maier_impressum.bmp>Ludwig Maier|' + mailTo + '" title=""><span  style="color:#ffffff;font-style:italic;">Bitte hier klicken...</span></a>');
                                                                document.write('</td>');
                                                            document.write('</tr>');
                                                        document.write('</table>');
                                                    document.write('</td>');
                                                document.write('</tr>');
                                                document.write('<tr>');
                                                    document.write('<td colspan="2">');
                                                        document.write('<span style="font-style:italic;">Wir möchten uns jetzt schon bei Ihnen bedanken.</span>');
                                                    document.write('</td>');
                                                document.write('</tr>');
                                            document.write('</table>');
                                        document.write('</DIV>');
                                    document.write('</div>');
                                document.write('</div>');
                                document.write('<a href="#" class="bottom-navigation" onclick="return hs.htmlExpand(this, { contentId: ' + myQuote + 'highslide-html-siteinfo' + myQuote + ',wrapperClassName: ' + myQuote + 'highslide-white' + myQuote + ', outlineType: ' + myQuote + 'rounded-white' + myQuote + ',transitions: [' + myQuote + 'fade' + myQuote + '] } )"><font color="#BDBDB4">SiteInfo&acute;s</a>');
                                document.write('&nbsp;&nbsp;|&nbsp;&nbsp;</font>');
                                document.write('<a rel="shadowbox" class="bottom-navigation" title=" WebDesign by Klaus Joachim Müller - webdesign-kjm.eu " href="http://www.webdesign-kjm.eu"><font color="#BDBDB4">Copyright © 2010 Klaus J. Müller. All rights reserved.</font></a>');
                                document.write('</div>');
                        document.write('</div>');
    
                        document.write('<div id="footer-menue">');
                            document.write('<div>');
                                var myQuote = "'";
                                document.write('<div>');
                                    document.write('<a href="impressum.html" class="bottom-navigation">');
                                        document.write('Impressum');
                                    document.write('</a>');
                                    document.write('&nbsp;&nbsp;|&nbsp;&nbsp;');
                                    document.write('<A HREF="#" class="bottom-navigation">');
                                        document.write('<img src="img/seitenanfang.gif" alt="" border="0"/>');
                                        document.write('Zum Seitenanfang');
                                    document.write('</A>');
                                document.write('</div>');
                        document.write('</div>');
                    document.write('</div>');

                document.write('</div>');

            document.write('</div>');
        document.write('</div>');

    }

    function lastChange() {

        var menueEntriesHTTPs = new Array(8);
        menueEntriesHTTPs[1] = "Sonntag";
        menueEntriesHTTPs[2] = "Montag";
        menueEntriesHTTPs[3] = "Dienstag";
        menueEntriesHTTPs[4] = "Mittwoch";
        menueEntriesHTTPs[5] = "Donnerstag";
        menueEntriesHTTPs[6] = "Freitag";
        menueEntriesHTTPs[7] = "Samstag";
        var months = new Array(13);
        months[1] = "Januar";
        months[2] = "Februar";
        months[3] = "März";
        months[4] = "April";
        months[5] = "Mai";
        months[6] = "Juni";
        months[7] = "Juli";
        months[8] = "August";
        months[9] = "September";
        months[10] = "Oktober";
        months[11] = "November";
        months[12] = "Dezember";
        if (browser != "Safari") {
            var dateObj = new Date(document.lastModified);
            var wday = menueEntriesHTTPs[dateObj.getDay() + 1];
            var lmonth = months[dateObj.getMonth() + 1];
            var date = dateObj.getDate();
            var fyear = dateObj.getYear();
            if (browser != "xIE") {
                if (fyear < 2000) 
                    fyear = fyear + 1900;
                document.write(date + ". " + lmonth + " " + fyear + '</font>');
            }
        } else {
            var out = document.getElementById('lastModified');
            var d = new Date();
            if (d.toLocaleDateString) {
                document.write(d.toLocaleDateString(document.lastModified));
            } else {
                document.write(document.lastModified);
            }
        }
    }

    function eintrag() {

        var args=eintrag.arguments;
        var myDate = args[0];
        var myHTML = "";
        var myTitle = args[1];
        var myDescription = args[2];
        var myReservation = args[3];
        var myText = args[4];
        var myPicture = args[5];

        var myWindowsize  = "850,600";
        var myPlaceholder = "";
        var myPictureTmp  = "";

        var ende = (myDescription.indexOf("@"));
        ende = ende - 1;
        var tmpURL = myDescription.substring(0,ende+1) + "'";
        ende = ende + 2;
        var tmpDescription = myDescription.substring(ende);

        var tmpString = "";
        if (tmpURL == "'") {
            tmpString = "<font style='font-size: 8pt;'><span>" + tmpDescription + "</span>";
        } else {
            tmpString = "<font style='font-size: 8pt;'><a rel='shadowbox' href='http://" + tmpURL + " target='_blank'>" + tmpDescription + "</a>";
        }
        var tmpString = "<font style='font-size: 8pt;'><a rel='shadowbox' href='http://" + tmpURL + " target='_blank'>" + tmpDescription + "</a>";

        doEntry3(myDate,
                 myHTML,
                 "&#8222;" + myTitle + "&#8221;",
                 tmpString,
                 myReservation,
                 myWindowsize,
                 myPlaceholder,
                 myPictureTmp,
                 myText,
                 myPicture
                  );

    }

    var preise = "10,--";
    var tmpPreise = preise;

    function setzen_Preise() {

        var args=setzen_Preise.arguments;
        var myPreis = args[0];

        var eintrittsPreis = myPreis;

        if (eintrittsPreis == "") {
            eintrittsPreis = "Eintritt frei";
        }

        var tmpString = "<table border='0' width='100%'><tr><td align='right'>Eintrittspreis pro Karte:</td><td align='right'>" + eintrittsPreis + "</td></tr></table>"

        return tmpString;

    }

    function doEntry3(myDate,myURL,myTitle,myPerformer,myReservation,myWidth,xURL,myPicture,myText,myNewPicture) {

        var args=doEntry3.arguments;
        var myDate = args[0];
        var myURL = args[1];
        var myTitle = args[2];
        var myPerformer = args[3];
        var myReservation = args[4];
        var myWidth = args[5];
        var xURL = args[6];
        var myPicture = args[7];
        var myText = args[8];
        var myNewPicture = args[9];
        
        if (myDate == "") {
            return "";
        }

        var breite = "";
        breite = screen.width;
        breite = breite - 300;
        breite = 550;
        breite = breite + "px";

        var myQuote = "'";
        var myDQuote = '"';
        var neu = "true";

        document.write("<tr>");
            if (page == "Veranstaltungen - Aktuell") {
                document.write('<td valing="middle" background="img/calgray-1.png" style="background-position:center;background-repeat:no-repeat;background-repeat:no-repeat;" ' + spklasse + ' valign="middle" width="10%" align="center"><font size="1.4em" color="gray"><strong>');
            } else {
                document.write('<td ' + spklasse + ' valign="middle" width="20%" align="center"><font size="0.4em" color="gray"><strong>');
            }
            if (page == "Ausstellungen - Aktuell" || page == "Ausstellungen - Archiv") {
                document.write('<font size="-2">');
            }
            document.write(myDate + '</center>');
            if (page == "Ausstellungen - Aktuell" || page == "Ausstellungen - Archiv") {
                document.write('</font>');
            }
            document.write('</font></strong></td>');
            document.write('<td valing="middle" ' + spklasse + ' width="40%" valign="middle" align="center">');

                if (myWidth == "") {
                    myWidth = "1250,800";
                }
                var myTemp = 'javascript:oeffne(';
                myTemp = myTemp + myQuote + myURL + myQuote;
                myTemp = myTemp + ',' + myQuote + myQuote + ',' + myWidth + ',15,50';
                myTemp = myTemp + ')""';

                if (neu == "false") {
                    if (myTitle != "") {
                        document.write('<a href="' + myTemp + '">');
                        document.write('<font size="-1">');
                        document.write(myTitle);
                        document.write('</font>');
                    }
                } else {

                    var px = 20;
                    windowNumber = windowNumber + 1;
                    document.write('<a href="#" onmouseover="einsetzen(this);" onmouseout="aussetzen(this);" onclick="return hs.htmlExpand(this, { contentId: ' + myQuote + 'highslide-html' + windowNumber + myQuote + ', wrapperClassName: '+ myQuote + 'borderless floating-caption'+ myQuote + ', dimmingOpacity: 0.7, align: '+ myQuote + 'center'+ myQuote + '} )"');
                        document.write('class="highslide">');
                        document.write('<font size="+1">');
                        document.write(myTitle);
                        breite="1000px";
                        if (myNewPicture == "" && view_gallery_withpanel) {
                            breite="450px";
                        }
                        if (myNewPicture == "" && !view_gallery_withpanel) {
                            breite="1000px";
                        }
                        document.write('<div class="highslide-html-content" id="highslide-html' + windowNumber + '" style="width: ' + breite + ';background: url(img/logo_haus.jpg) no-repeat;background-position: 50% 50%;">');
                            document.write('<div class="xhighslide-header" align="right" style="height:16px;padding-right:10px;">');
                                document.write('<br><a href="#" onclick="return hs.close(this)"><div class="closebutton"></div></a>');
                            document.write('</div>');
                            document.write('<div class="highslide-body">');
                                document.write(myPerformer);
                                document.write('<b>');
                                document.write('<center>');
                                document.write('<font size="+0">' + myTitle + '</b><br>am ' + myDate + '</font>');
                                document.write('</center>');
                                document.write('<br>');
    
                                if (myNewPicture != "") {
                                    var tmpString9 = '<a href="' + myNewPicture + '" class="highslide" onclick="return hs.expand(this, {wrapperClassName: '+ myQuote + 'borderless floating-caption'+ myQuote + ', dimmingOpacity: 0.7, align: '+ myQuote + 'center'+ myQuote + '})"><img style="border:0px;padding:10px;" class="myImage" width="160px" src=' + myQuote  + myNewPicture + myQuote  + ' title=" Wollen Sie das Bild (' + windowNumber + ') vergrößern? " align="right"></a>';
                                    document.write(tmpString9);
                                }
    
                                var divisor = 0;
                                if (myNewPicture != "") {
                                    divisor = 5;
                                } else {
                                    divisor = 5;
                                }
                                if (!view_gallery_withpanel) {
                                    if (myNewPicture != "") {
                                        divisor = 10;
                                    } else {
                                        divisor = 13;
                                    }
                                }
                                gallery_picture_width = "70px";
                                myText = SetSlideshow(myText, myNewPicture,false,divisor);

                                document.write('<span class="myText">' + myText + '</span>');
    
                                var controlbar_done = false;
                                
                            document.write('</div>');

                    document.write('</a>');
                }
            
            document.write('</td>');

            var http = false;
            http = false;
            var myIndex2 = 0;
            myIndex2 = myPerformer.indexOf("www.");
            if (myIndex2 == -1) {
                http = false;
            } else {
                http = true;
            }

            if (http) {
                document.write('<td onmouseover="einsetzen(this);" onmouseout="aussetzen(this);" ' + spklasse + ' width="100%" valign="middle" align="left">');
            } else {
                document.write('<td ' + spklasse + ' width="80%" valign="middle" align="left">');
            }
                document.write('<div>');
                    document.write('<font>');
                    var myFoto = "";
                    if (myNewPicture == "") {
                    } else {
                        myFoto = '<img src="' + myNewPicture + '" width="50px" border="0">';
                        var myIndex = 0;
                        myIndex = myPerformer.indexOf("target='_blank'>");
                        var myBorder = "1";
                        if (myPerformer == "") {
                            myBorder = "0";
                        } else {
                            var myLength = myPerformer.length-4;
                           if (nachschau == "true") {
                               myLength = myPerformer.length;
                            }
                            myPerformer = myPerformer.substring(0,myIndex-1 + 17) + '<table style="border-color:navy;" border="' + myBorder +'" frame="box" rules="rows" cellpadding="5px" width="100%"><tr><td>' + myFoto + '</td><td class="veranstaltungen" valign="center">' + myPerformer.substring(myIndex-1 + 17, myLength) + '</td></tr></table></a>';
                        }
                    }
                    if (xURL!="") {
                        document.write(xURL);
                    } else {
                        if (http) {
                            document.write(myPerformer);
                        } else {
                            myPerformer = replaceIt(myPerformer, "<a rel='shadowbox' href='http://' target='_blank'>", "");
                            myPerformer = replaceIt(myPerformer, "</a>", "");
                            document.write(myPerformer);
                        }
                    }
                    document.write('</font>');
                document.write('</div>');
            document.write('</td>');

            if (page == "Veranstaltungen - Aktuell") {
                document.write('<td ' + spklasse + ' valign="middle" align="center"><font size="1.4em" color="gray"><strong>');
                if (preise != "") {
                    var tmpString = '<a href="#">';
                    var myxFoto = myFoto;
                    myxFoto = replaceIt(myxFoto,'"','');
                    myxFoto = replaceIt(myxFoto,'width=50px border=0','width=100px style=' + myQuote + 'border:3px groove navy; ' + myQuote +'');
                    var xyzTmp = '<a onmouseover="einsetzen(this);" onmouseout="aussetzen(this);" href="reservierung.html?arg=' + preise + '|<b><i>' + myTitle + '</i></b><span class=copytext><br>' + myTitle + ' am '  + myDate + '<br>' + myxFoto + '<br>" id="Titel""><div style="padding:2px;border:1px solid navy;font-size:1.0em;text-align:center;" onmouseover="this.style.backgroundColor=' + myQuote + 'blue' + myQuote+ ', this.style.color=' + myQuote + 'white' + myQuote+ '" onmouseout="this.style.backgroundColor='  + myQuote + 'transparent'  + myQuote + ',this.style.color=' + myQuote + 'blue' + myQuote+ '">Karten reservieren</div></a>';
                } else {
                    var xyzTmp = 'Eintritt frei.';
                }
                document.write(xyzTmp);
                document.write('</td>');
                preise = "";
            }


        document.write('</tr>');

        if (spklasse == "class='e3'") {
            spklasse = "class='e4'";
            spklasse = "class='e3'";
        } else {
            spklasse = "class='e3'";
        }

    }

    var objekt_width = 0;
    var tue = false;

    function zeigen(objekt) {

    }

    function verstecken(objekt) {

    }

    var gallery_picture_width = "25px";
    var view_gallery_withpanel = true;
    var gallery_image = "height:299px;background-image:url(img/flachbildschirm.jpg";
    var gallery_table = "<table class='fotogalerie' style='height:99px;'>";
    var galerieTop = "galerieTop";
    var myBreite = "450px";
    var autoPlay = false;

    function SetSlideshow(myText, myNewPicture, show, divisor) {

        if (galerie.length == 0) {
            return myText;
        }

        var autoPlayText = "";
        if (autoPlay) {
            if (page != "Mitglieder") {
                autoPlayText = ", { autoplay:true, slideshowGroup: " + windowNumber + ", wrapperClassName: 'borderless floating-caption', dimmingOpacity: 0.7, align: 'center'}";
            } else {
                autoPlayText = ", { autoplay:true}";
            }
        }  else {
            if (page != "Mitglieder") {
                autoPlayText = ", { slideshowGroup: " + windowNumber + ", wrapperClassName: 'borderless floating-caption', dimmingOpacity: 0.7, align: 'center'}";
            } else {
            }
        }

        if (browser == "IE") {
            gallery_table = "<table class='fotogalerie_IE' style='margin-left:30px;margin-top:25px;'>";
            if(!view_gallery_withpanel) {
 //               myBreite = "500px";
            }
        }

        if(!view_gallery_withpanel) {
            gallery_image = "";
            gallery_table = "<br><table class='fotogalerie_without_image' align='center' valign='middle'><tr class='galerieTop'><td class='galerieTd' colspan='99'><span class='galerieTop'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Galerie:</span></td></tr><tr class='galerieTop'>";
            galerieTop = "galerieTop_without_image";
        }

        if (galerie.length>20) {
//            myBreite = "450px";
        }

        if (galerie.length != 0) {
            galerieNumber = galerieNumber + 1;
            myText = myText + '<div class="highslide-gallery" style="width:' + myBreite + ';' + gallery_image + ');">';
                myText = myText + gallery_table;
                    myText = myText + '<tr>';
                    for (var i = 0; i < galerie.length; ++i) {
                        var caption = "";
                        var title = "";
                        var myIndex2 = 0;
                        myIndex2 = galerie[i].indexOf("@");
                        if (myIndex2 > 0) {
                            caption = galerie[i].substring(myIndex2+1);
                            title = 'title="' + caption + '"';
                            title = replaceIt(title, "<br>", "\n");
                            var http = "";
                            var tmpHTTP = "";
                            var myIndex3 = 0;
                            myIndex3 = caption.indexOf("<a");
                            if (myIndex3 > 0) {
                                tmpHTTP = extract(caption);
                                http = "<div style='margin:0px;'><a class='button180' rel='shadowbox' href='" + tmpHTTP + "'>&nbsp;&nbsp; ... zur Website</a></div>" ;
                                http = replaceIt(http, "<br>", "");
                                http = replaceIt(http, "'>", "'>&nbsp;&nbsp;");
                                http = replaceIt(http, "href='<a rel='shadowbox'", "'> rel='shadowbox'");
                                http = replaceIt(http, "' '>", "'");
                            }
                            caption = ""  + caption + ""+ http;
                            galerie[i] = galerie[i].substring(0,myIndex2);
                        }
                        if ((i%divisor) == 0 && i > 0) {
                            myText = myText + '</tr><tr>';
                        }
                        if (tmpHTTP != "") {
                            var searchText = "<br><a rel='shadowbox' href='" + tmpHTTP + "'>";
                            caption = replaceIt(caption, searchText, "<br>");
                            caption = replaceIt(caption, "</div></a>", "</div>");
                        }
                        title = replaceIt(title, "<a rel='shadowbox' href='" + tmpHTTP + "'><div class='large-dark'>", "");
                        title = replaceIt(title, "</div></a>", "");
                        title = replaceIt(title, "<div class='large-dark'>", "");
                        myIndex3 = 0;
                        myIndex3 = title.indexOf("</div>");
                        if (myIndex3 > 0) {
                            title = title.substring(0,myIndex3) + '"';
                        }
                        if (tmpHTTP == "") {
                            caption = replaceIt(caption, "</a>", "");
                        }
                        galeriewindowNumber = galeriewindowNumber + 1;
                         var tmpString90 = '<td valign="top" class="' + galerieTop + '"><a id="gallery" href="' + galerie[i] + '" target="_blank" class="highslide" onclick="return hs.expand(this' + autoPlayText + ')"><img onmouseover="zeigen(this);this.style.opacity=1;this.filters.alpha.opacity=100;" onmouseout="verstecken(this);this.style.opacity=0.6;this.filters.alpha.opacity=60" id="galerie' + galeriewindowNumber + '" class="myGalerieImage" width="' + gallery_picture_width + '" src="' + galerie[i] + '" alt="' + caption + '"' + title + '></a></td>';
                        myText = myText + tmpString90;
//                        autoPlayText = "";
                    }
                    myText = myText + '</tr>';
                myText = myText + '</table>';
            myText = myText + '</div>';
        }

        if (show) {
            document.write(myText);
        }

        galerie.length = 0;

        return myText;

    }

    function extract(text) {
        var i = 0;
        i = text.indexOf("href='");
        var tmpText = text.substring(i+6);
        i = tmpText.indexOf("'>");
        tmpText = tmpText.substring(0,i);

        return tmpText;

    }

