$(document).ready(function() {
  $("#footer .cols").equalHeights();
  $(".picturelist a, a.fslika").fancybox({ 
	  'overlayOpacity': 0.7
	  }); 
  
});
 
 $(function(){

    $("ul.sf-menu ul").hover(function(){    
        $(this).parent().addClass("active");
    }, function(){    
        $(this).parent().removeClass("active");    
    });

});
 
  
 $(function(){

    


 $('#big_images').cycle({
        timeout:5000, 
        before:  onBefore, 
       pager:  '#nav', 
	slideExpr: 'img'  
    });

 
$('#bh1').hover(function() { $('#big_images').cycle(0);  return false; });
$('#bh2').hover(function() { $('#big_images').cycle(1);  return false; });
$('#bh3').hover(function() { $('#big_images').cycle(2);  return false; });
$('#bh4').hover(function() { $('#big_images').cycle(3);  return false; });

function onBefore() { 
  /*if (this.alt != "") {
     $('#imgcaption').hide();
     $('#imgcaption').html(this.alt); 
     $('#imgcaption').delay(50).fadeIn('slow'); 
    }     else {
    $('#imgcaption').html(""); 
    $('#imgcaption').fadeOut(); 
    }  */
	
	 if ($(this).is("#imageID1")) {	$("#bottom_header li").removeClass("active"); $("#bh1").addClass("active");}
	 if ($(this).is("#imageID2")) {	$("#bottom_header li").removeClass("active"); $("#bh2").addClass("active");}
	 if ($(this).is("#imageID3")) {	$("#bottom_header li").removeClass("active"); $("#bh3").addClass("active");}
	 if ($(this).is("#imageID4")) {	$("#bottom_header li").removeClass("active"); $("#bh4").addClass("active");}
}


});
