$(document).ready(function(){
    
    // Wire up hover events to text input elements.
    $('textarea, input[type="text"], input[type="password"]')
        .live('focus', function(e){$(e.target).addClass('active')})
        .live('blur', function(e){$(e.target).removeClass('active')});

    // Focus on first element (if any).
    $('.focus').focus();

});
