var points = new Array();points.push(new GLatLng(28.0886,-17.1089));
points.push(new GLatLng(27.6656,-17.3725));
points.push(new GLatLng(27.18,-17.67));
points.push(new GLatLng(27.1022,-17.6994));
points.push(new GLatLng(27.1203,-17.4872));
points.push(new GLatLng(27.0206,-17.2883));
points.push(new GLatLng(26.4153,-17.6206));
points.push(new GLatLng(25.9719,-18.01));
points.push(new GLatLng(25.5044,-18.4519));
points.push(new GLatLng(25.3056,-18.7458));
points.push(new GLatLng(24.9422,-19.2064));
points.push(new GLatLng(24.5803,-19.4231));
points.push(new GLatLng(24.2336,-19.8717));
points.push(new GLatLng(24.0011,-20.4578));
points.push(new GLatLng(23.6272,-21.0811));
points.push(new GLatLng(23.3744,-21.6944));
points.push(new GLatLng(23.2378,-22.2306));
points.push(new GLatLng(23.0847,-22.7242));
points.push(new GLatLng(22.7394,-23.2753));
points.push(new GLatLng(22.4647,-23.7131));
points.push(new GLatLng(22.1658,-24.1731));
points.push(new GLatLng(21.9131,-24.6369));
points.push(new GLatLng(21.8017,-25.1806));
points.push(new GLatLng(21.7106,-25.6022));
points.push(new GLatLng(21.6181,-26.0361));
points.push(new GLatLng(21.5642,-26.2261));
points.push(new GLatLng(21.4492,-26.6542));
points.push(new GLatLng(21.3467,-27.2008));
points.push(new GLatLng(21.2186,-27.6536));
points.push(new GLatLng(21.0119,-28.2003));
points.push(new GLatLng(20.7478,-29.2231));
points.push(new GLatLng(20.6353,-29.8078));
points.push(new GLatLng(20.3511,-30.5456));
points.push(new GLatLng(20.2289,-30.9967));
points.push(new GLatLng(19.9367,-31.9469));
points.push(new GLatLng(19.8647,-32.4653));
points.push(new GLatLng(19.7647,-33.0925));
points.push(new GLatLng(19.7061,-33.6653));
points.push(new GLatLng(19.6458,-34.5078));
points.push(new GLatLng(19.5686,-35.0197));
points.push(new GLatLng(19.3892,-35.7533));
points.push(new GLatLng(19.3086,-36.1331));
points.push(new GLatLng(19.1994,-36.5072));
points.push(new GLatLng(19.1125,-37.0439));
points.push(new GLatLng(19.0525,-37.3969));
points.push(new GLatLng(19.0058,-37.5306));
points.push(new GLatLng(18.9567,-37.5231));
points.push(new GLatLng(18.9239,-37.5061));
points.push(new GLatLng(18.9119,-37.4525));
points.push(new GLatLng(18.8731,-37.3728));
points.push(new GLatLng(18.8469,-37.3511));
points.push(new GLatLng(18.8386,-37.3208));
points.push(new GLatLng(18.8114,-37.3156));
points.push(new GLatLng(18.7644,-37.345));
points.push(new GLatLng(18.6744,-37.4675));
points.push(new GLatLng(18.4211,-37.9497));
points.push(new GLatLng(18.2303,-38.3897));
points.push(new GLatLng(18.1122,-38.9542));
points.push(new GLatLng(18.0861,-39.4339));
points.push(new GLatLng(18.0042,-40.0528));
points.push(new GLatLng(17.9647,-40.6831));
points.push(new GLatLng(17.9672,-41.1922));
points.push(new GLatLng(17.9819,-41.7792));
points.push(new GLatLng(18.0103,-42.4456));
points.push(new GLatLng(18.0544,-42.8736));
points.push(new GLatLng(18.0794,-43.1656));
points.push(new GLatLng(18.0806,-43.2814));
points.push(new GLatLng(18.0625,-43.3853));
points.push(new GLatLng(18.0175,-43.6347));
points.push(new GLatLng(17.9683,-44.0158));
points.push(new GLatLng(17.8442,-44.6319));
points.push(new GLatLng(17.8431,-45.0439));
points.push(new GLatLng(17.87,-45.5406));
points.push(new GLatLng(17.9072,-45.9722));
points.push(new GLatLng(17.8592,-46.45));
points.push(new GLatLng(17.7897,-46.8578));
points.push(new GLatLng(17.7142,-47.1825));
points.push(new GLatLng(17.7078,-47.6658));
points.push(new GLatLng(17.6847,-48.1386));
points.push(new GLatLng(17.6703,-48.5394));
points.push(new GLatLng(17.6536,-48.6464));
points.push(new GLatLng(17.6517,-48.7883));
points.push(new GLatLng(17.6475,-48.8353));
points.push(new GLatLng(17.6625,-48.8597));
points.push(new GLatLng(17.5919,-49.2581));
points.push(new GLatLng(17.6067,-49.7217));
points.push(new GLatLng(17.6247,-50.0797));
points.push(new GLatLng(17.5833,-50.3269));
points.push(new GLatLng(17.5483,-50.8928));
points.push(new GLatLng(17.5264,-51.5408));
points.push(new GLatLng(17.5111,-52.0464));
points.push(new GLatLng(17.4842,-52.6392));
points.push(new GLatLng(17.4994,-53.2383));
points.push(new GLatLng(17.4667,-53.7803));
points.push(new GLatLng(17.4117,-54.2967));
points.push(new GLatLng(17.3522,-54.7983));
points.push(new GLatLng(17.3769,-55.335));
points.push(new GLatLng(17.3833,-55.6536));
points.push(new GLatLng(17.3561,-56.1236));
points.push(new GLatLng(17.3081,-56.6031));
points.push(new GLatLng(17.2767,-57.0442));
points.push(new GLatLng(17.2114,-57.5342));
points.push(new GLatLng(17.2039,-57.8431));
points.push(new GLatLng(17.1928,-58.1167));
points.push(new GLatLng(17.1239,-58.5164));
points.push(new GLatLng(17.1058,-58.9175));
points.push(new GLatLng(17.0281,-59.3825));
points.push(new GLatLng(16.9461,-59.8167));
points.push(new GLatLng(16.9192,-60.3486));
points.push(new GLatLng(16.9589,-60.7931));
points.push(new GLatLng(17.0181,-60.9208));
points.push(new GLatLng(17.0003,-61.1011));
points.push(new GLatLng(16.9878,-61.2564));
points.push(new GLatLng(16.9881,-61.3103));
points.push(new GLatLng(16.9886,-61.3644));
points.push(new GLatLng(16.9906,-61.4097));
points.push(new GLatLng(16.9908,-61.4572));
points.push(new GLatLng(16.99,-61.5017));
points.push(new GLatLng(16.9892,-61.5519));
points.push(new GLatLng(16.9872,-61.6008));
points.push(new GLatLng(16.9883,-61.6642));
points.push(new GLatLng(16.9897,-61.7325));
points.push(new GLatLng(16.9972,-61.75));

				var p = new GLatLng(16.9972,-61.75);
				var icon = new GIcon();
				icon.image = "http://www.indianoceanrowingrace09.com/images/boats/009999.png";
				icon.iconSize = new GSize(11, 11);
				icon.iconAnchor = new GPoint(5, 5);
				var marker1 = new GMarker(p,icon);
				map.addOverlay(marker1);

				var icon = new GIcon();
				icon.image = "http://www.indianoceanrowingrace09.com/images/arrows/0.png";
				icon.iconSize = new GSize(15, 15);
				icon.iconAnchor = new GPoint(7, 7);
				icon.infoWindowAnchor = new GPoint(7, 7);
				var arrMarker1 = new GMarker(p,icon);
				//if (typeof(infowindow) != "undefined" && infowindow == true){
					GEvent.addListener(arrMarker1, "mouseover", function() {this.openInfoWindowHtml("<div class=\"google-tooltip\">4 JJ (Insure & Go)<br><a href=\"/progress/byteam/1\">View Progress</a></div>");});
				//}
				//GEvent.addListener(arrMarker1, "mouseout", function() {map.closeInfoWindow();});
				map.addOverlay(arrMarker1);
				var p = new GPolyline(points,"#009999",3);map.addOverlay(p);
if (!Event.domReady){
	/**
	 * domready.js
	 * 
	 * Cross browser mozilla's 'onDOMContentLoaded' implementation.
	 * Executes a function when the dom tree is loaded without waiting for images.
	 * 
	 * Based on +Element.Events.domready+ from Mootools open source project, 
	 * this tiny javascript library adds the emulated 'DOMContentLoaded' functionality.
	 * 
	 * Features:
	 *   - No dependency on external libraries
	 *   - Compatible with Prototype.js 
	 * 
	 * Tested browsers (Windows):
	 *   - IE 7 (XP standalone)
	 *   - IE 6 SP2
	 *   - Firefox 2.0.0.4
	 *   - Opera 9.21
	 * 
	 * Tested browsers (Mac OS X):
	 *   - Safari 2.0.4
	 *   - Firefox 2.0.0.4
	 *   - Mac Opera 9.21
	 *   - Mac IE 5.2.3
	 *
	 * Copyright (c) 2007 Takanori Ishikawa.
	 * License: MIT-style license.
	 * 
	 * MooTools Copyright:
	 * copyright (c) 2007 Valerio Proietti, <http://mad4milk.net>
	 *
	 *
	 * See Also:
	 *
	 *   mootools 
	 *   http://mootools.net/
	 *   
	 *   The window.onload Problem - Solved!
	 *   http://dean.edwards.name/weblog/2005/09/busted/
	 *   
	 *   [PATCH] Faster onload for Event.onload
	 *   http://dev.rubyonrails.org/ticket/5414
	 *   Changeset 6596: Support for "DOMContentLoaded" event handling (prototype.js event branch)
	 *   http://dev.rubyonrails.org/changeset/6596
	 *
	 */
	
	if (typeof Event == 'undefined') Event = new Object();
	
	/*
	 * Registers function +fn+ will be executed when the dom 
	 * tree is loaded without waiting for images. 
	 * 
	 * Example:
	 *
	 *  Event.domReady.add(function() {
	 *    ...
	 *  });
	 *
	 */
	Event.domReady = {
	  add: function(fn) {
		
		//-----------------------------------------------------------
		// Already loaded?
		//-----------------------------------------------------------
		if (Event.domReady.loaded) return fn();
		
		//-----------------------------------------------------------
		// Observers
		//-----------------------------------------------------------
		var observers = Event.domReady.observers;
		if (!observers) observers = Event.domReady.observers = [];
		// Array#push is not supported by Mac IE 5
		observers[observers.length] = fn;
		
		//-----------------------------------------------------------
		// domReady function
		//-----------------------------------------------------------
		if (Event.domReady.callback) return;
		Event.domReady.callback = function() {
		  if (Event.domReady.loaded) return;
		  
		  Event.domReady.loaded = true;
		  if (Event.domReady.timer) {
			clearInterval(Event.domReady.timer);
			Event.domReady.timer = null;
		  }
		  
		  var observers = Event.domReady.observers;
		  for (var i = 0, length = observers.length; i < length; i++) {
			var fn = observers[i];
			observers[i] = null;
			fn(); // make 'this' as window
		  }
		  Event.domReady.callback = Event.domReady.observers = null;
		};
		
		//-----------------------------------------------------------
		// Emulates 'onDOMContentLoaded'
		//-----------------------------------------------------------
		var ie = !!(window.attachEvent && !window.opera);
		var webkit = navigator.userAgent.indexOf('AppleWebKit/') > -1;
		
		if (document.readyState && webkit) {
		  
		  // Apple WebKit (Safari, OmniWeb, ...)
		  Event.domReady.timer = setInterval(function() {
			var state = document.readyState;
			if (state == 'loaded' || state == 'complete') {
			  Event.domReady.callback();
			}
		  }, 50);
		  
		} else if (document.readyState && ie) {
		  
		  // Windows IE 
		  var src = (window.location.protocol == 'https:') ? '://0' : 'javascript:void(0)';
		  document.write(
			'<script type="text/javascript" defer="defer" src="' + src + '" ' + 
			'onreadystatechange="if (this.readyState == \'complete\') Event.domReady.callback();"' + 
			'><\/script>');
		  
		} else {
		  
		  if (window.addEventListener) {
			// for Mozilla browsers, Opera 9
			document.addEventListener("DOMContentLoaded", Event.domReady.callback, false);
			// Fail safe 
			window.addEventListener("load", Event.domReady.callback, false);
		  } else if (window.attachEvent) {
			window.attachEvent('onload', Event.domReady.callback);
		  } else {
			// Legacy browsers (e.g. Mac IE 5)
			var fn = window.onload;
			window.onload = function() {
			  Event.domReady.callback();
			  if (fn) fn();
			}
		  }
		  
		}
		
	  }
	}	
}

Event.domReady.add(function() {
	/** causes other overlays to not work. js error? */
	// Woodvale Watermark
	var myCopyright = new GCopyrightCollection("copyright");
	//myCopyright.addCopyright(new GCopyright(1,new GLatLngBounds(new GLatLng(-90,-180), new GLatLng(90,180)),0,'©2009 Woodvale Events'));
	
	// Create the tile layer overlay and
	// implement the three abstract methods
	var tilelayer = new GTileLayer(myCopyright);
	tilelayer.getTileUrl = function(tile,zoom) { return "http://www.atlanticrowingrace09.com/images/layout/woodvale_watermark.png"; };
	tilelayer.isPng = function() { return true;};
	tilelayer.getOpacity = function() { return 0.1; }
	
	var myTileLayer = new GTileLayerOverlay(tilelayer);
	map.addOverlay(myTileLayer);
	/**/
});