$(function() {
	jQuery(document).ready(function() {	
		//carousel Overlays
		$(".overlay-wrap").hover(function(){
			$(this).find(".overlay").stop(true, true).animate({ opacity: 'show', left: '0px' }, '300');
			}, function() {
		$(this).find(".overlay").stop(true, true).animate({ opacity: 'hide', left: '-64px' }, '300');		
		});
		// animate homepage portfolio
		jQuery(".recent-wrap").delegate("li", "mouseover mouseout", function(e) {
			if (e.type == 'mouseover') {
				jQuery(".recent-wrap li").not(this).dequeue().animate({opacity: "0.3"}, 300);
			} else {
				jQuery(".recent-wrap li").not(this).dequeue().animate({opacity: "1"}, 300);
			}
		});	
		//animate carousel and portfolio page
			jQuery(".fancy_thumbnail").delegate("li", "mouseover mouseout", function(e) {
			if (e.type == 'mouseover') {
				jQuery(".fancy_thumbnail li").not(this).dequeue().animate({opacity: "0.3"}, 'fast');
			} else {
				jQuery(".fancy_thumbnail li").not(this).dequeue().animate({opacity: "1"}, 'fast');
			}
		});	
		//superfish
		$('ul.sf-menu').supersubs({ 
			minWidth:    20,
			maxWidth:    20,
			extraWidth:  1
		})
		.superfish();
		
	}); // end doc ready
}); // end function
