//---------------------------------------------------------------------------------------------------------------------
function NAH_OpenVenueMapWindow( theUrl )
{
  window.open( theUrl,'VenueMap','width=600,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
}

//---------------------------------------------------------------------------------------------------------------------
function NAH_OpenRouteMapWindow( theUrl )
{
  window.open( theUrl, 'RouteMap','width=600,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
}

//---------------------------------------------------------------------------------------------------------------------
function NAH_LoadVenueMap( theLat, theLon, theText )
{
  var map = new GMap2( document.getElementById('map') );
  map.setCenter(  new GLatLng( theLat, theLon ), 15 );
  map.addControl( new GLargeMapControl() );
  map.addControl( new GMapTypeControl() );

  var Icon = new GIcon( G_DEFAULT_ICON );

  markerOptions = { icon:Icon };
  map.addOverlay( new GMarker( new GLatLng( theLat, theLon ), markerOptions ) );

  map.openInfoWindowHtml( map.getCenter(), theText );
}

//---------------------------------------------------------------------------------------------------------------------
function NAH_LoadRouteMap( theLat1, theLon1, theLat2, theLon2 )
{
  var map;
  var directions;

  map = new GMap2( document.getElementById('map') );
  map.addControl( new GLargeMapControl() );
  map.addControl( new GMapTypeControl() );

  directions = new GDirections( map, null );
  directions.load( 'from: ' + theLat1 + ', ' + theLon1 + ' to: ' + theLat2 + ', ' + theLon2 );
}

//---------------------------------------------------------------------------------------------------------------------


