

$(document).ready(function(){
    body_resize();
	if ($.browser.msie && jQuery.browser.version == '6.0') {
        DD_belatedPNG.fix('.png');
	}
    
    
    $(window).resize(function(){
        body_resize();
    });

    $("div.img_list").scrollable({
        activeClass: 'active_img',
        disabledClass: 'disabled',
        easing: 'linear',
        speed: 1000,
        size: 12
    });

    $('#content .content:gt(0)').hide();
    
    $('#bottom div.bottom_img').click(function(){
        index = $('#bottom div.bottom_img').index($(this));
        $('#content .content:visible').fadeOut('fast');
        $('#content .content:eq(' + index + ')').fadeIn('fast');
    });
    
    $('a[rel=external]').each(function(){
        $(this).attr('target', '_blank').attr('title', $(this).attr('title') + ' [Öffnet in einem neuen Fenster]');
    });
    
    
});

function body_resize() {
    $('body').height(
        $(window).height()
    ).width(
        $(window).width()
    );
	if ($.browser.msie && jQuery.browser.version == '6.0') {
        $('h1').hide().show();
	} 
}

