CPrefIcon=Class.create();CPrefIcon.prototype={mapObj:Object,pref_obj:Object,name:String,latitude:Number,longitude:Number,aid:Number,point:Object,icon:Object,marker:Object,clickRef:Object,initialize:function(_22,_23,_24,aid){this.mapObj=_22;this.pref_obj=_23;this.name=_23.name;this.latitude=_23.latitude;this.longitude=_23.longitude;this.number=_24;this.aid=aid;this.img="/hotel-count/"+_24+".gif";this.point=new GLatLng(this.latitude,this.longitude);this.icon=new GIcon();this.icon.image=this.img;this.icon.iconSize=new GSize(76,25);this.icon.iconAnchor=new GPoint(20,6);this.icon.infoWindowAnchor=new GPoint(5,1);this.marker=new GMarker(this.point,this.icon);GEvent.addListener(this.marker,"click",this.onClick.bind(this));},draw:function(){this.mapObj.addOverlay(this.marker);},onClick:function(){if(this.clickRef){this.clickRef.onClick(this);}},viewInfo:function(){var _26=new GSize(0,-20);var mes;mes="<div style=\"width: 210px;background:white;\">";mes+="<div style=\"width: 200px;font-size:12px;\">";document.title=this.name+"\u306e\u30de\u30c3\u30d7\u3092\u8868\u793a\u4e2d Map.Binguan.Info(\u30de\u30c3\u30d7\uff65\u30d3\u30f3\u30b0\u30a1\u30f3\uff65\u30a4\u30f3\u30d5\u30a9)";$("hyoarea1").innerHTML="<b><font color='white'>"+this.name+"\u5468\u8fba\u306e\u30db\u30c6\u30eb\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059</font></b>";$("hyoarea2").innerHTML="<font color='white'>"+this.name+"\u306e\u65bd\u8a2d\u4e00\u89a7</font>";$("hyoarea3").innerHTML=$("hyoarea3").innerHTML+" > "+this.name;if(this.aid<=8){if(this.number>0){mes+="\u3053\u306e\u30a8\u30ea\u30a2\uff08"+this.name+"\uff09\u306b\u306f\u3001"+this.number+"\u8ed2\u306eHOTEL\u304c\u3042\u308a\u307e\u3059\u3002";}else{mes+="\u3053\u306e\u30a8\u30ea\u30a2\uff08"+this.name+"\uff09\u306b\u306f\u3001\u767b\u9332\u304c\u3042\u308a\u307e\u305b\u3093\u3002";}}else{if(this.number>0){mes+="\u3053\u306e\u30a8\u30ea\u30a2\uff08"+this.name+"\uff09\u306b\u306f\u3001"+this.number+"\u8ed2\u306eHOTEL\u304c\u3042\u308a\u307e\u3059\u3002<br>\uff08<a href=\"http://map.binguan.info/basicinfo/basic_index.htm\" target=\"_blank\">\u30ea\u30b9\u30c8\u767b\u9332\u306f\u3053\u3061\u3089</a>)";}else{mes+="\u3053\u306e\u30a8\u30ea\u30a2\uff08"+this.name+"\uff09\u306b\u306f\u3001\u767b\u9332\u304c\u3042\u308a\u307e\u305b\u3093\u3002\uff08<a href=\"http://map.binguan.info/basicinfo/basic_index.htm\" target=\"_blank\">\u30ea\u30b9\u30c8\u767b\u9332\u306f\u3053\u3061\u3089</a>)";}}mes+="<br />";mes+="<b>\u5730\u56f3\u8868\u793a\u30a8\u30ea\u30a2\u5207\u66ff</b><br />";mes+="<a href=\"javascript:void(0)\" onclick=\"mapZoom(ZOOM_LEVEL_MID,"+this.longitude+","+this.latitude+")\">[\u90fd\u9053\u5e9c\u770c]&nbsp;</a>";mes+="<a href=\"javascript:void(0)\" onclick=\"mapZoom(ZOOM_LEVEL_NARROW,"+this.longitude+","+this.latitude+")\">[\u5e02\u753a\u6751]&nbsp;</a>";mes+="<a href=\"javascript:void(0)\" onclick=\"mapZoom(ZOOM_LEVEL_SMALL,"+this.longitude+","+this.latitude+")\">[\u6761\u4e01\u76ee]</a>";mes+="</div></div>";this.mapObj.openInfoWindowHtml(this.point,mes,_26);},call:function(){window.setTimeout(function(){this.mapObj.panTo(this.point);this.onClick();}.bind(this),300);},addEventListener:function(nm,pt){switch(nm){case "click":this.clickRef=pt;break;}}};Chotel=Class.create();Chotel.prototype={mapObj:Object,hotel_id:String,hotel_url:String,hotel_name:String,hotel_addr:String,image_filename:String,latitude:Number,longitude:Number,img:String,point:Object,icon:Object,marker:Object,visible:Boolean,number_id:String,pref_id:Number,timerId:Object,clickRef:Object,initialize:function(_2a,id,_2c){this.mapObj=_2a;this.hotel_id=id;this.hotel_url=_2c.hotel_url;this.hotel_name=_2c.hotel_name;this.hotel_addr=_2c.hotel_addr;this.number_id=_2c.number_id;this.image_filename=_2c.image_filename;this.latitude=_2c.latitude;this.longitude=_2c.longitude;this.pref_id=_2c.pref_id;this.img=this.number_id;this.point=new GLatLng(this.latitude,this.longitude);this.icon=new GIcon();this.icon.image=this.img;this.icon.iconSize=new GSize(62,67);this.icon.iconAnchor=new GPoint(10,45);this.icon.infoWindowAnchor=new GPoint(29,52);this.marker=new GMarker(this.point,this.icon);GEvent.addListener(this.marker,"click",this.onClick.bind(this));this.visible=false;},onClick:function(){var _2d=new GSize(0,-20);var _2e="<div style=\"width: 210px;background:white;\"><div style=\"width: 200px;font-size:12px;\" align=\"center\">"+"<b><font style=\"font-size: 9pt;\">\u65bd\u8a2d\u60c5\u5831</font></b><hr>"+"<a href=\""+this.hotel_url+"\" target=\"_blank\">"+"<table width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"+"<tr>"+"<td align=\"center\" valign=\"middle\"><a href=\"info.php?code="+this.hotel_id+"\" target=\"_blank\"><img src=\""+this.image_filename+"\" border=\"0\" border=\"0\" style=\"border: 1px solid rgb(153, 153, 153);\"></a></td>"+"</tr>"+"</table>"+"</a>"+"<font style=\"font-size: 10pt;\">"+this.hotel_name+"</font><br /><font style=\"font-size: 9pt;\">"+this.hotel_addr+"</font><br />"+"<a href=\""+this.hotel_url+"\" target=\"_blank\"><font style=\"font-size: 9pt;\">\uff1c\u8a73\u7d30\u60c5\u5831\u3092\u898b\u308b\uff1e</font></a><br />"+"<hr><font style=\"font-size: 9pt;\">"+"<b>\u5730\u56f3\u8868\u793a\u30a8\u30ea\u30a2\u5207\u66ff</b><br />"+"<a href=\"javascript:void(0)\" onclick=\"mapZoom(ZOOM_LEVEL_MID,"+this.longitude+","+this.latitude+")\">[\u90fd\u9053\u5e9c\u770c]&nbsp;</a>"+"<a href=\"javascript:void(0)\" onclick=\"mapZoom(ZOOM_LEVEL_NARROW,"+this.longitude+","+this.latitude+")\">[\u5e02\u753a\u6751]&nbsp;</a>"+"<a href=\"javascript:void(0)\" onclick=\"mapZoom(ZOOM_LEVEL_SMALL,"+this.longitude+","+this.latitude+")\">[\u6761\u4e01\u76ee]</a>"+"</font></div></div>";this.mapObj.openInfoWindowHtml(this.point,_2e,_2d);if(this.clickRef){this.clickRef.onClick(this);}},call:function(){window.setTimeout(function(){this.mapObj.panTo(this.point);this.onClick();}.bind(this),300);},addEventListener:function(nm,pt){switch(nm){case "click":this.clickRef=pt;break;}}};ListIterator=Class.create();ListIterator.prototype={list:Object,index:Number,initialize:function(_31){this.list=_31;this.index=_31.getLength()-1;},hasPrev:function(){return this.index>=0;},prev:function(){return this.list.getIndexAt(this.index--);}};ChotelList=Class.create();ChotelList.prototype={mapObj:Object,sList:Array,cueList:Array,cueIdx:Number,seqId:Number,clickHdlr:Object,initHotelId:String,initialize:function(_32,_33,_34,_35){this.mapObj=_32;this.cueIdx=0;this.seqId=0;this.initHotelId=_35;if(_34){this.clickHdlr=_34;}if(_33){this.registhotelList(_33);}},registhotelList:function(_36){for(var id in _36){var _38;if(!this.getShopById(id)){_38=new Chotel(this.mapObj,id,_36[id]);_38.addEventListener("click",this.clickHdlr);this.sList[id]=_38;this.cueList[this.cueIdx]=_38;this.cueIdx++;}else{}}return this.cueList;},getLength:function(){return this.cueIdx;},iterator:function(){return new ListIterator(this);},getIndexAt:function(_39){return this.cueList[_39];},getShopById:function(key){return this.sList[key];},markerOverlay:function(key){this.mapObj.addOverlay(this.sList[key].marker);},openInfo:function(key){this.sList[key].showInfo();},call:function(key){this.sList[key].call();},getObject:function(key){return this.sList[key];},redraw:function(it,seq){var seq;if(it==undefined){it=this.iterator();seq=++this.seqId;}if(seq==this.seqId){if(it.hasPrev()){var obj=it.prev();if(obj.marker&&obj.visible==false){obj.timerId=window.setTimeout(function(){if(seq==this.seqId){SCount++;if(MaxH>=SCount){mgr.addMarker(obj.marker,6);}else{mgr.addMarker(obj.marker,9);}obj.visible=true;if(this.initHotelId&&this.initHotelId==obj.hotel_id){this.initHotelId=undefined;if(parseInt(obj.latitude,10)!=0){obj.onClick();}}this.redraw(it,seq);}}.bind(this),10);}else{this.redraw(it,seq);}}else{this.cueList=new Array();this.cueIdx=0;delboxm();}}},removeAll:function(){for(var idx in this.sList){if(this.sList[idx].timerId){window.clearTimeout(this.sList[idx].timerId);}if(this.sList[idx].marker&&this.sList[idx].visible==true){mgr.clearMarkers();}}this.sList=new Array();this.cueList=new Array();this.cueIdx=0;}};