/**
* @desc jQuery Code for Form Field Accessibility
*/

$(document).ready(function() {
    // As Javascript is enabled, change the colour of the username fields
    if ($('input[name=name]').length > 0) $('input[name=name]').addClass("description");
    if ($('input[name=from]').length > 0) $('input[name=from]').addClass("description");
            
    // Clear text on field focus
    $('input[name=name]').bind("focus", function(e) {
        if ($(this).val() == 'First Name') {
            $(this).val("");
            $(this).removeClass("description");     
        }
    });
    $('input[name=from]').bind("focus", function(e) {
        if ($(this).val() == 'you@somewhere.com') {
            $(this).val("");
            $(this).removeClass("description");     
        }
    });
});
