var Shotenjin={_escape_table:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},_escape_func:function(A){return Shotenjin._escape_table[A]},escapeXml:function(A){return typeof (A)!="string"?A:A},escapeXml2:function(A){if(A==null){return""}return String(A).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},strip:function(A){if(!A){return A}return A.replace(/^\s+/,"").replace(/\s+$/,"")},_setlocalvarscode:function(C){var A=[];for(var B in C){A.push("var ",B," = _context['",B,"'];\n")}return A.join("")},_end:undefined};delete (Shotenjin._end);var escapeXml=Shotenjin.escapeXml;Shotenjin.Template=function(A){if(A){var B=A;if(B.escaefunc){this.escapefunc=B.escapefunc}}};Shotenjin.Template.prototype={escapefunc:"escapeXml",program:null,convert:function(A){var B=[];B.push("var _buf = []; ");this.parseStatements(B,A);B.push("_buf.join('')\n");return this.program=B.join("")},parseStatements:function(C,B){var F=/<\?js(\s(.|\n)*?) ?\?>/mg;var H=0;var A;while((A=F.exec(B))!=null){var E=A[1];var G=B.substring(H,A.index);H=A.index+A[0].length;if(G){this.parseExpressions(C,G)}if(E){C.push(E)}}var D=H==0?B:B.substring(H);this.parseExpressions(C,D)},parseExpressions:function(B,F){if(!F){return }B.push(" _buf.push(");var D=/([$#])\{(.*?)\}/g;var E=0;var C;while((C=D.exec(F))!=null){var I=F.substring(E,C.index);var J=C[0];E=C.index+J.length;this.addText(B,I);B.push(", ");var H=C[1];var G=C[2];if(H=="$"){B.push(this.escapefunc,"(",G,"), ")}else{B.push(G,", ")}}var A=E==0?F:F.substring(E);A?this.addText(B,A,true):B.push('""');B.push(");");if(F.charAt(F.length-1)=="\n"){B.push("\n")}},addText:function(A,D,C){if(!D){return }var B=D.replace(/[\'\\]/g,"\\$&").replace(/\n/g,"\\n\\\n");A.push("'",B,"'")},render:function(_context){if(_context){eval(Shotenjin._setlocalvarscode(_context))}else{_context={}}return eval(this.program)},_end:undefined};delete (Shotenjin.Template.prototype._end);Shotenjin.render=function(A,C){var D=new Shotenjin.Template();D.convert(A);var B=D.render(C);return B};var LangTbl_jmap2={jp:{classname_info:"お知らせ",classname_jal:"JAL NEWS",classname_starts:"スターツNEWS",classname_social:"ソーシャルシーン",classname_news_item:"NEWS",classname_weekly:"今週のオススメ",classname_pickup:"ピックアップ",classname_wiki:"WIKI",classname_topic_item:"トピック",classname_promo_item:"特集",classname_web:"公式ブログ",classname_mini:"MINIブログ",classname_spsite_item:"公式企業ブログ",classname_photo:"PHOTOアルバム",classname_column:"コラム",classname_jobcom:"求人",classname_cls_job:"求人",classname_cls_job_urgent:"急募求人",sendmail:"メール送信",addmemo:"メモに追加",showlist:"一覧表示",showdetail:"詳細ページへ",acomo:"住まい",job:"求人",job_urgent:"急募求人",cnt_job:"件の求人",sale:"売ります",buy:"買います",service:"サービス＆レッスン",friends:"フレンズ＆サークル",clsother:"その他",last:""},en:{classname_info:"INFO",classname_jal:"JAL NEWS",classname_starts:"STARTS NEWS",classname_social:"SOCIAL NEWS",classname_news_item:"NEWS",classname_weekly:"WEEKLY INFO",classname_pickup:"PICKUP",classname_wiki:"JAMS WIKI",classname_topic_item:"TOPIC",classname_promo_item:"PROMO",classname_web:"OFFICIAL BLOG",classname_mini:"BLOG MINI",classname_spsite_item:"BLOG SPECIAL",classname_photo:"PHOTO ALBUM",classname_column:"COLUMN",classname_jobcom:"JOB",classname_cls_job:"JOB",classname_cls_job_urgent:"URGENT JOB",sendmail:"SEND EMAIL",addmemo:"ADD to MEMO",showlist:"LIST ALL",showdetail:"VIEW DETAIL",acomo:"ACOMO",job:"JOB",job_urgent:"URGENT JOB",cnt_job:"Job(s)",last:""}};function JGetElementById(A,B){return xGetElementById(B,A)}function JMapCreateDiv(){return xCreateDiv()}function getJMarkerHtmlFromOpts(B,A){if(A.boolTypeMarker("info")){return A.getObjMarkerHtml().createHtml()}else{if(A.boolTypeMarker("icon")){var C=B.data_icon.url;var D=B.data_icon[A.getTypeJIcon()];return"<img src='"+C+D.img+"' width="+D.iconSize.width+" height="+D.iconSize.height+" border=0>"}}}function getJMarkerHtmlFromObj(A){return getJMarkerHtmlFromOpts(A.gFrame,A.obj_opts)}function MoveLog(A,B){this.point=A;this.zoomLevel=B}function JMap2GMap(D,C,H,G,F,B,E){this.obj_jmap2=D;this.gmap_frame_id=C;this.gFrame=D.getGMapFrame(C);this.gmap_obj_id=H;this.gmapDiv=this.createGMapDiv(H,F,B);this.gmapDivSize=new this.gFrame.GSize(F,B);this.gmapFrameName=G;this.gmapFrameDiv=xGetElementById(G);this.obj_gmap=new this.gFrame.GMap2(this.gmapDiv);this.rePosGMapFrame();this.list_moveLog=new Array();this.cancel_addMoveLog=false;this.moveLog_backNo=0;this.bool_logZooming=false;this.currentMapType=null;this.bool_streetView=false;this.bool_overlay_streetView=false;this.bool_streetView_firsttime=false;this.obj_streetViewOverlay=new this.gFrame.GStreetviewOverlay();if(!E){E=300}this.streetViewDivSize=new this.gFrame.GSize(F,E);this.streetViewDiv=JGetElementById(this.gFrame.document,"streetview");if(this.streetViewDiv){this.bool_streetView=true;setDivSizeWH(this.streetViewDiv,this.streetViewDivSize.width,this.streetViewDivSize.height);this.myPano=new this.gFrame.GStreetviewPanorama(this.streetViewDiv);this.myPanoClient=new this.gFrame.GStreetviewClient();this.gFrame.GEvent.addListener(this.myPano,"error",this.gFrame.GEvent.callback(this,this.streetView_handleNoFlash));var A=new this.gFrame.JMarkerOpts(new this.gFrame.GLatLng(0,0),"icon");A.setTypeJIcon("streetview");A.setBoolDraggable(true);this.obj_jmarker_streetview=new this.gFrame.JMarker(this.obj_gmap,A);this.obj_jmarker_streetview.setBoolDragStreetView(true);this.obj_jmarker_streetview.setObjJMap2GMap(this);this.gFrame.GEvent.addListener(this.myPano,"initialized",this.gFrame.GEvent.callback(this,this.movePanoMap));this.gFrame.GEvent.addListener(this.obj_jmarker_streetview.getMarkerObj().obj_gmarker,"dragstart",this.gFrame.GEvent.callback(this,this.dragStartPanoIcon))}this.divButton=new Array();this.divButton.back=JGetElementById(document,C+"_"+H+"_backLog");this.divButton.forward=JGetElementById(document,C+"_"+H+"_forwardLog");this.divMapType=new Array();this.divMapType.normal=JGetElementById(document,C+"_"+H+"_maptype_normal");this.divMapType.satellite=JGetElementById(document,C+"_"+H+"_maptype_satellite");this.divMapType.hybrid=JGetElementById(document,C+"_"+H+"_maptype_hybrid");this.divMapType.streetview=JGetElementById(document,C+"_"+H+"_maptype_streetview");this.bool_cancelClick=false}JMap2GMap.prototype.streetView_handleNoFlash=function(A){if(A==this.gFrame.FLASH_UNAVAILABLE){alert("Error: Flash doesn't appear to be supported by your browser");return }};JMap2GMap.prototype.initEvent=function(){this.gFrame.GEvent.bind(this.obj_gmap,"mousemove",this,this.callMouseMove);this.gFrame.GEvent.bind(this.obj_gmap,"zoomend",this,this.callZoomEnd);this.gFrame.GEvent.bind(this.obj_gmap,"move",this,this.callMove);this.gFrame.GEvent.bind(this.obj_gmap,"moveend",this,this.callMoveEnd);this.gFrame.GEvent.addListener(this.obj_gmap,"click",this.gFrame.GEvent.callback(this,this.callOnClick))};JMap2GMap.prototype.callZoomEnd=function(){if(this.obj_zoomControl){this.obj_zoomControl.setCurrentZoomColor()}};JMap2GMap.prototype.callMouseMove=function(){this.obj_jmap2.focusKeyEvent()};JMap2GMap.prototype.callOnClick=function(B,A){if(this.obj_jmap2.getPicker()&&this.obj_jmap2.getPicker().bool_dragging&&this.obj_jmap2.getPicker().bool_enable){return }this.gFrame.removeArrowAll();this.obj_jmap2.hideHoverAll(this.gmap_frame_id,this.gmap_obj_id);if(this.obj_gmap.ext_cancel_closeInfoWindow){this.obj_gmap.ext_cancel_closeInfoWindow=false}else{this.gFrame.obj_infowin.removeAll()}if(this.obj_jmap2.bool_onShiftKey&&!this.bool_cancelClick){if(this.obj_zoomControl){if(!B){var C=this.obj_gmap.getZoom()+2;if(C>this.obj_zoomControl.zoom_max){C=this.obj_zoomControl.zoom_max}this.obj_gmap.Ext_setCenter(A,C)}}}if(this.obj_jmap2.getTicker()&&(this.obj_jmap2.getTicker().bool_dragging||this.obj_jmap2.getTicker().bool_moving)){return }if(this.bool_streetView&&this.bool_overlay_streetView){if((!this.obj_jmap2.getLiner()||(this.obj_jmap2.getLiner().bool_drawing==false))&&(!this.obj_jmap2.getPolygoner()||(this.obj_jmap2.getPolygoner().bool_drawing==false))){if(B&&B.getPoint){this.moveStreetView(B.getPoint())}else{if(A){this.moveStreetView(A)}}}}};JMap2GMap.prototype.callMove=function(){this.bool_moving=true;if(this.cancel_cancelMoveLog){this.cancel_addMoveLog=true;this.bool_logZooming=true}};JMap2GMap.prototype.callMoveEnd=function(){this.bool_moving=false;this.cancel_cancelMoveLog=false;this.bool_cancelClick=false;if(this.currentMapType!=this.obj_gmap.getCurrentMapType()){this.currentMapType=this.obj_gmap.getCurrentMapType();return }if(this.cancel_addMoveLog==false){var C=true;var A=this.list_moveLog.length-this.moveLog_backNo;if(A>0){var B=this.list_moveLog[A-1];if(B.zoomLevel==this.obj_gmap.getZoom()&&B.point.equals(this.obj_gmap.getCenter())){C=false}}if(C){this.list_moveLog.length=this.list_moveLog.length-this.moveLog_backNo;this.moveLog_backNo=0;this.list_moveLog.push(new MoveLog(this.obj_gmap.getCenter(),this.obj_gmap.getZoom()))}}else{this.cancel_addMoveLog=false}this.bool_logZooming=false;this.checkColorMoveLog()};JMap2GMap.prototype.backMoveLogPoint=function(){if(!this.obj_jmap2.getBoolLoadMain()){return }if(this.bool_logZooming){return }var A=this.list_moveLog.length;if(A>0&&A>(this.moveLog_backNo+1)){this.moveLog_backNo++;this.moveToMoveLog(this.list_moveLog[A-(this.moveLog_backNo+1)])}};JMap2GMap.prototype.forwardMoveLogPoint=function(){if(!this.obj_jmap2.getBoolLoadMain()){return }if(this.bool_logZooming){return }var A=this.list_moveLog.length;if(A>0&&this.moveLog_backNo>0){this.moveLog_backNo--;this.moveToMoveLog(this.list_moveLog[A-(this.moveLog_backNo+1)])}};JMap2GMap.prototype.moveToMoveLog=function(A){this.cancel_addMoveLog=true;this.bool_logZooming=true;if(A.zoomLevel==this.obj_gmap.getZoom()){this.cancel_cancelMoveLog=true;this.obj_gmap.Ext_panTo(A.point)}else{this.obj_gmap.Ext_setCenter(A.point,A.zoomLevel)}this.checkColorMoveLog()};JMap2GMap.prototype.checkColorMoveLog=function(){if(this.list_moveLog.length>0&&this.list_moveLog.length>(this.moveLog_backNo+1)){this.changeColorMoveLogButton("back",true)}else{this.changeColorMoveLogButton("back",false)}if(this.list_moveLog.length>0&&this.moveLog_backNo>0){this.changeColorMoveLogButton("forward",true)}else{this.changeColorMoveLogButton("forward",false)}};JMap2GMap.prototype.changeColorMoveLogButton=function(B,A){if(this.divButton[B]){this.divButton[B].style.backgroundColor=A?"#ffffd0":"#f0f0f0"}};JMap2GMap.prototype.clearMoveLog=function(){this.moveLog_backNo=0;this.list_moveLog=new Array();this.list_moveLog.push(new MoveLog(this.obj_gmap.getCenter(),this.obj_gmap.getZoom()));this.currentMapType=this.obj_gmap.getCurrentMapType();this.changeColorMoveLogButton("back",false);this.changeColorMoveLogButton("forward",false);this.changeColorMapType("normal",true);this.changeColorMapType("satellite",false);this.changeColorMapType("hybrid",false)};JMap2GMap.prototype.setMapType=function(B){var A=this.gFrame.G_NORMAL_MAP;if(B=="normal"){A=this.gFrame.G_NORMAL_MAP}else{if(B=="satellite"){A=this.gFrame.G_SATELLITE_MAP}else{A=this.gFrame.G_HYBRID_MAP}}if(A==this.obj_gmap.getCurrentMapType()){return }this.changeColorMapType("normal",false);this.changeColorMapType("satellite",false);this.changeColorMapType("hybrid",false);this.changeColorMapType(B,true);this.obj_gmap.setMapType(A)};JMap2GMap.prototype.changeColorMapType=function(B,A){if(this.divMapType[B]){this.divMapType[B].style.backgroundColor=A?"#ffffd0":"#f0f0f0"}};JMap2GMap.prototype.switchStreetView=function(){if(this.bool_streetView){if(this.bool_overlay_streetView){this.obj_gmap.removeOverlay(this.obj_streetViewOverlay);this.changeColorMapType("streetview",false);this.gmapFrameDiv.height=this.gmapDivSize.height;this.bool_overlay_streetView=false;this.obj_jmarker_streetview.removeOverlay()}else{this.obj_gmap.addOverlay(this.obj_streetViewOverlay);this.changeColorMapType("streetview",true);this.gmapFrameDiv.height=(this.gmapDivSize.height-0)+(this.streetViewDivSize.height-0);this.bool_overlay_streetView=true;this.obj_jmarker_streetview.addOverlay();if(this.bool_streetView_firsttime==false){this.moveStreetView(this.obj_gmap.getCenter())}}}};JMap2GMap.prototype.moveStreetView=function(A){if(this.bool_streetView&&this.bool_overlay_streetView){this.myPano.setLocationAndPOV(A,{yaw:0,pitch:10});this.myPanoClient.getNearestPanorama(A,this.gFrame.GEvent.callback(this,this.showPanoData))}};JMap2GMap.prototype.showPanoData=function(A){if(A.code!=200){alert("can not shown 'STREET VIEW' at this location");return }this.myPano.setLocationAndPOV(A.location.latlng);this.obj_jmarker_streetview.setPoint(A.location.latlng);this.bool_streetView_firsttime=true};JMap2GMap.prototype.movePanoMap=function(A){this.obj_gmap.setCenter(A.latlng);this.obj_jmarker_streetview.setPoint(A.latlng)};JMap2GMap.prototype.dragStartPanoIcon=function(A){this.obj_jmap2.hideHoverAll(this.gmap_frame_id,this.gmap_obj_id)};JMap2GMap.prototype.setZoomControl=function(){this.obj_zoomControl=new this.gFrame.JMapZoomControl(this.obj_gmap);return this.obj_zoomControl};JMap2GMap.prototype.getZoomControl=function(){return this.obj_zoomControl};JMap2GMap.prototype.rePosGMapFrame=function(){this.gmapFramePos=new Position(xPageX(this.gmapFrameName),xPageY(this.gmapFrameName))};JMap2GMap.prototype.createGMapDiv=function(E,C,A){var B=this.gFrame;var D=JGetElementById(B.document,E);setDivSizeWH(D,C,A);return D};JMap2GMap.prototype.getGMapFrame=function(){return this.gFrame};JMap2GMap.prototype.getGMapObj=function(){return this.obj_gmap};function JMap2(A){this.addLangMesTbl(LangTbl_jmap2);this.bool_load_main=false;this.bool_load_doc=new Array();this.bool_load_gFrame=new Array();this.list_gmap_frames=new Array();this.list_jmap2gmap=new Array();this.list_onload_func=new Array();this.list_onload_funcKey=new Array();this.list_jmarker=new Array();this.list_jline=new Array();this.list_jpolygon=new Array();this.list_jbound=new Array();this.bool_onShiftKey=false;this.bool_onShiftKeyUp=true;this.bool_onCtrlKey=false;this.bool_onAltKey=false;this.addKeyEvent()}JMap2.prototype=new baseLang();JMap2.prototype.setLang=function(A){this.lang=A?A:"en"};JMap2.prototype.getLang=function(A){return this.lang};JMap2.prototype.backMoveLogPoint=function(A,B){if(!this.boolReadyMap(A,B)){return }this.getJMap2GMap(A,B).backMoveLogPoint()};JMap2.prototype.forwardMoveLogPoint=function(A,B){if(!this.boolReadyMap(A,B)){return }this.getJMap2GMap(A,B).forwardMoveLogPoint()};JMap2.prototype.clearMoveLog=function(A,B){if(!this.boolReadyMap(A,B)){return }this.getJMap2GMap(A,B).clearMoveLog()};JMap2.prototype.setMapType=function(A,C,B){if(!this.boolReadyMap(A,C)){return }this.getJMap2GMap(A,C).setMapType(B)};JMap2.prototype.switchStreetView=function(A,B){if(!this.boolReadyMap(A,B)){return }this.getJMap2GMap(A,B).switchStreetView()};JMap2.prototype.addKeyEvent=function(){JMap2AttachEvent(document,"keydown",JMap2EventHandler(this,"onKeyDown"));JMap2AttachEvent(document,"keyup",JMap2EventHandler(this,"onKeyUp"))};JMap2.prototype.addKeyEventFocus=function(A,B){A.GEvent.bind(B,"zoomend",this,this.focusKeyEvent);A.GEvent.bind(B,"maptypechanged",this,this.focusKeyEvent)};JMap2.prototype.focusKeyEvent=function(){window.focus();return };JMap2.prototype.onKeyDown=function(A){var B=new xEvent(A);if(B.shiftKey){this.bool_onShiftKey=true;if(this.getPicker()&&!this.getPicker().bool_dragging){this.getPicker().startPicker(A,this.picker_gmap_frame_id,this.picker_gmap_obj_id)}this.bool_onShiftKeyUp=false}if(B.ctrlKey){this.bool_onCtrlKey=true}if(B.altKey){this.bool_onAltKey=true}};JMap2.prototype.onKeyUp=function(A){var B=new xEvent(A);this.bool_onShiftKey=false;this.bool_onCtrlKey=false;if(this.getPicker()&&this.getPicker().bool_dragging){this.getPicker().stopPicker();this.getPicker().delEvent()}if(!B.shiftKey){this.bool_onShiftKeyUp=true}};JMap2.prototype.onKeyInit=function(){this.bool_onShiftKey=false;this.bool_onShiftKeyUp=true;this.bool_onCtrlKey=false;this.bool_onAltKey=false};JMap2.prototype.getGMapObjId_default=function(A){if(A==null){A="default_id"}return A};JMap2.prototype.getGMapFrameId_default=function(A){if(A==null){A="default_id"}return A};JMap2.prototype.setBoolLoadMain=function(A){this.bool_load_main=A};JMap2.prototype.getBoolLoadMain=function(){return this.bool_load_main};JMap2.prototype.setBoolLoadGFrame=function(A){this.bool_load_gFrame[A]=true};JMap2.prototype.getBoolLoadGFrame=function(A){if(this.bool_load_gFrame[A]){return true}else{return false}};JMap2.prototype.setBoolLoadDoc=function(A){this.bool_load_doc[A]=true;this.callOnLoadFunc(A)};JMap2.prototype.getBoolLoadDoc=function(A){return this.bool_load_doc[A]};JMap2.prototype.setOnLoadFunc=function(A,B){this.list_onload_funcKey.push(A);this.list_onload_func[A]=B};JMap2.prototype.callOnLoadFunc=function(A){if(!this.getBoolLoadMain()){return }if(this.getBoolLoadGFrame(A)&&this.getBoolLoadDoc(A)&&this.list_onload_func[A]){this.list_onload_func[A](A)}};JMap2.prototype.callOnLoadFuncAll=function(){for(var B=0;B<this.list_onload_funcKey.length;B++){var A=this.list_onload_funcKey[B];if(this.getBoolLoadGFrame(A)&&this.getBoolLoadDoc(A)&&this.list_onload_func[A]){this.list_onload_func[A](A)}}};JMap2.prototype.setGMapFrame=function(A,B){A=this.getGMapFrameId_default(A);this.list_gmap_frames[A]=B};JMap2.prototype.getGMapFrame=function(A){A=this.getGMapFrameId_default(A);return this.list_gmap_frames[A]};JMap2.prototype.getBoolGMapFrame=function(A){return this.getBoolLoadGFrame(A)};JMap2.prototype.setJMap2GMap=function(B,G,F,E,A,D){var C=new JMap2GMap(this,B,G,F,E,A,D);if(this.list_jmap2gmap[B]==null){this.list_jmap2gmap[B]=new Array()}this.addKeyEventFocus(C.gFrame,C.obj_gmap);this.list_jmap2gmap[B][G]=C};JMap2.prototype.getJMap2GMap=function(A,B){return this.list_jmap2gmap[A][B]};JMap2.prototype.getGMapObj=function(A,B){return this.list_jmap2gmap[A][B].obj_gmap};JMap2.prototype.boolReadyMap=function(A,B){if(!this.getBoolLoadMain()){return false}if(!B){return this.getBoolGMapFrame(A)}else{if(this.getBoolLoadGFrame(A)&&this.list_jmap2gmap[A][B]){return true}}return false};JMap2.prototype.setJMarker=function(F,C,H,D,G,B){if(!this.boolReadyMap(C,H)){return }var A=false;for(var E=0;E<this.list_jmarker.length;E++){if((this.list_jmarker[E].gmap_frame_id==C)&&(this.list_jmarker[E].gmap_obj_id==H)&&(this.list_jmarker[E].marker_user_id==D)&&(this.list_jmarker[E].marker_type_id==G)&&(this.list_jmarker[E].marker_uniq_id==B)){this.removeMarker(C,H,D,G,B);this.list_jmarker[E]=F;A=true;break}}if(A==false){this.list_jmarker.push(F)}};JMap2.prototype.addJMarker=function(C,B,H,D,G,A){if(!this.boolReadyMap(B,H)){return }var F=this.getJMarker(B,H,D,G,A);if(F){return F}var E=this.getGMapFrame(B);F=new E.JMarker(this.getGMapObj(B,H),C,this);F.gmap_frame_id=B;F.gmap_obj_id=H;F.marker_user_id=D;F.marker_type_id=G;F.marker_uniq_id=A;this.setJMarker(F,B,H,D,G,A);if(C.getBoolDblClickZoom()){this.addJMarkerEvent_dblClickZoom(F,C.bool_dblClickZoomLevel)}return F};JMap2.prototype.getJMarker=function(B,F,C,E,A){if(!this.boolReadyMap(B,F)){return }for(var D=0;D<this.list_jmarker.length;D++){if((this.list_jmarker[D].gmap_frame_id==B)&&(this.list_jmarker[D].gmap_obj_id==F)&&(this.list_jmarker[D].marker_user_id==C)&&(this.list_jmarker[D].marker_type_id==E)&&(this.list_jmarker[D].marker_uniq_id==A)){return this.list_jmarker[D]}}return null};JMap2.prototype.addJMarkerEvent_dblClickZoom=function(A,B){B=B?B:15;if(A.obj_opts.boolTypeMarker("info")){A.startEvent("dblclick")}};JMap2.prototype.callDblClickZoom=function(B,D,A,C){if(B.obj_gmap.getZoom()>=D){D=B.obj_gmap.getCurrentMapType().getMaximumResolution()-1}if(D!=B.obj_gmap.getZoom()){B.obj_gmap.Ext_setCenter(B.point,D);if(!B.point.equals(B.obj_gmap.getCenter())){this.getJMap2GMap(A,C).cancel_addMoveLog=true}}else{this.getGMapObj(A,C).ext_cancel_reOpenInfoWin=false}};JMap2.prototype.panToJMarker=function(B,H,C,G,A,F,D){if(!this.boolReadyMap(B,H)){return }var E=this.getJMarker(B,H,C,G,A);if(E){this.getGMapObj(B,H).Ext_panTo(E.getPoint());if(F){this.getGMapFrame(B).removeArrowAll();this.getGMapFrame(B).showArrowWith_J_Marker(E)}if(D){this.hideHoverAll(B,H);E.showHover()}this.rePosHoverAll(B,H)}};JMap2.prototype.showInfoWinJMarker=function(B,H,C,G,A,E,F){if(!this.boolReadyMap(B,H)){return }var D=this.getJMarker(B,H,C,G,A);if(D){if(E){this.getGMapFrame(B).removeArrowAll();this.getGMapFrame(B).showArrowWith_J_Marker(D)}this.hideHoverAll(B,H);this.rePosHoverAll(B,H);this.getGMapFrame(B).obj_infowin.removeAll();D.showInfoWin(F)}};JMap2.prototype.switchInfoWinJMarker=function(B,G,C,F,A){if(!this.boolReadyMap(B,G)){return }var D=this.getJMarker(B,G,C,F,A);if(D){var E=null;if(!this.getGMapFrame(B).obj_infowin.boolFitInfowin()){E=1}this.showInfoWinJMarker(B,G,C,F,A,1,E)}};JMap2.prototype.showMarker=function(B,F,C,E,A){if(!this.boolReadyMap(B,F)){return }var D=this.getJMarker(B,F,C,E,A);if(D){D.show()}};JMap2.prototype.hideMarker=function(B,F,C,E,A){if(!this.boolReadyMap(B,F)){return }var D=this.getJMarker(B,F,C,E,A);if(D){D.hide()}};JMap2.prototype.showMarkerAll=function(A,E,B,D){if(!this.boolReadyMap(A,E)){return }for(var C=0;C<this.list_jmarker.length;C++){if((this.list_jmarker[C].gmap_frame_id==A)&&(this.list_jmarker[C].gmap_obj_id==E)&&(B==null||this.list_jmarker[C].marker_user_id==B)&&(D==null||this.list_jmarker[C].marker_type_id==D)){this.list_jmarker[C].show()}}};JMap2.prototype.hideMarkerAll=function(A,E,B,D){if(!this.boolReadyMap(A,E)){return }for(var C=0;C<this.list_jmarker.length;C++){if((this.list_jmarker[C].gmap_frame_id==A)&&(this.list_jmarker[C].gmap_obj_id==E)&&(B==null||this.list_jmarker[C].marker_user_id==B)&&(D==null||this.list_jmarker[C].marker_type_id==D)){this.list_jmarker[C].hide()}}};JMap2.prototype.hideHoverAll=function(B,F,C,E,A){if(!this.boolReadyMap(B,F)){return }for(var D=0;D<this.list_jmarker.length;D++){if((this.list_jmarker[D].gmap_frame_id==B)&&(this.list_jmarker[D].gmap_obj_id==F)&&((C==null||(this.list_jmarker[D].marker_user_id!=C))||(E==null||(this.list_jmarker[D].marker_type_id!=E))||(A==null||(this.list_jmarker[D].marker_uniq_id!=A)))){this.list_jmarker[D].hideHover()}}};JMap2.prototype.rePosHoverAll=function(A,C){if(!this.boolReadyMap(A,C)){return }for(var B=0;B<this.list_jmarker.length;B++){if((this.list_jmarker[B].gmap_frame_id==A)&&(this.list_jmarker[B].gmap_obj_id==C)){this.list_jmarker[B].rePosHover()}}};JMap2.prototype.removeMarker=function(B,F,C,E,A){if(!this.boolReadyMap(B,F)){return }var D=this.getJMarker(B,F,C,E,A);if(D){D.removeOverlay()}};JMap2.prototype.removeJMarkerAll=function(B,D){if(!this.boolReadyMap(B,D)){return }var A=false;for(var C=0;C<this.list_jmarker.length;C++){this.removeMarker(this.list_jmarker[C].gmap_frame_id,this.list_jmarker[C].gmap_obj_id,this.list_jmarker[C].marker_user_id,this.list_jmarker[C].marker_type_id,this.list_jmarker[C].marker_uniq_id)}this.list_jmarker=new Array()};JMap2.prototype.setJLine=function(C,A,E,H,D,G){if(!this.boolReadyMap(A,E)){return }var F=false;for(var B=0;B<this.list_jline.length;B++){if((this.list_jline[B].gmap_frame_id==A)&&(this.list_jline[B].gmap_obj_id==E)&&(this.list_jline[B].jline_user_id==H)&&(this.list_jline[B].jline_type_id==D)&&(this.list_jline[B].jline_uniq_id==G)){this.list_jline[B]=C;F=true;break}}if(F==false){this.list_jline.push(C)}};JMap2.prototype.addJLine=function(H,A,E,G,D,F){if(!this.boolReadyMap(A,E)){return }var B=this.getGMapFrame(A);var C=new B.JLine(this.getGMapObj(A,E),H.point_list,H.color,H.weight,H.opacity);C.gmap_frame_id=A;C.gmap_obj_id=E;C.jline_user_id=G;C.jline_type_id=D;C.jline_uniq_id=F;this.setJLine(C,A,E,G,D,F);return C};JMap2.prototype.getJLine=function(A,D,F,C,E){if(!this.boolReadyMap(A,D)){return }for(var B=0;B<this.list_jline.length;B++){if((this.list_jline[B].gmap_frame_id==A)&&(this.list_jline[B].gmap_obj_id==D)&&(this.list_jline[B].jline_user_id==F)&&(this.list_jline[B].jline_type_id==C)&&(this.list_jline[B].jline_uniq_id==E)){return this.list_jline[B]}}return null};JMap2.prototype.showJLine=function(A,D,F,C,E){if(!this.boolReadyMap(A,D)){return }var B=this.getJLine(A,D,F,C,E);B.show()};JMap2.prototype.hideJLineAll=function(A,C){if(!this.boolReadyMap(A,C)){return }for(var B=0;B<this.list_jline.length;B++){if((this.list_jline[B].gmap_frame_id==A)&&(this.list_jline[B].gmap_obj_id==C)){this.list_jline[B].hide()}}};JMap2.prototype.removeJLine=function(A,D,F,C,E){if(!this.boolReadyMap(A,D)){return }var B=this.getJLine(A,D,F,C,E);if(B){B.removeOverlay()}};JMap2.prototype.removeJLineAll=function(A,C){if(!this.boolReadyMap(A,C)){return }var D=false;for(var B=0;B<this.list_jline.length;B++){if((this.list_jline[B].gmap_frame_id==A)&&(this.list_jline[B].gmap_obj_id==C)){this.removeJLine(this.list_jline[B].gmap_frame_id,this.list_jline[B].gmap_obj_id,this.list_jline[B].jline_user_id,this.list_jline[B].jline_type_id,this.list_jline[B].jline_uniq_id)}}this.list_jline=new Array()};JMap2.prototype.setJPolygon=function(H,B,G,D,A,C){if(!this.boolReadyMap(B,G)){return }var F=false;for(var E=0;E<this.list_jpolygon.length;E++){if((this.list_jpolygon[E].gmap_frame_id==B)&&(this.list_jpolygon[E].gmap_obj_id==G)&&(this.list_jpolygon[E].jpolygon_user_id==D)&&(this.list_jpolygon[E].jpolygon_type_id==A)&&(this.list_jpolygon[E].jpolygon_uniq_id==C)){this.list_jpolygon[E]=H;F=true;break}}if(F==false){this.list_jpolygon.push(H)}};JMap2.prototype.addJPolygon=function(F,B,G,E,A,C){if(!this.boolReadyMap(B,G)){return }var D=this.getGMapFrame(B);var H=new D.JPoly(this.getGMapObj(B,G),F.point_list,F.color,F.weight,F.opacity,F.fill_color,F.fill_opacity);H.gmap_frame_id=B;H.gmap_obj_id=G;H.jpolygon_user_id=E;H.jpolygon_type_id=A;H.jpolygon_uniq_id=C;this.setJPolygon(H,B,G,E,A,C);return H};JMap2.prototype.getJPolygon=function(B,F,D,A,C){if(!this.boolReadyMap(B,F)){return }for(var E=0;E<this.list_jpolygon.length;E++){if((this.list_jpolygon[E].gmap_frame_id==B)&&(this.list_jpolygon[E].gmap_obj_id==F)&&(this.list_jpolygon[E].jpolygon_user_id==D)&&(this.list_jpolygon[E].jpolygon_type_id==A)&&(this.list_jpolygon[E].jpolygon_uniq_id==C)){return this.list_jpolygon[E]}}return null};JMap2.prototype.showJPolygon=function(B,E,D,A,C){if(!this.boolReadyMap(B,E)){return }var F=this.getJPolygon(B,E,D,A,C);F.show()};JMap2.prototype.hideJPolygonAll=function(A,C){if(!this.boolReadyMap(A,C)){return }for(var B=0;B<this.list_jpolygon.length;B++){if((this.list_jpolygon[B].gmap_frame_id==A)&&(this.list_jpolygon[B].gmap_obj_id==C)){this.list_jpolygon[B].hide()}}};JMap2.prototype.removeJPolygon=function(B,E,D,A,C){if(!this.boolReadyMap(B,E)){return }var F=this.getJPolygon(B,E,D,A,C);if(F){F.removeOverlay()}};JMap2.prototype.removeJPolygonAll=function(A,D){if(!this.boolReadyMap(A,D)){return }var C=false;for(var B=0;B<this.list_jpolygon.length;B++){if((this.list_jpolygon[B].gmap_frame_id==A)&&(this.list_jpolygon[B].gmap_obj_id==D)){this.removeJPolygon(this.list_jpolygon[B].gmap_frame_id,this.list_jpolygon[B].gmap_obj_id,this.list_jpolygon[B].jpolygon_user_id,this.list_jpolygon[B].jpolygon_type_id,this.list_jpolygon[B].jpolygon_uniq_id)}}this.list_jpolygon=new Array()};JMap2.prototype.setJBound=function(A,F,D,E){var C=false;for(var B=0;B<this.list_jbound.length;B++){if((this.list_jbound[B].bound_user_id==F)&&(this.list_jbound[B].bound_type_id==D)&&(this.list_jbound[B].bound_uniq_id==E)){this.list_jbound[B]=A;C=true;break}}if(C==false){this.list_jbound.push(A)}};JMap2.prototype.addJBound=function(B,G,E,F,D){if(!this.boolReadyMap(B)){return }var C=this.getGMapFrame(B);var A=new C.JBound(D);A.bound_user_id=G;A.bound_type_id=E;A.bound_uniq_id=F;this.setJBound(A,G,E,F);return A};JMap2.prototype.getJBound=function(D,B,C){for(var A=0;A<this.list_jbound.length;A++){if((this.list_jbound[A].bound_user_id==D)&&(this.list_jbound[A].bound_type_id==B)&&(this.list_jbound[A].bound_uniq_id==C)){return this.list_jbound[A]}}return null};JMap2.prototype.moveToJBound=function(A,D,E,B,C){if(!this.boolReadyMap(A,D)){return }this.moveToBound(A,D,this.getJBound(E,B,C).getBound());this.rePosHoverAll(A,D)};JMap2.prototype.removeArrowAll=function(A){if(!this.boolReadyMap(A)){return }this.getGMapFrame(A).removeArrowAll()};JMap2.prototype.showArrowJMarker=function(C,G,D,F,B,A){if(!this.boolReadyMap(C,G)){return }var E=this.getJMarker(C,G,D,F,B);if(E){if(A){this.getGMapFrame(C).removeArrowAll()}this.getGMapFrame(C).showArrowWith_J_Marker(E)}};JMap2.prototype.showArrowJLine=function(C,E,B,F,G,A){if(!this.boolReadyMap(C,E)){return }var D=this.getJLine(C,E,B,F,G);if(D){if(A){this.getGMapFrame(C).removeArrowAll()}this.getGMapFrame(C).showArrowWith_JLine(D)}};JMap2.prototype.showArrowJPolygon=function(B,F,E,C,D,A){if(!this.boolReadyMap(B,F)){return }var G=this.getJPolygon(B,F,E,C,D);if(G){if(A){this.getGMapFrame(B).removeArrowAll()}this.getGMapFrame(B).showArrowWith_JPolygon(G)}};JMap2.prototype.setTicker=function(){this.obj_ticker=new Ticker(this)};JMap2.prototype.getTicker=function(){return this.obj_ticker};JMap2.prototype.startTicker=function(B,A){if(!this.getBoolLoadMain()){return }JMap2CancelBubble(A);this.stopDrawline();if(this.getTicker()){this.getTicker().startTicker(B.id,A)}};JMap2.prototype.resetTicker=function(B,A){if(!this.getBoolLoadMain()){return }if(this.getTicker()){this.getTicker().resetTicker(B,A)}};JMap2.prototype.resetTickerAll=function(){if(!this.getBoolLoadMain()){return }if(this.getTicker()){this.getTicker().cancelTicker()}};JMap2.prototype.setLiner=function(){this.obj_liner=new Liner(this)};JMap2.prototype.getLiner=function(){return this.obj_liner};JMap2.prototype.startDrawline=function(B,A){if(!this.getBoolLoadMain()){return }if(this.getPolygoner()){this.getPolygoner().stopDrawline()}if(this.getLiner()){this.resetTickerAll();if(this.getLiner().bool_drawing==false){this.getLiner().startDrawline(B,A)}else{this.getLiner().stopDrawline();if(this.getLiner().drawing_type_id!=B){this.getLiner().startDrawline(B,A)}}}};JMap2.prototype.stopDrawline=function(){if(!this.getBoolLoadMain()){return }if(this.getLiner()){this.getLiner().stopDrawline()}};JMap2.prototype.clearDrawline=function(A){if(!this.getBoolLoadMain()){return }if(this.getLiner()){this.getLiner().clearDrawline(A)}};JMap2.prototype.setPolygoner=function(){this.obj_polygoner=new Liner(this)};JMap2.prototype.getPolygoner=function(){return this.obj_polygoner};JMap2.prototype.startDrawpolygon=function(B,A){if(!this.getBoolLoadMain()){return }if(this.getLiner()){this.getLiner().stopDrawline()}if(this.getPolygoner()){this.resetTickerAll();if(this.getPolygoner().bool_drawing==false){this.getPolygoner().startDrawline(B,A)}else{this.getPolygoner().stopDrawline();if(this.getPolygoner().drawing_type_id!=B){this.getPolygoner().startDrawline(B,A)}}}};JMap2.prototype.stopDrawpolygon=function(){if(!this.getBoolLoadMain()){return }if(this.getPolygoner()){this.getPolygoner().stopDrawline()}};JMap2.prototype.clearDrawpolygon=function(A){if(!this.getBoolLoadMain()){return }if(this.getPolygoner()){this.getPolygoner().clearDrawline(A)}};JMap2.prototype.setPicker=function(A,B){this.obj_picker=new Picker(this,A,B);this.picker_gmap_frame_id=A;this.picker_gmap_obj_id=B};JMap2.prototype.getPicker=function(){return this.obj_picker};function Ticker(A){this.obj_jmap2=A;this.src=document.body;this.eventSrc=this.src.setCapture?this.src:window;this.layer_move=this.src;this.list_tickerTypeObj=new Array();this.bool_moving=false;this.bool_dragging=false;this.mouseMoveHandler=JMap2EventHandler(this,"onMouseMove");this.mouseClickHandler=JMap2EventHandler(this,"onMouseClick");this.mouseWinOutHandler=JMap2EventHandler(this,"onMouseWinOut");this.bool_eventDocument=false;this.bool_eventGMap=false}Ticker.prototype.addType=function(B,J,A,G){if(!this.obj_jmap2.boolReadyMap(A,G)){return }var H=new Object;var C=getJMarkerHtmlFromObj(J);H.bool_put_map=false;H.ticker_type_id=B;H.obj_jmarker=J;H.html=C;H.gmap_frame_id=A;H.gmap_obj_id=G;H.obj_jmap2gmap=this.obj_jmap2.getJMap2GMap(A,G);var I=JGetElementById(document,B);var K=JGetElementById(document,B+"_control");xInnerHtml(I,C);var F=JMapCreateDiv();F.style.position="absolute";F.style.visibility="hidden";xInnerHtml(F,C);H.divTick=I;H.divTickControl=K;H.divMove=F;H.divMovePos=new Position(0,0);this.layer_move.appendChild(F);H.divSize=getDivSize(F);this.list_tickerTypeObj[B]=H;if(J.obj_opts.boolTypeMarker("info")){var D=this.obj_jmap2.getGMapFrame(A);var E=J.obj_marker;D.GEvent.bindDom(E.obj_divInfoCloser,"click",this,D.GEvent.callbackArgs(this,this.callDelTickerInfo,E,B))}return H};Ticker.prototype.callDelTickerInfo=function(A,B){this.cancelTicker();this.showTickerTick(B);this.hideTickerMove(B);A.hideInfo();this.getTickerTypeObj(B).bool_put_map=false;this.hideTickerTickControl(B)};Ticker.prototype.initTicker=function(D,C){var A=this.getTickerTypeObj(D);var B=A.obj_jmarker;if(C){if(B.obj_marker.bool_overlay==false){B.addOverlay()}this.hideTickerTick(D);this.hideTickerMove(D);A.bool_put_map=true;this.showTickerTickControl(D)}else{B.hide();this.showTickerTick(D);this.hideTickerMove(D);A.bool_put_map=false;this.hideTickerTickControl(D)}};Ticker.prototype.getTickerTypeObj=function(A){return this.list_tickerTypeObj[A]};Ticker.prototype.resetTicker=function(B){var A=this.getTickerTypeObj(B);this.cancelTicker();this.showTickerTick(B);this.hideTickerMove(B);A.obj_jmarker.hide();A.bool_put_map=false;this.hideTickerTickControl(B);A.obj_jmap2gmap.gFrame.obj_infowin.removeAll()};Ticker.prototype.setTickerMovePos=function(D,B){var A=this.getTickerTypeObj(D);A.divMovePos=B;var C=A.obj_jmarker;if(C.obj_opts.boolTypeMarker("info")){if(C.obj_opts.getTypeArrow()=="down"){setDivPosXY(A.divMove,B.x-(A.divSize.width/2),B.y-A.divSize.height)}else{if(C.obj_opts.getTypeArrow()=="left"){setDivPosXY(A.divMove,B.x,B.y-A.divSize.height)}else{if(C.obj_opts.getTypeArrow()=="right"){setDivPosXY(A.divMove,B.x-A.divSize.width,B.y-A.divSize.height)}}}}else{setDivPosXY(A.divMove,B.x-(A.divSize.width/2),B.y-A.divSize.height)}};Ticker.prototype.showTickerTick=function(A){showDiv(this.getTickerTypeObj(A).divTick)};Ticker.prototype.hideTickerTick=function(A){hideDiv(this.getTickerTypeObj(A).divTick)};Ticker.prototype.showTickerTickControl=function(A){if(this.getTickerTypeObj(A).divTickControl){showDivBlock(this.getTickerTypeObj(A).divTickControl)}};Ticker.prototype.hideTickerTickControl=function(A){if(this.getTickerTypeObj(A).divTickControl){hideDivBlock(this.getTickerTypeObj(A).divTickControl)}};Ticker.prototype.showTickerMove=function(A){showDiv(this.getTickerTypeObj(A).divMove)};Ticker.prototype.hideTickerMove=function(A){hideDiv(this.getTickerTypeObj(A).divMove)};Ticker.prototype.startTicker=function(F,A){this.cancelTicker();this.bool_moving=true;this.moving_ticker_type_id=F;this.hideTickerTick(F);this.showTickerMove(F);if(A){this.onMouseMove(A)}else{this.setTickerMovePos(F,new Position(-1000,-1000))}if(A){JMap2CancelBubble(A)}if(this.src.setCapture){this.src.setCapture()}this.bool_eventDocument=true;JMap2AttachEvent(this.eventSrc,"mousemove",this.mouseMoveHandler);JMap2AttachEvent(this.eventSrc,"click",this.mouseClickHandler);if(obj_browser.bool_mozilla){JMap2AttachEvent(window,"mouseout",this.mouseWinOutHandler)}this.bool_eventGMap=true;var C=this.getTickerTypeObj(F);var D=C.obj_jmarker;var B=D.gFrame;var E=D.obj_gmap;this.gmapListenr_mousedrag=B.GEvent.bind(E,"drag",this,this.GMapListen_mouseDrag);this.gmapListenr_mousedragstart=B.GEvent.bind(E,"dragstart",this,this.GMapListen_mouseDragStart);this.gmapListenr_mousedragend=B.GEvent.bind(E,"dragend",this,this.GMapListen_mouseDragEnd);this.gmapListenr_mousemove=B.GEvent.bind(E,"mousemove",this,this.GMapListen_mouseMove);this.gmapListenr_mouseclick=B.GEvent.bind(E,"click",this,this.GMapListen_mouseClick);D.hide();C.obj_jmap2gmap.rePosGMapFrame()};Ticker.prototype.onMouseMove=function(A){if(this.bool_moving){this.setTickerMovePos(this.moving_ticker_type_id,obj_browser.getMousePos(A))}};Ticker.prototype.onMouseClick=function(G){if(this.bool_moving&&!this.bool_dragging){var L=this.getTickerTypeObj(this.moving_ticker_type_id);var M=L.obj_jmarker;var F=M.gFrame;var K=M.obj_gmap;var C=L.obj_jmap2gmap;var H=obj_browser.getMousePos(G);var D=C.gmapFramePos;if(H.x>=D.x&&H.x<=D.x+C.gmapDivSize.width&&H.y>=D.y&&H.y<=D.y+C.gmapDivSize.height){var B=K.getBounds();var E=B.getSouthWest();var A=B.getNorthEast();var J=K.fromLatLngToDivPixel(new F.GLatLng(A.lat(),E.lng()));var I=new F.GPoint(J.x+H.x-D.x,J.y+H.y-D.y);this.putMarker(M,K.fromDivPixelToLatLng(I));this.endTicker()}else{this.cancelTicker()}JMap2CancelBubble(G)}};function getGMapDivPosFromMousePos(D,H){var G=D.gFrame;var J=D.obj_gmap;var E=D.gmapFramePos;var C=J.getBounds();var F=C.getSouthWest();var A=C.getNorthEast();var I=J.fromLatLngToDivPixel(new G.GLatLng(A.lat(),F.lng()));var B=new G.GPoint(I.x+H.x-E.x,I.y+H.y-E.y);return B}Ticker.prototype.onMouseWinOut=function(A){if(this.bool_moving){if(!A.relatedTarget){this.cancelTicker()}}};Ticker.prototype.GMapListen_mouseDragStart=function(){if(this.bool_moving){this.bool_dragging=true;var A=this.getTickerTypeObj(this.moving_ticker_type_id);hideDiv(A.divMove)}};Ticker.prototype.GMapListen_mouseDragEnd=function(){if(this.bool_moving){this.bool_dragging=false;var A=this.getTickerTypeObj(this.moving_ticker_type_id);showDiv(A.divMove)}};Ticker.prototype.GMapListen_mouseDrag=function(){if(this.bool_moving&&this.bool_dragging){var K=this.getTickerTypeObj(this.moving_ticker_type_id);var L=K.obj_jmarker;var E=L.gFrame;var H=L.obj_gmap;var C=K.obj_jmap2gmap;var B=H.getBounds();var D=B.getSouthWest();var A=B.getNorthEast();var F=this.pos_mouse_moving;var G=H.fromLatLngToDivPixel(new E.GLatLng(A.lat(),D.lng()));var J=new Position(F.x-G.x,F.y-G.y);var I=new Position(C.gmapFramePos.x+J.x,C.gmapFramePos.y+J.y);this.setTickerMovePos(this.moving_ticker_type_id,I)}};Ticker.prototype.GMapListen_mouseMove=function(I){if(this.bool_moving){var L=this.getTickerTypeObj(this.moving_ticker_type_id);var M=L.obj_jmarker;var E=M.gFrame;var H=M.obj_gmap;var C=L.obj_jmap2gmap;var B=H.getBounds();var D=B.getSouthWest();var A=B.getNorthEast();var F=H.fromLatLngToDivPixel(I);var G=H.fromLatLngToDivPixel(new E.GLatLng(A.lat(),D.lng()));this.pos_mouse_moving=F;var K=new Position(F.x-G.x,F.y-G.y);var J=new Position(C.gmapFramePos.x+K.x,C.gmapFramePos.y+K.y);this.setTickerMovePos(this.moving_ticker_type_id,J)}};Ticker.prototype.GMapListen_mouseClick=function(B,A){if(this.bool_moving&&!this.bool_dragging){var C=this.getTickerTypeObj(this.moving_ticker_type_id);var D=C.obj_jmarker;if(B){A=B.getPoint()}this.putMarker(D,A);this.endTicker()}};Ticker.prototype.putMarker=function(C,A){if(C.obj_marker.bool_overlay==false){C.addOverlay()}C.setPoint(A);C.show();var B=this.getTickerTypeObj(this.moving_ticker_type_id);B.bool_put_map=true;this.showTickerTickControl(this.moving_ticker_type_id)};Ticker.prototype.cancelTicker=function(){this.delEvent();if(this.bool_moving){this.showTickerTick(this.moving_ticker_type_id);this.hideTickerMove(this.moving_ticker_type_id)}this.bool_moving=false};Ticker.prototype.endTicker=function(){this.delEvent();if(this.bool_moving){this.hideTickerTick(this.moving_ticker_type_id);this.hideTickerMove(this.moving_ticker_type_id)}this.bool_moving=false};Ticker.prototype.delEvent=function(){if(this.bool_eventDocument){JMap2DetachEvent(this.eventSrc,"mousemove",this.mouseMoveHandler);JMap2DetachEvent(this.eventSrc,"click",this.mouseClickHandler);if(obj_browser.bool_mozilla){JMap2DetachEvent(window,"mouseout",this.mouseWinOutHandler)}this.bool_eventDocument=false}if(this.bool_eventGMap){var B=this.getTickerTypeObj(this.moving_ticker_type_id);var C=B.obj_jmarker;var A=C.gFrame;A.GEvent.removeListener(this.gmapListenr_mousemove);A.GEvent.removeListener(this.gmapListenr_mouseclick);A.GEvent.removeListener(this.gmapListenr_mousedrag);A.GEvent.removeListener(this.gmapListenr_mousedragstart);A.GEvent.removeListener(this.gmapListenr_mousedragend);this.bool_eventGMap=false}if(document.releaseCapture){document.releaseCapture()}};function Liner(A){this.obj_jmap2=A;this.bool_drawing=false;this.drawing_type_id=0;this.list_obj_drawline=new Array()}Liner.prototype.addType=function(F,C,A,E,G){if(!this.obj_jmap2.boolReadyMap(A,E)){return }var B=new Object();B.drawline_type_id=F;B.obj_drawline=C;B.gmap_frame_id=A;B.gmap_obj_id=E;var D=JGetElementById(document,F);B.divSwitch=D;B.gFrame=this.obj_jmap2.getGMapFrame(A);B.obj_gmap=this.obj_jmap2.getGMapObj(A,E);B.bool_drawing=false;this.list_obj_drawline[F]=B;if(G){this.addCtrlDelete(F)}};Liner.prototype.getDrawlineTypeObj=function(A){return this.list_obj_drawline[A]};Liner.prototype.addCtrlDelete=function(B){var A=this.getDrawlineTypeObj(B);A.obj_drawline.setTrigger("click",JMap2EventHandler(this,"callCtrlMarker",A.obj_drawline))};Liner.prototype.callCtrlMarker=function(C,B){if(this.obj_jmap2.bool_onCtrlKey){var A=C.drawline_point_no;B.delPoint(A)}};Liner.prototype.clearDrawline=function(B){var A=this.getDrawlineTypeObj(B);A.obj_drawline.delPointAll()};Liner.prototype.initLiner=function(B,A){};Liner.prototype.startDrawline=function(C,A){this.delAllListener();this.switchOffAll();var B=this.getDrawlineTypeObj(C);B.onClickHandler=B.gFrame.GEvent.bind(B.obj_gmap,"click",this,this.onClick);B.bool_drawing=true;this.bool_drawing=true;this.drawing_type_id=C;this.switchOn(C)};Liner.prototype.stopDrawline=function(){this.delAllListener();this.switchOffAll();this.bool_drawing=false};Liner.prototype.onClick=function(C,A){if(this.obj_jmap2.getPicker()&&this.obj_jmap2.getPicker().bool_dragging){return }if(this.bool_drawing){if((C&&C.getPoint)||A){var B=this.getDrawlineTypeObj(this.drawing_type_id);B.gFrame.obj_infowin.removeAll();if(C&&C.getPoint){if(!this.obj_jmap2.bool_onCtrlKey){B.obj_drawline.addPoint(C.getPoint(),"bool_show")}}else{if(A){B.obj_drawline.addPoint(A,"bool_show")}}}}};Liner.prototype.onClick_JInfoMarker=function(B){if(B.bool_cancelClick){B.bool_cancelClick=false;return }if(this.obj_jmap2.getPicker()&&this.obj_jmap2.getPicker().bool_dragging){return }if(this.bool_drawing){var A=this.getDrawlineTypeObj(this.drawing_type_id);A.obj_drawline.addPoint(B.getPoint(),"bool_show")}};Liner.prototype.delAllListener=function(){for(var B in this.list_obj_drawline){var A=this.getDrawlineTypeObj(B);if(A.bool_drawing){A.gFrame.GEvent.removeListener(A.onClickHandler);A.bool_drawing=false}}};Liner.prototype.switchOn=function(B){var A=this.getDrawlineTypeObj(B);A.divSwitch.style.backgroundColor="#ffffcc"};Liner.prototype.switchOff=function(B){var A=this.getDrawlineTypeObj(B);A.divSwitch.style.backgroundColor="#cccccc"};Liner.prototype.switchOffAll=function(){for(var A in this.list_obj_drawline){this.switchOff(A)}};function Picker(B,A,F){this.src=document.body;this.eventSrc=this.src.setCapture?this.src:window;this.obj_jmap2=B;this.gmap_frame_id=A;this.gmap_obj_id=F;this.bool_dragging=false;this.bool_enable=false;this.bool_show=false;var C=B.getGMapFrame(A);var D=B.getGMapObj(A,F);this.gFrame=C;this.obj_gmap=D;this.obj_jmap2gmap=B.getJMap2GMap(A,F);this.layer_put=D.getPane(C.G_MAP_FLOAT_PANE);var E=C.JMapCreatePickerDiv();E.style.border="2px";E.style.borderStyle="dashed";this.divPicker=E;this.layer_put.appendChild(E)}Picker.prototype.startPicker=function(B,A,C){if(!this.obj_jmap2.boolReadyMap(A,C)){return }if(this.gmap_frame_id==A&&this.gmap_obj_id==C){this.delEvent();this.gmapListenr_onclick=this.gFrame.GEvent.bind(this.obj_gmap,"click",this,this.onClick);this.gmapListenr_mouseout=this.gFrame.GEvent.bind(this.obj_gmap,"mouseout",this,this.onMouseOut);this.gmapListenr_mousemove=this.gFrame.GEvent.bind(this.obj_gmap,"mousemove",this,this.onMouseMove);this.bool_dragging=true;this.bool_enable=false;this.pos_dragStart=null;this.obj_jmap2gmap.rePosGMapFrame()}};Picker.prototype.onMouseMove=function(H){if(this.bool_dragging){var B=this.obj_gmap.getBounds();if(B.contains(H)){var D=B.getSouthWest();var A=B.getNorthEast();var F=this.obj_gmap.fromLatLngToDivPixel(H);var G=this.obj_gmap.fromLatLngToDivPixel(new this.gFrame.GLatLng(A.lat(),D.lng()));var J=new Position(F.x-G.x,F.y-G.y);var E=new Position(this.obj_jmap2gmap.gmapFramePos.x+J.x,this.obj_jmap2gmap.gmapFramePos.y+J.y);var I=getGMapDivPosFromMousePos(this.obj_jmap2gmap,E);if(this.pos_dragStart==null){this.pos_dragStart=I}this.pos_dragEnd=I;var C=new Size(this.pos_dragEnd.x-this.pos_dragStart.x,this.pos_dragEnd.y-this.pos_dragStart.y);if(Math.abs(C.width)>10&&Math.abs(C.height)>10){this.showPicker();this.bool_enable=true}if(this.bool_enable){if(C.width>0){setDivPosX(this.divPicker,this.pos_dragStart.x)}else{setDivPosX(this.divPicker,this.pos_dragEnd.x)}if(C.height>0){setDivPosY(this.divPicker,this.pos_dragStart.y)}else{setDivPosY(this.divPicker,this.pos_dragEnd.y)}C.width=Math.abs(C.width);C.height=Math.abs(C.height);setDivSize(this.divPicker,C)}}else{this.stopPicker()}}};Picker.prototype.onClick=function(A){if(this.bool_dragging&&this.bool_enable&&this.bool_show){this.stopPicker();this.setPosZoom(this.pos_dragStart,this.pos_dragEnd)}};Picker.prototype.onMouseOut=function(){this.stopPicker()};Picker.prototype.stopPicker=function(){this.hidePicker();if(this.bool_dragging){this.bool_dragging=false;this.bool_enable=false}};Picker.prototype.delEvent=function(){if(this.gmapListenr_onclick){this.gFrame.GEvent.removeListener(this.gmapListenr_onclick)}if(this.gmapListenr_mouseout){this.gFrame.GEvent.removeListener(this.gmapListenr_mouseout)}if(this.gmapListenr_mousemove){this.gFrame.GEvent.removeListener(this.gmapListenr_mousemove)}this.bool_dragging=false;this.bool_enable=false};Picker.prototype.setPosZoom=function(F,A){var H=this.gFrame;var J=this.obj_gmap;var I=new Position(F.x<=A.x?F.x:A.x,F.y<=A.y?F.y:A.y);var B=new Size(Math.abs(A.x-F.x),Math.abs(A.y-F.y));var G=this.obj_gmap.fromDivPixelToLatLng(new H.GPoint(I.x,I.y+B.height));var C=this.obj_gmap.fromDivPixelToLatLng(new H.GPoint(I.x+B.width,I.y));var E=new this.gFrame.GLatLngBounds(G,C);var D=J.getBoundsZoomLevel(E);J.Ext_setCenter(new H.GLatLng((G.lat()+C.lat())/2,(G.lng()+C.lng())/2),D);if(D==J.getZoom()){this.obj_jmap2.rePosHoverAll(this.gmap_frame_id,this.gmap_obj_id)}};Picker.prototype.showPicker=function(){if(this.bool_show==false){showDiv(this.divPicker);this.bool_show=true}};Picker.prototype.hidePicker=function(){if(this.bool_show==true){hideDiv(this.divPicker);this.bool_show=false}};JMap2.prototype.submitForm_JMarkers=function(B,A,H,D,I,G){if(!this.boolReadyMap(A,H)){return }var C=this.getTagName("marker",D,I,G);var F=false;for(var E=0;E<this.list_jmarker.length;E++){var J=this.list_jmarker[E];if((J.gmap_frame_id==A)&&(J.gmap_obj_id==H)&&(J.marker_user_id==D)&&(J.marker_type_id==I)&&(J.marker_uniq_id==G)&&(J.getBoolShow())){jlib.setFormValue(B,this.getTagName(C,"bool"),"on");jlib.setFormValue(B,this.getTagName(C,"lat"),J.getPoint().lat());jlib.setFormValue(B,this.getTagName(C,"lng"),J.getPoint().lng());F=true;break}}if(F==false){jlib.setFormValue(B,this.getTagName(C,"bool"),"")}};JMap2.prototype.submitForm_Liner=function(F,A,H){if(!this.boolReadyMap(A,H)){return }if(this.getLiner()){for(var G in this.getLiner().list_obj_drawline){var B=this.getLiner().getDrawlineTypeObj(G);var E=B.obj_drawline;var D=this.getTagName("liner",B.drawline_type_id);if((B.gmap_frame_id==A)&&(B.gmap_obj_id==H)&&(E.bool_overlay)&&(E.getPointNum()>=2)){jlib.setFormValue(F,this.getTagName(D,"bool"),"on");jlib.setFormValue(F,this.getTagName(D,"point_max"),E.getPointNum());for(var C=0;C<E.getPointNum();C++){jlib.setFormValue(F,this.getTagName(D,"point",C,"lat"),E.getPoint(C).lat());jlib.setFormValue(F,this.getTagName(D,"point",C,"lng"),E.getPoint(C).lng())}}else{jlib.setFormValue(F,this.getTagName(D,"bool"),"")}}}};JMap2.prototype.submitForm_Polygoner=function(F,B,G){if(!this.boolReadyMap(B,G)){return }if(this.getPolygoner()){for(var A in this.getPolygoner().list_obj_drawline){var E=this.getPolygoner().getDrawlineTypeObj(A);var H=E.obj_drawline;var D=this.getTagName("polygoner",E.drawline_type_id);if((E.gmap_frame_id==B)&&(E.gmap_obj_id==G)&&(H.bool_overlay)&&(H.getPointNum()>=2)){jlib.setFormValue(F,this.getTagName(D,"bool"),"on");jlib.setFormValue(F,this.getTagName(D,"point_max"),H.getPointNum());for(var C=0;C<H.getPointNum();C++){jlib.setFormValue(F,this.getTagName(D,"point",C,"lat"),H.getPoint(C).lat());jlib.setFormValue(F,this.getTagName(D,"point",C,"lng"),H.getPoint(C).lng())}}else{jlib.setFormValue(F,this.getTagName(D,"bool"),"")}}}};JMap2.prototype.getTagName=function(E,D,C,B,A){var F=new Array(E);if(D!=null){F.push(D)}if(C!=null){F.push(C)}if(B!=null){F.push(B)}if(A!=null){F.push(A)}return F.join("<=>")};JMap2.prototype.calcBoundsJMarkers=function(D,A,G,C,H,B){if(!this.boolReadyMap(A,G)){return }var F=this.getGMapFrame(A);for(var E=0;E<this.list_jmarker.length;E++){var I=this.list_jmarker[E];if((I.gmap_frame_id==A)&&(I.gmap_obj_id==G)&&(!C||(I.marker_user_id==C))&&(!H||(I.marker_type_id==H))&&(B||I.getBoolShow())){if(D==null){D=new F.GLatLngBounds(I.getPoint(),I.getPoint())}else{D.extend(I.getPoint())}}}return D};JMap2.prototype.calcBoundsJDrawLiners=function(F,A,H,G){if(!this.boolReadyMap(A,H)){return }var C=this.getGMapFrame(A);if(this.getLiner()){var B=this.getLiner().getDrawlineTypeObj(G);var E=B.obj_drawline;if((B.gmap_frame_id==A)&&(B.gmap_obj_id==H)&&(E.bool_overlay)&&(E.getPointNum()>=2)){for(var D=0;D<E.getPointNum();D++){if(F==null){F=new C.GLatLngBounds(E.getPoint(D),E.getPoint(D))}else{F.extend(E.getPoint(D))}}}}return F};JMap2.prototype.calcBoundsJDrawPolygoners=function(F,B,G,A){if(!this.boolReadyMap(B,G)){return }var C=this.getGMapFrame(B);if(this.getPolygoner()){var E=this.getPolygoner().getDrawlineTypeObj(A);var H=E.obj_drawline;if((E.gmap_frame_id==B)&&(E.gmap_obj_id==G)&&(H.bool_overlay)&&(H.getPointNum()>=2)){for(var D=0;D<H.getPointNum();D++){if(F==null){F=new C.GLatLngBounds(H.getPoint(D),H.getPoint(D))}else{F.extend(H.getPoint(D))}}}}return F};JMap2.prototype.calcBoundsLiners=function(C,A,H,J,G,B){if(!this.boolReadyMap(A,H)){return }var F=this.getGMapFrame(A);for(var E=0;E<this.list_jline.length;E++){var I=this.list_jline[E];if((I.gmap_frame_id==A)&&(I.gmap_obj_id==H)&&(!J||(I.jline_user_id==J))&&(!G||(I.jline_type_id==G))&&(!B||(I.jline_uniq_id==B))){for(var D=0;D<I.getPointNum();D++){if(C==null){C=new F.GLatLngBounds(I.getPoint(D),I.getPoint(D))}else{C.extend(I.getPoint(D))}}}}return C};JMap2.prototype.calcBoundsPolygoners=function(C,A,H,B,I,G){if(!this.boolReadyMap(A,H)){return }var F=this.getGMapFrame(A);for(var E=0;E<this.list_jpolygon.length;E++){var J=this.list_jpolygon[E];if((J.gmap_frame_id==A)&&(J.gmap_obj_id==H)&&(!B||(J.jpolygon_user_id==B))&&(!I||(J.jpolygon_type_id==I))&&(!G||(J.jpolygon_uniq_id==G))){for(var D=0;D<J.getPointNum();D++){if(C==null){C=new F.GLatLngBounds(J.getPoint(D),J.getPoint(D))}else{C.extend(J.getPoint(D))}}}}return C};JMap2.prototype.moveToBound=function(A,D,C){if(!this.boolReadyMap(A,D)){return }if(C){var B=this.getGMapObj(A,D);var E=B.getBoundsZoomLevel(C);if(E<B.getCurrentMapType().getMinimumResolution()){E=B.getCurrentMapType().getMinimumResolution()}B.Ext_setCenter(C.getCenter(),E)}};JMap2.prototype.setCenterCountryBound=function(A,D,C){if(!this.boolReadyMap(A,D)){return }var B=this.getGMapObj(A,D);B.setCenter(C.getCenter());var E=B.getBoundsZoomLevel(C);B.setCenter(C.getCenter(),E)};JMap2.prototype.setDefaultHtmlFactory=function(A){var B=this.getGMapFrame(A);B.createMarkerHtmlFactory("hover_default","factory_post_hover_tick_main",htmlFactory_default);B.createMarkerHtmlFactory("marker_red_s","factory_post_tick_sub",htmlFactory_default);B.createMarkerHtmlFactory("hover_default","factory_hover_tick_main_json",htmlFactory_hover_tick_main_json);B.createMarkerHtmlFactory("hover_default","factory_hover_period_tick_main_json",htmlFactory_hover_period_tick_main_json);B.createMarkerHtmlFactory("hover_default","factory_hover_tick_sub_json",htmlFactory_hover_tick_sub_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_title",htmlFactory_infowin_title_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_period_title",htmlFactory_infowin_period_title_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_imglist",htmlFactory_infowin_imglist_json);B.createMarkerHtmlFactory("hover_default","factory_hover_jobcom_tick_main_json",htmlFactory_hover_jobcom_tick_main_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_jobcom_contact",htmlFactory_infowin_jobcom_contact_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_client_contact",htmlFactory_infowin_client_contact_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_cls_contact",htmlFactory_infowin_cls_contact_json);B.createMarkerHtmlFactory("hover_default","factory_hover_cls_tick_main_json",htmlFactory_hover_cls_tick_main_json);B.createMarkerHtmlFactory("hover_default","factory_hover_cls_acomo_tick_main_json",htmlFactory_hover_cls_acomo_tick_main_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_cls_acomo_title",htmlFactory_infowin_cls_acomo_title_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_cls_sale_title",htmlFactory_infowin_cls_sale_title_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_cls_service_title",htmlFactory_infowin_cls_service_title_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_cls_friends_title",htmlFactory_infowin_cls_friends_title_json);B.createMarkerHtmlFactory("hover_default","factory_hover_phonebook_json",htmlFactory_hover_phonebook_json);B.createMarkerHtmlFactory("infowin_scroll","factory_infowin_phonebook",htmlFactory_infowin_phonebook_json);B.createMarkerHtmlFactory("hover_default","factory_hover_phonebook_attr_json",htmlFactory_hover_phonebook_attr_json)};function htmlFactory_classname(A){return obj_jmap2.getLangMes("classname_"+A)}function htmlFactory_add_title(A){return"<div><b>"+A.title+"</b></div>"}function htmlFactory_add_day(B){var A="";if(B.day){A+="<font color=blue>"+B.day+"</font>"}return A}function htmlFactory_add_day_period(B){var A="";if(B.day_from&&B.day_to){A+="<font color=blue>"+B.day_from+" - "+B.day_to+"</font>"}return A}function htmlFactory_add_classname(B){var A="";if(B.bool_show_classname){A+=" "+htmlFactory_classname(B.classname)}return A}function htmlFactory_add_jamsweb(B){var A="";if(B.bool_show_jamsweb){A+=" <a href='"+B.url_jamsweb+"' target=_blank>"+B.name_jamsweb+"</a>"}return A}function htmlFactory_add_url_rec(B){var A="";if(B.bool_show_url_rec){A+="<div><a href='"+B.url_rec+"' target='_top'>&gt;&gt;"+obj_jmap2.getLangMes("showdetail")+"</a></div>"}return A}function htmlFactory_add_addmemo(B,C){var A="";C=C?C:"left";if(B.bool_show_addmemo){A+="<div align="+C+'><a href="javascript:void();" onClick="'+B.url_addmemo+';return false;">&gt;&gt;'+B.img_addmemo+obj_jmap2.getLangMes("addmemo")+"</a></div>"}return A}function htmlFactory_default(B){var A=B.shift();return A}function htmlFactory_hover_tick_main_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_classname(C);B+="</div>";B+=htmlFactory_add_title(C);B+=htmlFactory_add_url_rec(C);B+=htmlFactory_add_addmemo(C);return B}function htmlFactory_hover_period_tick_main_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day_period(C);B+=htmlFactory_add_classname(C);B+="</div>";B+=htmlFactory_add_title(C);B+=htmlFactory_add_url_rec(C);B+=htmlFactory_add_addmemo(C);return B}function htmlFactory_hover_tick_sub_json(A){var C=A.shift();var B="";B+=C.title;if(C.imgtag){B+="<BR>";B+=C.imgtag}return B}function htmlFactory_infowin_title_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_classname(C);B+=htmlFactory_add_jamsweb(C);B+="</div>";B+=htmlFactory_add_addmemo(C,"right");B+=htmlFactory_add_title(C);B+="<hr>";B+=C.detail;return B}function htmlFactory_infowin_period_title_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day_period(C);B+=htmlFactory_add_classname(C);B+=htmlFactory_add_jamsweb(C);B+="</div>";B+=htmlFactory_add_addmemo(C,"right");B+=htmlFactory_add_title(C);B+="<hr>";B+=C.detail;return B}function htmlFactory_infowin_imglist_json(A){var E=A.shift();var C="";if(E.length>0){for(var B=0;B<E.length;B++){var D=E[B];if(B>0){C+="<hr>"}if(D.title){C+="<div><b>"+D.title+"</b></div>"}C+="<div>"+D.imgtag+"</div>"}}return C}function htmlFactory_add_type_cls(A){return" "+obj_jmap2.getLangMes(A.type_cls)}function htmlFactory_infowin_cls_contact_json(A){var C=A.shift();C.langmes_sendmail=obj_jmap2.getLangMes("sendmail");var B="<table><tr><td><b>Name:</b></td><td>${contact_name}</td></tr><?js if(contact_tel){ ?>	<tr><td><b>Tel:</b></td><td>${contact_tel}</td></tr><?js } ?><?js if(contact_email){ ?>	<tr><td><b>Email:</b></td>	<?js if(bool_hidden_mail){ ?>		<td><a href='${url_sendmail}' target=_blank>${langmes_sendmail}</a></td>	<?js }else{ ?>		<td><a href='${url_sendmail}' target=_blank>${contact_email}</a></td>	<?js } ?>	</tr><?js } ?><tr><td><b>Address:</b></td><td>${suburb} ${state} ${postcode}</a></td></tr></table>";return Shotenjin.render(B,C)}function htmlFactory_hover_cls_tick_main_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_type_cls(C);B+="</div>";B+=htmlFactory_add_title(C);B+=htmlFactory_add_url_rec(C);B+=htmlFactory_add_addmemo(C);return B}function htmlFactory_add_acomo_type_room_img(D){var B="";B+="<table><tr><td nowrap>";for(var A=0;A<D.loop_type_room_img.length;A++){var C=D.loop_type_room_img[A];B+=C.imgtag}B+="</td><td class=big1><font color=red><b>";B+="$"+D.rent;B+="</td></tr></table>";return B}function htmlFactory_infowin_cls_acomo_title_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_classname(C);B+=htmlFactory_add_jamsweb(C);B+="</div>";B+=htmlFactory_add_addmemo(C,"right");B+=htmlFactory_add_title(C);B+="<hr>";B+=htmlFactory_add_acomo_type_room_img(C);B+=C.detail;return B}function htmlFactory_hover_cls_acomo_tick_main_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_type_cls(C);B+="</div>";B+=htmlFactory_add_acomo_type_room_img(C);B+=htmlFactory_add_title(C);B+=htmlFactory_add_url_rec(C);B+=htmlFactory_add_addmemo(C);return B}function htmlFactory_add_sale_type_sale_img(D){var B="";B+="<table><tr><td nowrap>";for(var A=0;A<D.loop_type_sale_img.length;A++){var C=D.loop_type_sale_img[A];if(C.bool_type_other){B+=C.title}else{B+=C.imgtag}}B+="</td></tr></table>";return B}function htmlFactory_infowin_cls_sale_title_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_classname(C);B+=htmlFactory_add_jamsweb(C);B+="</div>";B+=htmlFactory_add_addmemo(C,"right");B+=htmlFactory_add_title(C);B+="<hr>";B+=htmlFactory_add_sale_type_sale_img(C);B+=C.detail;return B}function htmlFactory_add_cls_type_service(D){var B="";B+="<table><tr><td nowrap>";for(var A=0;A<D.loop_type_service.length;A++){var C=D.loop_type_service[A];B+=C.name+" "}B+="</td></tr></table>";return B}function htmlFactory_infowin_cls_service_title_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_classname(C);B+=htmlFactory_add_jamsweb(C);B+="</div>";B+=htmlFactory_add_addmemo(C,"right");B+=htmlFactory_add_title(C);B+="<hr>";B+=htmlFactory_add_cls_type_service(C);B+=C.detail;return B}function htmlFactory_add_cls_type_friends(D){var B="";B+="<table><tr><td nowrap>";for(var A=0;A<D.loop_type_friends.length;A++){var C=D.loop_type_friends[A];B+=C.name+" "}B+="</td></tr></table>";return B}function htmlFactory_infowin_cls_friends_title_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);B+=htmlFactory_add_classname(C);B+=htmlFactory_add_jamsweb(C);B+="</div>";B+=htmlFactory_add_addmemo(C,"right");B+=htmlFactory_add_title(C);B+="<hr>";B+=htmlFactory_add_cls_type_friends(C);B+=C.detail;return B}function htmlFactory_hover_phonebook_json(A){var C=A.shift();var B="";B+=htmlFactory_phonebook_title(C);B+=htmlFactory_phonebook_detail(C);B+=htmlFactory_phonebook_titleimg(C);B+=htmlFactory_phonebook_attr(C);return B}function htmlFactory_infowin_phonebook_json(A){var C=A.shift();var B="";B+=htmlFactory_phonebook_title(C);B+=htmlFactory_phonebook_detail(C);B+=htmlFactory_phonebook_titleimg(C);B+=htmlFactory_phonebook_attr(C);return B}function htmlFactory_hover_phonebook_attr_json(A){var D=A.shift();var C="";C+="<div><b>"+D.title_parent+"</b></div>";var B=new Array();if(D.title){B.push(D.title)}if(D.fax){B.push(D.fax)}if(D.email){B.push(D.email)}if(D.web){B.push(D.web)}if(D.address){B.push(D.address)}if(D.tel){B.push(D.tel)}C+="<div>"+B.join(" ")+"</div>";return C}function htmlFactory_phonebook_titleimg(B){var A="";if(B.bool_show_titleimg){A+="<div>"+B.titleimg+"</div>"}return A}function htmlFactory_phonebook_title(B){var A="";A+=htmlFactory_add_title(B);if(B.bool_show_title_j){A+="<div>"+B.title_j+"</div>"}return A}function htmlFactory_phonebook_detail(B){var A="";if(B.bool_show_detail){A+="<table cellpadding=2 cellspacing=0>";if(B.tel){A+="<tr><td>TEL:</td><td>"+B.tel+"</td></tr>"}if(B.fax){A+="<tr><td>FAX:</td><td>"+B.fax+"</td></tr>"}if(B.web){A+="<tr><td>WEB:</td><td><a href='http://"+B.web+"' target=_blank>"+B.web+"</a></td></tr>"}if(B.email){A+="<tr><td>EMAIL:</td><td><a href='mailto:"+B.email+"'>"+B.email+"</a></td></tr>"}if(B.address){A+="<tr><td>ADR:</td><td>"+B.address+"</td></tr>"}if(B.opening_hour){A+="<tr><td>OPH:</td><td>"+B.opening_hour+"</td></tr>"}A+="</table>"}return A}function htmlFactory_phonebook_attr(D){var C="";if(D.bool_exists_attr){for(var B=0;B<D.loop_attr.length;B++){var E=D.loop_attr[B];var A=new Array();if(E.title){A.push(E.title)}if(E.fax){A.push(E.fax)}if(E.email){A.push(E.email)}if(E.web){A.push(E.web)}if(E.address){A.push(E.address)}if(E.tel){A.push(E.tel)}C+="<div>"+A.join(" ")+"</div>"}}return C}function htmlFactory_infowin_client_contact_json(A){var C=A.shift();var B="<div><font color=#003399 class=big1><b>${company_name}</b></font></div><?js if(subtitle){ ?>	<div><b><font color='#993300'>${subtitle}</font></b></div><?js } ?><table><?js if(url_jamsweb){ ?>	<tr>	<td><b>Jams Web:</b></td>	<td><a href='${url_jamsweb}' target=_blank>${url_jamsweb}</a></td>	</tr><?js } ?><?js if(contact_tel){ ?>	<tr>	<td><b>Tel:</b></td>	<td>${'contact_tel'}</td>	</tr><?js } ?><?js if(contact_email){ ?>	<tr>	<td nowrap><font class=small><b>Contact Email:</b></font></td>	<td><a href='${url_sendmail}' target=_blank>${contact_email}</a></td>	</tr><?js } ?><?js if(contact_web){ ?>	<tr>	<td nowrap><b>Official Web:</b></td>	<td><a href='http://${contact_web}' target=_blank>http://${contact_web}</a></td>	</tr><?js } ?><tr><td><b>Address:</b></td><td>${address_str}</td></tr></table><?js if(bool_show_titleimg){ ?>	<div>${titleimg}</div><?js } ?>";return Shotenjin.render(B,C)}function htmlFactory_hover_jobcom_tick_main_json(A){var C=A.shift();var B="";B+="<div>";B+=htmlFactory_add_day(C);if(C.type_cls=="job"){B+="<b>"+obj_jmap2.getLangMes("job")+"</b>"}else{B+="<b>"+obj_jmap2.getLangMes("job_urgent")+"</b>"}B+="</div>";B+="<table bgcolor='#cccccc' cellpadding=2 cellspacing=1><tr><td bgcolor='#f0f0f0'>";B+="<div><font color=#003366>"+C.company_name+"</font></div>";if(C.bool_show_cnt_job){B+="<div><a href='"+C.url_rec_joblist+"' target='_top'>&gt;&gt;"+C.cnt_job+obj_jmap2.getLangMes("cnt_job")+":"+obj_jmap2.getLangMes("showlist")+"</a></div>"}B+="</td></tr></table>";B+=htmlFactory_add_title(C);B+=htmlFactory_add_url_rec(C);B+=htmlFactory_add_addmemo(C);if(C.bool_show_titleimg){B+="<div>"+C.titleimg+"</div>"}return B}function htmlFactory_infowin_jobcom_contact_json(A){var C=A.shift();C.langmes_sendmail=obj_jmap2.getLangMes("sendmail");var B="<font color=#003399 class=big1><b>${company_name}</b></font><table><tr><td><b>Contact:</b></td><td>${contact_name}</td></tr><?js if(contact_tel){ ?>	<tr><td><b>Tel:</b></td><td>${contact_tel}</td></tr><?js } ?><?js if(contact_email){ ?>	<tr><td nowrap><font class=small><b>Contact Email:</b></font></td>	<?js if(bool_hidden_mail){ ?>		<td><a href='{url_sendmail}' target=_blank>${langmes_sendmail}</a></td>	<?js }else{ ?>		<td><a href='${url_sendmail}' target=_blank>${contact_email}</a></td>	<?js } ?>	</tr><?js } ?><?js if(company_email){ ?>	<tr><td nowrap><font class=small><b>Company Email:</b></font></td>	<td><a href='mailto:${company_email}' target=_blank>${company_email}</a></td></tr><?js } ?><tr><td><b>Address:</b></td><td>${street_no} ${street_name} ${suburb} ${state} ${postcode}</a></td></tr></table><?js if(bool_show_titleimg){ ?>	<div>${titleimg}</div><?js } ?>";return Shotenjin.render(B,C)}JMap2.prototype.construct_Post_Ticker_Main=function(A,E,D){if(!this.boolReadyMap(A,E)){return }var B=this.getGMapFrame(A);var C=this.construct_JMarker(A,E,D);this.getTicker().addType(D.marker_type_id,C,A,E);this.getTicker().initTicker(D.marker_type_id,D.bool_overlay);return C};JMap2.prototype.construct_Post_Ticker_Sub=function(A,E,D){if(!this.boolReadyMap(A,E)){return }var B=this.getGMapFrame(A);var C=this.construct_JMarker(A,E,D);if(this.getLiner()){C.setTrigger("click",B.GEvent.callbackArgs(this.getLiner(),this.getLiner().onClick_JInfoMarker,C.obj_marker))}if(this.getPolygoner()){C.setTrigger("click",B.GEvent.callbackArgs(this.getPolygoner(),this.getPolygoner().onClick_JInfoMarker,C.obj_marker))}this.getTicker().addType(D.marker_type_id+"_"+D.marker_uniq_id,C,A,E);this.getTicker().initTicker(D.marker_type_id+"_"+D.marker_uniq_id,D.bool_overlay);return C};JMap2.prototype.construct_JMarker=function(B,I,A){if(!this.boolReadyMap(B,I)){return }var F=this.getGMapFrame(B);var J=A.point?A.point:F.getHideLatLngPoint();var D=A.marker_user_id;var K=A.marker_type_id;var G=A.marker_uniq_id;var M=this.getJMarker(B,I,D,K,G);if(M==null){var C=new F.JMarkerOpts(J,A.type_jmarker);C.setBoolDraggable(A.bool_draggable);C.setBoolDblClickZoom(A.bool_dblClickZoom);C.setBoolShiftZoom(A.bool_shiftZoom);if(A.bool_hover){C.setObjHoverHtml(new F.HoverHtml(A.hover_factory_id,A.bool_hover_closer,A.hover_color_border?A.hover_color_border:"#cc0000",A.hover_color_inner?A.hover_color_inner:"#ffffdd",A.bool_infowin,A.bool_hover_json?A.hover_data_json:A.hover_title))}if(A.type_jmarker=="icon"){C.setTypeJIcon(A.type_jicon);C.setInfoWinMaxWidth(A.infoWinMaxWidth?A.infoWinMaxWidth:300);if(A.bool_infowin){for(var E=0;E<A.list_infowin.length;E++){var H=A.list_infowin[E];C.addInfoWinHtmlObjList(new F.InfoWinHtml(H.factory_id,H.title,H.maxWidth?H.maxWidth:250,H.maxHeight?H.maxHeight:80,H.bool_json?H.data_json:H.detail))}}}if(A.type_jmarker=="info"){var L=A.type_ar?A.type_ar:"down";C.setTypeArrow(L);C.setObjMarkerHtml(new F.MarkerHtml(A.factory_id,A.bool_closer,L,A.marker_title))}M=this.addJMarker(C,B,I,D,K,G);if(A.bool_overlay){M.addOverlay()}if(A.bool_hover){M.setTrigger("mouseover",F.GEvent.callbackArgs(this,this.hideHoverAll,B,I,D,K,G));M.startEvent("mouseover")}}else{M.show()}return M};JMap2.prototype.construct_JLine=function(A,F,E){if(!this.boolReadyMap(A,F)){return }var B=this.getGMapFrame(A);var H=E.jline_user_id;var D=E.jline_type_id;var G=E.jline_uniq_id;var C=this.addJLine(E,A,F,H,D,G);if(E.bool_overlay){C.addOverlay()}return C};JMap2.prototype.construct_JPolygon=function(B,G,F){if(!this.boolReadyMap(B,G)){return }var E=this.getGMapFrame(B);var D=F.jpolygon_user_id;var A=F.jpolygon_type_id;var C=F.jpolygon_uniq_id;var H=this.addJPolygon(F,B,G,D,A,C);if(F.bool_overlay){H.addOverlay()}return H};JMap2.prototype.adjustIniZoom=function(C,G,E){var H=this.getGMapObj(C,G);if(H.getZoom()==H.getCurrentMapType().getMaximumResolution()){var D=100*1852;var B=E.getCenter();var I=B.lat()-(1000/D);var K=B.lng()-(1000/D);var J=B.lat()+(1000/D);var A=B.lng()+(1000/D);var F=this.getGMapFrame(C);E=new F.GLatLngBounds(new F.GLatLng(I,K),new F.GLatLng(J,A));this.moveToBound(C,G,E);this.rePosHoverAll(C,G)}return E};JMap2.prototype.setTickBasearea=function(E,D,B){var A=xGetElementById(E);if(A){var C=xCreateDiv();C.style.position="absolute";setDivSizeWH(C,12,20);setDivPosXY(C,D-5,B-20);xInnerHtml(C,"<img src='/img_gmap/icon/cls_tick_basearea.gif' width=12 height=20>");A.appendChild(C)}};JMap2.prototype.showTickViewarea=function(B,E,C,D,A){if(!this.boolReadyMap(B,E)){return }this.hideMarkerAll(B,E,null,D);this.showMarker(B,E,C,D,A)};JMap2.prototype.go_GMapBound=function(B,G,E,C){var F=this.getGMapObj(B,G);var A=F.getBounds().getNorthEast();var D=F.getBounds().getSouthWest();E+="/search-clear";E+="/search_req_bool_day_bool_active-on";E+="/search_req_bound-on";E+="/ne_lat-"+A.lat();E+="/ne_lng-"+A.lng();E+="/sw_lat-"+D.lat();E+="/sw_lng-"+D.lng();if(C){E+=C}parent.location.href=E};var obj_jmap2=new JMap2();obj_jmap2.setGMapFrame("main",window);var LangTbl_jnearlyinfo={jp:{searching:"検索中..",cancel_button:"<input type='button' value='キャンセル' onClick='if(confirm(\"本当にキャンセルしますか？\")){obj_jnearly.cancel();}'>",last:""},en:{searching:"Searching...",cancel_button:"<input type='button' value='CANCEL' onClick='if(confirm(\"You really want to cancel?\")){obj_jnearly.cancel();}'>",last:""}};function JNearlyInfo(B,A){this.addLangMesTbl(LangTbl_jnearlyinfo);this.lang=B?B:"en";this.bool_searching=false;this.cur_gmap_frame_id="";this.cur_classname="";this.url=A;this.opts=new Array()}JNearlyInfo.prototype=new baseLang();JNearlyInfo.prototype.getOptsKey=function(A,B){return A+B};JNearlyInfo.prototype.getCurOpts=function(){return this.getOpts(this.cur_gmap_frame_id,this.cur_classname)};JNearlyInfo.prototype.getOpts=function(A,B){return this.opts[this.getOptsKey(A,B)]};JNearlyInfo.prototype.init=function(){this.divResult=xCreateDiv();hideDivBlock(this.divResult);var A=xGetElementById("pHover");if(A){A.appendChild(this.divResult)}};JNearlyInfo.prototype.initSearch=function(B,G,F,E,C,A){var D=new Object;D.bool_init=true;D.bool_search=false;D.gmap_frame_id=B;D.gmap_obj_id=G;D.classname=F;D.lat=E;D.lng=C;D.radius=A;D.divSearch=xGetElementById("container_nearlyinfo_"+B);xInnerHtml(D.divSearch,"<img src='/img_jams/loading/small.gif'>"+this.getLangMes("searching")+this.getLangMes("cancel_button"));this.opts[this.getOptsKey(B,F)]=D};JNearlyInfo.prototype.getIFrameHtml=function(A){return"<div><IFRAME src='"+A+"'></IFRAME></div>"};JNearlyInfo.prototype.showContainerSearch=function(A,C){var B=this.getOpts(A,C);showDivBlock(B.divSearch)};JNearlyInfo.prototype.hideContainerSearch=function(A,C){var B=this.getOpts(A,C);hideDivBlock(B.divSearch)};JNearlyInfo.prototype.chkSearch=function(A,C){var B=this.getOpts(A,C);if(!B){return false}if(!B.bool_init){return false}return B.bool_search};JNearlyInfo.prototype.search=function(A,F,B){if(this.bool_searching){return }var D=this.getOpts(A,F);if(!D){return }if(!D.bool_init){return }if(D.bool_search){return }this.cur_gmap_frame_id=A;this.cur_classname=F;this.bool_searching=true;this.showContainerSearch(A,F);var C=this.url;C+="?gmap_frame_id="+A;C+="&classname="+F;C+="&search_req_circle=on";C+="&search_val_circle_lat="+D.lat;C+="&search_val_circle_lng="+D.lng;C+="&search_val_circle_radius="+D.radius;if(B){C+=B}xInnerHtml(this.divResult,this.getIFrameHtml(C));var E=new JKL.ParseXML.DOM(getAccUrl());E.async(this.acc);E.parse()};JNearlyInfo.prototype.acc=function(){};JNearlyInfo.prototype.cancel=function(){if(this.bool_searching){var A=this.getCurOpts();xInnerHtml(this.divResult,this.getIFrameHtml("/null.htm"));this.hideContainerSearch(A.gmap_frame_id,A.classname);this.bool_searching=false}};JNearlyInfo.prototype.finish=function(){if(this.bool_searching){var A=this.getCurOpts();this.hideContainerSearch(A.gmap_frame_id,A.classname);A.bool_search=true;this.bool_searching=false}};