////////////////////////////////////////////////////////////////////////////
// 共通JavaScriptファイル
// Google Maps 表示用モジュール
// 対象ファイル：index.html
/*
 * 作成日：2008/06/18
 * 作成者：大黒天物産株式会社　経営企画室システム課　山下信治
 */
////////////////////////////////////////////////////////////////////////////

function viewMap() {
	
	if (GBrowserIsCompatible()) {
		
		//マップエリアの取得
		var map = new GMap2(document.getElementById("map"));
		
		//マップのセンター合わせ
		map.setCenter(new GLatLng(34.43409789359469, 133.06640625), 7);
		
		//コントロール類の表示
		map.addControl(new GMapTypeControl());
		
		//ドラッグを禁止する
		map.disableDragging();
		
		//府県ラベルの表示
		var lbl_kyoto = new TLabel();			//京都府
		lbl_kyoto.id = "kyoto";
		lbl_kyoto.anchorPoint = "topCenter";
		lbl_kyoto.anchorLatLng = new GLatLng(35.34425514918409, 135.439453125);
		lbl_kyoto.percentOpacity = 100;
		lbl_kyoto.content = "<a href='./list?pref=26'><img src='./img/b_kyoto.gif' alt='京都府' width='70' height='25' class='swap_img' id='b_kyoto' onmouseover='swapImage(\"b_kyoto\",\"./img/b_kyoto_f2.gif\");' onmouseout='swapImgRestore(\"b_kyoto\",\"./img/b_kyoto.gif\");' /></a>";
		map.addTLabel(lbl_kyoto);
		
		var lbl_osaka = new TLabel();			//大阪府
		lbl_osaka.id = "osaka";
		lbl_osaka.anchorPoint = "topCenter";
		lbl_osaka.anchorLatLng = new GLatLng(34.44315867450577, 135.10986328125);
		lbl_osaka.percentOpacity = 100;
		lbl_osaka.content = "<a href='./list?pref=27'><img src='./img/b_osaka.gif' alt='大阪府' width='70' height='25' class='swap_img' id='b_osaka' onmouseover='swapImage(\"b_osaka\",\"./img/b_osaka_f2.gif\");' onmouseout='swapImgRestore(\"b_osaka\",\"./img/b_osaka.gif\");' /></a>";
		map.addTLabel(lbl_osaka);
		
		var lbl_hyogo = new TLabel();			//兵庫県
		lbl_hyogo.id = "hyogo";
		lbl_hyogo.anchorPoint = "topCenter";
		lbl_hyogo.anchorLatLng = new GLatLng(35.1288943410105, 134.82421875);
		lbl_hyogo.percentOpacity = 100;
		lbl_hyogo.content = "<a href='./list?pref=28'><img src='./img/b_hyogo.gif' alt='兵庫県' width='70' height='25' class='swap_img' id='b_hyogo' onmouseover='swapImage(\"b_hyogo\",\"./img/b_hyogo_f2.gif\");' onmouseout='swapImgRestore(\"b_hyogo\",\"./img/b_hyogo.gif\");' /></a>";
		map.addTLabel(lbl_hyogo);
		
		var lbl_tottori = new TLabel();			//鳥取県
		lbl_tottori.id = "tottori";
		lbl_tottori.anchorPoint = "topCenter";
		lbl_tottori.anchorLatLng = new GLatLng(35.45172093634465, 133.83544921875);
		lbl_tottori.percentOpacity = 100;
		lbl_tottori.content = "<a href='./list?pref=31'><img src='./img/b_tottori.gif' alt='鳥取県' width='70' height='25' class='swap_img' id='b_tottori' onmouseover='swapImage(\"b_tottori\",\"./img/b_tottori_f2.gif\");' onmouseout='swapImgRestore(\"b_tottori\",\"./img/b_tottori.gif\");' /></a>";
		map.addTLabel(lbl_tottori);
		
		var lbl_shimane = new TLabel();			//島根県
		lbl_shimane.id = "shimane";
		lbl_shimane.anchorPoint = "topCenter";
		lbl_shimane.anchorLatLng = new GLatLng(35.15584570226544, 132.56103515625);
		lbl_shimane.percentOpacity = 100;
		lbl_shimane.content = "<a href='./list?pref=32'><img src='./img/b_shimane.gif' alt='島根県' width='70' height='25' class='swap_img' id='b_shimane' onmouseover='swapImage(\"b_shimane\",\"./img/b_shimane_f2.gif\");' onmouseout='swapImgRestore(\"b_shimane\",\"./img/b_shimane.gif\");' /></a>";
		map.addTLabel(lbl_shimane);
		
		var lbl_okayama = new TLabel();			//岡山県
		lbl_okayama.id = "okayama";
		lbl_okayama.anchorPoint = "topCenter";
		lbl_okayama.anchorLatLng = new GLatLng(35.0120020431607, 133.83544921875);
		lbl_okayama.percentOpacity = 100;
		lbl_okayama.content = "<a href='./list?pref=33'><img src='./img/b_okayama.gif' alt='岡山県' width='70' height='25' class='swap_img' id='b_okayama' onmouseover='swapImage(\"b_okayama\",\"./img/b_okayama_f2.gif\");' onmouseout='swapImgRestore(\"b_okayama\",\"./img/b_okayama.gif\");' /></a>";
		map.addTLabel(lbl_okayama);
		
		var lbl_hiroshima = new TLabel();		//広島県
		lbl_hiroshima.id = "hiroshima";
		lbl_hiroshima.anchorPoint = "topCenter";
		lbl_hiroshima.anchorLatLng = new GLatLng(34.786739162702524, 132.78076171875);
		lbl_hiroshima.percentOpacity = 100;
		lbl_hiroshima.content = "<a href='./list?pref=34'><img src='./img/b_hiroshima.gif' alt='広島県' width='70' height='25' class='swap_img' id='b_hiroshima' onmouseover='swapImage(\"b_hiroshima\",\"./img/b_hiroshima_f2.gif\");' onmouseout='swapImgRestore(\"b_hiroshima\",\"./img/b_hiroshima.gif\");' /></a>";
		map.addTLabel(lbl_hiroshima);
		
		var lbl_tokushima = new TLabel();		//徳島県
		lbl_tokushima.id = "tokushima";
		lbl_tokushima.anchorPoint = "topCenter";
		lbl_tokushima.anchorLatLng = new GLatLng(34.00713506435884, 134.12109375);
		lbl_tokushima.percentOpacity = 100;
		lbl_tokushima.content = "<a href='./list?pref=36'><img src='./img/b_tokushima.gif' alt='徳島県' width='70' height='25' class='swap_img' id='b_tokushima' onmouseover='swapImage(\"b_tokushima\",\"./img/b_tokushima_f2.gif\");' onmouseout='swapImgRestore(\"b_tokushima\",\"./img/b_tokushima.gif\");' /></a>";
		map.addTLabel(lbl_tokushima);
		
		var lbl_kagawa = new TLabel();			//香川県
		lbl_kagawa.id = "kagawa";
		lbl_kagawa.anchorPoint = "topCenter";
		lbl_kagawa.anchorLatLng = new GLatLng(34.261756524459805, 133.934326171875);
		lbl_kagawa.percentOpacity = 100;
		lbl_kagawa.content = "<a href='./list?pref=37'><img src='./img/b_kagawa.gif' alt='香川県' width='70' height='25' class='swap_img' id='b_kagawa' onmouseover='swapImage(\"b_kagawa\",\"./img/b_kagawa_f2.gif\");' onmouseout='swapImgRestore(\"b_kagawa\",\"./img/b_kagawa.gif\");' /></a>";
		map.addTLabel(lbl_kagawa);
		
		var lbl_ehime = new TLabel();			//愛媛県
		lbl_ehime.id = "ehime";
		lbl_ehime.anchorPoint = "topCenter";
		lbl_ehime.anchorLatLng = new GLatLng(33.715201644740844, 132.857666015625);
		lbl_ehime.percentOpacity = 100;
		lbl_ehime.content = "<a href='./list?pref=38'><img src='./img/b_ehime.gif' alt='愛媛県' width='70' height='25' class='swap_img' id='b_ehime' onmouseover='swapImage(\"b_ehime\",\"./img/b_ehime_f2.gif\");' onmouseout='swapImgRestore(\"b_ehime\",\"./img/b_ehime.gif\");' /></a>";
		map.addTLabel(lbl_ehime);
		
		var lbl_fukuoka = new TLabel();			//福岡県
		lbl_fukuoka.id = "fukuoka";
		lbl_fukuoka.anchorPoint = "topCenter";
		lbl_fukuoka.anchorLatLng = new GLatLng(33.60666698891187, 130.41826128959656);
		lbl_fukuoka.percentOpacity = 100;
		lbl_fukuoka.content = "<a href='./list?pref=40'><img src='./img/b_fukuoka.gif' alt='福岡県' width='70' height='25' class='swap_img' id='b_fukuoka' onmouseover='swapImage(\"b_fukuoka\",\"./img/b_fukuoka_f2.gif\");' onmouseout='swapImgRestore(\"b_fukuoka\",\"./img/b_fukuoka.gif\");' /></a>";
		map.addTLabel(lbl_fukuoka);
		
	}
	
}


