 if (GBrowserIsCompatible()) { 
function createMarker(point,html) {
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.setCenter(new GLatLng(25,10),1);
map.enableDoubleClickZoom();
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_argentina.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(-34,-58);
var marker = createMarker(point,'<div style="width:150px"><a href="argentina" Target="_parent">Argentina</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_australia.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(-35,149);
var marker = createMarker(point,'<div style="width:150px"><a href="australia" Target="_parent">Australia</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_belgium.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(50,4);
var marker = createMarker(point,'<div style="width:150px"><a href="belgium" Target="_parent">Belgium</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_brazil.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(-22.5,-43.12);
var marker = createMarker(point,'<div style="width:150px"><a href="brazil" Target="_parent">Brazil</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_canada.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(45,-75);
var marker = createMarker(point,'<div style="width:150px"><a href="canada" Target="_parent">Canada</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_china.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(39,116);
var marker = createMarker(point,'<div style="width:150px"><a href="china" Target="_parent">China</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_denmark.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(55,12);
var marker = createMarker(point,'<div style="width:150px"><a href="denmark" Target="_parent">Denmark</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_france.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(48.5,2.2);
var marker = createMarker(point,'<div style="width:150px"><a href="france" Target="_parent">France</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_germany.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(52.3,13.2);
var marker = createMarker(point,'<div style="width:150px"><a href="germany" Target="_parent">Germany</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_greece.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(37.6,23.4);
var marker = createMarker(point,'<div style="width:150px"><a href="greece" Target="_parent">Greece</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_hong_kong.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(22.2,114);
var marker = createMarker(point,'<div style="width:150px"><a href="hong_kong" Target="_parent">Hong Kong</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_india.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(28.3,77.2);
var marker = createMarker(point,'<div style="width:150px"><a href="india" Target="_parent">India</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_ireland.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(53.2,-6.15);
var marker = createMarker(point,'<div style="width:150px"><a href="ireland" Target="_parent">Ireland</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_israel.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(31.5,35.1);
var marker = createMarker(point,'<div style="width:150px"><a href="israel" Target="_parent">Israel</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_italy.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(41.5,12.3);
var marker = createMarker(point,'<div style="width:150px"><a href="italy" Target="_parent">Italy</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_japan.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(35.4,139.4);
var marker = createMarker(point,'<div style="width:150px"><a href="japan" Target="_parent">Japan</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_malaysia.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(3.1,101.4);
var marker = createMarker(point,'<div style="width:150px"><a href="malaysia" Target="_parent">Malaysia</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_mexico.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(19.2,-99.1);
var marker = createMarker(point,'<div style="width:150px"><a href="mexico" Target="_parent">Mexico</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_new_zealand.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(-41.2,174.5);
var marker = createMarker(point,'<div style="width:150px"><a href="new_zealand" Target="_parent">New Zealand</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_norway.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(59.5,10.5);
var marker = createMarker(point,'<div style="width:150px"><a href="norway" Target="_parent">Norway</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_russia.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(55.4,37.4);
var marker = createMarker(point,'<div style="width:150px"><a href="russia" Target="_parent">Russia</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_singapore.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(1.2,103.5);
var marker = createMarker(point,'<div style="width:150px"><a href="singapore" Target="_parent">Singapore</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_south_africa.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(-25.4,28.1);
var marker = createMarker(point,'<div style="width:150px"><a href="south_africa" Target="_parent">South Africa</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_south_korea.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(37.3,126.6);
var marker = createMarker(point,'<div style="width:150px"><a href="south_korea" Target="_parent">South Korea</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_spain.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(40.2,3.4);
var marker = createMarker(point,'<div style="width:150px"><a href="spain" Target="_parent">Spain</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_sweden.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(59.21,18.4);
var marker = createMarker(point,'<div style="width:150px"><a href="sweden" Target="_parent">Sweden</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_switzerland.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(46.6,7.26);
var marker = createMarker(point,'<div style="width:150px"><a href="switzerland" Target="_parent">Switzerland</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_netherlands.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(52.22,4.53);
var marker = createMarker(point,'<div style="width:150px"><a href="netherlands" Target="_parent">The Netherlands</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_united_kingdom.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(51.3,-0.3);
var marker = createMarker(point,'<div style="width:150px"><a href="united_kingdom" Target="_parent">United Kingdom</a></div>')
map.addOverlay(marker);
var icon = new GIcon();
icon.image = 'http://www.officeholidays.com/images/flags/flag_usa.png'
icon.iconSize = new GSize(16,16)
icon.iconAnchor = new GPoint(16,11)
icon.infoWindowAnchor = new GPoint(9, 2);
var point = new GLatLng(38.5,-77);
var marker = createMarker(point,'<div style="width:150px"><a href="usa" Target="_parent">USA</a></div>')
map.addOverlay(marker);
}
else {
alert("Sorry, the Google Maps API is not compatible with this browser");
}
