	    //<![CDATA[ 

	    // == 画面固有情報の設定  ==
		var html_id_googlemap    = "map";
		var html_id_documentbody = "MyBody";

		var gmap_control_mapcontrol  = "S";		//「L:GLargeMapContorl」「S:GSmallMapControl」「Z:GSmallZoomControl」
		var gmap_control_maptype     = "M";		//「M:G_MAP_TYPE」「S:G_SATELLITE_TYPE」「H:G_HYBRID_TYPE」
		var gmap_control_typecontrol = 1;		//「1:地図タイプコントロールを表示する」
		var gmap_control_scalecontrol= 1;		//「1:尺度コントロールを表示する」
		var gmap_control_oviewcontrol= 1;		//「1:概観コントロールを表示する」
		var gmap_control_oviewsize   = null;	//「null:デフォルトサイズ」「GSize型:指定サイズ」
		var gmap_control_alwaysShow  = true;	// マップコントロールを常に表示するかどうか。falseを指定した場合、マウスオーバー時に表示させるようにする。
		var gmap_keyboradhandle      = true;	// キーボードハンドリングを有効にするかどうか
		var map_doubleclickzoom      = true;	// ﾀﾞﾌﾞﾙｸﾘｯｸによるズームを有効にするかどうか
		var map_animatezoom          = true;	// アニメーションによるズームを有効にするかどうか
		
		var map_default_lonPoint = 139.671249;
		var map_default_latPoint = 35.679051;
		var map_default_zoomLevel= 10;

		var sort_switch = "on";

		//初期読み込みファイル設定
		var default_area = "xml/all_areas.xml";
		
		// リスト表示用テンプレート
		var list_template = "<option onclick=\"javascript:openInfoWindowByItem('%item_id%');\""
						  + " onmouseover=\"this.className='listItemTblOvr';\""
						  + " onmouseout=\"this.className='listItemTbl';\">"
						  + "</option>"
		
		// 情報ウィンドウ用テンプレート
		var info_template = "<div class=\"infoItemDiv\">"
						+ "<div class=\"infoItemL1\">"
						+ "%organization%<br />"
						+ "<a href=\"%url%\">%organization%詳細ページへ</a><br/>"
						+ "</div>"
						+ "</div>"
		// ========================
		
		function Gload(){
			// GoogleMapsAPIに対するブラウザチェック
		    if (!CheckBrowser("map-message")) return;

		    // Mapに基本的設定を行う		    
		    if (!GMapControlInit()) return;
		    
		    // エリア選択リストボックスへアイテムの設定
   		    CreateOptionItem("areaNavi","全てのエリア","xml/all_areas.xml");
		    CreateOptionItem("areaNavi","北陸地方の機関","xml/hokuriku.xml");
		    CreateOptionItem("areaNavi","中部地方の機関","xml/tyubu.xml");
		    CreateOptionItem("areaNavi","近畿地方の機関","xml/kinki.xml");
		    CreateOptionItem("areaNavi","中国地方の機関","xml/tyugoku.xml");
		    CreateOptionItem("areaNavi","四国地方の機関","xml/shikoku.xml");
		    CreateOptionItem("areaNavi","九州地方の機関","xml/kyushu.xml");
		    CreateOptionItem("areaNavi","沖縄地方の機関","xml/okinawa.xml");

		    // select要素にイベント割り当て
		    var select_node = document.getElementById("areaNavi");
		    addListener(select_node, 'change', areaNavi_Changed, false);
			var select_list = document.getElementById("itemlist");
		    addListener(select_list, 'change', itemlist_change, false);

		    
		    // Mapにイベントを割り当てる
		    // 　この画面ではそれぞれのイベントに対象件数を表示する関数を割り当てる
    		GEvent.addListener(map, 'moveend', getRangeCount);
    		GEvent.addListener(map, 'zoomend', getRangeCount);
    		GEvent.addListener(map, 'addoverlay', getRangeCount);
    		GEvent.addListener(map, 'removeoverlay', getRangeCount);
			getRangeCount();
				// Ajaxでデータ取得 → その後、getData関数を呼び出す
				XMLDataRead(default_area, getData);
		}

		function clearMessage(){
			om.Clear();			
		}
	    
	    // エリアリスト選択変更時イベント
	    function areaNavi_Changed(){
			DelateOptionList();
			document.images["num1"].src="img/button01.gif";
			document.images["num2"].src="img/button02.gif";
			document.images["num3"].src="img/button03.gif";
			document.images["num4"].src="img/button04.gif";
			document.images["num5"].src="img/button05.gif";
			document.images["num6"].src="img/button06.gif";

			var select_node = document.getElementById("areaNavi");
			var div = document.getElementById("listNavi");
			// 初期化
			div.innerHTML = "";
			map.closeInfoWindow();
			clearMarkers();
			items = new Array();
			getRangeCount();
			if (select_node.value!=''){
				// Ajaxでデータ取得 → その後、getData関数を呼び出す
				XMLDataRead(select_node.value, getData);
			}
	   }
//--------------------------------
//iconの割り当て
//--------------------------------
function set_icon(sort){
	var icon;
	if(sort == 1){
		icon = "img/red.gif";
	}
	if(sort == 2){
		icon = "img/yellow.gif";
	}
	if(sort == 3){
		icon = "img/green.gif";
	}
	if(sort == 4){
		icon = "img/blue.gif";
	}
	if(sort == 5){
		icon = "img/gray.gif";
	}
	if(sort == 6){
		icon = "img/pueple.gif";
	}
	if(!icon){icon = "";}
	return icon;
}

		// 取得したXMLデータより配列データの生成
		function getData(data){
			var xmlDoc = data;
			var tempBounds;
			var tipHTML;
			tempBounds = new GLatLngBounds();
			var markers = xmlDoc.getElementsByTagName("marker");	// marker要素配列を取得
			for (var i = 0; i < markers.length; i++){				
				var itm = new ItemData();
				itm.lon = markers[i].getAttribute("lon");	// 経度
				itm.lat = markers[i].getAttribute("lat");	// 緯度
				itm.sort = markers[i].getAttribute("sort");	// 分類
		//アイコンの割り当て
				//アイコン定義
				var icon = new GIcon() ;
				icon.image = set_icon(itm.sort);
				icon.iconSize = new GSize(20,34) ;
				icon.iconAnchor = new GPoint(20,34) ;
				icon.infoWindowAnchor = new GPoint(07,17) ;
				for (var j=0; j<markers[i].childNodes.length; j++){
					var child = markers[i].childNodes[j];
					if (child.tagName=='organization'){	itm.organization = child.firstChild.nodeValue; }	// 地方
					if (child.tagName=='pdlist'){	itm.pdlist = child.firstChild.nodeValue; }	// プルダウン
					if (child.tagName=='url')     {	itm.url = child.firstChild.nodeValue; }			// オフィシャルサイト
				}

				// 置換リストコレクションを作成し、ConvertTemplateにてHTML変換
				var replace_list = new Array();
				replace_list['item_id'] =i;
				replace_list['sort'] = itm.sort;
				replace_list['organization']=itm.organization;
				replace_list['url'] =itm.url;

				CreateOptionList("itemlist",i,itm.pdlist);
				itm.listHTML = ConvertTemplate(list_template,replace_list);
				itm.infoHTML = ConvertTemplate(info_template,replace_list);
			
				tipHTML = "<div class='tooltip'>"+ itm.organization+"</div>"	
				// createDataMarkerHTMLによりGMarkerオブジェクト生成
				itm.marker = createDataMarkerHTML(itm.lon,itm.lat,itm.infoHTML,tipHTML,icon);
				// itmDataオブジェクトを配列へ格納
				items[i]=itm;
				//ロールオーバー時、削除対象のitmdataリストの生成
				tempBounds.extend(new GLatLng(itm.lat,itm.lon));
			}
			// 画面表示処理
			setData();	
			setBoundsCenter(tempBounds);
		}
		// 配列データよりlistNaviへの表示と地図へのマーカー追加を行う
		function setData(){
			for (var i= 0; i<items.length; i++){
				var div = document.getElementById("listNavi");
				div.innerHTML += items[i].listHTML;
				if(!items[i].sort == ""){
					map.addOverlay(items[i].marker);
				}
			}
		}
		
		// listNaviクリック時の呼び出しイベント		
		// 　配列より該当するオブジェクトを取得し、情報ウィンドウを表示する指示をする
		function openInfoWindowByItem(item_id){
			var selectItem = items[item_id];
			if(!items[item_id].sort == ""){
			openInfoWindow(selectItem.marker,selectItem.infoHTML);
			}
		}
		//リスト変更時イベント
		function itemlist_change(){
		var select_list = document.getElementById("itemlist");
		    openInfoWindowByItem(select_list.value);
		}

		// 配列データよりマーカーオブジェクトを地図より削除する				
		function clearMarkers(){
			for (var i= 0; i<items.length; i++){				
				map.removeOverlay(items[i].marker);				
			}
		}
		//クリック時に指定された配列以外のマーカーオブジェクトを地図より削除し、再びクリックするまでそのままにする。
		function marker_click(addsort,addswitch){
			if(addswitch == "on"){
				sort_delate_markers(addsort,addswitch);
				addswitch = addsort;
			}
			else{
				check = check_marker();
				if(check == "on"){
					sort_delate_markers(addsort,'on');
					addswitch = addsort;
				}
				else{
					document.images["num1"].src="img/button01.gif";
					document.images["num2"].src="img/button02.gif";
					document.images["num3"].src="img/button03.gif";
					document.images["num4"].src="img/button04.gif";
					document.images["num5"].src="img/button05.gif";
					document.images["num6"].src="img/button06.gif";
					clearMarkers();
					for (var i= 0; i<items.length; i++){
						map.addOverlay(items[i].marker);
					}
					if(addswitch == addsort){
						addswitch = "on";
					}
					else{
						addswitch = "on";
						sort_delate_markers(addsort,addswitch);
						addswitch = addsort;
					}
				}
			}
			return addswitch;
		}

		//エリア選択後、またはマーカーが初期状態になっている場合かどうかの判定
		function check_marker(){
			var image1 = document.images["num1"].src;
			var image2 = document.images["num2"].src;
			var image3 = document.images["num3"].src;
			var image4 = document.images["num4"].src;
			var image5 = document.images["num5"].src;
			var image6 = document.images["num6"].src;

			switch1 = image1.search("img/button01.gif");
			switch2 = image2.search("img/button02.gif");
			switch3 = image3.search("img/button03.gif");
			switch4 = image4.search("img/button04.gif");
			switch5 = image5.search("img/button05.gif");
			switch6 = image6.search("img/button06.gif");

			if((switch1 != -1) &&
			   (switch2 != -1) &&
			   (switch3 != -1) &&
			   (switch4 != -1) &&
			   (switch5 != -1) &&
			   (switch6 != -1) ){
			var switch_marker = "on"
			}
			else{
			var switch_marker = "off"
			}
			return switch_marker;
		}

	
		//マーカーの修正(クリック、またはマウスオーバーによって消されたマーカーを復元する)
		function return_set(addsort,addswitch){
			if(addswitch != "on"){
				check = check_marker();
				if(check == "on"){
					addswitch = "on";
				}
			}
			if(addswitch == "on"){
				if(addsort == 1){
					document.images["num1"].src="img/button01.gif";
				}
				if(addsort == 2){
					document.images["num2"].src="img/button02.gif";
				}
				if(addsort == 3){
					document.images['num3'].src="img/button03.gif";
				}
				if(addsort == 4){
					document.images['num4'].src="img/button04.gif";
				}
				if(addsort == 5){
					document.images['num5'].src="img/button05.gif";
				}
				if(addsort == 6){
					document.images['num6'].src="img/button06.gif";
				}
				for (var i= 0; i<items.length; i++){
					if(items[i].sort != addsort){
					map.addOverlay(items[i].marker);
					}
				}
			}
			return addswitch;
		}

		//指定された配列以外のマーカーオブジェクトを地図より削除する
		function sort_delate_markers(addsort,addswitch){
			if(addswitch != "on"){
				check = check_marker();
				if(check == "on"){
					addswitch = "on";
				}
			}
			if(addswitch == "on"){
				if(addsort == 1){
					document.images["num1"].src="img/button01_f2.gif";
				}
				if(addsort == 2){
					document.images["num2"].src="img/button02_f2.gif";
				}
				if(addsort == 3){
					document.images['num3'].src="img/button03_f2.gif";
				}
				if(addsort == 4){
					document.images['num4'].src="img/button04_f2.gif";
				}
				if(addsort == 5){
					document.images['num5'].src="img/button05_f2.gif";
				}
				if(addsort == 6){
					document.images['num6'].src="img/button06_f2.gif";
				}
				for (var i= 0; i<items.length; i++){
					if(items[i].sort != addsort){
					map.removeOverlay(items[i].marker);
					}
				}
			}
			return addswitch;
		}

		//マーカーの修正(クリック、またはマウスオーバーによって消されたマーカーを復元する)
		function return_set(addsort,addswitch){
			if(addswitch == "on"){
				if(addsort == 1){
					document.images["num1"].src="img/button01.gif";
				}
				if(addsort == 2){
					document.images["num2"].src="img/button02.gif";
				}
				if(addsort == 3){
					document.images['num3'].src="img/button03.gif";
				}
				if(addsort == 4){
					document.images['num4'].src="img/button04.gif";
				}
				if(addsort == 5){
					document.images['num5'].src="img/button05.gif";
				}
				if(addsort == 6){
					document.images['num6'].src="img/button06.gif";
				}
				for (var i= 0; i<items.length; i++){
					if(items[i].sort != addsort){
					map.addOverlay(items[i].marker);
					}
				}
			}
			else{
				check = check_marker();
				if(check == "on"){
					if(addsort == 1){
					document.images["num1"].src="img/button01.gif";
					}
					if(addsort == 2){
						document.images["num2"].src="img/button02.gif";
					}
					if(addsort == 3){
						document.images['num3'].src="img/button03.gif";
					}
					if(addsort == 4){
						document.images['num4'].src="img/button04.gif";
					}
					if(addsort == 5){
						document.images['num5'].src="img/button05.gif";
					}
					if(addsort == 6){
						document.images['num6'].src="img/button06.gif";
					}
					for (var i= 0; i<items.length; i++){
						if(items[i].sort != addsort){
						map.addOverlay(items[i].marker);
						}
					}
				}
			}
			return addswitch;
		}


		// 現在表示されている地図範囲内のデータ数をカウントする
		function getRangeCount(bounds){
			setMessage('lblinfoMsg',"");
			
			var count = 0;
			var mapBounds = map.getBounds();	
			var southWest = mapBounds.getSouthWest();		// 南西(左下)角の位置を取得
			var northEast = mapBounds.getNorthEast();		// 北東(右上)角の位置を取得

			if (items.length > 0){ 
				for (var i= 0; i<items.length; i++){				
					if (southWest.lng() <= items[i].lon && northEast.lng() >= items[i].lon && 
						southWest.lat() <= items[i].lat && northEast.lat() >= items[i].lat){
						if(!items[i].sort == ""){
							count += 1;
						}
					} 
				}
				setMessage('lblinfoMsg',"<p>現在の地図内に "+ count +" 件 対象地点が表示されています。</p>");
			}
		}
		
		// 現在表示されているアイテム情報を格納するためのオブジェクト
		function ItemData(){
			this.organization;		// エリア
			this.pdlist;
			this.sort;			//
			this.lon;			// 経度
			this.lat;			// 緯度
			this.url;			// リンクアドレス
			this.listHTML;		// itemNavi用HTML
			this.infoHTML;		// InfoWindow用HTML
			this.marker;		// マーカーオブジェクト
		}
		
	    //]]>
