    $(document).ready(function() {
        $('#headerPic').css("display","block");
        //$('.animiert').fadeIn(3500, function() {
            if($("#headerslogan").html().length > 7) {
                // Wenn nichts dring steht -> ausblenden
                $('#headerslogan').fadeIn(2000);
            }
        //});
        
        $('#subnavi .menuelevel0id5 a:first').css('border','none');
        
        
        // Overwrite default parameters onload
        $.fn.hoverscroll.params = $.extend($.fn.hoverscroll.params, {
            vertical: true,
            width: 64,
            height: 317,
            arrowsOpacity: 0.5,	// Max possible opacity of the arrows
            arrows: true
        });

        // Klick auf Panorama Thumb
        $('#thumbs_list').hoverscroll();
        
        panStatus = "off";
        // Klick Effekt
        $('.thumbs').click(function() {
            var picpfad = $(this).attr('alt');
            
            if( panStatus == "on"){
                $('.panContainer').fadeOut('slow', function() {
                    $('#detail_pic').attr('src', picpfad);
                    $('#detail_pic').fadeIn(1100);
                });
                panStatus = 'off';
            }
            else{
            $('#detail_pic').fadeTo(900, 0.05, function() {
                $('#detail_pic').attr('src', picpfad);
                $('#detail_pic').fadeTo(1100, 1);
            });
            }
        });
        
        
        // Klick Effekt
        $('.thumb_panorama').click(function() {
            var panopfad = $(this).attr('alt');
            $('#detail_pic').fadeOut(900, function() {
                $('#detail_pic').attr('src','');
                $('.panContainer').html("<embed class='panocont' src='"+panopfad+"' height='320' width='551'></embed>");
                $('.panContainer').fadeIn(2100);
                panStatus = "on";
            });
        });
    });
