$(document).ready(function() {
    $('.foto-menu').hover(function() {
        $(this).stop().animate({"height": "93px"}, 200);
        $('> a > span', this).stop().fadeTo(500, 0);
    },function() {
        $(this).stop().animate({"height": "73px"}, 200);
        $('> a > span', this).stop().fadeTo(500, 1);
    });

    
    
    $('.submenu > li > p').first().show();
    $('.submenu > li > span').click(function() {
        var el = $(this);
        $('.submenu > li > p:visible').slideUp('slow', function() {
            el.next().slideDown();
        });
    });
    
    $('#main-foto').coinslider();
    
});

function setHeight(grupa, przesuniecie) {
    var max = 0;
    grupa.each(function() {
        var h = $(this).height();
        if(h > max)
            max = h;
    });
    grupa.height(max);
    $('.separator').height(max - przesuniecie)
}

