//<![CDATA[
function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
			map.addControl(new GLargeMapControl());
		var lineThickness = 1;
		
		map.setCenter(new GLatLng(39.863203, -105.067725), 16, G_HYBRID_TYPE);
	
		function getPoints() {
		points = [];
		points2 = [];
    
		points.push(new GLatLng(39.861187, -105.068076));
		points.push(new GLatLng(39.862251, -105.068041));
		points.push(new GLatLng(39.862774, -105.067987));
		points.push(new GLatLng(39.862932, -105.068190));
		points.push(new GLatLng(39.863219, -105.067943));
    
    	points2.push(new GLatLng(39.863641, -105.065823));
		points2.push(new GLatLng(39.862223, -105.065837));
		points2.push(new GLatLng(39.862246, -105.066190));
		points2.push(new GLatLng(39.862346, -105.066297));
		points2.push(new GLatLng(39.862352, -105.067381));
		points2.push(new GLatLng(39.862230, -105.067522));
		points2.push(new GLatLng(39.862251, -105.068041));
		
    
		}
	
		getPoints();

		map.addOverlay(new GPolyline(points, "#00ff00"));
		map.addOverlay(new GPolyline(points2, "#00ff00"));
		
		var label = new ELabel(new GLatLng(39.861642,-105.067200), "Costco", "style2");
		var label2 = new ELabel(new GLatLng(39.862900,-105.067175), "Strip Mall", "style1");
		map.addOverlay(label);
		map.addOverlay(label2);
    
		var othermap = new GMap(document.getElementById("othermap"));
			othermap.setCenter(new GLatLng(39.863203, -105.067725), 13);
			othermap.addControl(new GSmallZoomControl());
		function createInfoMarker(point, address) {
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click",
				function() {
					marker.openInfoWindowHtml(address);
					}
			);
		return marker;
		}
	
		var point = new GPoint (-105.067725, 39.863203);
		var marker = new GMarker(point);
		othermap.addOverlay(marker);
		var point = new GPoint(-105.067725, 39.863203);
		
		address = "<div style='font-family: arial; tahoma, verdana; font-size: 12px;'><b>Lake Arbor Automotive &amp; Truck</b><br />9146 Marshall Pl. | Westminster, CO 80031<br />Need driving directions? <a href='http://maps.google.com/maps?f=q&hl=en&geocode=9212516815892869125,39.862870,-105.067690&time=&date=&ttype=&q=9146+Marshall+Pl,+Westminster,+Colorado+80031&sll=39.862762,-105.067298&sspn=0.003673,0.007296&ie=UTF8&ll=39.863734,-105.068071&spn=0.007346,0.014591&t=h&z=16&om=1' target='_blank'>Click Here</a>.</div>";
		
		var marker = createInfoMarker(point, address);
		map.addOverlay(marker);
		marker.openInfoWindowHtml(address);
	
	}
	else {
		alert("Sorry, this just isn't going to work between us.");
	}
}
//]]>