$(document).ready(function () {

    // png
    $('').pngFix( );

    //languages
    var lh = $('.menu_body').height();
    $('.menu_body').height(0);
    $('.lang').hover(function(){
        $('.menu_body').show().stop().animate({ height: lh }, 'medium');
    },function(){
        $('.menu_body').stop().animate({ height: 0 }, 'fast', 'linear', function(){
            $(this).hide();
        });
    });

    //meniu
    $('.hover:not("#openedmenu")').hover(function(){
        $(this).stop().fadeTo(400, 1);
    }, function(){
        $(this).stop().fadeTo(400, 0);
    });
    
    // slider
    $("#slider").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,
        pause: 3000
    });

    //tabs
    var tabContainers = $('div.tabs > div');
    $('div.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide().filter(this.hash).show();

        $('div.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');

        return false;
    }).filter(':first').click();
    
    //corners
    $('.tabs').corner('bottom tr');
    
});



$(window).load(function(){
    $("#footer").positionFooter(true);
});