var map;
var geocoder;
var marker = new Array(12);
function load()
{
map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.setCenter(new GLatLng(35, 0), 1);
geocoder = new GClientGeocoder();
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
var icon_g = new GIcon();
icon_g.image = "http://labs.google.com/ridefinder/images/mm_20_gray.png";
icon_g.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon_g.iconSize = new GSize(12, 20);
icon_g.shadowSize = new GSize(22, 20);
icon_g.iconAnchor = new GPoint(6, 20);
icon_g.infoWindowAnchor = new GPoint(5, 1);
var icon_b = new GIcon();
icon_b.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
icon_b.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon_b.iconSize = new GSize(12, 20);
icon_b.shadowSize = new GSize(22, 20);
icon_b.iconAnchor = new GPoint(6, 20);
icon_b.infoWindowAnchor = new GPoint(5, 1);
// Tokyo
point = new GLatLng(35.68584926137846, 139.7642683982849);
marker[0] = new GMarker(point, icon_b);
marker[0].iIndex = 0;
marker[0].title = "Tokyo - MSUSA Parent";
marker[0].address1 = "Otemachi First Square";
marker[0].address2 = "1-5-1, Otemachi, Chiyoda-ku";
marker[0].city = "Tokyo";
marker[0].state = "";
marker[0].zip = "100-0004";
marker[0].country = "Japan";
map.addOverlay(marker[0]);
// 111 River St, Hoboken
point = new GLatLng(40.737990, -74.029013);
marker[1] = new GMarker(point, icon);
marker[1].iIndex = 1;
marker[1].title = "New Jersey - Fixed Income";
marker[1].address1 = "111 River St";
marker[1].city = "Hoboken";
marker[1].state = "NJ";
marker[1].zip = "07030-5777";
marker[1].country = "USA";
map.addOverlay(marker[1]);
// 1251, New York
point = new GLatLng(40.759573,-73.980663);
marker[2] = new GMarker(point, icon);
marker[2].iIndex = 2;
marker[2].title = "Mizuho Securities USA Inc. - Headquarters";
marker[2].address1 = "1251 Avenuew of the Americas";
marker[2].address2 = "33 Floor";
marker[2].city = "New York";
marker[2].state = "NY";
marker[2].zip = "10020-1104";
marker[2].country = "USA";
map.addOverlay(marker[2]);
// 311 South Wacker Drive, Chicago
point = new GLatLng(41.877826, -87.636609);
marker[3] = new GMarker(point, icon);
marker[3].iIndex = 3;
marker[3].title = "Chicago - Futures and Fixed Income";
marker[3].address1 = "311 South Wacker Drive";
marker[3].address2 = "Suite 700";
marker[3].city = "Chicago";
marker[3].state = "IL";
marker[3].zip = "60606-6620";
marker[3].country = "USA";
map.addOverlay(marker[3]);
// San Fran
point = new GLatLng(37.795051, -122.397744);
marker[4] = new GMarker(point, icon);
marker[4].iIndex = 4;
marker[4].title = "San Francisco - Equity";
marker[4].address1 = "3 Embarcadero Center";
marker[4].address2 = "Suite 1620";
marker[4].city = "San Francisco";
marker[4].state = "CA";
marker[4].zip = "94111";
marker[4].country = "USA";
map.addOverlay(marker[4]);
// London
point = new GLatLng(51.51238826954448, -0.09579777717590332);
marker[5] = new GMarker(point, icon);
marker[5].iIndex = 5;
marker[5].title = "London - Futures";
marker[5].address1 = "Bracken House";
marker[5].address2 = "One Friday Street";
marker[5].city = "London";
marker[5].state = "";
marker[5].zip = "EC4M 9JA";
marker[5].country = "UK";
map.addOverlay(marker[5]);
// Singapore
point = new GLatLng(1.3621763466641712, 103.7933349609375);
marker[6] = new GMarker(point, icon);
marker[6].iIndex = 6;
marker[6].title = "Singapore - Futures";
marker[6].address1 = "5 Shenton Way";
marker[6].address2 = "#15-01 UIC Building";
marker[6].city = "Singapore";
marker[6].state = "";
marker[6].zip = "068808";
marker[6].country = "Republic of Singapore";
map.addOverlay(marker[6]);
// Zurich
point = new GLatLng(47.380001, 8.54);
marker[7] = new GMarker(point, icon_g);
marker[7].iIndex = 7;
marker[7].title = "Mizuho Bank (Switzerland) Ltd.";
marker[7].address1 = "Loewenstrasse 32";
marker[7].city = "8023";
marker[7].state = "Zurich";
marker[7].zip = ",";
marker[7].country = "Switzerland";
map.addOverlay(marker[7]);
// Hong Kong
point = new GLatLng(22.33, 114.18);
marker[8] = new GMarker(point, icon_g);
marker[8].iIndex = 8;
marker[8].title = "Mizuho Securities Asia Limited";
marker[8].address1 = "1 Tim Mei Avenue";
marker[8].address2 = "Central";
marker[8].city = "Hong Kong";
marker[8].state = ",";
marker[8].zip = "";
marker[8].country = "China";
map.addOverlay(marker[8]);
// Bridgeford
point = new GLatLng(40.761057, -73.970781);
marker[9] = new GMarker(point, icon_g);
marker[9].iIndex = 9;
marker[9].title = "The Bridgeford Group, Inc.";
marker[9].address1 = "445 Park Avenue";
marker[9].address2 = "20th Floor";
marker[9].city = "New York";
marker[9].state = "NY";
marker[9].zip = "10022";
marker[9].country = "USA";
map.addOverlay(marker[9]);
// Shanghai
point = new GLatLng(31.23, 121.470001);
marker[10] = new GMarker(point, icon_g);
marker[10].iIndex = 10;
marker[10].title = "Shanghai - MSUSA Parent’s Representative Office";
marker[10].address1 = "24th Floor, HSBC Tower";
marker[10].address2 = "1000 Lujiazui Ring Road, Pudong New Area";
marker[10].city = "Shanghai";
marker[10].state = ",";
marker[10].zip = "200120";
marker[10].country = "The People's Republic of China";
map.addOverlay(marker[10]);
// Beijing
point = new GLatLng(39.93, 116.400002);
marker[11] = new GMarker(point, icon_g);
marker[11].iIndex = 11;
marker[11].title = "Beijing - MSUSA Parent’s Representative Office";
marker[11].address1 = "8th Floor, Chang-Fu-Gong office Building";
marker[11].address2 = "Jia26, Jianguomenwai Street, Chaoyang District";
marker[11].city = "Beijing";
marker[11].state = ",";
marker[11].zip = "100022";
marker[11].country = "The People's Republic of China";
map.addOverlay(marker[11]);
GEvent.addListener(map, "click", function(overlay, point)
{
if (overlay)
{
formatInfoWindow(overlay);
}
});
}
function showLocation(iMarker, iZoom)
{
map.setZoom(iZoom);
formatInfoWindow(marker[iMarker]);
}
function formatInfoWindow(overlay)
{
iZoom = map.getZoom();
sAddress = '' + overlay.title + '
' +
overlay.address1 + '
';
if (overlay.address2 != null) sAddress = sAddress + overlay.address2 + '
';
sAddress = sAddress + overlay.city + ' ' + overlay.state + ' ' + overlay.zip +
' ' + overlay.country + '';
if (iZoom < 16)
{
overlay.openInfoWindowHtml(sAddress + '
' +
'Zoom Directly to Street Level');
}
else
{
overlay.openInfoWindowHtml(sAddress + '
' +
'Zoom Out');
}
}