<!-- sj-jn.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.524708, -117.65931), 14 ,'r' , false, VEMapMode.Mode2D, false);
  // Set initial button states.
  JN();
  //DisableButtons();
}

//--- ADD SAN JUAN NORTH ---

function JN()
{
  // NW, NE, SE, SW
  var points = new Array
  (
    new VELatLong(33.542590, -117.673396), // NW
    new VELatLong(33.523122, -117.641513),
    new VELatLong(33.523176, -117.645858),
    new VELatLong(33.522212, -117.64618),
    new VELatLong(33.521995, -117.647012),
    new VELatLong(33.52136, -117.648007),
    new VELatLong(33.514966, -117.651408),
    new VELatLong(33.513123, -117.653596),
    new VELatLong(33.510231, -117.657105),
    new VELatLong(33.508504, -117.657724),
    new VELatLong(33.508146, -117.657891),
    new VELatLong(33.506992, -117.658499),
    new VELatLong(33.506628, -117.659307),

    new VELatLong(33.524794, -117.667155), // Mission Hills & 5 Fwy
    new VELatLong(33.526080, -117.667997), // Highland & 5 Fwy
    new VELatLong(33.527155, -117.668947),
    new VELatLong(33.530373, -117.673168), // Village Rd & 5 Fwy
    new VELatLong(33.531779, -117.674129),
    new VELatLong(33.533382, -117.674550),
    new VELatLong(33.536595, -117.674507)
   );
   
  // 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 -->
