// Declare variables for later use
var map;
var geoXml;
var whiteIcon, blackIcon;
var entranceMarker, delicateArchMarker, windowsMarker;
// Markers
var UrMarker;


// Route Decoration
var abrahamsRoute;
var shoreLine;

function loadMap()
{
  // loadMap: initialize the API and load the map onto the page

  // Get the map container div
  var mapDiv = document.getElementById('map');

  // Confirm browser compatibility with the Maps API
  if (!GBrowserIsCompatible())
  {
    mapDiv.innerHTML =
      'Sorry, your browser isn\'t compatible with Google Maps.';
  }
  else
  {
    // Initialize the core map object
    //map = new GMap2(mapDiv,
    //  {mapTypes: [G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP]});
map = new GMap2(mapDiv, {mapTypes: [G_NORMAL_MAP, G_SATELLITE_MAP,
  G_HYBRID_MAP, G_PHYSICAL_MAP]});


    // Set the starting map viewport, based on center coordinates and zoom level
    var coordinates = new GLatLng(33.5, 36.05);
    map.setCenter(coordinates, 5, G_SATELLITE_MAP);

    // Add the standard map controls
    map.addControl(new GLargeMapControl());
    map.addControl(new GScaleControl());
    map.addControl(new GOverviewMapControl());
    map.addControl(new GMapTypeControl());

    // Initialize a new icon, based on the GMaps default but in white
    whiteIcon = new GIcon(G_DEFAULT_ICON);
    whiteIcon.image = 'http://maps.google.com/mapfiles/kml/paddle/wht-stars.png';

    // Add a marker to the map for Ur, using the white icon
    coordinates = new GLatLng(30.96308541952441, 46.10421488674317);
    UrMarker = new GMarker(coordinates, {icon: whiteIcon});
    var tabs = [new GInfoWindowTab('Details',document.getElementById('Ur_tab_details')) ];
    UrMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(UrMarker);
    GEvent.addListener(UrMarker, 'click', UrClick);

    // Add a marker to the map for Babel, using the white icon
    coordinates = new GLatLng(32.53650368616845, 44.42088287373876);
    BabelMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Babel_tab_details'))];
    BabelMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(BabelMarker);
    // GEvent.addListener(BabelMarker, 'click', BabelClick);

    // Add a marker to the map for Mari, using the white icon
    coordinates = new GLatLng(34.4725193, 40.92096054);
    MariMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Mari_tab_details'))];
    MariMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(MariMarker);
    // GEvent.addListener(MariMarker, 'click', MariClick);

    // Add a marker to the map for Haran, using the white icon
    coordinates = new GLatLng(36.92937229726265, 39.04728757340273);
    HaranMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Haran_tab_details'))];
    HaranMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(HaranMarker);
    // GEvent.addListener(HaranMarker, 'click', HaranClick);

    // Add a marker to the map for Carchemesh, using the white icon
    coordinates = new GLatLng(36.82928161099629, 38.01576051001015);
    CarchemeshMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Carchemesh_tab_details'))];
    CarchemeshMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(CarchemeshMarker);
    // GEvent.addListener(CarchemeshMarker, 'click', CarchemeshClick);

    // Add a marker to the map for Ebla, using the white icon
    coordinates = new GLatLng(35.79810888, 36.8069138);
    EblaMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Ebla_tab_details'))];
    EblaMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(EblaMarker);
    // GEvent.addListener(EblaMarker, 'click', CarchemeshClick);

    // Add a marker to the map for Damascus, using the white icon
    coordinates = new GLatLng(33.519299, 36.31344999999999);
    DamascusMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Damascus_tab_details'))];
    DamascusMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(DamascusMarker);
    // GEvent.addListener(DamascusMarker, 'click', DamascusClick);

    // Add a marker to the map for Hazor, using the white icon
    coordinates = new GLatLng(33.01718199667929, 35.56804856758258);
    HazorMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Hazor_tab_details'))];
    HazorMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(HazorMarker);
    // GEvent.addListener(HazorMarker, 'click', HazorClick);

    // Add a marker to the map for Shekhem, using the white icon
    coordinates = new GLatLng(32.21369123124062, 35.2817986718367);
    ShekhemMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Shekhem_tab_details'))];
    ShekhemMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(ShekhemMarker);
    // GEvent.addListener(ShekhemMarker, 'click', ShekhemClick);

    // Add a marker to the map for Bethel, using the white icon
    coordinates = new GLatLng(31.93053920580005, 35.22103274923676);
    BethelMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Bethel_tab_details'))];
    BethelMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(BethelMarker);
    // GEvent.addListener(BethelMarker, 'click', BethelClick);

    // Add a marker to the map for Jerusalem, using the white icon
    coordinates = new GLatLng(31.77374999999998, 35.22522000000001);
    JerusalemMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Jerusalem_tab_details'))];
    JerusalemMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(JerusalemMarker);
    // GEvent.addListener(JerusalemMarker, 'click', JerusalemClick);

    // Add a marker to the map for Beersheba, using the white icon
    coordinates = new GLatLng(31.24495217357714, 34.8408885849849);
    BeershebaMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Beersheba_tab_details'))];
    BeershebaMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(BeershebaMarker);
    // GEvent.addListener(BeershebaMarker, 'click', BeershebaClick);

    // Add a marker to the map for Sodom, using the white icon
    coordinates = new GLatLng(31.19656033132318, 35.39648411813492);
    SodomMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Sodom_tab_details'))];
    SodomMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(SodomMarker);
    // GEvent.addListener(SodomMarker, 'click', SodomClick);

    // Add a marker to the map for Gomorrah, using the white icon
    coordinates = new GLatLng(31.15724866533878, 35.4739543300078);
    GomorrahMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Gomorrah_tab_details'))];
    GomorrahMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(GomorrahMarker);
    // GEvent.addListener(GomorrahMarker, 'click', GomorrahClick);

    // Add a marker to the map for Goshen, using the white icon
    coordinates = new GLatLng(30.72850163814402, 31.80469223616506);
    GoshenMarker = new GMarker(coordinates, {icon: whiteIcon});
    tabs = [new GInfoWindowTab('Details',document.getElementById('Goshen_tab_details'))];
    GoshenMarker.bindInfoWindowTabs(tabs, {maxWidth: 300});
    map.addOverlay(GoshenMarker);
    // GEvent.addListener(GoshenMarker, 'click', GoshenClick);

    // Create a geodata overlay for nearby campgrounds and add it to the map
    geoXml = new GGeoXml('Akkad.kml');
    map.addOverlay(geoXml);
    geoXml.show();
    abrahamsRoutePoints = [
			new GLatLng(30.9626233301339, 46.09895325386395),
			new GLatLng(31.08401155782256, 45.85220130338627),
			new GLatLng(31.24732954985105, 45.49741796240696),
			new GLatLng(31.37574314421039, 45.22667962437236),
			new GLatLng(31.52339363328843, 45.00726345714299),
			new GLatLng(31.62813641925389, 44.82512403774948),
			new GLatLng(31.80289794634228, 44.62999801315186),
			new GLatLng(31.8961969575875, 44.5612001521751),
			new GLatLng(31.96980737025599, 44.47388361718097),
			new GLatLng(32.04683280675406, 44.44007734202242),
			new GLatLng(32.10933966047049, 44.42943230938965),
			new GLatLng(32.19449720191981, 44.39543680196141),
			new GLatLng(32.4434549046089, 44.36621851541858),
			new GLatLng(32.53594853360853, 44.41964606880379),
			new GLatLng(32.55822105914776, 44.39582684036907),
			new GLatLng(32.67176360693097, 44.31910516222953),
			new GLatLng(32.73184302789422, 44.26763681677093),
			new GLatLng(32.79141001769285, 44.28893539178182),
			new GLatLng(33.00614107910624, 44.15017774391279),
			new GLatLng(33.12786793937872, 44.05590298115169),
			new GLatLng(33.26322822171193, 43.83721607491654),
			new GLatLng(33.33153692768553, 43.71485450161785),
			new GLatLng(33.35481388532535, 43.65923048739779),
			new GLatLng(33.36926497913235, 43.6122780185643),
			new GLatLng(33.37339128058405, 43.59218380760959),
			new GLatLng(33.38480091676397, 43.5583043280175),
			new GLatLng(33.41973949060108, 43.45870340005152),
			new GLatLng(33.44789150504607, 43.3945913238849),
			new GLatLng(33.48050943708881, 43.23126046057712),
			new GLatLng(33.49441346479677, 43.09244456647508),
			new GLatLng(33.50520867416739, 42.99213408534578),
			new GLatLng(33.57490292024438, 42.87640944111365),
			new GLatLng(33.70774279544975, 42.71181028078868),
			new GLatLng(33.82764001194866, 42.67086547456131),
			new GLatLng(33.83669864296662, 42.59755852153964),
			new GLatLng(33.84234134493674, 42.55079383006816),
			new GLatLng(33.86525914364561, 42.52105646705073),
			new GLatLng(33.90920908848675, 42.52383613301441),
			new GLatLng(33.96907347155366, 42.53139807604123),
			new GLatLng(34.03206981779238, 42.39702495087155),
			new GLatLng(34.12624744644882, 42.38443810324208),
			new GLatLng(34.20053307700668, 42.35776914154161),
			new GLatLng(34.26147428141753, 42.32438172340042),
			new GLatLng(34.31026860323946, 42.36727189604724),
			new GLatLng(34.32950228197507, 42.34448609919105),
			new GLatLng(34.3156325367649, 42.25996643861612),
			new GLatLng(34.3085762659465, 42.23819642809823),
			new GLatLng(34.30277480877733, 42.20010354123346),
			new GLatLng(34.3285028924345, 42.08870345142501),
			new GLatLng(34.38289906443328, 42.0066247208687),
			new GLatLng(34.42809845574308, 41.98872409986211),
			new GLatLng(34.45953935670649, 41.9447196871748),
			new GLatLng(34.45290014133962, 41.90246178304309),
			new GLatLng(34.46821121451382, 41.89786514229397),
			new GLatLng(34.46186719504041, 41.84128996444298),
			new GLatLng(34.49587937477797, 41.79531078792348),
			new GLatLng(34.46043724657162, 41.73553909900471),
			new GLatLng(34.46905614684827, 41.60977816221646),
			new GLatLng(34.41673227223311, 41.51487243975871),
			new GLatLng(34.41954448369901, 41.41233106989745),
			new GLatLng(34.43891779287196, 41.32582503727448),
			new GLatLng(34.41678176136767, 41.28832286918993),
			new GLatLng(34.39088418498409, 41.22518740814908),
			new GLatLng(34.36328090846275, 41.11298539889836),
			new GLatLng(34.45418911227061, 40.95058437046953),
			new GLatLng(34.73741179519183, 40.75009462704975),
			new GLatLng(34.83109146818932, 40.58966759785616),
			new GLatLng(35.07085628803419, 40.41889113147775),
			new GLatLng(35.28494557684811, 40.23609300311867),
			new GLatLng(35.44934800009133, 40.09095796884043),
			new GLatLng(35.5872351100468, 39.87457355055761),
			new GLatLng(35.65499240471612, 39.83362385035002),
			new GLatLng(35.73466295077057, 39.81397098126229),
			new GLatLng(35.81825415886468, 39.33461015411723),
			new GLatLng(35.91146779531934, 39.10275045721855),
			new GLatLng(36.06009417875871, 39.07696144856644),
			new GLatLng(36.1870180358596, 38.97523481072909),
			new GLatLng(36.35054821731291, 39.05162756118787),
			new GLatLng(36.43343053940492, 39.09132306337034),
			new GLatLng(36.56720860758971, 39.00960940346613),
			new GLatLng(36.70102569555161, 38.981356362588),
			new GLatLng(36.78912801363167, 39.05139932391185),
			new GLatLng(36.86340805175411, 39.03526906009003),
			new GLatLng(36.90819318553374, 38.9541537361016),
			new GLatLng(36.90616790734369, 38.77856145846474),
			new GLatLng(36.89247123702021, 38.49438541284525),
			new GLatLng(36.86439456960719, 38.16198785019873),
			new GLatLng(36.82705675485286, 38.0152208072943),
			new GLatLng(36.65195092910992, 37.85347133006509),
			new GLatLng(36.35838006075852, 37.53130681719242),
			new GLatLng(36.24550867224345, 37.36035832060348),
			new GLatLng(36.20099716635483, 37.21791069101661),
			new GLatLng(36.17885293600335, 37.11993683026488),
			new GLatLng(36.12187698220976, 37.02358003231149),
			new GLatLng(35.97751785195505, 36.89778557632739),
			new GLatLng(35.8580640599544, 36.80838697731574),
			new GLatLng(35.8054259376352, 36.79439256064163),
			new GLatLng(35.70421583740255, 36.81407421757051),
			new GLatLng(35.25655643970936, 36.75250005825025),
			new GLatLng(35.18942264462046, 36.73688504243702),
			new GLatLng(35.17164530987986, 36.72257515479537),
			new GLatLng(35.16138299445382, 36.72639956694083),
			new GLatLng(35.14783782588641, 36.73899373481189),
			new GLatLng(35.13988584302541, 36.74500817396337),
			new GLatLng(35.13472866976211, 36.76715841088173),
			new GLatLng(35.12708345848839, 36.77946237940003),
			new GLatLng(35.02822864585894, 36.89219726095951),
			new GLatLng(34.90021805422943, 36.90274173800012),
			new GLatLng(34.77541817038385, 36.96134255839792),
			new GLatLng(34.74759187187891, 36.98508961160725),
			new GLatLng(34.69647451196576, 37.00450473906733),
			new GLatLng(34.64329971289909, 37.0305199419236),
			new GLatLng(34.61677881052159, 37.07819923838704),
			new GLatLng(34.56795848242135, 37.10780778303379),
			new GLatLng(34.51383502850894, 37.10752649141529),
			new GLatLng(34.44687406867669, 37.10048057091704),
			new GLatLng(34.42122694375487, 37.04813620579812),
			new GLatLng(34.37746006435246, 36.97428739053021),
			new GLatLng(34.30915535085948, 36.91376321182865),
			new GLatLng(34.26661227973187, 36.87118432646928),
			new GLatLng(34.24848611551375, 36.84639710564838),
			new GLatLng(34.17687086568034, 36.78276179167841),
			new GLatLng(34.13220205582386, 36.75667328185708),
			new GLatLng(34.10927777698161, 36.77794041041975),
			new GLatLng(34.02145411061964, 36.73940995536242),
			new GLatLng(33.93543277285649, 36.70665168833361),
			new GLatLng(33.84838082630819, 36.62839499338936),
			new GLatLng(33.79111982114907, 36.57420099979277),
			new GLatLng(33.77672996517548, 36.56811875467774),
			new GLatLng(33.77273543645948, 36.6009989217044),
			new GLatLng(33.75938409910708, 36.59921073810716),
			new GLatLng(33.64258134286208, 36.51113338845626),
			new GLatLng(33.58455948616902, 36.39495155699557),
			new GLatLng(33.54116483721785, 36.33073731281431),
			new GLatLng(33.51981000505526, 36.31489516992968),
			new GLatLng(33.51272958097677, 36.31136408320356),
			new GLatLng(33.51778741062191, 36.30945810807233),
			new GLatLng(33.50237257215647, 36.30327076230242),
			new GLatLng(33.45155307410353, 36.27999734944677),
			new GLatLng(33.38611480393398, 36.25397752346251),
			new GLatLng(33.35852009265181, 36.1965692225606),
			new GLatLng(33.33731751350511, 36.16212563308666),
			new GLatLng(33.31717330904424, 36.09336668638629),
			new GLatLng(33.27692597223204, 36.03243709001885),
			new GLatLng(33.2527258376111, 35.96464337217019),
			new GLatLng(33.19228103496644, 35.95557831437932),
			new GLatLng(33.09901818448308, 35.95500325483187),
			new GLatLng(33.02774726491991, 35.91975429266699),
			new GLatLng(32.94904892371156, 35.94259987606893),
			new GLatLng(32.8779028871259, 35.90139808850124),
			new GLatLng(32.83632425894914, 35.85139566619327),
			new GLatLng(32.80800100314283, 35.83829273165749),
			new GLatLng(32.75439663141558, 35.761937255739),
			new GLatLng(32.7244167865681, 35.70219462540447),
			new GLatLng(32.69834389119642, 35.64377361263644),
			new GLatLng(32.68516509008377, 35.61061307513928),
			new GLatLng(32.65810092147306, 35.58711502273155),
			new GLatLng(32.62897199340462, 35.57859255297478),
			new GLatLng(32.61171771746894, 35.58161782286756),
			new GLatLng(32.57673203815024, 35.57159798875617),
			new GLatLng(32.55073323126107, 35.55925116688904),
			new GLatLng(32.51113962717495, 35.52599456228887),
			new GLatLng(32.41465209313809, 35.44626170963343),
			new GLatLng(32.32442106850103, 35.3608345461159),
			new GLatLng(32.28474564855146, 35.32095823051724),
			new GLatLng(32.25661485835678, 35.32078057881316),
			new GLatLng(32.22318885511014, 35.30202060613611),
			new GLatLng(32.21237286771986, 35.28221386418728),
			new GLatLng(32.18820086606262, 35.28262793715594),
			new GLatLng(32.12967792927364, 35.24314661520356),
			new GLatLng(32.09589834528622, 35.20785854723334),
			new GLatLng(32.02661580251751, 35.2111105269481),
			new GLatLng(31.93327859480522, 35.21870446769802),
			new GLatLng(31.7704103188437, 35.24284807825022),
			new GLatLng(31.70862745566529, 35.20082104107138),
			new GLatLng(31.52856792236118, 35.10544476584305),
			new GLatLng(31.2396249296869, 34.8364930468171),
			new GLatLng(31.17633602241986, 34.71750331373245),
			new GLatLng(31.11538198155623, 34.52209882288219),
			new GLatLng(31.14272883760879, 34.19604816736351),
			new GLatLng(31.09393634375543, 33.87443802959022),
			new GLatLng(31.05995783659686, 33.59745694321221),
			new GLatLng(31.01631148715184, 33.08096773537201),
			new GLatLng(31.01458188686864, 32.63353713845302),
			new GLatLng(31.00698479883553, 32.29815895568332),
			new GLatLng(30.92334107903492, 32.10313322150246),
			new GLatLng(30.86327021370599, 31.95012562466054),
			new GLatLng(30.81184121047825, 31.90046175587189),
			new GLatLng(30.74789940321946, 31.82333878569234)
    ];
    abrahamsRoute = new GPolyline(abrahamsRoutePoints, '#ff0000', 7, 0.7);
    map.addOverlay(abrahamsRoute);
    
    var shoreLinePoints = 
    [
		new GLatLng(29.57103085588429,48.53462627179945),  
		new GLatLng(29.7882810530734,48.52448366996831), 
		new GLatLng(29.85216582552114,48.50076445729735),  
		new GLatLng(29.83285829715939,48.63219388144591),  
		new GLatLng(29.84540719227301,48.6648691917264),   
		new GLatLng(29.94134521066542,48.67180281386743),  
		new GLatLng(30.01819087554866,48.67640221697818),  
		new GLatLng(30.02437827372802,48.77982239449582),  
		new GLatLng(30.01543419327687,48.92152538101729),  
		new GLatLng(30.06047938573265,48.93589580115742),  
		new GLatLng(30.15138686999436,48.95583818490695),  
		new GLatLng(30.23501675232866,48.94543401794149),  
		new GLatLng(30.31907116352041,48.92824495872506),  
		new GLatLng(30.35033487783742,48.97300948118578),  
		new GLatLng(30.28458742062174,49.02121492959904),  
		new GLatLng(30.23715514313379,49.15852985579309),  
		new GLatLng(30.21231422467531,49.21805016435553),  
		new GLatLng(30.17845755371001,49.2495968498649),   
		new GLatLng(30.12455016327359,49.24734448932546),  
		new GLatLng(30.14687245490083,49.33949410702377),  
		new GLatLng(30.14489224566468,49.40181491939472),  
		new GLatLng(30.14969812878541,49.47395755817706),  
		new GLatLng(30.11238640197957,49.50049705600825),  
		new GLatLng(30.06147037700459,49.50741118983606),  
		new GLatLng(29.9906656492232,49.56090353410127), 
		new GLatLng(30.00556279017458,49.64768891103327),  
		new GLatLng(30.0687989411837,49.75426584906219), 
		new GLatLng(30.10784479733607,49.79070524250776),  
		new GLatLng(30.18677078469083,49.89523726531772),  
		new GLatLng(30.21214240338379,49.99287595244763),  
		new GLatLng(30.18727449077396,50.08829046572203),  
		new GLatLng(30.27754438404966,49.98739643016517),  
		new GLatLng(30.46295592777029,49.77959410518285),  
		new GLatLng(30.60674037078498,49.63404708181699),  
		new GLatLng(30.73490787491542,49.52716798029522),  
		new GLatLng(30.8008977457695,49.45326977633889), 
		new GLatLng(30.94952208238078,49.25224033933247),  
		new GLatLng(30.94952208238078,49.25224033933247),  
		new GLatLng(30.90819407989672,49.31578345010646),  
		new GLatLng(30.95587914949181,49.18426511302025),  
		new GLatLng(31.07919087934163,49.13053425141811),  
		new GLatLng(31.21523524509661,48.94005015623915),  
		new GLatLng(31.26290120204681,48.80753514432094),  
		new GLatLng(31.34316722682208,48.70630078410209),  
		new GLatLng(31.412905188778,48.58974723242224), 
		new GLatLng(31.34923057627183,48.48377648320357),  
		new GLatLng(31.31386986345673,48.40643336183931),  
		new GLatLng(31.37500770784928,48.25130179891655),  
		new GLatLng(31.38253301671503,48.15369088399268),  
		new GLatLng(31.35960547447066,48.05688684692799),  
		new GLatLng(31.30525361219821,48.02585559696141),  
		new GLatLng(31.2248614841635,47.87764594031852), 
		new GLatLng(31.16842938585981,47.74450315782102),  
		new GLatLng(31.05639816442474,47.50910496581363),  
		new GLatLng(30.96729439122274,47.16200037538522),  
		new GLatLng(31.04394526853731,46.98934309377975),  
		new GLatLng(31.04074739487585,46.83012768454606),  
		new GLatLng(31.09743612403158,46.6801772784535),   
		new GLatLng(31.03924383200414,46.50751290653471),  
		new GLatLng(30.94905309241297,46.44385972507362),  
		new GLatLng(30.89953919823955,46.31315962530201),  
		new GLatLng(30.77372730106354,46.41343786582914),  
		new GLatLng(30.68234035523778,46.52994729308173),  
		new GLatLng(30.57712471016979,46.67255650138787),  
		new GLatLng(30.47600253789068,46.75973461687005),  
		new GLatLng(30.37280949476774,46.87412233110231),  
		new GLatLng(30.26960295156325,46.98817399367169),  
		new GLatLng(30.18558494951052,47.15891199669778),  
		new GLatLng(30.09295972912429,47.28699831259058),  
		new GLatLng(29.97904750452145,47.38506200694513),  
		new GLatLng(29.85561147353863,47.45442488912573),  
		new GLatLng(29.75559629122882,47.52604154879311),  
		new GLatLng(29.69799819557248,47.65663170467559),  
		new GLatLng(29.61806826043909,47.77090760946121),  
		new GLatLng(29.49468650092894,47.83907189002287),  
		new GLatLng(29.36785372779376,47.94684025639928),  
		new GLatLng(29.50243851264623,48.03015235861619),  
		new GLatLng(29.40767026881907,48.23092494617592),  
		new GLatLng(29.38153477807343,48.40132539619387),  
		new GLatLng(29.51671970257561,48.44822737670623),  
		new GLatLng(29.57103085588429,48.53462627179945) 
    
    ];
    //var shoreLine = new GPolyline(shoreLinePoints, '#000080', 7, 0.5);

    shoreLine = new GPolygon(shoreLinePoints, null, 5, 0.5, "#000044", 1);
    map.addOverlay(shoreLine);

  }
};

function UrClick()
{
  // entranceClick: Open a map detail infowindow showing the park entrance area
  //UrMarker.showMapBlowup({mapType: G_SATELLITE_MAP, zoomLevel: 14});
  UrMarker.showInfoWindow();
};


function parse_it()
{
}

function toggleabrahamsRoute()
{

  if (document.getElementById('show_abrahamsRoute').checked)
     abrahamsRoute.show();
  else
     abrahamsRoute.hide();
};

function toggleShoreLine()
{

  if (document.getElementById('show_shoreLine').checked)
     shoreLine.show();
  else
     shoreLine.hide();
};


