jQuery(document).ready(function($){
	
	$(".item-pic").hover(function() {
		$(this).find('span.fade').fadeOut(600).click( function() { $(this).fadeIn(600); });
	} , function() {
		$(this).find('span.fade').fadeIn(600);
	});
	
	$(".item-pic a:first-child").hover(function() {
		$(this).find('span.icon').stop().fadeTo(600, 0.5);
	} , function() {
		$(this).find('span.icon').fadeTo(600, 0);
	});

	$('#portfolio').preloader();

	$("#navigation ul.menu li").hover(function(){
		$('ul', this).css('display', 'none');
	},function(){
		$('ul:first', this).css('display', 'block');
	});
				
	$(".toggle h3.toggle-title").click(function(){
		$(this).toggleClass('open').next(".toggle-content").slideToggle(100);
	});
	
	$("a[rel^='prettyPhoto']").prettyPhoto();
	
	$('#navigation ul.menu').superfish({ 
        delay		: 200,
        speed		: 200,
        animation	: {opacity:'show',height:'show'},
        dropShadows:   true,
        autoArrows	: true
    });
    
    $(".work-thumb a").hover(function(){
		$('img', this).css('display', 'block').fadeOut();
	},function(){
		$('img', this).fadeIn();
	});
	
});
