$(document).ready(function () {
	$('a[rel="external"]').attr("target","_blank");
	//$('#homeFeatureImage').flips( { speed:1000, autorun_delay:1000, direction: 'top' } );
	//$('#homeFeature').supersleight();
	
	
	$("#navList > li").each(function(){
		var a = $(this).find("> a:first");
		var ul = $(this).find('> ul:first');
		
		$(this).hover(
			function(){
				$(a).stop(false,true);
				$(a).animate({opacity:1},400);
				if(ul) {
					$(ul).stop(false,true);
					$(ul).fadeIn();
				}
			},
			function(){
				$(a).stop(false,true);
				$(a).animate({opacity:0},400);
				if(ul){
					$(ul).stop(false,true);
					$(ul).fadeOut();
				}
			});
		
		
	});
	
	
	 

    // VIGNETTE FADE
    $('.recentWork').hover(
    	function(){
    		$(this).find('.imageVingette').fadeOut();
    	},
    	function(){
    		$(this).find('.imageVingette').fadeIn();
    	}
    );
			


});
