/**
 * @author LR
 */
$(document).ready(function(){

    // design
    //
	
	
	$(".design").mouseover(function(){
      	$('#arrowfade').stop(true, true).fadeTo(100, 1);
		
        $('#arrowdesign').stop(true, true).fadeTo(300, 1);
        
        $('#design_m').stop(true, true).fadeTo(250, 1);
      				
    	}).mouseout(function(){
      	$('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0);
        $('#arrowdesign').stop(true, true).fadeTo(300, 0);
        
        $('#design_m').stop(true, true).fadeTo(250, 0);
    });
	
	
    
    
    
    // projects
    //
    $(".projects").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            
			// Animation complete
        });
        $('#arrowprojects').stop(true, true).fadeTo(300, 1, function(){
            
			// Animation complete
        });
        
        $('#projects_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowprojects').stop();
        $('#projects_m').stop();
    });
    $(".projects").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowprojects').stop(true, true).fadeTo(300, 0, function(){
            
			// Animation complete
        });
        
        $('#projects_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowprojects').stop();
        $('#projects_m').stop();
    });
    
    // photography
    //
    $(".photography").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowphotography').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#photography_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowphotography').stop();
        $('#photography_m').stop();
    });
    $(".photography").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowphotography').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#photography_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowphotography').stop();
        $('#photography_m').stop();
    });
    
    
    
    // retouch
    //
    $(".retouch").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowretouch').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#retouch_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowretouch').stop();
        $('#retouch_m').stop();
    });
    $(".retouch").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowretouch').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#retouch_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowretouch').stop();
        $('#retouch_m').stop();
    });
    
    
    // blog
    //
    $(".blog").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowblog').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#blog_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowblog').stop();
        $('#blog_m').stop();
    });
    $(".blog").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowblog').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#blog_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowblog').stop();
        $('#blog_m').stop();
    });
    
    
    
    
    
    // contact
    //
    $(".contact").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowcontact').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#contact_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowcontact').stop();
        $('#contact_m').stop();
    });
    $(".contact").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowcontact').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#contact_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowcontact').stop();
        $('#contact_m').stop();
    });
    
    // web
    //
    $(".web").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowweb').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#web_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowweb').stop();
        $('#web_m').stop();
    });
    $(".web").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowweb').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#web_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowweb').stop();
        $('#web_m').stop();
    });
    
    // bio
    //
    $(".bio").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowbio').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#bio_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowbio').stop();
        $('#bio_m').stop();
    });
    $(".bio").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowbio').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#bio_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowbio').stop();
        $('#bio_m').stop();
    });
    
    // links
    //
    $(".links").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrowlinks').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#links_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowlinks').stop();
        $('#links_m').stop();
    });
    $(".links").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrowlinks').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#links_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrowlinks').stop();
        $('#links_m').stop();
    });
    
    // news
    //
    $(".news").hover(function(){
        $('#arrowfade').stop(true, true).fadeTo(100, 1, function(){
            // Animation complete
        });
        $('#arrownews').stop(true, true).fadeTo(300, 1, function(){
            // Animation complete
        });
        
        $('#news_m').stop(true, true).fadeTo(250, 1, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrownews').stop();
        $('#news_m').stop();
    });
    $(".news").mouseleave(function(){
        $('#arrowfade').stop(true, true).delay(200).fadeTo(100, 0, function(){
            // Animation complete
        });
        $('#arrownews').stop(true, true).fadeTo(300, 0, function(){
            // Animation complete
        });
        
        $('#news_m').stop(true, true).fadeTo(250, 0, function(){
            // Animation complete
        });
    }, function(){
        $('#arrowfade').stop();
        $('#arrownews').stop();
        $('#news_m').stop();
    });
    
});
