<!-- sj-ma.js -->
<!-- Begin

var map = null;
var shape = null;

function GetMap()
{
  map = new VEMap('Capistrano');
  // 33.50280105934752, -117.6626808869921
  // UP- DOWN+ , LEFT- RIGHT+
  map.LoadMap(new VELatLong(33.513000, -117.672000), 13 ,'r' , false, VEMapMode.Mode2D, false);
  // Set initial button states.
  MA();
  DisableButtons();
}

//--- ADD MISSION AREA ---

function MA()
{
  // NW, NE, SE, SW
  var points = new Array
  (
     new VELatLong(33.536601, -117.683165), // NW
     new VELatLong(33.537087, -117.675255), // NE
     new VELatLong(33.533755, -117.675333),
     new VELatLong(33.531242, -117.674646),
     new VELatLong(33.531242, -117.674646),
     new VELatLong(33.529373, -117.673034),
     new VELatLong(33.527645, -117.670535),
     new VELatLong(33.525977, -117.668729),
     new VELatLong(33.524092, -117.667541),
     new VELatLong(33.504875, -117.659331),

     new VELatLong(33.502344, -117.658730), // SE Ortega & 5 Fwy
     new VELatLong(33.501856, -117.660189), // Ortega & Del Obispo
     new VELatLong(33.499776, -117.659892),
     new VELatLong(33.499306, -117.660020),
     new VELatLong(33.498374, -117.660803),
     new VELatLong(33.498036, -117.661372),
     new VELatLong(33.498058, -117.662534), // Del Obispo & Camino Capistrano
     new VELatLong(33.498078, -117.664199), // Del Obispo & Los Rios
     new VELatLong(33.497799, -117.666533), // Del Obispo & Alipaz
     new VELatLong(33.497799, -117.669226), // Del Obispo & Via Balardes
     new VELatLong(33.498682, -117.672088), // Del Obispo & Paseo Terraza
     new VELatLong(33.498727, -117.672906), // Del Obispo (big bend)
     new VELatLong(33.498421, -117.673447),
     new VELatLong(33.496528, -117.674987),
     new VELatLong(33.494186, -117.676473),
     new VELatLong(33.492312, -117.679064),
     new VELatLong(33.488312, -117.682017), // Dana Mesa & Del Obispo
     new VELatLong(33.487301, -117.682537), // Camino Del Avion & Del Obispo

     new VELatLong(33.487344, -117.686671), // SW Camino Del Avion & Shipside
     new VELatLong(33.493142, -117.684214),
     new VELatLong(33.493694, -117.686118),
     new VELatLong(33.500577, -117.683921),
     new VELatLong(33.504171, -117.680268),
     new VELatLong(33.506101, -117.677586),
     new VELatLong(33.507394, -117.679072),
     new VELatLong(33.508957, -117.677586),
     new VELatLong(33.509017, -117.680705),
     new VELatLong(33.510131, -117.679692),
     new VELatLong(33.517945, -117.679102),
     new VELatLong(33.522388, -117.679718),
     new VELatLong(33.523457, -117.680142),
     new VELatLong(33.524691, -117.683063), // Camino Los Padres (end)
     new VELatLong(33.528311, -117.682385),
     new VELatLong(33.531130, -117.682419)
   );
   
  // Create the VEShape object and assign parameters.
  shape = new VEShape(VEShapeType.Polygon,points);
  shape.SetLineWidth(1);
  shape.SetLineColor(new VEColor(0,150,100,1.0));
  shape.SetFillColor(new VEColor(0,150,100,0.3));
  shape.HideIcon();
  map.AddShape(shape);
  DisableButtons()
}

//  End -->
