$(document).ready(function() {
	//preload images
	$.preloadCssImages();
      
      function addMega(){
        $(this).addClass("hovering");
        }

      function removeMega(){
        $(this).removeClass("hovering");
        }

    var megaConfig = {
         interval: 250,
         sensitivity: 4,
         over: addMega,
         timeout: 500,
         out: removeMega
    };

    $("li.mega").hoverIntent(megaConfig);
	
	if ( $("ul.picturelist li a").length > 0 ) {
    	$("ul.picturelist li a").fancybox();
	}
});

