$(document).ready(function() {
    // Make the project navigation hover effects a little smoother.
    $('.project-navigation').hover(function() {
        $('.image-anchor', $(this).parents('.project')).addClass('hover');
    }, function() {
        $('.image-anchor', $(this).parents('.project')).removeClass('hover');
    });
    
    // Add an error class to input elements (label, input and textarea)
    // thare are associated with an error.
    $('.errors').prev()
                   .children('label, input, textarea')
                   .addClass('error');
    
    // Snazzy!
    $('#logo.back').hover(function() {
        $(this).addClass('salmon');
    }, function() {
        $(this).removeClass('salmon');
    });
});