// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function mark_errors() {
  $$('#errors li').each( function( element ) {
    var name_attr = '[name="' + Element.readAttribute(element, 'name') + '"]'
    $$( 'input' + name_attr, 'textarea' + name_attr ).each( function( element ) {
      Element.setStyle( element, 'outline:2px solid red' );
    });
  });
}

Event.observe(window, 'load', mark_errors );

document.observe('dom:loaded', function() {

  Cufon.replace('h1', {textShadow: '#9ebe57 0px -1px'});
  Cufon.replace('#footer a', {fontSize:16});
  
} );
