$j = jQuery.noConflict();
$j(document).ready(function(){
    $j('#port_main_min').hover(function(){
        $j('#port_main_mid').slideDown();
    });
    $j('#port_main_mid').hover(function(){}, function(){
        $j(this).slideUp();
    });

    var zindex = 2000;
    $j('.port_main').each(function(){
        $j(this).css('zIndex', zindex);
        $j(this).children('.port_main_mid').css('zIndex', zindex-1);
        $j(this).children('.port_main_mid').children('.image').css('zIndex', zindex-2);
        $j(this).children('.port_main_mid').children('.port_main_mid_faked').css('zIndex', zindex-3);
        $j(this).children('.port_main_min').css('zIndex', zindex-4);
        zindex -= 10;
    });
    $j('.port_main_min').mouseenter(function(){
        $j('.port_main_mid').hide();
        $j(this).parent('.port_main').children('.port_main_mid').slideDown();
    });
    $j('.port_main_mid').mouseleave(function(){
        $j(this).slideUp();
    });
    $j('.port_main_mid_faked').mouseleave(function(){
        $j(this).parent('.port_main_mid').slideUp();
    });
    $j(function() {
        $j('#ogloszenie1').lightBox();
    });
    /*$j('.port_main_mid_faked').mouseout(function(){
        $j(this).parent('.port_main_mid').slideUp();
    });*/
    /*$j('.port_main_min').mouseenter(function(){
        $j('.port_main_mid').hide();
        $j(this).parent('.port_main').children('.port_main_mid').slideDown();
    }, function(){
        $j(this).parent('.port_main').children('.port_main_mid').slideUp();
    });*/
	
	    //facebook
    $j("#wysuwany_div").mouseover(function() {
        $j("#wysuwany_div").stop();
        $j("#wysuwany_div").animate({
            left: "0"
        },256
        );
    }).mouseout(
        function() {
            $j("#wysuwany_div").stop();
            $j("#wysuwany_div").animate({
                left: "-256"
            }, 256
            );
    });
	
});
