//<![CDATA[	// global arrays to hold copies of the markers and html    var gmarkers = [];    var htmls = [];    // global "map" variable    var map;    // This function picks up the click in the html body and opens the corresponding info window in the map    function myclick(i) {    	gmarkers[i].openInfoWindowHtml(htmls[i]);    }	function onLoad() {		if (GBrowserIsCompatible()) {			var i = 0;			// Create an associative array of GIcons()			var gicons = [];				gicons["red"] = new GIcon(G_DEFAULT_ICON, "../graphics/icon-red.png");				gicons["green"] = new GIcon(G_DEFAULT_ICON, "../graphics/icon-green.png");				gicons["metro"]  = new GIcon(G_DEFAULT_ICON, "../graphics/icon-metro.png");			// A function to create the marker and set up the event window			function createMarker(point,html,icon) {				var marker = new GMarker(point, gicons[icon]);					GEvent.addListener(marker, "click", function() {					  marker.openInfoWindowHtml(html);					});					// save the info we need to use later for the html links					gmarkers[i] = marker;					htmls[i] = html;					i++;				return marker;			}			// Create the map and set controls			var map = new GMap2(document.getElementById("map"));				map.addControl(new GSmallMapControl());				map.addControl(new GMapTypeControl());				map.setCenter(new GLatLng(35.670746,139.742939), 17);			// Set up markers with info windows			// Shimada Mizutani Patent Office			var point = new GLatLng(35.670894,139.743943);			var marker = createMarker(point,'<h3>Shimada Mizutani Patent Office</h3><p>(next to FedEx Kinko\'s)<br />1011 Hosokawa Bldg.<br />1-17 Akasaka 1-chome Minato-ku,<br />Tokyo 107-0052<br />TEL.03-3584-4300</p>','red')				map.addOverlay(marker);				marker.openInfoWindowHtml('<h3>Shimada Mizutani Patent Office</h3><p>(next to FedEx Kinko\'s)<br />1011 Hosokawa Bldg.<br />1-17 Akasaka 1-chome Minato-ku,<br />Tokyo 107-0052<br />TEL.03-3584-4300</p>')			// FedEx Kinkos			var point = new GLatLng(35.670964,139.743766);			var marker = createMarker(point,'<h3>FedEx Kinko\'s</h3>','green')				map.addOverlay(marker);			// FedEx Kinkos			var point = new GLatLng(35.670746,139.744806);			var marker = createMarker(point,'<h3>Iwaen Chinese Restaurant</h3>','green')				map.addOverlay(marker);			// Ginza/Nanboku Exit 9			var point = new GLatLng(35.671156,139.742306);			var marker = createMarker(point,'<h3>Tokyo Metro Ginza or Nanboku Subway Line</h3><p><strong>Station: Tameike-Sannou<br />Take exit staircase No. 9<br />2-minute walking distance to office</strong></p>','metro')				map.addOverlay(marker);			// Ginza/Nanboku Exit 8			var point = new GLatLng(35.671853,139.741867);			var marker = createMarker(point,'<h3>Tokyo Metro Ginza or Nanboku Subway Line</h3><p><strong>Station: Tameike-Sannou<br />Take exit staircase No. 8<br />3-minute walking distance to office</strong></p><p>OR</p><h3>Tokyo Metro Chiyoda Subway Line</h3><p><strong>Station: Kokkai-Gijidomae<br />Take exit staircase No. 8<br />3-minute walking distance to office</strong></p>','metro')				map.addOverlay(marker);			// Chiyoda Exit 8			var point = new GLatLng(35.671853,139.741867);			var marker = createMarker(point,'<h3>Tokyo Metro Chiyoda Subway Line</h3><p><strong>Station: Kokkai-Gijidomae<br />Take exit staircase No. 8<br />3-minute walking distance to office</strong></p><p>OR</p><h3>Tokyo Metro Ginza or Nanboku Subway Line</h3><p><strong>Station: Tameike-Sannou<br />Take exit staircase No. 8<br />3-minute walking distance to office</strong></p>','metro')				map.addOverlay(marker);			// Marunouchi Exit 3			var point = new GLatLng(35.673884,139.744838);			var marker = createMarker(point,'<h3>Tokyo Metro Marunouchi Subway Line</h3><p><strong>Station: Kokkai-Gijidomae<br />Take exit staircase No. 3<br />6-minute walking distance to office</strong></p>','metro')				map.addOverlay(marker);		}		else {		  alert("Sorry, but your browser is not compatible with the Google map used on this page.");		}	}		// This Javascript is based on code provided by the    // Blackpool Community Church Javascript Team    // http://www.commchurch.freeserve.co.uk/       // http://www.econym.demon.co.uk/googlemaps/	    //]]>