   $(document).ready(function () {
     
     $("#btnStartinfo").click(function(){
         
        toggleStartinfo();
     });

   });


    function toggleStartinfo()
    {
        if ($("#startinfo").is(":visible"))
            {
                hideStartinfo();
            }
            else
            {
                showStartinfo();
            }
    }

     function showStartinfo()
     {
         $("#startinfo").slideDown("slow");
         $("#fasching").attr("title", "Programm ausblenden");
     }

     function hideStartinfo()
     {
         $("#startinfo").slideUp("slow");
         $("#fasching").attr("title", "Programm anzeigen");
     }




    function startWindow(path, pic_width, pic_height)
    {
            var winl = (screen.width - 750) / 2;
            var wint = (screen.height - 565) / 2;

            winprops = "toolbar=no,width="+pic_width+",height="+pic_height+",directories=no,status=no,scrollbars=auto,resize=no,menubar=no,top="+wint+",left="+winl;
            referenzen = window.open(path, 'referenzen', winprops);
            if (parseInt(navigator.appVersion) >= 4) { referenzen.window.focus(); }
    } // end of function

    function changeDay (day)
    {
            if(day != null)
            {
                    document.getElementById ('day').value = day;
                    document.kalenderForm.submit();
            }
    }

    function nextMonth (month)
    {
            var jahr = parseInt(document.getElementById('year').value);

            document.getElementById('month').value = month;
            document.getElementById('day').value = 1;
            if(month == 1)
            {
                    document.getElementById('year').value = jahr + 1;
            }
            document.kalenderForm.submit();
    }

    function prevMonth (month)
    {
            var jahr = parseInt(document.getElementById('year').value);

            document.getElementById('month').value = month;
            document.getElementById('day').value = 1;
            if(month == 12)
            {
                    document.getElementById('year').value = jahr - 1;
            }
            document.kalenderForm.submit();
    }

    function imagefolder_starten (lang) {
window.open ("static/swf/imagefolder/" + lang + "/index.html", "Imagefolder","width=800,height=540,scrollbars=no,resizable=yes,status=no");
    }

    function stadtguide_starten (lang) {
window.open ("static/swf/stadtguide/" + lang + "/index.html", "Stadtguide","width=800,height=540,scrollbars=no,resizable=yes,status=no");
    }



 