	var GoogleMaps;
	var center;
	var zoom;
	var markerlist = new Array();
	var data = new Array();	//店舗情報
	var currentInfoWindow = null;	//最後に開いた情報ウィンドウを記憶
	
	//アイコンデータ
	var customIcons = new Array();
	customIcons = [
		//customIcons[int].push({icon: 'url', shadow: 'url'});
		{icon: 'http://www.bfc-hime.com/images/icon_blue.png', shadow: 'http://www.bfc-hime.com/images/icon_shadow.png'},	//category:0 カテゴリ無しデフォルト
		{icon: 'http://www.bfc-hime.com/images/icon_orange.png', shadow: 'http://www.bfc-hime.com/images/icon_shadow.png'}	//category:1 会社情報用
	];
	
	//表示場所
	switch (single_id) {
		//Shop Name
		//case "single_id":
			//var center = new google.maps.LatLng(lat, lng);
			//var zoom = int;
			//var data = new Array();
			//data = [
				//{number: int, icon: (0:青 1:赤), position: new google.maps.LatLng(lat, lng), content: 'html'}
			//];
			//break;
		//金池本店
		case "23":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>金池南本店</dt><dd><img src="http://www.bfc-hime.com/images/shop01_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル1F<br />TEL 097-543-4718<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//レインボー
		case "51":
			center = new google.maps.LatLng(33.235572, 131.607128);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.235572, 131.607128), content: '<div class="myinfobox"><dl><dt>トータルビューティーレインボー店</dt><dd><img src="http://www.bfc-hime.com/images/shop02_map.jpg" width="80" height="80" alt="" />大分市中央町1丁目1-20キュウコウビル2F<br />TEL 097-537-7747<br /><a onclick="clickMarker(1);">指定駐車場：トラストパーク【クリック！】</a><br /><a onclick="clickMarker(2);">指定駐車場：ライオンパーク【クリック！】</a></dd></dl></div>'},
				{number: 1, icon: 0, position: new google.maps.LatLng(33.234710, 131.608572), content: '<div class="myinfobox"><dl><dt>トラストパーク</dt><dd>駐車券発行<br />（旧PARCO立体駐車場）</dd></dl></div>'},
				{number: 2, icon: 0, position: new google.maps.LatLng(33.235814, 131.605662), content: '<div class="myinfobox"><dl><dt>ライオンパーク大分駅前</dt><dd>駐車券発行</dd></dl></div>'}
			];
			break;
		//長浜店
		case "64":
			center = new google.maps.LatLng(33.235361, 131.61618);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.235361, 131.61618), content: '<div class="myinfobox"><dl><dt>長浜店</dt><dd><img src="http://www.bfc-hime.com/images/shop03_map.jpg" width="80" height="80" alt="" />大分市長浜町1-2-5リビングハイツ長浜1F<br />TEL 097-534-0995<br />駐車場完備</dd></dl></div>'}
			];
			break;
		//ベリーキッズ
		case "76":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>ベリーキッズ</dt><dd><img src="http://www.bfc-hime.com/images/shop04_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル3F<br />TEL 097-543-4718<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//「姫」ブライダル
		case "118":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>「姫」ブライダル</dt><dd><img src="http://www.bfc-hime.com/images/shop05_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル2F<br />TEL 097-543-4718<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//クローナル・マリエ
		case "131":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>クローナル・マリエ</dt><dd><img src="http://www.bfc-hime.com/images/shop06_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル2F<br />TEL 097-543-4718<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//TAPスタジオ
		case "138":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>TAPスタジオ</dt><dd><img src="http://www.bfc-hime.com/images/shop07_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル3F<br />TEL 097-543-4718<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//エステアモール姫
		case "145":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>エステアモール姫</dt><dd><img src="http://www.bfc-hime.com/images/shop08_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル4F<br />TEL 097-545-6969<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//NOBU
		case "153":
			center = new google.maps.LatLng(33.230075, 131.604803);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.230075, 131.604803), content: '<div class="myinfobox"><dl><dt>NOBU</dt><dd><img src="http://www.bfc-hime.com/images/shop09_map.jpg" width="80" height="80" alt="" />大分市金池南1-8-32華冠ビル3F<br />TEL 097-545-1802<br />立体駐車場完備(20台)</dd></dl></div>'}
			];
			break;
		//フレッシュ グリーン
		case "1004":
			center = new google.maps.LatLng(33.229765, 131.604801);
			zoom = 15;
			data = [
				{number: 0, icon: 1, position: new google.maps.LatLng(33.229765, 131.604801), content: '<div class="myinfobox"><dl><dt>フレッシュ グリーン</dt><dd><img src="http://www.bfc-hime.com/images/shop10_map.jpg" width="80" height="80" alt="" />大分市金池南1丁目11-3ブルーハイツ上野丘1F<br />TEL 097-543-1300<br />駐車場完備</dd></dl></div>'}
			];
			break;
	}

	//init
	function initialize() {
		var mapOptions = {
			center: center,
			zoom: zoom,
			navigationControl: true,
			mapTypeControl: true,
			scaleControl: true,
			streetViewControl: false,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		GoogleMaps = new google.maps.Map(document.getElementById("GoogleMap"), mapOptions);
		
		for(var i in data) {
			markerlist[i] = createMarker(GoogleMaps, data[i].number, data[i].icon, data[i].position, data[i].content);
		}
	
	}
	
	function createMarker(map, number, icon, latlng, text) {
		var markerOpts = {
			position : latlng,
			map : map,
			icon: customIcons[icon].icon,
			shadow: customIcons[icon].shadow
		};
		var marker = new google.maps.Marker(markerOpts);
		var infoWndOpts = {
			content : text
		};
		var info = new google.maps.InfoWindow(infoWndOpts);
		
		//各店舗表示時に店舗番号0番の吹き出しを始めに開く
		if(number === 0) {
			//先に開いた情報ウィンドウがあれば、closeする
			if (currentInfoWindow) {
				currentInfoWindow.close();
			}
			//情報ウィンドウを開く
			info.open(map, marker);
			currentInfoWindow = info;
			
			//任意zoom変更
			//GoogleMaps.setZoom(myzoom);
			//中心を変更
			//GoogleMaps.setCenter(latlng);
		}
		
		google.maps.event.addListener(marker, "click", function(){
			//先に開いた情報ウィンドウがあれば、closeする
			if (currentInfoWindow) {
				currentInfoWindow.close();
			}
			//情報ウィンドウを開く
			info.open(map, marker);
			currentInfoWindow = info;
		});
		
		return marker;
	}
	
	
	function clickMarker(index) {
		//吹き出しを表示する
		//(擬似イベント:"click" をマーカーに対して発生させることで、吹き出しを開く)
		google.maps.event.trigger(markerlist[index], "click");
	}
	
	google.maps.event.addDomListener(window, "load", initialize);
