function AutoComplete(a,b){if("undefined"==typeof EventDispatcher)return void alert("EventDispatcher has not been loaded !");if("undefined"==typeof JSONP)return void alert("JSON has not been loaded !");if("undefined"==typeof Template)return void alert("Template has not been loaded !");EventDispatcher.implement(this);var c;if(c="string"==typeof a?document.getElementById(a):a){if(this.inputForm=c,c.autocomplete="off",this.maxRow=AutoComplete.DEFAULT_NUM,"number"==typeof b&&(this.maxRow=b),b&&"number"==typeof b.maxRow&&(this.maxRow=b.maxRow),this.core=AutoComplete.DEFAULT_CORE,b&&"string"==typeof b.core&&(this.core=b.core),this.classNameCompleteDiv=AutoComplete.DEFAULT_CLASSNAME_COMPLETEDIV,b&&"string"==typeof b.classNameCompleteDiv&&(this.classNameCompleteDiv=b.classNameCompleteDiv),this.classNameZebra=AutoComplete.DEFAULT_CLASSNAME_ZEBRA,b&&"string"==typeof b.classNameZebra&&(this.classNameZebra=b.classNameZebra),this.classNameListItemSelected=AutoComplete.DEFAULT_CLASSNAME_LISTITEM_SELECTED,b&&"string"==typeof b.classNameListItemSelected&&(this.classNameListItemSelected=b.classNameListItemSelected),this.classNameListItemL=AutoComplete.DEFAULT_CLASSNAME_LISTITEM_L,b&&"string"==typeof b.classNameListItemL&&(this.classNameListItemL=b.classNameListItemL),this.classNameListItemR=AutoComplete.DEFAULT_CLASSNAME_LISTITEM_R,b&&"string"==typeof b.classNameListItemR&&(this.classNameListItemR=b.classNameListItemR),this.idNameContainer=AutoComplete.DEFAULT_IDNAME_CONTAINER,b&&"string"==typeof b.idNameContainer&&(this.idNameContainer=b.idNameContainer),this.idNameName=AutoComplete.DEFAULT_IDNAME_NAME,b&&"string"==typeof b.idNameName&&(this.idNameName=b.idNameName),this.idNameType=AutoComplete.DEFAULT_IDNAME_TYPE,b&&"string"==typeof b.idNameType&&(this.idNameType=b.idNameType),this.timeOutMS=AutoComplete.DEFAULT_TIMEOUT_MS,b&&"number"==typeof b.timeOutMS&&(this.timeOutMS=b.timeOutMS),this.requestURL=AutoComplete.DEFAULT_REQUEST_URL,b&&"string"==typeof b.requestURL&&(this.requestURL=b.requestURL),this.requestURLTag=AutoComplete.DEFAULT_REQUEST_URL_TAG,b&&void 0!==b.requestURLTag&&(this.requestURLTag=b.requestURLTag),this.getRequestURL=new Template(this.requestURLTag).compile(this.requestURL),this.inputboxWatchInterval=AutoComplete.DEFAULT_INPUTBOX_WATCH_INTERVAL,b&&"number"==typeof b.inputboxWatchInterval&&(this.inputboxWatchInterval=b.inputboxWatchInterval),this.sqlKey=AutoComplete.DEFAULT_SQL_KEY,b&&"string"==typeof b.sqlKey&&(this.sqlKey=b.sqlKey),this.divWidthBuffer=AutoComplete.DEFAULT_DIV_WIDTH_BUFFER,b&&"number"==typeof b.divWidthBuffer&&(this.divWidthBuffer=b.divWidthBuffer),this.parseFunction=null,b&&"function"==typeof b.parseFunction&&(this.parseFunction=b.parseFunction),b&&"function"==typeof b.submitCallback&&this.addEventListener("submit",b.submitCallback),this.offsetX=0,b&&"number"==typeof b.offsetX&&(this.offsetX=b.offsetX),this.offsetY=0,b&&"number"==typeof b.offsetY&&(this.offsetY=b.offsetY),this.byteWidth=5.25,b&&"number"==typeof b.byteWidth&&(this.byteWidth=b.byteWidth),b&&b.loadCSS&&AutoComplete.defineCSSLoader())for(var d=0;d/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\r\n|\n/g,"
")},MAPION.lang.Snippets.escapeHTML2=function(a){return MAPION.lang.Snippets.escapeHTML2.div||(MAPION.lang.Snippets.escapeHTML2.div=document.createElement("div"),MAPION.lang.Snippets.escapeHTML2.text=document.createTextNode(""),MAPION.lang.Snippets.escapeHTML2.div.appendChild(MAPION.lang.Snippets.escapeHTML2.text)),MAPION.lang.Snippets.escapeHTML2.text.data=a,MAPION.lang.Snippets.escapeHTML2.div.innerHTML},MAPION.lang.Snippets.escapeHTML2.div=null,MAPION.lang.Snippets.escapeHTML=MAPION.lang.Snippets.escapeHTML1,MAPION.lang.Snippets.parameterToHash=function(a,b){void 0===a&&(a=location.search);for(var c=a.replace(/^\?/g,"").replace(/\s/g,"&").replace(/&+/g,"&").match(/[^&]*/g),d={},e=0,f=c.length;ea},next:function(){return b[a++]},remove:function(){b[a]=null}}},get:function(a){for(var b=this.iterator(),c=[];b.hasNext();){var d=b.next();d&&null!==d[a]&&void 0!==d[a]&&c.push(d[a])}return MAPION.lang.Iterable(c)},each:function(a){"function"!=typeof a&&(a=function(){});for(var b=this.iterator(),c=[];b.hasNext();){var d=b.next(),e=a(d);null!==e&&void 0!==e?c.push(e):c.push(d)}return MAPION.lang.Iterable(c)},asArray:function(){for(var a=this.iterator(),b=[];a.hasNext();)b.push(a.next());return b}}},MAPION.lang.Iterable.REV="$Rev: 1306 $";try{MAPION.Package.register("MAPION.lang","Iterable")}catch(a){}window.MAPION=window.MAPION||{},MAPION.dom=MAPION.dom||{},MAPION.dom.DomHelper=function(){},MAPION.dom.DomHelper.isNodeElement=function(a){return!!(a&&a.nodeType&&a.nodeName)},MAPION.dom.DomHelper.retrieveCommentNodeData=function(a){if(!MAPION.dom.DomHelper.isNodeElement(a)||!a.childNodes)return"";for(var b=0,c=[],d=a.childNodes.length;b("+this.elm.options[b].innerHTML+","+this.elm.options[b].value+")<"):a.push("("+this.elm.options[b].innerHTML+","+this.elm.options[b].value+")");return a.join(", ")},MAPION.dom.SelectWrapper.prototype.add=function(a,b){this.elm.options[this.elm.length]=new Option(a,b)},MAPION.dom.SelectWrapper.prototype.setDataProvider=function(a,b,c){if(a instanceof Array){b=b||"label",c=c||"value";var d,e;this.elm.selectedIndex>=0&&(d=this.elm.options[this.elm.selectedIndex].innerHTML,e=this.elm.options[this.elm.selectedIndex].value),this.clear();for(var f=0,g=a.length;fthis.elm.length||c<0)&&(c=this.elm.length);for(var d=this.elm.length;d>c;){var e=this.elm.options[d-1].selected;this.elm.options[d]=new Option(this.elm.options[d-1].innerHTML,this.elm.options[d-1].value),this.elm.options[d].selected=e,d--}this.elm.options[c]=new Option(a,b)},MAPION.dom.SelectWrapper.prototype.remove=function(a,b){for(var c=0,d=this.elm.length;c=this.elm.length||(this.elm.options[a]=null))},MAPION.dom.SelectWrapper.prototype.clear=function(){for(;this.elm.length;)this.elm.options[this.elm.length-1]=null},MAPION.dom.SelectWrapper.prototype.select=function(a,b){for(var c=0,d=this.elm.length;cthis.elm.length||a<0||(this.elm.options[parseInt(a,10)].selected=!0)},MAPION.dom.SelectWrapper.REV="$Rev: 1313 $";try{MAPION.Package.register("MAPION.dom","SelectWrapper")}catch(a){}window.MAPION=window.MAPION||{},MAPION.event=MAPION.event||{},MAPION.event.EventDispatcher=function(){},MAPION.event.EventDispatcher.REV="$Rev: 1035 $",MAPION.event.EventDispatcher.implement=function(a){return a.__ed_eventContainer=new Object,a.addEventListener=this._addEventListener,a.removeEventListener=this._removeEventListener,a.dispatchEvent=this._dispatchEvent,a},MAPION.event.EventDispatcher.initialize=MAPION.event.EventDispatcher.implement,MAPION.event.EventDispatcher._addEventListener=function(a,b){return a&&b?("object"!=typeof b&&"function"!=typeof b||(null==this.__ed_eventContainer[a]&&(this.__ed_eventContainer[a]=new Array),this.removeEventListener(a,b),this.__ed_eventContainer[a].push(b)),this):this},MAPION.event.EventDispatcher._removeEventListener=function(a,b){if(!a||!b)return this;var c=this.__ed_eventContainer[a];if(void 0===c)return this;for(var d=c.length,e=0;e/g,functionRegExp=/(\w+?)\((.+)\)/g;retrieveElements(domContext);for(var dataSourceElementExpressions=[],resolvedExpressionsHTML=[],i=0,l=hasExpressionNodes.length;i'),resolvedExpressionsHTML[resolvedExpressionsHTML.length]=sourceEvalString,resolvedExpressionsHTML[resolvedExpressionsHTML.length]=sourceProp,resolvedExpressionsHTML[resolvedExpressionsHTML.length]=targetId,resolvedExpressionsHTML[resolvedExpressionsHTML.length]=token,resolvedExpressionsHTML[resolvedExpressionsHTML.length]=func}node.innerHTML=html}for(var delimiter="_d_l_m_t_",resolvedExpressionsValues={},i=0,l=hasExpressionInputs.length;i1)throw new Error("MAPION.formatter.NumberFormatter::format() Illegal argumented error...");var d=MAPION.lang.Snippets.reverseString(parseInt(a,10)+""),e=(a+"").split(".")[1]||"",f=b.split("."),g=MAPION.lang.Snippets.reverseString(f[0]),h=f[1]||"";g=g.replace(/0/g,"_0_");for(var i=0,j=d.length;i=1e3}),d(a)?MAPION.formatter.NumberFormatter.format(a/1e3,c):MAPION.formatter.NumberFormatter.format(a,b)},MAPION.formatter.NumberFormatter.REV="$Rev: 1257 $";try{MAPION.Package.register("MAPION.formatter","NumberFormatter")}catch(a){}window.MAPION=window.MAPION||{},MAPION.net=MAPION.net||{},MAPION.net.JSON=function(param){if(void 0===MAPION.event.EventDispatcher)return void alert("EventDispatcher has not been loaded !");MAPION.event.EventDispatcher.implement(this),this.numId=MAPION.net.JSON.scriptCounter,this.responseData=null;var obj=this;if(MAPION.net.JSON.JSONCALLBACK[this.numId]=function(){obj.clearTimeoutFunc(),obj.responseData=arguments,obj.canceled||obj.dispatchEvent(new MAPION.event.EventObject("onload",obj))},this.scriptId="Jscript2Id"+MAPION.net.JSON.scriptCounter++,this.callbackParamName=MAPION.net.JSON.defaultCallbackParamName,param&¶m.callbackFuncName&¶m.callbackFuncName.toString()){if(void 0!==window[param.callbackFuncName.toString()])throw new Error("window."+param.callbackFuncName.toString()+" is alread declared...");this.callbackFuncName=param.callbackFuncName.toString()}else{var d=new Date;this.callbackFuncName="JSONCallback"+this.scriptId+d.getTime()}var makeCallback=this.callbackFuncName+"=function(){MAPION.net.JSON.JSONCALLBACK["+this.numId+"].apply(null,arguments);}";eval(makeCallback),this.timeOutMS=5e3,this.noCacheIE=!1,this.charset="utf-8",param&&(param.fullUrl&&(this.fullUrl=param.fullUrl),param.callbackParamName&&(this.callbackParamName=param.callbackParamName),param.charset&&(this.charset=param.charset),param.timeOutMS&&(this.timeOutMS=+param.timeOutMS),param.noCacheIE&&(this.noCacheIE=!!param.noCacheIE)),this.headLoc=document.getElementsByTagName("head").item(0),this.timerID=null,this.canceled=!1},MAPION.net.JSON.REV="$Rev: 1766 $",MAPION.net.JSON.JSONCALLBACK=new Array,MAPION.net.JSON.prototype.setTimeoutFunc=function(a,b){for(var c=this,d=[],e=2;e"+typeof this.fullUrl);if("string"!=typeof this.callbackParamName)return void alert(this.id+"\ncallbackParamName is not string!\ntype=>"+typeof this.callbackParamName);this.fullUrl.match(/[?|&]([^=]+)=\?/)?(this.callbackParamName=RegExp.$1,this.fullUrl=this.fullUrl.replace(this.callbackParamName+"=?",this.callbackParamName+"="+this.callbackFuncName)):-1!=this.fullUrl.indexOf(this.callbackParamName)?(this.fullUrl.match(new RegExp(".*("+this.callbackParamName+"=.*)")),-1!=RegExp.$1.indexOf("&")?this.fullUrl=this.fullUrl.replace(new RegExp(this.callbackParamName+"=.*&"),""):this.fullUrl=this.fullUrl.replace(new RegExp("&"+this.callbackParamName+"=.*"),""),this.fullUrl=this.fullUrl+(this.fullUrl.indexOf("?")>-1?"&":"?")+this.callbackParamName+"="+this.callbackFuncName):this.fullUrl=this.fullUrl+(this.fullUrl.indexOf("?")>-1?"&":"?")+this.callbackParamName+"="+this.callbackFuncName,this.clearTimeoutFunc(),this.removeScriptTag();var d=this;this.buildScriptTag(),this.setTimeoutFunc(function(){d.clearTimeoutFunc(),d.dispatchEvent(new MAPION.event.EventObject("onerror",d))},this.timeOutMS),this.canceled=!1,this.addScriptTag()},MAPION.net.JSON.prototype.cancel=function(){this.clearTimeoutFunc(),this.removeScriptTag(),this.canceled=!0},MAPION.net.JSONP=function(){},MAPION.net.JSONP=MAPION.net.JSON,MAPION.net.JSONP.REV="$Rev: 669 $";try{MAPION.Package.register("MAPION.net","JSONP")}catch(a){}window.MAPION=window.MAPION||{},MAPION.net=MAPION.net||{},MAPION.net.Ajax=function(a){if(void 0===MAPION.event.EventDispatcher)return void alert("EventDispatcher has not been loaded !");MAPION.event.EventDispatcher.implement(this),this.responseXML=null,this.responseText=null,this.id="XHRRequestId"+MAPION.net.Ajax.counter++,this.timerId=null,this.timeOutMS=5e3,this.httpobj=null,a&&(a.fullUrl&&(this.fullUrl=a.fullUrl),a.timeOutMS&&(this.timeOutMS=a.timeOutMS))},MAPION.net.Ajax.REV="$Rev: 1883 $",MAPION.net.Ajax.counter=0,MAPION.net.Ajax.getXMLHttp=function(){var a;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=null}}}return a},MAPION.net.Ajax.prototype.get=function(a){if(this.httpobj){var b=this;clearTimeout(this.timerId),this.timerId=null,this.httpobj.abort(),delete this.httpobj,this.httpobj=MAPION.net.Ajax.getXMLHttp()}else if(this.httpobj=MAPION.net.Ajax.getXMLHttp(),!this.httpobj)return void alert(this.id+"\nXMLHttpRequest is not available!");if(a&&(this.fullUrl=a),"string"!=typeof this.fullUrl)return void alert(this.id+"\nrequestURL is not string!\ntype=>"+typeof this.fullUrl);var b=this,c=this.httpobj;c.open("GET",this.fullUrl,!0),c.onreadystatechange=function(){try{4===c.readyState&&(window.clearTimeout(b.timerId),b.timerId=null,200===c.status||304===c.status?(b.responseXML=c.responseXML,b.responseText=c.responseText,b.dispatchEvent(new MAPION.event.EventObject("onload",b))):404===c.status&&b.dispatchEvent(new MAPION.event.EventObject("onerror",b)))}catch(a){b.dispatchEvent(new MAPION.event.EventObject("onerror",b))}},b.timerId=window.setTimeout(function(){window.clearTimeout(b.timerId),b.timerId=null,c.abort(),b.dispatchEvent(new MAPION.event.EventObject("onerror",b))},b.timeOutMS),c.send(null)},MAPION.net.Ajax.prototype.cancel=function(){this.httpobj&&this.httpobj.abort(),this.timerId&&(window.clearTimeout(this.timerId),this.timerId=null)};try{MAPION.Package.register("MAPION.net","Ajax")}catch(a){}window.MAPION=window.MAPION||{},MAPION.net=MAPION.net||{},MAPION.net.SolrMapper=function(a,b){var c=function(){if(this.config={searchPath:"http://www.mapion.co.jp/search/",callbackKey:"json.wrf",params:{key:"mapion",wt:"json"}},a&&"object"==typeof a&&(this.config.params=this.setParams(a)),void 0===MAPION.net.JSONP)alert("JSON has not been loaded!");else{var c=this.config.params.timeOutMS?this.config.params.timeOutMS:5e3;this.json=new MAPION.net.JSON({timeOutMS:c,callbackFuncName:b||null})}};return c.prototype=MAPION.net.SolrMapper.prototype,new c},MAPION.net.SolrMapper.REV="$Rev: 2101 $",MAPION.net.SolrMapper.prototype={setCore:function(a){return a&&(this.core=a),this},Local:function(a){return a&&(this.core=a+"/local"),this},Select:function(a){return a&&(this.core=a+"/select"),this},Ippatsu:function(){return this.core="ippatsu/select",this},Suggest:function(){return this.core="suggest/select",this},prevCbFunc:null,prevErrFunc:null,load:function(a,b,c){if(!this.core)return!1;var d=this.setParams(a),e=this.generateURL(this.core,d);return this.prevCbFunc&&this.json.removeEventListener("onload",this.prevCbFunc),this.prevErrFunc&&this.json.removeEventListener("onerror",this.prevErrFunc),b&&(this.prevCbFunc=function(a){b.apply(null,a.target.responseData)},this.json.addEventListener("onload",this.prevCbFunc)),c&&(this.prevErrFunc=c,this.json.addEventListener("onerror",c)),this.json.get(e,"utf-8",this.config.callbackKey),this.core="",this},callBackNameGenerate:function(){var a=new Date;return"_SMCB"+Math.floor(100*Math.random())+a.getTime()},setParams:function(a){var b=this.objectClone(this.config.params);if(a&&"object"==typeof a)for(var c in a)b[c]=a[c];return b},generateURL:function(a,b){var c=this.config.searchPath+a+"?";if(b&&"object"==typeof b){var d=[];for(var e in b)d.push(e+"="+b[e]);c+=d.join("&")}return c},objectClone:function(a){var b=function(){};return b.prototype=a,new b},getCondition:function(a,b,c){var d,e;if(!a||!b)return"";switch(a){case"hotpepper":e=b.length>0?this.genQueryObj(b):"";break;case"rentacar":e={taxonomy:"nfs_reserve"};break;case"station":e=null;break;case"nature":e={category1_code:a};break;case"qlife":e=b.length>0?this.genQueryObj(b,["emergency_flag","wordofmouth_num"]):"";break;case"photo":e=null;break;case"gogogs":e=b.length>0?this.genQueryObj(b,["flag_24h","flag_self"]):"";break;case"search":e=b.length>0?this.genQueryObj(b):"";break;default:e=b&&b.length>0?this.genQueryObj(b):{category1_code:a}}return d=this.generateQuery(e),c&&(d+=c),d},genQueryObj:function(a,b){var c={};if(b)for(var d=0;d0?c[c.length-1]:null;for(var h in a)if("object"==typeof a[h]){c.push(h.toLowerCase());var i=d(a[h]);if(i&&"object"==typeof i){var j=h.toLowerCase();if("and"==j||"or"==j)e+=i.join("+"+j.toUpperCase()+"+"),01?"("+c.join(a)+")":c.join(a)},plus:function(){return this._arrayJoin("+",arguments)},and:function(){return this._arrayJoin("+AND+",arguments)},or:function(){return this._arrayJoin("+OR+",arguments)}};try{MAPION.Package.register("MAPION.net","SolrMapper")}catch(a){}window.MAPION=window.MAPION||{},MAPION.net=MAPION.net||{},MAPION.net._JSONscriptRequest_=function(a,b,c){this.fullUrl=a,this.charset=null==b||""==b?"UTF-8":b,this.noCacheIE=c,this.headLoc=document.getElementsByTagName("head").item(0),this.scriptId="JscriptId"+MAPION.net._JSONscriptRequest_.scriptCounter++,this.timeoutMSec=null,this.timeoutFunc=null,this.timerID=null},MAPION.net._JSONscriptRequest_.REV="$Rev: 576 $",MAPION.net._JSONscriptRequest_.scriptCounter=1,MAPION.net._JSONscriptRequest_.prototype.setTimeoutFunc=function(a,b){for(var c=this,d=[],e=2;e0?this.invoke(this.queue.shift()):(this.invoker.cancel(),this.invoker.removeEventListener("onload",this.callback),this.invoker.removeEventListener("onerror",this.onerrorCallback),this.callback=null,this.onerrorCallback=null,this.invoker=null,this.loading=!1,this.dispatchEvent("loadingChanged"))},MAPION.net.HTTPService.prototype.parseExpression=function(source){function createObjectProperty(contextProp,path,targetProp,functionName,expOrigin){try{var evalTargetString;targetProp?evalTargetString="that.context."+contextProp+(path?"."+path:""):(evalTargetString="that.context",targetProp=contextProp);var targetRef=eval(evalTargetString),functionRef=null;if(functionName){var evalFunctionString="that.context."+functionName;functionRef=eval(evalFunctionString)}return{toString:function(){try{var a=targetRef[targetProp];return functionRef&&(a=functionRef.call(that.context,a)),"function"==typeof a?a():a.toString()}catch(a){throw new Error("Illegal expression : "+expOrigin)}}}}catch(a){throw new Error("Illegal expression : "+expOrigin)}}function getValue(a,b){var c,d=_d[a][b],e=[];switch(d.nodeName?(c=d,d=[c]):c=d[0],c.nodeName.toLowerCase()){case"input":case"textarea":for(var f=0,g=d.length;f-1&&e>s){a.push(source.substring(i,s));var exp=source.substring(s+sml,e),expOrigin=sm+exp+em,functionName=null;if(exp.match(functionRegExp)&&(functionName=RegExp.$1,exp=RegExp.$2),exp.match(sourceGetRegExp)){var contextProp=RegExp.$1,path=RegExp.$2,targetProp=RegExp.$3;contextProp===formNS?a.push(createFormValue(path.substring(1),targetProp,functionName,expOrigin)):a.push(createObjectProperty(contextProp,path,targetProp,functionName,expOrigin))}else a.push(createObjectProperty(exp,null,null,functionName,null));i=e+eml}else a.push(source.substring(i)),i=l;return a},MAPION.net.HTTPService.START_MARKER="{",MAPION.net.HTTPService.END_MARKER="}",MAPION.net.HTTPService.FORMBINDING_NAMESPACE="$F",MAPION.net.HTTPService.FORMBINDING_JOINT_STRING=",",MAPION.net.HTTPService.REV="$Rev: 1521 $";try{MAPION.Package.register("MAPION.net","HTTPService")}catch(a){}window.MAPION=window.MAPION||{},MAPION.net=MAPION.net||{},MAPION.net.CompositHTTPService=function(){function a(){for(var a=0,b=i.length;aMAPION.net.Domain.priorityStaging?MAPION.net.Domain.releaseDomainHash:MAPION.net.Domain.stagingDomainHash}();return h.getDomain=c,h.getKeys=d,h.getDomainWithProtocol=e,h.getCurrentDomain=f,h.isSecure=g,h},MAPION.net.Domain.priorityRelease=100,MAPION.net.Domain.priorityStaging=0,MAPION.net.Domain.REV="$Rev: 1166 $",MAPION.net.Domain.releaseDomainHash={},MAPION.net.Domain.stagingDomainHash={},MAPION.net.Domain.putDomain=function(a,b,c){MAPION.net.Domain.releaseDomainHash[a]=b,MAPION.net.Domain.stagingDomainHash[a]=c},MAPION.net.Domain.regardAsReleaseDomainList={},MAPION.net.Domain.regardAsReleaseDomainRegExp=[],MAPION.net.Domain.addReleaseDomain=function(a){a instanceof RegExp?MAPION.net.Domain.regardAsReleaseDomainRegExp.push(a):MAPION.net.Domain.regardAsReleaseDomainList[a]=a},MAPION.net.Domain.regardAsStagingDomainList={},MAPION.net.Domain.regardAsStagingDomainRegExp=[],MAPION.net.Domain.addStagingDomain=function(a){a instanceof RegExp?MAPION.net.Domain.regardAsStagingDomainRegExp.push(a):MAPION.net.Domain.regardAsStagingDomainList[a]=a},MAPION.net.Domain.putDomain("v3","www.mapion.co.jp","v3stg.mapion.co.jp"),MAPION.net.Domain.putDomain("vip","vip.mapion.co.jp","v3stg.mapion.co.jp"),MAPION.net.Domain.putDomain("lbs","lbs.mapion.co.jp","lbs-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("bap","bap.mapion.co.jp","lbs-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("map","bm01.mapion.co.jp","map-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("bm","bm01.mapion.co.jp","map-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("omap","cm01.mapion.co.jp","map-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("cm","cm01.mapion.co.jp","map-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("sasp","sasp.mapion.co.jp","sasp-stg.mapion.co.jp"),MAPION.net.Domain.putDomain("searchapi","searchapi.mapion.co.jp","searchapi-stg.mapion.co.jp"),MAPION.net.Domain.addReleaseDomain("www.mapion.co.jp"),MAPION.net.Domain.addReleaseDomain("vip.mapion.co.jp"),MAPION.net.Domain.addReleaseDomain("lbs.mapion.co.jp"),MAPION.net.Domain.addReleaseDomain("bap.mapion.co.jp"),MAPION.net.Domain.addReleaseDomain("sasp.mapion.co.jp"),MAPION.net.Domain.addStagingDomain("v3stg.mapion.co.jp"),MAPION.net.Domain.addStagingDomain("lbs-stg.mapion.co.jp"),MAPION.net.Domain.addStagingDomain("sasp-stg.mapion.co.jp"),MAPION.net.Domain.addStagingDomain(/.+?\.office\.mapion\.co\.jp/),MAPION.net.Domain.addStagingDomain(/.+?\.sys\.mapion\.co\.jp/),MAPION.net.Domain.addStagingDomain(/.+?\.dev\.mapion\.co\.jp/),MAPION.net.Domain.addStagingDomain(/.+?\.vdev\.mapion\.co\.jp/);try{MAPION.Package.register("MAPION.net","Domain")}catch(a){}window.MAPION=window.MAPION||{},MAPION.net=MAPION.net||{},MAPION.net.ParallelAjax=function(a){MAPION.event.EventDispatcher.implement(this),this.param=a,this.ajaxs=[],this.counter=0,this._errorUrlList=[],this._xmlData={},this.hit=0,this.responseData={}},MAPION.net.ParallelAjax.REV="$Rev: 1894 $",MAPION.net.ParallelAjax.prototype.get=function(a,b){this.counter++;var c=new MAPION.net.Ajax(this.param);this.ajaxs.push(c);var d=this;c.addEventListener("onload",function(b){window.setTimeout(function(){d.responseData[a]=b.target.responseText,d._xmlData[a]=b.target.responseXML,d.counter--,d.hit++,0===d.counter&&(d.responseData._errorUrlList=d._errorUrlList,d.responseData._xmlData=d._xmlData,d.dispatchEvent(new MAPION.event.EventObject("onload",d.responseData)))},10)}),c.addEventListener("onerror",function(a){window.setTimeout(function(){d._errorUrlList.push(a.target.fullUrl),d.counter--,d.dispatchEvent(new MAPION.event.EventObject("onerror",d)),0===d.counter&&d.hit>0&&(d.responseData._errorUrlList=d._errorUrlList,d.responseData._xmlData=d._xmlData,d.dispatchEvent(new MAPION.event.EventObject("onload",d.responseData)))},10)}),c.get(b)},MAPION.net.ParallelAjax.prototype.getForHash=function(a){for(var b in a)this.get(b,a[b])},MAPION.net.ParallelAjax.prototype.cancel=function(){for(var a=0,b=this.ajaxs.length;a-1&&d>-1))return e;if(")"===g){for(b=a.indexOf("(",c+h);-1!==b&&-1!==d&&b]*[\/]?[^-]>|<[^\/|!|>|-]{1}>)/g))for(var c=0,d=b.length;c$/g))var g=e.replace(/\/>/g," "+this.sfxAttributeName+'="'+f+'" />');else var g=e.replace(/>/g," "+this.sfxAttributeName+'="'+f+'" >');a=a.replace(e,g)}return a},MAPION.tmpl.Template.prototype.splitElement=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=[a],r=[],s=this.variableDirectiveStartMarker,t=this.variableDirectiveEndMarker,u=this.scriptDirectiveStartMarker,v=this.scriptDirectiveEndMarker,w=s.length,x=t.length,y=u.length,z=v.length;for(var A in b){for(g=[],c=0,d=q.length;c-1;)if(l=j,j=i.indexOf(s,j),k=i.indexOf(t,j+x),j>-1&&k>-1){for(m=i.substring(l,j),n=0,o=0,p=0;n>-1;)p=n,n=m.indexOf(u,n),o=m.indexOf(v,n+z),n>-1&&o>-1?(r[r.length]=m.substring(p,n),r[r.length]={t:"s",s:m.substring(n+y,o)},n=o+z):r[r.length]=m.substring(p);r[r.length]={t:"v",s:i.substring(j+w,k)},j=k+x}else for(m=i.substring(l),n=0,o=0,p=0;n>-1;)p=n,n=m.indexOf(u,n),o=m.indexOf(v,n+z),n>-1&&o>-1?(r[r.length]=m.substring(p,n),r[r.length]={t:"s",s:m.substring(n+y,o)},n=o+z):r[r.length]=m.substring(p);return r},MAPION.tmpl.Template.prototype.buildFunctionString=function(a){var b=this.functionArgumentName,c=this.returnVarString,d=[],e=/'/g,f=/"/g,g=new RegExp("\r","g"),h=new RegExp("\n","g");d[d.length]="function("+b+"){var "+c+"=[];";for(var i=0,j=a.length;i-1;)k=k.replace(this.banpei,"");k=k.replace(e,"\\'").replace(f,'\\"').replace(g,"\\r").replace(h,"\\n"),d[d.length]=c+".push('"+k+"');"}}return d[d.length]="return "+c+".join('');}",d.join("")},MAPION.tmpl.Template.jsmf=function(){var a=new MAPION.tmpl.Template;return a.tagDirectiveStartMarker="$(",a.tagDirectiveEndMarker=")",a.scriptDirectiveStartMarker="#$",a.scriptDirectiveEndMarker="$#",a.variableDirectiveStartMarker="#=",a.variableDirectiveEndMarker="#",a}();try{MAPION.Package.register("MAPION.tmpl","Template")}catch(a){}window.MAPION=window.MAPION||{},MAPION.tmpl=MAPION.tmpl||{},MAPION.tmpl.TemplateHelper=function(a){MAPION.event.EventDispatcher.implement(this),this.template=a||new MAPION.tmpl.Template},MAPION.tmpl.TemplateHelper.REV="$Rev: 1887 $",MAPION.tmpl.TemplateHelper.prototype.compileWithDom=function(a,b){var b=b||window.document,c=b.getElementById(a),d=c.value||c.innerHTML;return d=d.replace(/</g,"<").replace(/>/g,">"),this.template.compile(d)},MAPION.tmpl.TemplateHelper.prototype.compileWithURL=function(a){var b=this,c=new MAPION.net.Ajax;c.addEventListener("onload",function(){var a=new MAPION.event.EventObject("onload");a.templateFunction=b.template.compile(c.responseText),a.target=b,b.dispatchEvent(a)}),c.addEventListener("onerror",function(){b.dispatchEvent("onerror")}),c.get(a)};try{MAPION.Package.register("MAPION.tmpl","TemplateHelper")}catch(a){}window.MAPION=window.MAPION||{},MAPION.debug=MAPION.debug||{},MAPION.debug.Tools=function(){MAPION.event.EventDispatcher.implement(this);var a=this;this.processTime=0,this.setProcessTime=function(b){a.processTime=b,a.dispatchEvent("processTimeChanged")},this.toString=function(){return"processTime="+this.processTime}},MAPION.debug.Tools.REV="$Rev: 609 $",MAPION.debug.Tools.prototype.measureProcessTime=function(a,b){a=a||window;for(var c=(new Date).getTime(),d=2,e=arguments.length,f=[];d=this.row&&(c=-1);var d=AutoComplete.selecListItem(c,this);d&&!AutoComplete.IME_RESTRICT&&(this.inputForm.value=d,this.suggestWord=d);break;case 38:if(!this.visibility)return;c<0?c=this.row-1:c--;var d=AutoComplete.selecListItem(c,this);d&&!AutoComplete.IME_RESTRICT&&(this.inputForm.value=d,this.suggestWord=d);break;case 13:if(this.visibility){AutoComplete.submit(c,this);var e=new EventObject("selected");e.value=AutoComplete.utils.inputReplace(this.inputForm.value),this.dispatchEvent(e)}else{var e=new EventObject("submit");e.value=this.inputForm.value,this.dispatchEvent(e)}try{a.preventDefault()}catch(a){}try{a.returnValue=!1}catch(a){}return!1}},AutoComplete.FLG=!1,AutoComplete.preventBlurHide=function(a){setTimeout(function(){AutoComplete.FLG=!1,a&&a.inputForm&&a.inputForm.focus()},AutoComplete.DEFAULT_PREVENTBLURHIDE_TIMER),AutoComplete.FLG=!0},AutoComplete.prototype.onloadHandler=function(a){var b=a.target.owner;if(b.focusFlg){AutoComplete.FLG=!1;var c=null;try{if(c=a.target.responseData[0].response.docs,0==c.length)return b.setVisibility(!1)}catch(a){}if(c){b.listElements=[],b.selectedIndex=-1;for(var d=0,e=0,f=[],g=0;gd?j:d;var k=AutoComplete.utils.getByte(h.type_ja)*b.byteWidth;e=k>e?k:e,b.listElements[g]=h,f.push(h)}d+=e,b.row=f.length,f.thisIns=b.globalThisIns,f.listItemL=b.classNameListItemL,f.listItemR=b.classNameListItemR,b.completeDiv.innerHTML=b.divTemplateFunc(f),b.setVisibility(!0);var l=b.inputForm.offsetWidth-2;l=l>d?l:d,b.completeDiv.style.width=l+"px";try{document.body.appendChild(b.completeDiv)}catch(a){}}}},AutoComplete.prototype.onerrorHandler=function(a){},AutoComplete.divTemplate='',AutoComplete.selecListItem=function(a,b){if(AutoComplete.unselecListItem(b.selectedIndex,b),a<0||b.row@key@'),a=[c];for(var f=0;f「@area@」周辺で「@key@」'),a=[c];for(var f=0;f「@startkey@」から「@endkey@」'),a=[c];for(var f=0;f「@startkey@」から「@endkey@」'),a=[c];for(var f=0;f@key@'),a=[c];for(var f=0;f@key@'),a=[c];for(var f=0;f@key@'),a=[c];for(var f=0;f@key@'),a=[c];for(var f=0;f\t\x3c!--▼search-type(ここから)--\x3e\t\t\x3c!--▲search-type(ここまで)--\x3e\t\x3c!--▼dev_search1(ここから)--\x3e\t
\t\t検索\t
\t\x3c!--▲dev_search1(ここまで)--\x3e\t\x3c!--▼dev_search2(ここから)--\x3e\t\t\x3c!--▲dev_search2(ここまで)--\x3e\t\x3c!--▼dev_search3(ここから)--\x3e\t\t\t\t\x3c!--▲dev_search3(ここまで)--\x3e\t\x3c!--▽サジェスト(ここから)--\x3e\t
    \t
  • @ex_all@
  • \t\t\t\t\t\t\t
\t\x3c!--△サジェスト(ここまで)--\x3e',LocalSearchBoxView.getTemplateHTML=function(a){var b={"@display@":"display","@ex_all@":"ex_all","@ex_shop@":"ex_shop","@ex_transit@":"ex_transit","@ex_drive@":"ex_drive","@ex_post@":"ex_post","@ex_map@":"ex_map","@ex_inquiry@":"ex_inquiry"},c={display:"none",ex_all:"",ex_shop:"",ex_transit:"",ex_drive:"",ex_post:"",ex_map:"",ex_inquiry:""};return a?(c.display="block",c.ex_all=LocalSearchBoxView.getAllRanking(),c.ex_shop=LocalSearchBoxView.getShopRanking(),c.ex_transit=LocalSearchBoxView.getTransitRanking(),c.ex_drive=LocalSearchBoxView.getDriveRanking(),c.ex_post=LocalSearchBoxView.getPostRanking(),c.ex_map=LocalSearchBoxView.getMapRanking(),c.ex_inquiry=LocalSearchBoxView.getInquiryRanking(),c.ex_video=LocalSearchBoxView.getVideoRanking(),new Template(b).compile(LocalSearchBoxView.templateHTML)(c)):new Template(b).compile(LocalSearchBoxView.templateHTML)(c)},LocalSearchBoxValidator.DEFAULT_CHECK_ALERT_STRING='以下の入力禁止文字が入力されました。再度入力お願いします。@n@「+()?*{}[]/`;~|="$:<>^」',LocalSearchBoxValidator.DEFAULT_CHECK_ALERT_TEMPLATE_TAG={"@name@":"name","@n@":"n"},LocalSearchBoxValidator.DEFAULT_CORECHECK_ALERT_STRING="マップコードの*以降には0-8の数値2桁までを指定してください。",LocalSearchBoxValidator.DEFAULT_CORECHECK_ALERT_TEMPLATE_TAG={"@name@":"name","@n@":"n"},LocalSearchBoxValidator.DEFAULT_DISALLOWED_ALERT_STRING="「-」のみでの検索はできません。他のキーワードで検索してください。",LocalSearchBoxValidator.DEFAULT_DISALLOWED_ALERT_TEMPLATE_TAG={"@name@":"name","@n@":"n"},LocalSearchBoxValidator.DEFAULT_BLANK_ALERT_STRING="@name@が未入力です。入力してください。",LocalSearchBoxValidator.DEFAULT_BLANK_ALERT_TEMPLATE_TAG={"@name@":"name","@n@":"n"},LocalSearchBoxValidator.DEFAULT_INPUTBOX_NAME={all:{q0:"キーワード"},shop:{q3:"エリアワード",q4:"キーワード"},transit:{q1:"出発地",q2:"目的地"},drive:{q1:"出発地",q2:"目的地"},post:{q0:"郵便番号"},map:{q0:"マップコード"},inquiry:{q0:"質問"},video:{q0:"キーワード"},events:{q0:"イベント"}},LocalSearchBoxValidator.prototype.validate=function(a,b,c,d){return LocalSearchBoxValidator.utils.inputBlankOrNull(a)&&!d?(alert(this.blankAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1):LocalSearchBoxValidator.utils.inputCheck(a)?(alert(this.checkAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1):!LocalSearchBoxValidator.utils.inputDisallowed(a)||(alert(this.disallowedAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1)},LocalSearchBoxValidator.prototype.validate2=function(a,b,c,d){return LocalSearchBoxValidator.utils.inputBlankOrNull(a)&&!d?(alert(this.blankAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1):LocalSearchBoxValidator.utils.inputCheck2(a)?(alert(this.checkAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1):LocalSearchBoxValidator.utils.inputCoreCheck(a)?(alert(this.coreCheckAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1):!LocalSearchBoxValidator.utils.inputDisallowed(a)||(alert(this.disallowedAlertFunction({name:this.inputBoxNames[b][c],n:"\n"})),!1)},LocalSearchBoxValidator.prototype.validate_all=function(a){var b=a.keyword.q0;if(a.keyword.q0=LocalSearchBoxValidator.utils.inputReplace(b),this.validate(b,"all","q0"))this.dispatchEvent(a);else try{a.keyword.q0Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_shop=function(a){var b=a.keyword.q3,c=a.keyword.q4;if(a.keyword.q3=LocalSearchBoxValidator.utils.inputReplace(b),a.keyword.q4=LocalSearchBoxValidator.utils.inputReplace(c),this.validate(b,"shop","q3",this.allowAreaWordNull))if(this.validate(c,"shop","q4"))this.dispatchEvent(a);else try{a.keyword.q4Ins.focus()}catch(a){}else try{a.keyword.q3Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_transit=function(a){var b=a.keyword.q1,c=a.keyword.q2;if(a.keyword.q1=LocalSearchBoxValidator.utils.inputReplace(b),a.keyword.q2=LocalSearchBoxValidator.utils.inputReplace(c),this.validate(b,"transit","q1"))if(this.validate(c,"transit","q2"))this.dispatchEvent(a);else try{a.keyword.q2Ins.focus()}catch(a){}else try{a.keyword.q1Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_drive=function(a){var b=a.keyword.q1,c=a.keyword.q2;if(a.keyword.q1=LocalSearchBoxValidator.utils.inputReplace(b),a.keyword.q2=LocalSearchBoxValidator.utils.inputReplace(c),this.validate(b,"drive","q1"))if(this.validate(c,"drive","q2"))this.dispatchEvent(a);else try{a.keyword.q2Ins.focus()}catch(a){}else try{a.keyword.q1Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_post=function(a){var b=a.keyword.q0;if(a.keyword.q0=LocalSearchBoxValidator.utils.inputReplace(b),this.validate(b,"post","q0"))this.dispatchEvent(a);else try{a.keyword.q0Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_map=function(a){var b=a.keyword.q0;if(a.keyword.q0=LocalSearchBoxValidator.utils.inputReplace(b),this.validate2(b,"map","q0"))this.dispatchEvent(a);else try{a.keyword.q0Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_inquiry=function(a){var b=a.keyword.q0;if(a.keyword.q0=LocalSearchBoxValidator.utils.inputReplace(b),this.validate(b,"inquiry","q0"))this.dispatchEvent(a);else try{a.keyword.q0Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_video=function(a){var b=a.keyword.q0;if(a.keyword.q0=LocalSearchBoxValidator.utils.inputReplace(b),this.validate(b,"video","q0"))this.dispatchEvent(a);else try{a.keyword.q0Ins.focus()}catch(a){}},LocalSearchBoxValidator.prototype.validate_event=function(a){var b=a.keyword.q0;if(a.keyword.q0=LocalSearchBoxValidator.utils.inputReplace(b),this.validate(b,"events","q0"))this.dispatchEvent(a);else try{a.keyword.q0Ins.focus()}catch(a){}},LocalSearchBoxValidator.utils={},LocalSearchBoxValidator.utils.inputCheck=function(a){return"string"!=typeof a?a:a.match(/[\+|\(|\)|?|*|\{|\}|\[|\]|\/|`|;|~|\||=|\"|$|:|<|>|^]/)},LocalSearchBoxValidator.utils.inputCheck2=function(a){return"string"!=typeof a?a:a.match(/[\+|\(|\)|?|\{|\}|\[|\]|\/|`|;|~|\||=|\"|$|:|<|>|^]/)},LocalSearchBoxValidator.utils.inputCoreCheck=function(a){return"string"!=typeof a?a:!a.match(/^[^\*]*$|^[^\*]*\*[0-8]{1,2}$/)},LocalSearchBoxValidator.utils.inputDisallowed=function(a){return"string"!=typeof a?a:a.match(/^[-]$/)},LocalSearchBoxValidator.utils.inputBlankOrNull=function(a){return""==a||null==a},LocalSearchBoxValidator.utils.MAX_LENGTH=40,LocalSearchBoxValidator.utils.inputReplace=function(a){return"string"!=typeof a?a:(a=a.replace(/\\/g,"¥"),a=a.replace(/\'/g,"’"),a=a.replace(/!/g,"!"),a=a.replace(/&/g,"&"),a=a.replace(/#/g,"#"),a=a.replace(/%/g,"%"),a=a.replace(/-/g,"-"),a=a.replace(/( | |\t)AND/g," AND"),a=a.replace(/AND( | |\t)/g,"AND "),a=a.replace(/( | |\t)OR/g," OR"),a=a.replace(/OR( | |\t)/g,"OR "),a=a.replace(/( | |\t)NOT/g," NOT"),a=a.replace(/NOT( | |\t)/g,"NOT "),"AND"==a?a="AND":"OR"==a?a="OR":"NOT"==a&&(a="NOT"),a.slice(0,LocalSearchBoxValidator.utils.MAX_LENGTH))},LocalSearchBox.DEFAULT_MAP_URL="http://mapion-dev-front-01.idc01.mapion.co.jp:8888/m/@nl@_@el@_@z@/",LocalSearchBox.DEFAULT_SEARCH_ALL_URL="http://mapion-dev-front-01.idc01.mapion.co.jp:8888/s/q=@query@/",LocalSearchBox.DEFAULT_SEARCH_SHOP_URL="http://mapion-dev-front-01.idc01.mapion.co.jp:8888/s/q=@query@/t=spot2/",LocalSearchBox.DEFAULT_SEARCH_POST_URL="http://mapion-dev-front-01.idc01.mapion.co.jp:8888/s/q=@query@/t=zip/",LocalSearchBox.DEFAULT_SEARCH_URL_TAG={"@query@":"query","@key@":"key","@params@":"params","@nl@":"nl","@el@":"el","@z@":"z","@scl@":"scl","@grp@":"grp","@nlel@":"nlel","@map_url@":"map_url"},LocalSearchBox.DEFAULT_NAVIGATETOURL_TARGET="_self",LocalSearchBox.DEFAULT_GEOCODE_URL="http://mapion-dev-front-01.idc01.mapion.co.jp:8888/search/phone/select/?q=:*:*&near=@query@&wt=json&key=@key@",LocalSearchBox.DEFAULT_TRANSIT_URL="http://www.mapion.co.jp/m/@map_url@/?@params@",LocalSearchBox.DEFAULT_DRIVE_URL="http://www.mapion.co.jp/m/@map_url@/?@params@&n_type=d",LocalSearchBox.DEFAULT_MAPCODE_URL="http://www.mapion.co.jp/f/mapion/api/mapcode.html?mcode=@query@",LocalSearchBox.DEFAULT_MAPCODE_GRP="all",LocalSearchBox.DEFAULT_INQUIRY_URL="http://qa.mapion.co.jp/search.php3?dummy=%83%81%81%5B%83%8B&kw=@query@&stage_id=0",LocalSearchBox.DEFAULT_VIDEO_URL="http://video.mapion.co.jp/search?kw=@query@",LocalSearchBox.DEFAULT_EVENT_URL="http://mapion-dev-front-01.idc01.mapion.co.jp:8888/s/q=@query@/t=event/",LocalSearchBox.DEFAULT_TIMEOUT_MS=5e3,LocalSearchBox.DEFAULT_SQL_KEY="mapion",LocalSearchBox.DEFAULT_NOTFOUND_MAPCODE_ALERT="マップコードが見つかりませんでした。\nマップコードを確認後、再度入力してください。",LocalSearchBox.DEFAULT_ZOOMLEVEL_TO_MAP=10,LocalSearchBox.DEFAULT_ZOOMLEVEL_TO_DRIVE=6,LocalSearchBox.debug=!1,LocalSearchBox.failedFunc=null,LocalSearchBox.localSearchBoxInstance=null,LocalSearchBox.args=null,LocalSearchBox.error=null,LocalSearchBox.scaleHash={},LocalSearchBox.scaleHash[0]="26000000",LocalSearchBox.scaleHash[1]="5000000",LocalSearchBox.scaleHash[2]="3000000",LocalSearchBox.scaleHash[3]="1000000",LocalSearchBox.scaleHash[4]="500000",LocalSearchBox.scaleHash[5]="250000",LocalSearchBox.scaleHash[6]="70000",LocalSearchBox.scaleHash[7]="25000",LocalSearchBox.scaleHash[8]="10000",LocalSearchBox.scaleHash[9]="5000",LocalSearchBox.scaleHash[0]="26000000",LocalSearchBox.scaleHash[1]="5000000",LocalSearchBox.scaleHash[2]="3000000",LocalSearchBox.scaleHash[3]="1000000",LocalSearchBox.scaleHash[4]="500000",LocalSearchBox.scaleHash[5]="250000",LocalSearchBox.scaleHash[6]="70000",LocalSearchBox.scaleHash[7]="25000",LocalSearchBox.scaleHash[8]="10000",LocalSearchBox.scaleHash[9]="5000",LocalSearchBox.navigateToURL=function(a,b){if(LocalSearchBox.debug)return void alert(a);window.open(a,b)},LocalSearchBox.prototype.search_all=function(a){try{var b=a.keyword.q0;this.keyword=b,this.keywordRaw=this.view.getElement("q0").value,this.all&&"function"==typeof this.all.SearchAll?(this.all.SearchAll(b),this.loading=!1,this.view.dispatchEvent("notBusy")):LocalSearchBox.navigateToURL(this.getSearchAllURL({query:encodeURI(b)}),this.navigateToURLTarget)}catch(a){this.loading=!1,this.view.dispatchEvent("notBusy"),LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.onloadSuggestlatlng=function(a){try{var b=a.target.owner,c=a.target.responseData[0];if(c.Geocode&&c.Geocode.lon&&c.Geocode.lat){var d=new EventObject("suggestSelected");d.lon=parseFloat(c.Geocode.lon.toString()),d.lat=parseFloat(c.Geocode.lat.toString()),d.value=a.target.value,b.dispatchEvent(d);var e=b.view.getElement("q4");e&&e.focus()}else{var d=new EventObject("suggestSelectedLoadError");b.dispatchEvent(d)}}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}b.loading=!1,b.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.onerrorSuggestlatlng=function(a){var b=new EventObject("suggestSelectedLoadError");thisIns.dispatchEvent(b)},LocalSearchBox.prototype.search_shop=function(a){try{var b=this.navigateToURLTarget,c=a.keyword.q3,d=a.keyword.q4;if(this.areaword=c,this.keyword=d,this.areawordRaw=this.view.getElement("q3").value,this.keywordRaw=this.view.getElement("q4").value,this.shop&&"function"==typeof this.shop.SearchShop)this.dispatchEvent("callingSearchShop"),this.shop.SearchShop(c,d);else{var e=c+"+"+d;LocalSearchBox.navigateToURL(this.getSearchShopURL({query:encodeURI(e)}),b)}}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}this.loading=!1,this.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.search_transit=function(a){try{var b=a.keyword.q1,c=a.keyword.q2;this.json_geocode.searchType="transit",this.json_geocode.quesries={start:b,end:c},this.json_geocode.nowRequest="start",this.json_geocode.sel=null,this.json_geocode.snl=null,this.json_geocode.gel=null,this.json_geocode.gnl=null,this.getGeocode()}catch(a){this.loading=!1,this.view.dispatchEvent("notBusy"),LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.getGeocode=function(){try{var a=this.json_geocode,b=a.quesries[a.nowRequest],c=this.getGeocodeURL({query:encodeURI(b),key:this.sqlKey});this.json_geocode.get(c)}catch(a){this.loading=!1,this.view.dispatchEvent("notBusy"),LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.onloadGeocode=function(a){try{var b=a.target.owner,c=a.target.responseData[0];if("start"==a.target.nowRequest){try{a.target.sel=c.Geocode.lon,a.target.snl=c.Geocode.lat,null!=c.Geocode.poi_code&&""!=c.Geocode.poi_code?a.target.n_start=c.Geocode.poi_name:null!=c.Geocode.address&&""!=c.Geocode.address?a.target.n_start=c.Geocode.address:a.target.n_start=null}catch(b){a.target.sel=null,a.target.snl=null,a.target.n_start=null}a.target.nowRequest="end",b.getGeocode()}else if("end"==a.target.nowRequest){var d=b.navigateToURLTarget;try{a.target.gel=c.Geocode.lon,a.target.gnl=c.Geocode.lat,null!=c.Geocode.poi_code&&""!=c.Geocode.poi_code?a.target.n_end=c.Geocode.poi_name:null!=c.Geocode.address&&""!=c.Geocode.address?a.target.n_end=c.Geocode.address:a.target.n_end=null}catch(b){a.target.gel=null,a.target.gnl=null,a.target.n_end=null}if("transit"==a.target.searchType){var e=[],f="35.6726252777778,139.760347222222,8";if(a.target.sel&&a.target.snl){var g=a.target.sel,h=a.target.snl,i=a.target.n_start;i&&e.push("n_start="+encodeURI(i)),h&&e.push("n_start_lat="+h),g&&e.push("n_start_lon="+g)}if(a.target.gel&&a.target.gnl){var j=a.target.gel,k=a.target.gnl,l=a.target.n_end;f=k+","+j+",16",l&&e.push("n_end="+encodeURI(l)),k&&e.push("n_end_lat="+k),j&&e.push("n_end_lon="+j)}var m=e.join("&"),n=b.domainSSL+"/m2/"+f+"?"+m;LocalSearchBox.navigateToURL(n,d)}else if("drive"==a.target.searchType){var e=[],f="35.6726252777778,139.760347222222,8";if(a.target.sel&&a.target.snl){var g=a.target.sel,h=a.target.snl,i=a.target.n_start;i&&e.push("n_start="+encodeURI(i)),h&&e.push("n_start_lat="+h),g&&e.push("n_start_lon="+g)}if(a.target.gel&&a.target.gnl){var j=a.target.gel,k=a.target.gnl,l=a.target.n_end;f=k+","+j+",16",l&&e.push("n_end="+encodeURI(l)),k&&e.push("n_end_lat="+k),j&&e.push("n_end_lon="+j)}e.push("n_type=d");var m=e.join("&"),n=b.domainSSL+"/m2/"+f+"?"+m;LocalSearchBox.navigateToURL(n,d)}b.loading=!1,b.view.dispatchEvent("notBusy")}}catch(a){b.loading=!1,b.view.dispatchEvent("notBusy"),LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.onerrorGeocode=function(a){try{var b=a.target.owner;b.loading=!1,b.view.dispatchEvent("notBusy")}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.search_drive=function(a){try{var b=a.keyword.q1,c=a.keyword.q2;this.json_geocode.searchType="drive",this.json_geocode.quesries={start:b,end:c},this.json_geocode.nowRequest="start",this.json_geocode.sel=null,this.json_geocode.snl=null,this.json_geocode.gel=null,this.json_geocode.gnl=null,this.getGeocode()}catch(a){this.loading=!1,this.view.dispatchEvent("notBusy"),LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.search_post=function(a){try{var b=this.navigateToURLTarget,c=a.keyword.q0;LocalSearchBox.navigateToURL(this.getSearchPostURL({query:encodeURI(c)}),b)}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}this.loading=!1,this.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.search_map=function(a){try{var b=a.keyword.q0,c=this.getMapcodeURL({query:encodeURI(b),grp:this.mapcodeGRP});this.json_mapcode.get(c)}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}this.loading=!1,this.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.onloadMapcode=function(a){try{var b,c,d=a.target.owner,e=a.target.responseData[0];try{b=LocalSearchBox.utils.l60tol10(e.el),c=LocalSearchBox.utils.l60tol10(e.nl)}catch(a){}if(b&&c){var f=d.navigateToURLTarget,g=d.getMapURL({el:b,nl:c,z:d.zoomLevelToMap});LocalSearchBox.navigateToURL(g,f)}else alert(d.notfoundMapcodeAlert)}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}d.loading=!1,d.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.onerrorMapcode=function(a){try{var b=a.target.owner;b.loading=!1,b.view.dispatchEvent("notBusy")}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}},LocalSearchBox.prototype.search_inquiry=function(a){try{var b=this.navigateToURLTarget,c=a.keyword.q0;LocalSearchBox.navigateToURL(this.getInquiryURL({query:LocalSearchBox.utils.escapeSJIS(c)}),b)}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}this.loading=!1,this.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.search_video=function(a){try{var b=this.navigateToURLTarget,c=a.keyword.q0;LocalSearchBox.navigateToURL(this.getVideoURL({query:encodeURI(c)}),b)}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}this.loading=!1,this.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.search_event=function(a){try{var b=this.navigateToURLTarget,c=a.keyword.q0;LocalSearchBox.navigateToURL(this.getSearchEventURL({query:encodeURI(c)}),b)}catch(a){LocalSearchBox.failedFunc=arguments.callee,LocalSearchBox.localSearchBoxInstance=this,LocalSearchBox.args=arguments,LocalSearchBox.error=a}this.loading=!1,this.view.dispatchEvent("notBusy")},LocalSearchBox.prototype.layout=function(a){a==LocalSearchBoxView.TYPE_ALL?(this.keywordRaw&&(this.view.getElement("q0").value=this.keywordRaw),this.view.layout(a,!0)):a==LocalSearchBoxView.TYPE_SHOP?(this.areawordRaw&&(this.view.getElement("q3").value=this.areawordRaw),this.keywordRaw&&(this.view.getElement("q4").value=this.keywordRaw),this.view.layout(a,!0)):this.view.layout(a)},LocalSearchBox.prototype.All=function(a){a&&"string"==typeof a&&(a=LocalSearchBoxValidator.utils.inputReplace(a),this.validator.validate(a,"all","q0")&&(this.keyword=a)),this.all&&"function"==typeof this.all.SearchAll&&(this.all.SearchAll(this.keyword),this.view.layout(LocalSearchBoxView.TYPE_ALL,!0),this.keywordRaw&&(this.view.getElement("q0").value=this.keywordRaw))},LocalSearchBox.prototype.Shop=function(a,b){a&&"string"==typeof a&&(a=LocalSearchBoxValidator.utils.inputReplace(a),this.validator.validate(a,"shop","q3")&&(this.areaword=a)),b&&"string"==typeof b&&(b=LocalSearchBoxValidator.utils.inputReplace(b),this.validator.validate(b,"shop","q4")&&(this.keyword=b)),this.shop&&"function"==typeof this.shop.SearchShop&&(this.shop.SearchShop(this.areaword,this.keyword),this.view.layout(LocalSearchBoxView.TYPE_SHOP,!0),this.areawordRaw&&(this.view.getElement("q3").value=this.areawordRaw),this.keywordRaw&&(this.view.getElement("q4").value=this.keywordRaw))},LocalSearchBox.utils={},LocalSearchBox.utils.escapeSJIS=function(a){return"string"!=typeof a?a:a.replace(/[^*+.-9A-Z_a-z-]/g,function(a){var b,c=a.charCodeAt(0);return c<128?(c<16?"%0":"%")+c.toString(16).toUpperCase():65376