var map;
function nato(){
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GScaleControl());
		map.setCenter(new GLatLng(51.15178610143037, 13.7109375), 4);
	}
}
function clearMarker(){
	map.clearOverlays();
}

function nato1(){
var greatbritain_i = new GIcon();
greatbritain_i.image = "./flag/greatbritain.png";
greatbritain_i.iconSize = new GSize(25, 17);
greatbritain_i.iconAnchor = new GPoint(25, 17);
greatbritain_i.infoWindowAnchor = new GPoint(25, 17);

var french_i = new GIcon();
french_i.image = "./flag/french.png";
french_i.iconSize = new GSize(25, 17);
french_i.iconAnchor = new GPoint(25, 17);
french_i.infoWindowAnchor = new GPoint(25, 17);

var belgium_i = new GIcon();
belgium_i.image = "./flag/belgium.png";
belgium_i.iconSize = new GSize(25, 17);
belgium_i.iconAnchor = new GPoint(25, 17);
belgium_i.infoWindowAnchor = new GPoint(25, 17);

var netherlands_i = new GIcon();
netherlands_i.image = "./flag/netherlands.png";
netherlands_i.iconSize = new GSize(25, 17);
netherlands_i.iconAnchor = new GPoint(25, 17);
netherlands_i.infoWindowAnchor = new GPoint(25, 17);

var luxembourg_i = new GIcon();
luxembourg_i.image = "./flag/luxembourg.png";
luxembourg_i.iconSize = new GSize(25, 17);
luxembourg_i.iconAnchor = new GPoint(25, 17);
luxembourg_i.infoWindowAnchor = new GPoint(25, 17);

var greatbritain = new GLatLng(51.507247,-0.126343);
marker_greatbritain = new GMarker(greatbritain, greatbritain_i);
GEvent.addListener(marker_greatbritain, "mouseover", function() {
marker_greatbritain.openInfoWindowHtml("英国:イギリス<br />ブリュッセル条約機構（1948年3月）<br />が成立、後のNATOの基盤となる");});

var belgium = new GLatLng(50.837167,4.329987);
marker_belgium = new GMarker(belgium, belgium_i);
GEvent.addListener(marker_belgium, "mouseover", function() {
marker_belgium.openInfoWindowHtml("ベルギー<br />ブリュッセル条約機構（1948年3月）<br />が成立、後のNATOの基盤となる");});

var french = new GLatLng(48.864037,2.351074);
marker_french = new GMarker(french, french_i);
GEvent.addListener(marker_french, "mouseover", function() {
marker_french.openInfoWindowHtml("フランス<br />ブリュッセル条約機構（1948年3月）<br />が成立、後のNATOの基盤となる");});

var luxembourg = new GLatLng(49.627392,6.120071);
marker_luxembourg = new GMarker(luxembourg, luxembourg_i);
GEvent.addListener(marker_luxembourg, "mouseover", function() {
marker_luxembourg.openInfoWindowHtml("ルクセンブルク<br />ブリュッセル条約機構（1948年3月）<br />が成立、後のNATOの基盤となる");});

var netherlands = new GLatLng(52.376857,4.889946);
marker_netherlands = new GMarker(netherlands, netherlands_i);
GEvent.addListener(marker_netherlands, "mouseover", function() {
marker_netherlands.openInfoWindowHtml("オランダ<br />ブリュッセル条約機構（1948年3月）<br />が成立、後のNATOの基盤となる");});
map.addOverlay(marker_belgium);map.addOverlay(marker_french);map.addOverlay(marker_greatbritain);map.addOverlay(marker_luxembourg);map.addOverlay(marker_netherlands);
}

function nato2(){
var canada_i = new GIcon();
canada_i.image = "./flag/canada.png";
canada_i.iconSize = new GSize(25, 17);
canada_i.iconAnchor = new GPoint(25, 17);
canada_i.infoWindowAnchor = new GPoint(25, 17);

var denmark_i = new GIcon();
denmark_i.image = "./flag/denmark.png";
denmark_i.iconSize = new GSize(25, 17);
denmark_i.iconAnchor = new GPoint(25, 17);
denmark_i.infoWindowAnchor = new GPoint(25, 17);

var iceland_i = new GIcon();
iceland_i.image = "./flag/iceland.png";
iceland_i.iconSize = new GSize(25, 17);
iceland_i.iconAnchor = new GPoint(25, 17);
iceland_i.infoWindowAnchor = new GPoint(25, 17);

var italy_i = new GIcon();
italy_i.image = "./flag/italy.png";
italy_i.iconSize = new GSize(25, 17);
italy_i.iconAnchor = new GPoint(0, 17);
italy_i.infoWindowAnchor = new GPoint(25, 17);

var norway_i = new GIcon();
norway_i.image = "./flag/norway.png";
norway_i.iconSize = new GSize(25, 17);
norway_i.iconAnchor = new GPoint(0, 17);
norway_i.infoWindowAnchor = new GPoint(25, 17);

var portuguese_i = new GIcon();
portuguese_i.image = "./flag/portuguese.png";
portuguese_i.iconSize = new GSize(25, 17);
portuguese_i.iconAnchor = new GPoint(25, 17);
portuguese_i.infoWindowAnchor = new GPoint(25, 17);

var usa_i = new GIcon();
usa_i.image = "./flag/usa.png";
usa_i.iconSize = new GSize(25, 17);
usa_i.iconAnchor = new GPoint(0, 17);
usa_i.infoWindowAnchor = new GPoint(25, 17);

var canada = new GLatLng(55, 3.1640625);
marker_canada = new GMarker(canada, canada_i);
GEvent.addListener(marker_canada, "mouseover", function() {
marker_canada.openInfoWindowHtml("カナダ<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効<br />カナダは北アメリカ大陸に位置");});

var denmark = new GLatLng(55.692681,12.569733);
marker_denmark = new GMarker(denmark, denmark_i);
GEvent.addListener(marker_denmark, "mouseover", function() {
marker_denmark.openInfoWindowHtml("デンマーク<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効");});

var iceland = new GLatLng(64.297058,-21.917725);
marker_iceland = new GMarker(iceland, iceland_i);
GEvent.addListener(marker_iceland, "mouseover", function() {
marker_iceland.openInfoWindowHtml("アイスランド<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効");});
var italy = new GLatLng(41.90381,12.482185);
marker_italy = new GMarker(italy, italy_i);
GEvent.addListener(marker_italy, "mouseover", function() {
marker_italy.openInfoWindowHtml("イタリア<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効");});

var norway = new GLatLng(59.921302,10.750122);
marker_norway = new GMarker(norway, norway_i);
GEvent.addListener(marker_norway, "mouseover", function() {
marker_norway.openInfoWindowHtml("ノルウェー<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効");});

var portuguese = new GLatLng(38.728912,-9.139938);
marker_portuguese = new GMarker(portuguese, portuguese_i);
GEvent.addListener(marker_portuguese, "mouseover", function() {
marker_portuguese.openInfoWindowHtml("ポルトガル<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効");});

var usa = new GLatLng(56.218923189166624, 3.1640625);
marker_usa = new GMarker(usa, usa_i);
GEvent.addListener(marker_usa, "mouseover", function() {
marker_usa.openInfoWindowHtml("アメリカ<br />ブリュッセル条約加盟国を核とし、<br />1949年8月24日、米国、カナダの北米2か国<br />及び欧州10か国により「北大西洋条約」が署名/発効<br />アメリカは北アメリカ大陸に位置");});

map.addOverlay(marker_canada);map.addOverlay(marker_denmark);map.addOverlay(marker_iceland);map.addOverlay(marker_italy);map.addOverlay(marker_norway);map.addOverlay(marker_portuguese);map.addOverlay(marker_usa);
}

function nato3(){
var hellenic_i = new GIcon();
hellenic_i.image = "./flag/hellenic.png";
hellenic_i.iconSize = new GSize(25, 17);
hellenic_i.iconAnchor = new GPoint(25, 17);
hellenic_i.infoWindowAnchor = new GPoint(25, 17);

var turkey_i = new GIcon();
turkey_i.image = "./flag/turkey.png";
turkey_i.iconSize = new GSize(25, 17);
turkey_i.iconAnchor = new GPoint(25, 17);
turkey_i.infoWindowAnchor = new GPoint(25, 17);

var hellenic = new GLatLng(37.988857,23.730125);
marker_hellenic = new GMarker(hellenic, hellenic_i);
GEvent.addListener(marker_hellenic, "mouseover", function() {
marker_hellenic.openInfoWindowHtml("ギリシャ<br />1952年2月追加加盟<br />NATO加盟国 14ヶ国");});

var turkey = new GLatLng(39.93, 32.849998);
marker_turkey = new GMarker(turkey, turkey_i);
GEvent.addListener(marker_turkey, "mouseover", function() {
marker_turkey.openInfoWindowHtml("トルコ<br />1952年2月追加加盟<br />NATO加盟国 14ヶ国");});

map.addOverlay(marker_hellenic);map.addOverlay(marker_turkey);
}

function nato4(){
var germany_i = new GIcon();
germany_i.image = "./flag/germany.png";
germany_i.iconSize = new GSize(25, 17);
germany_i.iconAnchor = new GPoint(25, 17);
germany_i.infoWindowAnchor = new GPoint(25, 17);

var germany = new GLatLng(52.530634,13.411903);
marker_germany = new GMarker(germany, germany_i);
GEvent.addListener(marker_germany, "mouseover", function() {
marker_germany.openInfoWindowHtml("ドイツ(当時西ドイツ)<br />1955年5月追加加盟<br />NATO加盟国 15ヶ国");});

map.addOverlay(marker_germany);
}

function nato5(){
var spain_i = new GIcon();
spain_i.image = "./flag/spain.png";
spain_i.iconSize = new GSize(25, 17);
spain_i.iconAnchor = new GPoint(25, 17);
spain_i.infoWindowAnchor = new GPoint(25, 17);

var spain = new GLatLng(40.425258,-3.703423);
marker_spain = new GMarker(spain, spain_i);
GEvent.addListener(marker_spain, "mouseover", function() {
marker_spain.openInfoWindowHtml("スペイン<br />1982年5月追加加盟<br />NATO加盟国 16ヶ国");});
map.addOverlay(marker_spain);
}

function nato6(){
var czech_i = new GIcon();
czech_i.image = "./flag/czech.png";
czech_i.iconSize = new GSize(25, 17);
czech_i.iconAnchor = new GPoint(25, 17);
czech_i.infoWindowAnchor = new GPoint(25, 17);

var hungary_i = new GIcon();
hungary_i.image = "./flag/hungary.png";
hungary_i.iconSize = new GSize(25, 17);
hungary_i.iconAnchor = new GPoint(25, 17);
hungary_i.infoWindowAnchor = new GPoint(25, 17);

var poland_i = new GIcon();
poland_i.image = "./flag/poland.png";
poland_i.iconSize = new GSize(25, 17);
poland_i.iconAnchor = new GPoint(25, 17);
poland_i.infoWindowAnchor = new GPoint(25, 17);

var czech = new GLatLng(50.087327,14.429855);
marker_czech = new GMarker(czech, czech_i);
GEvent.addListener(marker_czech, "mouseover", function() {
marker_czech.openInfoWindowHtml("チェコ<br />1999年3月追加加盟<br />NATO加盟国 19ヶ国");});

var hungary = new GLatLng(47.517664,19.080162);
marker_hungary = new GMarker(hungary, hungary_i);
GEvent.addListener(marker_hungary, "mouseover", function() {
marker_hungary.openInfoWindowHtml("ハンガリー<br />1999年3月追加加盟<br />NATO加盟国 19ヶ国");});

var poland = new GLatLng(52.267107,21.019936);
marker_poland = new GMarker(poland, poland_i);
GEvent.addListener(marker_poland, "mouseover", function() {
marker_poland.openInfoWindowHtml("ポーランド<br />1999年3月追加加盟<br />NATO加盟国 19ヶ国");});
map.addOverlay(marker_czech);map.addOverlay(marker_hungary);map.addOverlay(marker_poland);
}

function nato7(){
var estonia_i = new GIcon();
estonia_i.image = "./flag/estonia.png";
estonia_i.iconSize = new GSize(25, 17);
estonia_i.iconAnchor = new GPoint(25, 17);
estonia_i.infoWindowAnchor = new GPoint(25, 17);

var latvia_i = new GIcon();
latvia_i.image = "./flag/latvia.png";
latvia_i.iconSize = new GSize(25, 17);
latvia_i.iconAnchor = new GPoint(25, 17);
latvia_i.infoWindowAnchor = new GPoint(25, 17);

var lithuania_i = new GIcon();
lithuania_i.image = "./flag/lithuania.png";
lithuania_i.iconSize = new GSize(25, 17);
lithuania_i.iconAnchor = new GPoint(25, 17);
lithuania_i.infoWindowAnchor = new GPoint(25, 17);

var slovak_i = new GIcon();
slovak_i.image = "./flag/slovak.png";
slovak_i.iconSize = new GSize(25, 17);
slovak_i.iconAnchor = new GPoint(25, 17);
slovak_i.infoWindowAnchor = new GPoint(25, 17);

var slovenia_i = new GIcon();
slovenia_i.image = "./flag/slovenia.png";
slovenia_i.iconSize = new GSize(25, 17);
slovenia_i.iconAnchor = new GPoint(25, 17);
slovenia_i.infoWindowAnchor = new GPoint(25, 17);

var bulgaria_i = new GIcon();
bulgaria_i.image = "./flag/bulgaria.png";
bulgaria_i.iconSize = new GSize(25, 17);
bulgaria_i.iconAnchor = new GPoint(25, 17);
bulgaria_i.infoWindowAnchor = new GPoint(25, 17);

var romania_i = new GIcon();
romania_i.image = "./flag/romania.png";
romania_i.iconSize = new GSize(25, 17);
romania_i.iconAnchor = new GPoint(25, 17);
romania_i.infoWindowAnchor = new GPoint(25, 17);

var estonia = new GLatLng(59.451358,24.739838);
marker_estonia = new GMarker(estonia, estonia_i);
GEvent.addListener(marker_estonia, "mouseover", function() {
marker_estonia.openInfoWindowHtml("エストニア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});

var latvia = new GLatLng(56.982408,24.130096);
marker_latvia = new GMarker(latvia, latvia_i);
GEvent.addListener(marker_latvia, "mouseover", function() {
marker_latvia.openInfoWindowHtml("ラトビア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});
var lithuania = new GLatLng(54.713119,25.269928);
marker_lithuania = new GMarker(lithuania, lithuania_i);
GEvent.addListener(marker_lithuania, "mouseover", function() {
marker_lithuania.openInfoWindowHtml("リトアニア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});

var slovak = new GLatLng(48.167459,17.130089);
marker_slovak = new GMarker(slovak, slovak_i);
GEvent.addListener(marker_slovak, "mouseover", function() {
marker_slovak.openInfoWindowHtml("スロバキア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});

var slovenia = new GLatLng(46.067752,14.50985);
marker_slovenia = new GMarker(slovenia, slovenia_i);
GEvent.addListener(marker_slovenia, "mouseover", function() {
marker_slovenia.openInfoWindowHtml("スロベニア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});

var bulgaria = new GLatLng(43.213183,23.312988);
marker_bulgaria = new GMarker(bulgaria, bulgaria_i);
GEvent.addListener(marker_bulgaria, "mouseover", function() {
marker_bulgaria.openInfoWindowHtml("ブルガリア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});

var romania = new GLatLng(44.447997,26.100082);
marker_romania = new GMarker(romania, romania_i);
GEvent.addListener(marker_romania, "mouseover", function() {
marker_romania.openInfoWindowHtml("ルーマニア<br />2004年3月追加加盟<br />NATO加盟国 26ヶ国");});

map.addOverlay(marker_estonia);map.addOverlay(marker_latvia);map.addOverlay(marker_lithuania);map.addOverlay(marker_slovak);map.addOverlay(marker_slovenia);map.addOverlay(marker_bulgaria);map.addOverlay(marker_romania);
}

function atom(){
var greatbritain_i = new GIcon();
greatbritain_i.image = "./flag/greatbritain.png";
greatbritain_i.iconSize = new GSize(25, 17);
greatbritain_i.iconAnchor = new GPoint(25, 17);
greatbritain_i.infoWindowAnchor = new GPoint(25, 17);

var french_i = new GIcon();
french_i.image = "./flag/french.png";
french_i.iconSize = new GSize(25, 17);
french_i.iconAnchor = new GPoint(25, 17);
french_i.infoWindowAnchor = new GPoint(25, 17);

var usa_i = new GIcon();
usa_i.image = "./flag/usa.png";
usa_i.iconSize = new GSize(25, 17);
usa_i.iconAnchor = new GPoint(0, 17);
usa_i.infoWindowAnchor = new GPoint(25, 17);

var russian_i = new GIcon();
russian_i.image = "./flag/russian.png";
russian_i.iconSize = new GSize(25, 17);
russian_i.iconAnchor = new GPoint(25, 17);
russian_i.infoWindowAnchor = new GPoint(25, 17);

var greatbritain = new GLatLng(51.507247,-0.126343);
marker_greatbritain = new GMarker(greatbritain, greatbritain_i);
GEvent.addListener(marker_greatbritain, "mouseover", function() {
marker_greatbritain.openInfoWindowHtml("英国:イギリス<br />核兵器保有国");});

var french = new GLatLng(48.864037,2.351074);
marker_french = new GMarker(french, french_i);
GEvent.addListener(marker_french, "mouseover", function() {
marker_french.openInfoWindowHtml("フランス<br />核兵器保有国");});

var usa = new GLatLng(56.218923189166624, 3.1640625);
marker_usa = new GMarker(usa, usa_i);
GEvent.addListener(marker_usa, "mouseover", function() {
marker_usa.openInfoWindowHtml("アメリカ<br />核兵器保有国<br />アメリカは北アメリカ大陸に位置");});

var russian = new GLatLng(55.762668,37.619934);
marker_russian = new GMarker(russian, russian_i);
GEvent.addListener(marker_russian, "mouseover", function() {
marker_russian.openInfoWindowHtml("ロシア<br />核兵器保有国");});

map.addOverlay(marker_greatbritain);map.addOverlay(marker_french);map.addOverlay(marker_usa);map.addOverlay(marker_russian);
}

function neutral(){
var austria_i = new GIcon();
austria_i.image = "./flag/austria.png";
austria_i.iconSize = new GSize(25, 17);
austria_i.iconAnchor = new GPoint(25, 17);
austria_i.infoWindowAnchor = new GPoint(25, 17);

var finland_i = new GIcon();
finland_i.image = "./flag/finland.png";
finland_i.iconSize = new GSize(25, 17);
finland_i.iconAnchor = new GPoint(25, 17);
finland_i.infoWindowAnchor = new GPoint(25, 17);

var swiss_i = new GIcon();
swiss_i.image = "./flag/swiss.png";
swiss_i.iconSize = new GSize(25, 17);
swiss_i.iconAnchor = new GPoint(25, 17);
swiss_i.infoWindowAnchor = new GPoint(25, 17);

var sweden_i = new GIcon();
sweden_i.image = "./flag/sweden.png";
sweden_i.iconSize = new GSize(25, 17);
sweden_i.iconAnchor = new GPoint(25, 17);
sweden_i.infoWindowAnchor = new GPoint(25, 17);

var austria = new GLatLng(48.227646,16.369972);
marker_austria = new GMarker(austria, austria_i);
GEvent.addListener(marker_austria, "mouseover", function() {
marker_austria.openInfoWindowHtml("オーストリア<br />1955年連合国との国家条約締結により<br />独立を回復。永世中立を宣言");});

var finland = new GLatLng(60.181136,24.940338);
marker_finland = new GMarker(finland, finland_i);
GEvent.addListener(marker_finland, "mouseover", function() {
marker_finland.openInfoWindowHtml("フィンランド<br />1917年	ロシアより独立、フィンランド共和国成立<br />1939年対ソ戦争（冬戦争）<br />及び1941-44年対ソ戦争（戦争継続）<br />1948年フィンランド・ソ連友好協力相互援助条約締結");});

var swiss = new GLatLng(46.955652,7.449417);
marker_swiss = new GMarker(swiss, swiss_i);
GEvent.addListener(marker_swiss, "mouseover", function() {
marker_swiss.openInfoWindowHtml("スイス<br />1815年欧州列強がウィーン会議で<br />スイスの永世中立を承認。");});

var sweden = new GLatLng(59.341594,18.069763);
marker_sweden = new GMarker(sweden, sweden_i);
GEvent.addListener(marker_sweden, "mouseover", function() {
marker_sweden.openInfoWindowHtml("スウェーデン<br />1814年ナポレオン戦争後、キール平和条約締結。<br />以降非同盟・中立政策。");});

map.addOverlay(marker_austria);map.addOverlay(marker_finland);map.addOverlay(marker_swiss);map.addOverlay(marker_sweden);
}

onload = nato;
onunload = GUnload;
