var oGlobal = { focus : '' };

jQuery.noConflict();
jQuery( document ).ready( function () {

  // if focus... blur
  jQuery( 'a' ).focus( function () { this.blur() } );

  // initialize external links
  jQuery( 'a.external' ).click( function() {
    window.open( jQuery( this ).attr( 'href' ) );
    return false;
  } );

  // disable textarea resize (safari)
  jQuery( 'textarea' ).css( 'resize', 'none' );

  // initialize menu hover
  jQuery( 'dl#dlMenu dt' ).hover(

    function() {
      jQuery( this ).css( { 'border-top-color' : '#EE3124', 'border-bottom-color' : '#EE3124' } );
      if (jQuery( this ).hasClass( 'current' ) == false) { jQuery( this ).find( 'span.child' ).show(); }
    },

    function() {
      jQuery( this ).css( { 'border-top-color' : 'transparent', 'border-bottom-color' : 'transparent' } );
      if (jQuery( this ).hasClass( 'current' ) == false) { jQuery( this ).find( 'span.child' ).hide(); }
    }
  );

  // initialize crossfade
  jQuery( 'div.crossfade img' ).show();
  jQuery( 'div.crossfade' ).css( { 'background' : '#000' } );
  jQuery( 'div.crossfade' ).cycle( { timeout: 7000, speed: 2000 } );

  // set focus
  jQuery( 'form :input:visible:enabled:first' ).focus();

} );

