$(document).ready(function(){ 
   
  setTimeout("hideFlash()", 3000);
  flashFirstQuote();
  
   $('textarea#quote_quote').focus(function() {
     $(this).parent().parent().parent().css('background', '#ccc');
   });
   
   $('textarea#quote_quote').blur(function() {
     $(this).parent().parent().parent().css('background', '#f4f4f4');
   });
   
   $('input#quote_author').focus(function() {
     $(this).parent().parent().parent().css('background', '#ccc');
   });
   
   $('input#quote_author').blur(function() {
     $(this).parent().parent().parent().css('background', '#f4f4f4');
   });
   
   $('input#quote_submit').focus(function() {
     $(this).parent().parent().parent().css('background', '#ccc');
   });
   
   $('input#quote_submit').blur(function() {
     $(this).parent().parent().parent().css('background', '#f4f4f4');
   });
   
   // login /signup
   
   $('input#user_email').parent().parent().css('background', '#ccc');
   // no blur on purpose
   
   $('input#mailing_to').parent().parent().parent().css('background', '#ccc');
   // no blur on purpose
   
   $('input#email').focus(function() {
     $(this).parent().parent().css('background', '#ccc');
   });
   
   $('input#email').blur(function() {
     $(this).parent().parent().css('background', '#f4f4f4');
   });
   
   $('input#password').focus(function() {
     $(this).parent().parent().css('background', '#ccc');
   });
   
   $('input#password').blur(function() {
     $(this).parent().parent().css('background', '#f4f4f4');
   });
   
   
   // input#quote_author
   
}); // End of doc ready
 
hideFlash = function(){  
  $('#flash_holder').animate({opacity:0}, 1500);
  setTimeout("$('#flash_holder').remove()", 1500);
};
 
 
flashFirstQuote = function() {
 $('div#quotes div:first').addClass('first_quote');
 
 $('div#quotes div:first').hover(
   function() {
     $(this).removeClass('first_quote');
   },
   function() {}
   );    
};