// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
Event.observe( window, "load", function(){ runHooks(); }, false );

function runHooks(){
  // Make sure the function exists before attempting to call it
  if ( typeof loadSearchControls != "undefined" ){
    loadSearchControls();
  }
  if ( typeof $( "login-form" ) != "undefined" ){
    Form.focusFirstElement( "login-form" );
  }
  if ( typeof $( "register-form" ) != "undefined" ){
    Form.focusFirstElement( "register-form" );
  }
  if ( $( "new-customers" ) ){
    new Effect.Highlight( "new-customers", { startcolor : '#eabb1d', endcolor : '#f0f1d8' } );
  }
}