function dom_init() {

    // Ein bisschen toggle für später
    $(".toggle").click(function() {
        $("#content").fadeToggle("fast");
        $("#sidebar").fadeToggle("fast");
        $(".show").toggle();
        $(".hide").toggle();
    });

    // Funky Navigationskram
    $(".home .hlist").bind("mouseenter mouseleave",
    function(e) {
        $("#logo h1 a").toggleClass('active');
    });
    
$(".single #logo h1 a").removeClass('active');

    if ($(".image_container a").length) {
        $(".image_container a").fancybox({
            helpers: {
                title: null
            },
            closeClick: true,
            openEffect: 'fade',
            closeEffect: 'fade',
            nextEffect: 'fade',
            prevEffect: 'fade'
        });
        $('#fancybox-outer').css('background', '#ffffff');
    };
    $('tbody tr:odd').addClass('odd');
    $('tbody tr:even').addClass('even');

    // hier muss mit "find" gearbeitet werden
    //$("#logo h1 a").bind("mouseenter mouseleave", function(e) {
    //	$(".single .hlist a").removeClass('active');
    //});
    document.createElement('header');
    document.createElement('article');
    document.createElement('section');

    /*---------------------------------------------------------------------------------------------------- */
    /* TABELLE VERANSTALTUNGEN UM KLASSEN ERWEITERN */
    $('table.date_list tbody tr:odd').addClass('even');
    $('table.date_list tbody tr:even').addClass('odd');

    /*---------------------------------------------------------------------------------------------------- */
    /* Akkordeon */

    $('#accordion .accordion').hide();
    $('.toggler').click(function() {
        //REMOVE THE ON CLASS FROM ALL BUTTONS
        $('.toggler').removeClass('on');
        //NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
        $('.accordion').slideUp('normal');
        //IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
        if ($(this).next().is(':hidden') == true) {
            //ADD THE ON CLASS TO THE BUTTON
            $(this).addClass('on');
            //OPEN THE SLIDE
            $(this).next().slideDown('normal');
        }

    });

    $('.toggler').mouseover(function() {
        $(this).addClass('over');

    }).mouseout(function() {
        $(this).removeClass('over');
    });

    /*** END REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
    if ($('#gallery').length) {

        $("#gallery").carouFredSel({
            width: 430,
            height: "variable",
            align: "center",
            auto: false,
            margin: 0,
            padding: 0,
            scroll: {
                fx: "slide",
                duration: 500,
                items: 1
            },
            items: {
                visible: 1,
                width: 430,
                height: "variable"
            },
            prev: {
                button: ".fancybox-prev",
                key: "left"
            },
            next: {
                button: ".fancybox-next",
                key: "right"
            },
            pagination: "#gallery_pag"
        });

        $(".fancybox").fancybox({
            closeClick: false,
            openEffect: 'fade',
            closeEffect: 'fade',
            prevEffect: 'none',
            nextEffect: 'none',
            closeBtn: true,
            helpers: {
                title: null,
                overlay: {
                    opacity: 0.8,
                    css: {
                        'background-color': '#000'
                    }
                },
                thumbs: {
                    width: 70,
                    height: 70,
                    wrap: 960
                }
            }
        });
        $('#fancybox-outer').css('background', '#ffffff');
    };

    $("#shape1").hover(
    function() {
        $("#bereich1").css('z-index', '150');
        $(".one").stop(true, true).toggleClass('over', 1000);
    },
    function() {
        $("#bereich1").css('z-index', '90');
        $(".one").stop(true, true).toggleClass('over', 1000);
    }
    );

    $(".one").hover(
    function() {
        $("#bereich1").css('z-index', '140');
        $(".one").stop(true, true).addClass('over', 1000);
    },
    function() {
        $("#bereich1").css('z-index', '90');
        $(".one").stop(true, true).removeClass('over', 1000);
    }
    );

    $("#shape2").hover(
    function() {
        $("#bereich2").css('z-index', '140');
        $(".two").stop(true, true).toggleClass('over', 1000);
    },
    function() {
        $("#bereich2").css('z-index', '80');
        $(".two").stop(true, true).toggleClass('over', 1000);
    }
    );

    $(".two").hover(
    function() {
        $("#bereich2").css('z-index', '140');
        $(".two .toggler").stop(true, true).addClass('over', 1000);
    },
    function() {
        $("#bereich2").css('z-index', '80');
        $(".two .toggler").stop(true, true).removeClass('over', 1000);
    }
    );

    $(".shape3").hover(
    function() {
        $("#bereich3").css('z-index', '140');
        $(".three .toggler").stop(true, true).toggleClass('over', 1000);
    },
    function() {
        $("#bereich3").css('z-index', '70');
        $(".three .toggler").stop(true, true).toggleClass('over', 1000);
    }
    );

    $(".three").hover(
    function() {
        $("#bereich3").css('z-index', '140');
        $(".three .toggler").stop(true, true).addClass('over', 1000);
    },
    function() {
        $("#bereich3").css('z-index', '70');
        $(".three .toggler").stop(true, true).removeClass('over', 1000);
    }
    );

    $('#shape1').click(function() {
        $('.one .accordion').slideToggle('normal');
        $('.one .toggler').addClass('on');

        $('.two .toggler').removeClass('on');
        $('.two .toggler').removeClass('over');
        $('.three .toggler').removeClass('on');
        $('.three .toggler').removeClass('over');

        $('.two .accordion').hide();
        $('.three .accordion').hide();
        $("#bereich1").css('z-index', '140 !important');
		$("#bereich2").css('z-index', '80 !important');
		$("#.shape3").css('z-index', '70 !important');
    });

    $('.one .toggler').click(function() {
        $("#main-map").css('z-index', '40 !important');
    });

    $('#shape2').click(function() {
        $('.two .accordion').slideToggle('normal');
        $('.two .toggler').addClass('on');

        $('.one .toggler').removeClass('on');
        $('.three .toggler').removeClass('on');
        $('.one .toggler').removeClass('over');
        $('.three .toggler').removeClass('over');

        $('.one .accordion').hide();
        $('.three .accordion').hide();
        $("#bereich2").css('z-index', '140 !important');
		$("#bereich1").css('z-index', '70 !important');
		$(".shape3").css('z-index', '80 !important');
    });

    $('.shape3').click(function() {
        $('.three .accordion').slideToggle('normal');
        $('.three .toggler').addClass('on');

        $('.one .toggler').removeClass('on');
        $('.two .toggler').removeClass('on');
        $('.one .toggler').removeClass('over');
        $('.two .toggler').removeClass('over');

        $('.two .accordion').hide();
        $('.one .accordion').hide();
        $(".shape3").css('z-index', '140 !important');
		$("#bereich2").css('z-index', '80 !important');
		$("#bereich1").css('z-index', '70 !important');
    });

    /* $('.toggler').mouseover(function() {
        $(this).addClass('over');

    }).mouseout(function() {
        $(this).removeClass('over');
    });
    // Fullscreen Carousel
   /* if ($('#slides').length) {

        $('#slides').carouFredSel({
            prev: '.prev',
            next: '.next',
            items: {
                visible: 1,
                width: 'variable'
            },
            auto: false
        });

        $(window).resize(function() {
            var newWidth = $(window).width();

            $('#slides').width(newWidth * $('#slides').children().length);
            // set width of carousel, to ensure the items fit next to eachother
            $('#slides').parent().width(newWidth);
            // set width of carousel-wrapper
            $('#slides').children().width(newWidth);
            // set width of items, -22px for border and margin
        }).resize();

    }; */





}


