	$(document).ready(  
	function()
	{	
 
var w = 0;
var i = 0;
var rozmiar = 0;

  
while (w!=null) {
  w = $(".item-c").eq(i).height();
  i++;
  if (w>rozmiar) { rozmiar = w; }
} 
  
$(".item-c").css({ display: "none"});
$(".item").css({ cursor: "pointer"});

var rozmiar = $("body").height() + rozmiar + 20;
$("body").css("height",rozmiar+"px");

$(".item").mouseover( function() {
    if ( !$(this).hasClass("active") ) {
        $(this).addClass("hover");
    } 
} );

$(".item").mouseout( function() {
        $(this).removeClass("hover");
} );


$(".item").click( function() {
    if ( !$(this).hasClass("active") ) {
        $(this).removeClass("hover");
        $(".active").next().slideUp("slow");
        $(".active").removeClass("active");
        $(this).addClass("active");
        $(this).next().slideDown("slow");        
    } 
} );

  	$('#slide').cycle({ 
       fx:        'fade',
       timeout:   4000,
       cssBefore: { opacity: 1 },
       animOut:   { opacity: 0 }
    });
    
$('#galeria a').lightBox();
      			
	}); 
	
	

        
