﻿var icon=Array();var icon=new GIcon();icon[1]=new GIcon();icon[1].image="/drink/image/marker/reporter01.png";icon[1].iconSize=new GSize(32,32);icon[1].iconAnchor=new GLatLng(32,10);icon[1].infoWindowAnchor=new GLatLng(4,16);icon[2]=new GIcon();icon[2].image="/drink/image/marker/reporter02.png";icon[2].iconSize=new GSize(32,32);icon[2].iconAnchor=new GLatLng(32,10);icon[2].infoWindowAnchor=new GLatLng(4,16);icon[3]=new GIcon();icon[3].image="/drink/image/marker/reporter03.png";icon[3].iconSize=new GSize(32,32);icon[3].iconAnchor=new GLatLng(32,10);icon[3].infoWindowAnchor=new GLatLng(4,16);icon[4]=new GIcon();icon[4].image="/drink/image/marker/reporter04.png";icon[4].iconSize=new GSize(32,32);icon[4].iconAnchor=new GLatLng(32,10);icon[4].infoWindowAnchor=new GLatLng(4,16);icon[5]=new GIcon();icon[5].image="/drink/image/marker/reporter05.png";icon[5].iconSize=new GSize(32,32);icon[5].iconAnchor=new GLatLng(32,10);icon[5].infoWindowAnchor=new GLatLng(4,16);icon[6]=new GIcon();icon[6].image="/drink/image/marker/reporter06.png";icon[6].iconSize=new GSize(32,32);icon[6].iconAnchor=new GLatLng(32,10);icon[6].infoWindowAnchor=new GLatLng(4,16);icon[7]=new GIcon();icon[7].image="/drink/image/marker/reporter07.png";icon[7].iconSize=new GSize(32,32);icon[7].iconAnchor=new GLatLng(32,10);icon[7].infoWindowAnchor=new GLatLng(4,16);icon[8]=new GIcon();icon[8].image="/drink/image/marker/reporter08.png";icon[8].iconSize=new GSize(32,32);icon[8].iconAnchor=new GLatLng(32,10);icon[8].infoWindowAnchor=new GLatLng(4,16);icon[9]=new GIcon();icon[9].image="/drink/image/marker/reporter09.png";icon[9].iconSize=new GSize(32,32);icon[9].iconAnchor=new GLatLng(32,10);icon[9].infoWindowAnchor=new GLatLng(4,16);icon[10]=new GIcon();icon[10].image="/drink/image/marker/reporter10.png";icon[10].iconSize=new GSize(32,32);icon[10].iconAnchor=new GLatLng(32,10);icon[10].infoWindowAnchor=new GLatLng(4,16);icon[11]=new GIcon();icon[11].image="/drink/image/marker/reporter11.png";icon[11].iconSize=new GSize(32,32);icon[11].iconAnchor=new GLatLng(32,10);icon[11].infoWindowAnchor=new GLatLng(4,16);icon[12]=new GIcon();icon[12].image="/drink/image/marker/reporter12.png";icon[12].iconSize=new GSize(32,32);icon[12].iconAnchor=new GLatLng(32,10);icon[12].infoWindowAnchor=new GLatLng(4,16);icon[13]=new GIcon();icon[13].image="/drink/image/marker/reporter13.png";icon[13].iconSize=new GSize(32,32);icon[13].iconAnchor=new GLatLng(32,10);icon[13].infoWindowAnchor=new GLatLng(4,16);icon[14]=new GIcon();icon[14].image="/drink/image/marker/reporter14.png";icon[14].iconSize=new GSize(32,32);icon[14].iconAnchor=new GLatLng(32,10);icon[14].infoWindowAnchor=new GLatLng(4,16);icon[15]=new GIcon();icon[15].image="/drink/image/marker/reporter15.png";icon[15].iconSize=new GSize(32,32);icon[15].iconAnchor=new GLatLng(32,10);icon[15].infoWindowAnchor=new GLatLng(4,16);icon[16]=new GIcon();icon[16].image="/drink/image/marker/reporter16.png";icon[16].iconSize=new GSize(32,32);icon[16].iconAnchor=new GLatLng(32,10);icon[16].infoWindowAnchor=new GLatLng(4,16);icon[17]=new GIcon();icon[17].image="/drink/image/marker/reporter17.png";icon[17].iconSize=new GSize(32,32);icon[17].iconAnchor=new GLatLng(32,10);icon[17].infoWindowAnchor=new GLatLng(4,16);icon[18]=new GIcon();icon[18].image="/drink/image/marker/reporter18.png";icon[18].iconSize=new GSize(32,32);icon[18].iconAnchor=new GLatLng(32,10);icon[18].infoWindowAnchor=new GLatLng(4,16);icon[19]=new GIcon();icon[19].image="/drink/image/marker/reporter19.png";icon[19].iconSize=new GSize(32,32);icon[19].iconAnchor=new GLatLng(32,10);icon[19].infoWindowAnchor=new GLatLng(4,16);if(GBrowserIsCompatible()){var side_bar_html="";var gmarkers=[];var htmls=[];var ii=0;var map=new GMap2(document.getElementById("map"));map.addControl(new GSmallMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(36.720414,137.156282),10);function createMarker(point,name,html,n){var marker=new GMarker(point,icon[n]);GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml(html);});gmarkers[ii]=marker;htmls[ii]=html;side_bar_html+='<a href="javascript:myclick('+ii+')">'+name+'<\/a><br />';ii++;return marker;}
function myclick(i){gmarkers[i].openInfoWindowHtml(htmls[i]);}
function readMap(url){var request=GXmlHttp.create();request.open("GET",url,true);request.onreadystatechange=function(){if(request.readyState==4){var xmlDoc=GXml.parse(request.responseText);var markers=xmlDoc.documentElement.getElementsByTagName("marker");map.getInfoWindow().hide();map.clearOverlays();gmarkers=[];htmls=[];ii=0;side_bar_html="";for(var i=0;i<markers.length;i++){var lat=parseFloat(markers[i].getAttribute("lat"));var lng=parseFloat(markers[i].getAttribute("lng"));var point=new GLatLng(lat,lng);var html=markers[i].getAttribute("html");var label=markers[i].getAttribute("label");var n=markers[i].getAttribute("n");var marker=createMarker(point,label,html,n);map.addOverlay(marker);}
document.getElementById("side_bar").innerHTML=side_bar_html;}}
request.send(null);}
readMap("/drink/archives/pref16.xml");}
