//----------------------------------------------------------------------

//<![CDATA[
var gLocalSearch;
var input;
var gMap;

<!-- 初期設定 -->
function init(st){
	var s_array = new Array();

	if (st == 99) {
		s_array[0] = new Array(36.6428493,138.227528,'shop_nagano','<strong>エイブルネットワーク<br>長野店</strong>');
		s_array[1] = new Array(36.6086066,138.1681965,'shop_minaminagano','<strong>エイブルネットワーク<br>南長野店</strong>');
		s_array[2] = new Array(36.644431228955106,138.18618535995483,'shop_naganoekimae','<strong>エイブルネットワーク<br>長野駅前店</strong>');
		s_array[3] = new Array(36.6419476,138.1898215,'shop_naganohigashi','<strong>エイブルネットワーク<br>長野駅東口店</strong>');
		s_array[4] = new Array(36.6478197,138.2986455,'shop_suzaka','<strong>エイブルネットワーク<br>須坂店</strong>');
		s_array[5] = new Array(36.4010033,138.2633544,'shop_ueda','<strong>エイブルネットワーク<br>上田店</strong>');
		s_array[6] = new Array(36.2863116,138.4748496,'shop_saku','<strong>エイブルネットワーク<br>佐久店</strong>');
		s_array[7] = new Array(36.29744412737964,137.904352247715,'shop_toyoshina','<strong>エイブルネットワーク<br>豊科店</strong>');
		s_array[8] = new Array(36.2151607,137.9722685,'shop_matsumoto','<strong>エイブルネットワーク<br>松本店</strong>');
		s_array[9] = new Array(36.23187916374458,137.9671534895897,'shop_matsumotoekimae','<strong>エイブルネットワーク<br>松本駅前店</strong>');
		s_array[10] = new Array(36.1567894,137.9507834,'shop_shioziri','<strong>エイブルネットワーク<br>塩尻広丘店店</strong>');
		s_array[11] = new Array(36.018066672947064,138.12493443489075,'shop_suwa','<strong>エイブルネットワーク<br>諏訪店</strong>');
		s_array[12] = new Array(35.5280327,137.8555732,'shop_iida','<strong>エイブルネットワーク<br>飯田店</strong>');
	}
	if (st == 0) { s_array[0] = new Array(36.6428493,138.227528,'shop_nagano','<strong>エイブルネットワーク<br>長野店</strong>');}
	if (st == 1) {	s_array[0] = new Array(36.6086066,138.1681965,'shop_minaminagano','<strong>エイブルネットワーク<br>南長野店</strong>');}
	if (st == 2) {	s_array[0] = new Array(36.644431228955106,138.18618535995483,'shop_naganoekimae','<strong>エイブルネットワーク<br>長野駅前店</strong>');}
	if (st == 3) {	s_array[0] = new Array(36.6419476,138.1898215,'shop_naganohigashi','<strong>エイブルネットワーク<br>長野駅東口店</strong>');}
	if (st == 4) {	s_array[0] = new Array(36.6478197,138.2986455,'shop_suzaka','<strong>エイブルネットワーク<br>須坂店</strong>');}
	if (st == 5) {	s_array[0] = new Array(36.4010033,138.2633544,'shop_ueda','<strong>エイブルネットワーク<br>上田店</strong>');}
	if (st == 6) {	s_array[0] = new Array(36.2863116,138.4748496,'shop_saku','<strong>エイブルネットワーク<br>佐久店</strong>');}
	if (st == 7) {	s_array[0] = new Array(36.29744412737964,137.904352247715,'shop_toyoshina','<strong>エイブルネットワーク<br>豊科店</strong>');}
	if (st == 8) {	s_array[0] = new Array(36.2151607,137.9722685,'shop_matsumoto','<strong>エイブルネットワーク<br>松本店</strong>');}
	if (st == 9) {	s_array[0] = new Array(36.23187916374458,137.9671534895897,'shop_matsumotoekimae','<strong>エイブルネットワーク<br>松本駅前店</strong>');}
	if (st == 10) {	s_array[0] = new Array(36.1567894,137.9507834,'shop_shioziri','<strong>エイブルネットワーク<br>塩尻広丘店店</strong>');}
	if (st == 11) {	s_array[0] = new Array(36.018066672947064,138.12493443489075,'shop_suwa','<strong>エイブルネットワーク<br>諏訪店</strong>');}
	if (st == 12) {	s_array[0] = new Array(35.5280327,137.8555732,'shop_iida','<strong>エイブルネットワーク<br>飯田店</strong>');}
	
	for (i = 0; i < s_array.length; i++) {
	 setMap(s_array[i][0],s_array[i][1],s_array[i][2],s_array[i][3],'gMap'+[i],'centerPoint'+[i]);
	}
}

<!-- マーカ生成関数 -->
function createMarker(point, name) {
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(name);
	});

	return marker;
}

<!-- MAP描画実行関数 -->
function setMap(l_x,l_y,s_id,s_name,Num,Point) {
	Num = new GMap(document.getElementById(s_id));

	Num.addControl(new GSmallMapControl());<!-- 各種コントロールの追加 -->

	Num.enableContinuousZoom();<!-- なめらかズーム -->
	Num.enableDoubleClickZoom();<!-- ダブルクリックズーム -->

	<!-- 初期位置へ移動 -->
	var Point = new GLatLng(l_x, l_y);
	Num.setCenter(Point, 15);

	<!-- マーカの描画 -->
	Num.addOverlay(createMarker(new GLatLng(l_x ,l_y), s_name));	// if (GBrowserIsCompatible())
}	// function load()

//]]>
//----------------------------------------------------------------------