//now create the event handler function to process the event
function processArrows(e) {
  if( !e ) {
    //if the browser did not pass the event information to the
    //function, we will have to obtain it from the event register
    if( window.event ) {
      //Internet Explorer
      e = window.event;
    } else {
      //total failure, we have no way of referencing the event
      return;
    }
  }
  if( typeof( e.keyCode ) == 'number'  ) {
    //DOM
    e = e.keyCode;
  } else if( typeof( e.which ) == 'number' ) {
    //NS 4 compatible
    e = e.which;
  } else if( typeof( e.charCode ) == 'number'  ) {
    //also NS 6+, Mozilla 0.9+
    e = e.charCode;
  } else {
    //total failure, we have no way of obtaining the key code
    return;
  }

  if (e == 39 && right_arrow_url != 'noop')
  {
  	window.location = right_arrow_url;
  	return;
  }
  if (e == 38 && up_arrow_url != 'noop')
  {
  	window.location = up_arrow_url;
  	return;
  }
  if (e == 27 && esc_url != 'noop')
  {
  	window.location = esc_url;
  	return;
  }
  if (e == 37 && left_arrow_url != 'noop')
  {
  	window.location = left_arrow_url;
  	return;
  }
}
