

$(document).ready(function(){
    
    $('.subLogoWrapper, #impressum, #bar,#bar h1').hide();

    $(document).pngFix(); 
    $('#content').css('min-height', $(window).height() + 1 + 'px');
    $("body").css('visibility','visible'); 
    
    $('.subLogoWrapper,#bar,#bar h1 ').slideDown({easing: 'easeOutQuint',duration: 2000});


    
    var currentFile = location.href.substring(location.href.lastIndexOf('/')+1);

    $('a[href=' + currentFile + ']').addClass('selected');
        
    $('#bottomMenu li a').click(function(){
        if($('#bottomMenu a img').attr('src') == 'img/arrowUp.png'){
            $('#bottomMenu a img').attr('src', 'img/arrowDown.png');
            $('a[href=#impressum]').addClass('selected');
        }else{
            $('#bottomMenu a img').attr('src', 'img/arrowUp.png');
            $('a[href=#impressum]').removeClass('selected');
        }//
        $('#impressum').slideToggle({easing: 'easeOutQuint'});
        return false;
    });
    
    $('#topLeftNav li').hover(
        function(){
            $('a[href=' + $(this).children().attr('href') + ']').addClass('hover');
        },
        
        function(){
        $('a[href=' + $(this).children().attr('href') + ']').removeClass('hover');
    });
    
    $(' #bar').corner({tl: false, tr: false, bl: {radius:10},br: {radius:10}});
        // select #flowplanes and make it scrollable. use circular and navigator plugins 
    $("#teaser").scrollable({easing: 'easeOutQuint', size: 1, speed:500}).circular().autoscroll({ 
        autoplay: true, 
        api: false, 
        interval: 7000
    });
    
    

    
});


