
var _MAP='map';var _SMAP='sub_map';var default_url=null;var CONFIG_PARAM=new Array();CONFIG_PARAM['PROTOCOL']=(location.href.indexOf("http://")!=-1)?"http://":((location.href.indexOf("https://")!=-1)?"https://":"http://");CONFIG_PARAM['FRONT_URL']='/';CONFIG_PARAM['DEFAULT_URL']=CONFIG_PARAM['FRONT_URL']+'c/f?';CONFIG_PARAM['MAP_URL']=CONFIG_PARAM['FRONT_URL']+'c/mk?';CONFIG_PARAM['API']='mxasp';CONFIG_PARAM['MOBILE_FRONT']=CONFIG_PARAM['PROTOCOL']+'m.mapion.co.jp';CONFIG_PARAM['MAP_SERVER']=CONFIG_PARAM['PROTOCOL']+'map.mapion.co.jp';CONFIG_PARAM['EMPHASIS_ICON_WIDTH']=80;CONFIG_PARAM['EMPHASIS_ICON_HEIGHT']=80;CONFIG_PARAM['BIG_ICON']=CONFIG_PARAM['FRONT_URL']+'mcms/icon/home_over.gif';CONFIG_PARAM['PULLDOWN_IMAGE']='/img/micon/station.gif';CONFIG_PARAM['CENTERMARK_IMAGE_PATH']="/images/allfs/map_center.gif";CONFIG_PARAM['PULLDOWN_IMAGE_WIDTH']=22;CONFIG_PARAM['DEFAULT_VP']=10;CONFIG_PARAM['DEFAULT_LEG_MIN']=500;CONFIG_PARAM['DEFAULT_LEG_MAX']=20000;CONFIG_PARAM['DEFAULT_ENC']='euc';CONFIG_PARAM['DEFAULT_NUM']=20;CONFIG_PARAM['DEFAULT_MERGE_NUM']=2;CONFIG_PARAM['ROUTE_COLOR']='#FF0000';CONFIG_PARAM['ROUTE_WIDTH']=5;CONFIG_PARAM['DEFAULT_FORMTYPE']='cms';CONFIG_PARAM['DEFAULT_KIND']='pc';CONFIG_PARAM['subicon_img']='/mcms/icon/sikaku_s.gif';CONFIG_PARAM['subicon_width']=6;CONFIG_PARAM['subicon_height']=6;CONFIG_PARAM['c_radius']='200m';CONFIG_PARAM['c_color']='';CONFIG_PARAM['c_colorV3']='';CONFIG_PARAM['c_width']=2;CONFIG_PARAM['c_tp']='1.0';CONFIG_PARAM['c_incolor']='#0000FF';CONFIG_PARAM['c_incolorV3']=241;CONFIG_PARAM['c_intp']='1.0';CONFIG_PARAM['l_color']='#FF0000';CONFIG_PARAM['l_colorV3']=245;CONFIG_PARAM['l_width']=5;CONFIG_PARAM['p_color']='';CONFIG_PARAM['p_colorV3']='';CONFIG_PARAM['p_width']='2';CONFIG_PARAM['p_tp']='1.0';CONFIG_PARAM['p_incolor']='#FF0000';CONFIG_PARAM['p_incolorV3']=245;CONFIG_PARAM['p_intp']='1.0';CONFIG_PARAM['main_centermark_zindex']=11;CONFIG_PARAM['search_type']='';CONFIG_PARAM['crdAppendixURL']=CONFIG_PARAM['PROTOCOL']+location.host+"/mcms/js/poinw_crd_appendix.js?";CONFIG_PARAM['block_domain']="lbs.mapion.co.jp";var COLOR_CSV='/mcms/js/palette.csv?'+new Date().getHours()+new Date().getMinutes()+new Date().getSeconds()+new Date().getMilliseconds();var NOT_POPUP_LINKS={'station_000':true,'stationall_000':true};var mark_timer=0;var search_api_type=null;var poib=null;var DEFAULT_CONF_PIXEL=[60,60,60,60,60,60,60,60,60,60];var DEFAULT_CONF_ICON_ID=["cat06","cat06","cat06","cat06","cat06","cat06","cat06","cat06","cat06","cat06"];var DEFAULT_CONF_NAME_EXT="...more";var DEFAULT_CONF_ICON_OBJECT=[{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"},{"id":"cat06","iconfile":"/image/icon/cat06.gif","iconwidth":"16","iconheight":"16","src":"/image/icon/cat06.gif","width":"16","height":"16"}];var _SCL={'5000':'9','10000':'8','25000':'7','70000':'6','250000':'5','500000':'4','1000000':'3','3000000':'2','5000000':'1','26000000':'0'};var _ZIDtoSCL={'9':'5000','8':'10000','7':'25000','6':'70000','5':'250000','4':'500000','3':'1000000','2':'3000000','1':'5000000','0':'26000000'};var mm;var smm;var _I_CNT=0;var _I_ID=new Array();var _I_FILE=new Array();var _I_WIDTH=new Array();var _I_HEIGHT=new Array();var _I_STYLE={'00':'r,#000000,10','01':'t,#000000,10','02':'l,#000000,10','03':'b,#000000,10','04':'r,#000000,12','05':'t,#000000,12','06':'l,#000000,12','07':'b,#000000,12','08':'r,#000000,14','09':'t,#000000,14','0A':'l,#000000,14','0B':'b,#000000,14','0C':'r,#000000,16','0D':'t,#000000,16','0E':'l,#000000,16','0F':'b,#000000,16','10':'r,#0000ff,10','11':'t,#0000ff,10','12':'l,#0000ff,10','13':'b,#0000ff,10','14':'r,#0000ff,12','15':'t,#0000ff,12','16':'l,#0000ff,12','17':'b,#0000ff,12','18':'r,#0000ff,14','19':'t,#0000ff,14','1A':'l,#0000ff,14','1B':'b,#0000ff,14','1C':'r,#0000ff,16','1D':'t,#0000ff,16','1E':'l,#0000ff,16','1F':'b,#0000ff,16','20':'r,#ff0000,10','21':'t,#ff0000,10','22':'l,#ff0000,10','23':'b,#ff0000,10','24':'r,#ff0000,12','25':'t,#ff0000,12','26':'l,#ff0000,12','27':'b,#ff0000,12','28':'r,#ff0000,14','29':'t,#ff0000,14','2A':'l,#ff0000,14','2B':'b,#ff0000,14','2C':'r,#ff0000,16','2D':'t,#ff0000,16','2E':'l,#ff0000,16','2F':'b,#ff0000,16','30':'r,#00ff00,10','31':'t,#00ff00,10','32':'l,#00ff00,10','33':'b,#00ff00,10','34':'r,#00ff00,12','35':'t,#00ff00,12','36':'l,#00ff00,12','37':'b,#00ff00,12','38':'r,#00ff00,14','39':'t,#00ff00,14','3A':'l,#00ff00,14','3B':'b,#00ff00,14','3C':'r,#00ff00,16','3D':'t,#00ff00,16','3E':'l,#00ff00,16','3F':'b,#00ff00,16','40':'r,#ffff00,10','41':'t,#ffff00,10','42':'l,#ffff00,10','43':'b,#ffff00,10','44':'r,#ffff00,12','45':'t,#ffff00,12','46':'l,#ffff00,12','47':'b,#ffff00,12','48':'r,#ffff00,14','49':'t,#ffff00,14','4A':'l,#ffff00,14','4B':'b,#ffff00,14','4C':'r,#ffff00,16','4D':'t,#ffff00,16','4E':'l,#ffff00,16','4F':'b,#ffff00,16','50':'r,#00ffff,10','51':'t,#00ffff,10','52':'l,#00ffff,10','53':'b,#00ffff,10','54':'r,#00ffff,12','55':'t,#00ffff,12','56':'l,#00ffff,12','57':'b,#00ffff,12','58':'r,#00ffff,14','59':'t,#00ffff,14','5A':'l,#00ffff,14','5B':'b,#00ffff,14','5C':'r,#00ffff,16','5D':'t,#00ffff,16','5E':'l,#00ffff,16','5F':'b,#00ffff,16','60':'r,#ff00ff,10','61':'t,#ff00ff,10','62':'l,#ff00ff,10','63':'b,#ff00ff,10','64':'r,#ff00ff,12','65':'t,#ff00ff,12','66':'l,#ff00ff,12','67':'b,#ff00ff,12','68':'r,#ff00ff,14','69':'t,#ff00ff,14','6A':'l,#ff00ff,14','6B':'b,#ff00ff,14','6C':'r,#ff00ff,16','6D':'t,#ff00ff,16','6E':'l,#ff00ff,16','6F':'b,#ff00ff,16','70':'r,#660000,10','71':'t,#660000,10','72':'l,#660000,10','73':'b,#660000,10','74':'r,#660000,12','75':'t,#660000,12','76':'l,#660000,12','77':'b,#660000,12','78':'r,#660000,14','79':'t,#660000,14','7A':'l,#660000,14','7B':'b,#660000,14','7C':'r,#660000,16','7D':'t,#660000,16','7E':'l,#660000,16','7F':'b,#660000,16','80':'r,#ff6600,10','81':'t,#ff6600,10','82':'l,#ff6600,10','83':'b,#ff6600,10','84':'r,#ff6600,12','85':'t,#ff6600,12','86':'l,#ff6600,12','87':'b,#ff6600,12','88':'r,#ff6600,14','89':'t,#ff6600,14','8A':'l,#ff6600,14','8B':'b,#ff6600,14','8C':'r,#ff6600,16','8D':'t,#ff6600,16','8E':'l,#ff6600,16','8F':'b,#ff6600,16','90':'r,#ffccff,10','91':'t,#ffccff,10','92':'l,#ffccff,10','93':'b,#ffccff,10','94':'r,#ffccff,12','95':'t,#ffccff,12','96':'l,#ffccff,12','97':'b,#ffccff,12','98':'r,#ffccff,14','99':'t,#ffccff,14','9A':'l,#ffccff,14','9B':'b,#ffccff,14','9C':'r,#ffccff,16','9D':'t,#ffccff,16','9E':'l,#ffccff,16','9F':'b,#ffccff,16','A0':'r,#006600,10','A1':'t,#006600,10','A2':'l,#006600,10','A3':'b,#006600,10','A4':'r,#006600,12','A5':'t,#006600,12','A6':'l,#006600,12','A7':'b,#006600,12','A8':'r,#006600,14','A9':'t,#006600,14','AA':'l,#006600,14','AB':'b,#006600,14','AC':'r,#006600,16','AD':'t,#006600,16','AE':'l,#006600,16','AF':'b,#006600,16'};KDRIVE_OUT_OF_MAP=[{"x1":121.99,"y1":18.96,"x2":155.00,"y2":46.63},{"x1":121.99,"y1":23.99,"x2":148.99,"y2":45.99},{"x1":119.99,"y1":23.99,"x2":150.00,"y2":45.99},{"x1":119.99,"y1":23.99,"x2":150.00,"y2":45.99},{"x1":122.00,"y1":23.99,"x2":150.00,"y2":45.99},{"x1":122.49,"y1":23.99,"x2":148.99,"y2":46.00},{"x1":122.49,"y1":23.99,"x2":148.99,"y2":46.00},{"x1":122.49,"y1":23.99,"x2":148.99,"y2":46.00},{"x1":122.49,"y1":23.99,"x2":148.99,"y2":46.00},{"x1":122.49,"y1":23.99,"x2":148.99,"y2":46.00}];var POI_PARAM=new Array();var sbar='';var mapPatchMoveendHandler=null;var mapPatchZoomHandler=null;var mapPatchResizeHandler=null;var submapPatchMoveendHandler=null;var submapPatchZoomHandler=null;var submapPatchResizeHandler=null;var blk_cnt=0;var RESIZEMAP_TID=null;var icon_value='';var ic_same=new Object();var inameObj=new Object();var cMarker=new String();var markerA=new Array();function resize(){resizefunc();};function resizefunc(){cmsResizeFunc();};function cmsResizeFunc(){if(CONFIG_PARAM["flg_resize"]&&CONFIG_PARAM["flg_resize"]!=""){if(CONFIG_PARAM['flg_resize']=="1"&&CONFIG_PARAM['resize_width']!=""&&CONFIG_PARAM['resize_height']!=""){if(RESIZEMAP_TID!=null)clearTimeout(RESIZEMAP_TID);RESIZEMAP_TID=setTimeout(mapResize,200);if(search_api_type=='rangeinfo'){showSearchImage();info_search_reload();}
if(search_api_type=='block_poiwithin'){showSearchImage();block_search_reload();}}}else{if(document.getElementById("searchDiv")&&typeof(setSearchImagePos)=="function"){setSearchImagePos();}
if(document.getElementById("freeword")&&typeof(setListPosition)=="function"){setListPosition();}}
if(mm)mm.getMapOffset();if(smm)smm.getMapOffset();setTimeout(resizeGenre,200);};function mapResizeEndWork(){if(!CONFIG_PARAM["flg_patch"]){}
else if(CONFIG_PARAM["flg_patch"]==1&&typeof(mapPatchResizeHandler)=="function"){mapPatchResizeHandler();}
if(document.getElementById("searchDiv")&&typeof(setSearchImagePos)=="function"){setSearchImagePos();}
if(document.getElementById("freeword")&&typeof(setListPosition)=="function"){setListPosition();}}
function init(){POI.USE_REPLACE_TAG_TO_PROPERTY=false;POIBuilder.LISTITEM_MOUSEOUT_ICONCLOSE=true;getConfigFile();makeMapDiv();createMap();if(typeof(setEnvParam)=="function")setEnvParam();if(typeof(getMapcode)=="function")getMapcode();if(typeof(showCenterLatLon)=="function")showCenterLatLon();if(typeof(showCenterScale)=="function")showCenterScale();setTimeout('iconBlink()',1000);if(CONFIG_PARAM['conf_flg']=='1'){var appendix=document.createElement("script");appendix.src=CONFIG_PARAM.crdAppendixURL+(new Date()).getTime();appendix.charset="EUC-JP";document.getElementsByTagName("head")[0].appendChild(appendix)}
if(typeof(initFreeword)=="function"){if(document.getElementById("freeword"))initFreeword();}
if(typeof(checkMailDiv)=="function"){if(CONFIG_PARAM['cmsmail']&&CONFIG_PARAM['cmsmail']==1)checkMailDiv();}
if(!poib||poib==null){poib=new POIBuilder();poib.idDelimiter=(CONFIG_PARAM.conf_id_delimiter)?CONFIG_PARAM.conf_id_delimiter:"_";}
smoothZoomListener();createMarkLocDiv();if(!CONFIG_PARAM["flg_resize"]||CONFIG_PARAM["flg_resize"]==""||CONFIG_PARAM["flg_resize"]==0){if(typeof(window.onresize)=="undefined"||window.onresize==null){window.onresize=function(){if(mm)mm.getMapOffset();if(smm)smm.getMapOffset();};}}};function smoothZoomListener(){if(mm.smoothzoomby==0){if(typeof(searchInit)=="function")searchInit();}else{if(typeof(searchInit)=="function")setTimeout(smoothZoomListener,300);}}
function iconBlink(){if(!default_url.icon||default_url.icon.length<0)return;for(var i=0;i<default_url.icon.length;i++){if(POI_PARAM['BLK_'+i]==1){if(blk_cnt==0){document.getElementById('mark_icon_'+i).style.visibility='hidden';}else if(blk_cnt==1){document.getElementById('mark_icon_'+i).style.visibility='visible';}}}
if(blk_cnt==1)blk_cnt=0;else blk_cnt=1;setTimeout('iconBlink()',1000);};function createMarkLocDiv(){if(markerA.length==0)return;if(document.getElementById('ad_marker_div')){document.getElementById('canvasdivmmap0').removeChild(document.getElementById('ad_marker_div'));}
for(var i=0;i<markerA.length;i++){if(!document.getElementById('ad_marker_div')){var newdiv=document.createElement('DIV');newdiv.id="ad_marker_div";newdiv.style.position='absolute';var cnt=mm.getCenterLatLng();var bnd=mm.getBoundsLatLng();var tl=mm.r2p(new MPoint(bnd.minX,bnd.maxY));var cp=mm.r2p(cnt);newdiv.style.top=(tl.y+(tl.y-cp.y)/2)+'px';newdiv.style.left=(tl.x+(tl.x-cp.x)/2)+'px';scdiv_w=parseFloat(screen.width);scdiv_h=parseFloat(screen.height);newdiv.style.width=scdiv_w+'px';newdiv.style.height=scdiv_h+'px';if(MBrowser.ie5up){newdiv.style.backgroundColor="#FFFFFF";newdiv.style.filter="alpha(opacity=1)";}
newdiv.style.display='none';document.getElementById('canvasdivmmap0').appendChild(newdiv);document.getElementById('ad_marker_div').onmousemove=mlocDivMMove;}}};function mlocDivMMove(){if(!document.getElementById('ad_marker_div'))return;for(var i=0;i<markerA.length;i++){if(document.getElementById('marker_'+i)){document.getElementById('marker_'+i).parentNode.parentNode.style.zIndex=markerA[i].icon.return_zIndex;}}
document.getElementById('ad_marker_div').style.display='none';};function mlocMOver(){var amd=document.getElementById('ad_marker_div');if(!amd)return false;amd.style.display='block';amd.style.zIndex=1800;for(var i=0;i<markerA.length;i++){markerA[i].div.style.zIndex=1700;}
var num=this.id.split('_')[1];if(document.getElementById('marker_'+num)){amd.style.display='block';amd.style.zIndex=1800;document.getElementById('marker_'+num).parentNode.parentNode.style.zIndex=1801;}};function parseDefaultUrl(urldata){this.host='';this.search='';this.param=new Array();this.grp='';this.uc='';this.nl='';this.el='';this.scl='';this.size_w='';this.size_h='';this.icon=new Array();this.icondata=new Array();this.coco=new Array();this.btAll=new Array();this.bt=new Array();this.shapeAll=new Array();this.shape=new Array();this.circle=new Array();this.line=new Array();this.poly=new Array();this.dgnr='';this.hash=null;if(!urldata||urldata=="")return;if(typeof(urldata)=='string'||(typeof(_tag_param)!="undefined"&&_tag_param["method"]=="GET")){if(location.hash.length>1){this.hash=location.hash;urldata=urldata.split("#")[0];}
if(urldata.toString().indexOf("?")==-1)return;var u=urldata.split('?')[1];var param=u.split('&');var startEnc=u.indexOf("enc=");var endEnc=u.indexOf("&",startEnc);this.enc="euc";if(startEnc!=-1){if(endEnc==-1){endEnc=u.length;}
this.enc=u.substr(startEnc,(endEnc-startEnc)).split("=")[1];}
for(var i=0;i<param.length;i++){var tmp=param[i].split('=');if(tmp[0]=='uc')this.uc=tmp[1];if(tmp[0]=='grp')this.grp=tmp[1];if(tmp[0]=='nl'){if(tmp[1].indexOf('/')!=-1){var nl=CMSCommon.change60to10(tmp[1]);tmp[1]=nl;}else{tmp[1]=CMSCommon._from_euc(CMSCommon._unescape(tmp[1]));if(tmp[1].indexOf('/')!=-1){var nl=CMSCommon.change60to10(tmp[1]);tmp[1]=nl;}
if(typeof(tmp[1])=="string")tmp[1]=parseFloat(tmp[1]);}
this.nl=tmp[1];}
if(tmp[0]=='el'){if(tmp[1].indexOf('/')!=-1){var el=CMSCommon.change60to10(tmp[1]);tmp[1]=el;}else{tmp[1]=CMSCommon._from_euc(CMSCommon._unescape(tmp[1]));if(tmp[1].indexOf('/')!=-1){var el=CMSCommon.change60to10(tmp[1]);tmp[1]=el;}
if(typeof(tmp[1])=="string")tmp[1]=parseFloat(tmp[1]);}
this.el=tmp[1];}
if(tmp[0]=='scl')this.scl=_SCL[tmp[1]];if(tmp[0]=='size'){tmp=CMSCommon._from_euc(CMSCommon._unescape(tmp[1])).split(',');this.size_w=tmp[0];this.size_h=tmp[1];}
if(tmp[0]=='coco'){if(tmp[1].indexOf('%')!=-1){this.coco.push('|'+CMSCommon._from_euc(CMSCommon._unescape(tmp[1])));}else{this.coco.push('|'+tmp[1]);}}
if(tmp[0]=='icon'){this.icondata.push('|'+tmp[1]);}
if(tmp[0]=='enc'){this.enc=CMSCommon._from_euc(CMSCommon._unescape(tmp[1]));}
if(tmp[0].indexOf('shape')!=-1){if(tmp[1].indexOf('%')!=-1){this.shapeAll.push(tmp[0]+'='+CMSCommon._from_euc(CMSCommon._unescape(tmp[1])));}else{this.shapeAll.push(param[i]);}}
if(tmp[0].indexOf('BT')!=-1){tmp[1]=tmp[1].replace(/\+/g," ");param[i]=param[i].replace(/\+/g," ");if(this.enc=='sjis'){if(tmp[1].indexOf('%')!=-1){this.btAll.push(tmp[0]+'='+CMSCommon._from_sjis(CMSCommon._unescape(tmp[1])));}else{this.btAll.push(param[i]);}}else if(this.enc=='euc'){if(tmp[1].indexOf('%')!=-1){this.btAll.push(tmp[0]+'='+CMSCommon._from_euc(CMSCommon._unescape(tmp[1])));}else{this.btAll.push(param[i]);}}else{this.btAll.push(param[i]);}}
if(tmp[0].indexOf('dgnr')!=-1){if(tmp[1].indexOf('%')!=-1){tmp[1]=CMSCommon._from_euc(CMSCommon._unescape(tmp[1]));}
this.dgnr=tmp[1];}}}
else if(typeof(urldata)=='object'&&urldata.method=="POST"){if(location.hash.length>1)this.hash=location.hash;for(var i in urldata){if(i=='uc')this.uc=urldata[i][0];if(i=='grp')this.grp=urldata[i][0];if(i=='nl'){if(urldata[i][0].indexOf('/')!=-1){var nl=CMSCommon.change60to10(urldata[i][0]);urldata[i][0]=nl;}else{urldata[i][0]=CMSCommon._from_euc(CMSCommon._unescape(urldata[i][0]));if(urldata[i][0].indexOf('/')!=-1){var nl=CMSCommon.change60to10(urldata[i][0]);urldata[i][0]=nl;}
if(typeof(urldata[i][0])=="string")urldata[i][0]=parseFloat(urldata[i][0]);}
this.nl=urldata[i][0];}
if(i=='el'){if(urldata[i][0].indexOf('/')!=-1){var el=CMSCommon.change60to10(urldata[i][0]);urldata[i][0]=el;}else{urldata[i][0]=CMSCommon._from_euc(CMSCommon._unescape(urldata[i][0]));if(urldata[i][0].indexOf('/')!=-1){var el=CMSCommon.change60to10(urldata[i][0]);urldata[i][0]=el;}
if(typeof(urldata[i][0])=="string")urldata[i][0]=parseFloat(urldata[i][0]);}
this.el=urldata[i][0];}
if(i=='scl')this.scl=_SCL[urldata[i][0]];if(i=='size'){stmp=CMSCommon._from_euc(CMSCommon._unescape(urldata[i][0])).split(',');this.size_w=stmp[0];this.size_h=stmp[1];}
if(i=='coco'){for(var j=0;j<urldata[i].length;j++){if(urldata[i][0].indexOf('%')!=-1){this.coco.push('|'+CMSCommon._from_euc(CMSCommon._unescape(urldata[i][j])));}else{this.coco.push('|'+urldata[i][j]);}}}
if(i=='icon'){for(var j=0;j<urldata[i].length;j++){this.icondata.push('|'+urldata[i][j]);}}
if(i=='enc'){this.enc=CMSCommon._from_euc(CMSCommon._unescape(urldata[i][0]));}
if(i.indexOf('shape')!=-1){for(var j=0;j<urldata[i].length;j++){if(urldata[i][0].indexOf('%')!=-1){this.shapeAll.push(i+'='+CMSCommon._from_euc(CMSCommon._unescape(urldata[i][j])));}else{this.shapeAll.push(i+"="+urldata[i][j]);}}}
if(i.indexOf('BT')!=-1){for(var j=0;j<urldata[i].length;j++){if(this.enc=='sjis'){if(urldata[i][0].indexOf('%')!=-1){this.btAll.push(i+'='+CMSCommon._from_sjis(CMSCommon._unescape(urldata[i][0])));}else{this.btAll.push(i+'='+urldata[i][j]);}}else if(this.enc=='euc'){if(urldata[i][0].indexOf('%')!=-1){this.btAll.push(i+'='+CMSCommon._from_euc(CMSCommon._unescape(urldata[i][0])));}else{this.btAll.push(i+'='+urldata[i][j]);}}else{this.btAll.push(i+"="+urldata[i][j]);}}}
if(i.indexOf('dgnr')!=-1){if(urldata[i][0].indexOf('%')!=-1){urldata[i][0]=CMSCommon._from_euc(CMSCommon._unescape(urldata[i][0]));}
this.dgnr=urldata[i][0];}}}
if(this.uc==29&&(!this.scl||this.scl==''))this.scl=null;else if(!this.scl||this.scl=='')this.scl=9;for(var i=0;i<this.icondata.length;i++){if(this.enc=='sjis'){this.icondata[i]=this.icondata[i].replace(/\+/g," ");this.icon.push(CMSCommon._from_sjis(CMSCommon._unescape(this.icondata[i])));}else{this.icondata[i]=this.icondata[i].replace(/\+/g," ");this.icon.push(CMSCommon._from_euc(CMSCommon._unescape(this.icondata[i])));}}
if(urldata.toString().indexOf("?")!=-1){this.host=urldata.split("?")[0]+"?";this.search=urldata.split("?")[1];}
if(this.search!=""){if(this.search.indexOf("&")==-1)return;var _param=this.search.split("&");for(var i=0;i<_param.length;i++){if(_param[i].indexOf("=")==-1)continue;var _key=_param[i].split("=")[0];var _val=_param[i].split("=")[1];if(this.param["enc"]=="sjis"){_val=CMSCommon._from_sjis(CMSCommon._unescape(_val));}else{_val=CMSCommon._from_euc(CMSCommon._unescape(_val));}
if(!this.param[_key])this.param[_key]=new Array();this.param[_key].push(_val);}}
else if(typeof(_tag_param)!="undefined"&&_tag_param["method"]=="POST"){for(var i in _tag_param){this.param[i]=_tag_param[i];}}};parseDefaultUrl.prototype.url_param=function(){CONFIG_PARAM['grp']=this.grp;CONFIG_PARAM['uc']=this.uc;CONFIG_PARAM['nl']=this.nl;CONFIG_PARAM['el']=this.el;CONFIG_PARAM['scl']=this.scl;CONFIG_PARAM['mapsize_w']=this.size_w;CONFIG_PARAM['mapsize_h']=this.size_h;CONFIG_PARAM['dgnr']=this.dgnr;};parseDefaultUrl.prototype.icon_param=function(){if(!this.icon.length||!this.coco.length)return;if(this.icon.length!=this.coco.length){if(this.icon.length<this.coco.length){var over_len=this.coco.length-this.icon.length;for(var i=0;i<over_len;i++)this.coco.pop();}else if(this.icon.length>this.coco.length){var over_len=this.icon.length-this.coco.length;for(var i=0;i<over_len;i++)this.icon.pop();}}
_I_CNT=this.icon.length;for(var i=0;i<this.icon.length;i++){if(!this.coco[i]){_I_CNT=0;return;}
var tmp=this.coco[i].split('|')[1];if(!tmp||tmp==''||tmp=='undefined'){_I_CNT=0;return;}
else if(tmp.charAt(0)==','&&tmp.length==1){POI_PARAM['NL_'+i]=CMSCommon.change10to60(CONFIG_PARAM['nl']);POI_PARAM['EL_'+i]=CMSCommon.change10to60(CONFIG_PARAM['el']);}
else{tmp=tmp.split(',');if(tmp[0].indexOf("/")!=-1&&tmp[1].indexOf("/")!=-1){POI_PARAM['NL_'+i]=tmp[0];POI_PARAM['EL_'+i]=tmp[1];}
else if(tmp[0].indexOf(".")!=-1&&tmp[1].indexOf(".")!=-1){POI_PARAM['NL_'+i]=CMSCommon.change10to60(tmp[0]);POI_PARAM['EL_'+i]=CMSCommon.change10to60(tmp[1]);}
else{POI_PARAM['NL_'+i]=tmp[0];POI_PARAM['EL_'+i]=tmp[1];}}}
for(var i=0;i<this.icon.length;i++){var tmp=this.icon[i].split('|')[1];tmp=tmp.split(',');POI_PARAM['ID_'+i]=tmp[0];POI_PARAM['BLK_'+i]=tmp[1];POI_PARAM['TYPE_'+i]=tmp[2];POI_PARAM['X_'+i]=tmp[3];POI_PARAM['Y_'+i]=tmp[4];POI_PARAM['STR_'+i]=tmp[5];}};parseDefaultUrl.prototype.shape_param=function(){if(!this.param["shape"])return;for(var i=0;i<this.param["shape"].length;i++){var type=this.param["shape"][i].split(":")[0].toString();switch(type){case"C":if(this.param["shape"].circle_flg)break;this.shapeC_param();this.param["shape"].circle_flg=true;break;case"L":if(this.param["shape"].line_flg)break;this.shapeL_param();this.param["shape"].line_flg=true;break;case"P":if(this.param["shape"].polygon_flg)break;this.shapeP_param();this.param["shape"].polygon_flg=true;break;}}};parseDefaultUrl.prototype.shapeC_param=function(){if(this.shapeAll=='')return;this.shape['circle']=new Array();for(var i=0;i<this.shapeAll.length;i++){if(this.shapeAll[i].indexOf('shape=C:')!=-1){this.shape['circle'].push(this.shapeAll[i].split('=')[1]);this.circle.push(this.shapeAll[i].split('=')[1].split(':'));}}
for(var j=0;j<this.circle.length;j++){this.circle[j].shift();for(var k=0;k<this.circle[j].length;k++){this.circle['nl'+j]=new Array();this.circle['el'+j]=new Array();if(this.circle[j][k].indexOf('C')!=-1)this.circle['color'+j]=this.circle[j][k].split('C')[1];if(this.circle[j][k].indexOf('L')!=-1)this.circle['line'+j]=this.circle[j][k].split('L')[1];if(this.circle[j][k].indexOf('W')!=-1)this.circle['width'+j]=this.circle[j][k].split('W')[1];if(this.circle[j][k].indexOf('T')!=-1)this.circle['tp'+j]=this.circle[j][k].split('T')[1];if(this.circle[j][k].indexOf('R')!=-1)this.circle['radius'+j]=this.circle[j][k].split('R')[1];if(this.circle[j][k].indexOf('S')!=-1)this.circle['start'+j]=this.circle[j][k].split('S')[1];if(this.circle[j][k].indexOf('A')!=-1)this.circle['angle'+j]=this.circle[j][k].split('A')[1];if(this.circle[j][k].indexOf(',')!=-1){this.circle['latlon'+j]=this.circle[j][k].split(',');if(this.circle['latlon'+j].toString().indexOf('/')!=-1){var tmp_nl=CMSCommon.change60to10(this.circle['latlon'+j][0]);var tmp_el=CMSCommon.change60to10(this.circle['latlon'+j][1]);if(tmp_nl.toString().indexOf(".")==-1)tmp_nl=tmp_nl+".0";if(tmp_el.toString().indexOf(".")==-1)tmp_el=tmp_el+".0";this.circle['nl'+j].push(tmp_nl);this.circle['el'+j].push(tmp_el);}
else if(this.circle['latlon'+j].toString().indexOf('.')!=-1){var tmp_nl=this.circle['latlon'+j][0];var tmp_el=this.circle['latlon'+j][1];if(tmp_nl.toString().indexOf(".")==-1)tmp_nl=tmp_nl+".0";if(tmp_el.toString().indexOf(".")==-1)tmp_el=tmp_el+".0";this.circle['nl'+j].push(tmp_nl);this.circle['el'+j].push(tmp_el);}
else{this.circle['nl'+j].push(new Number(this.circle['latlon'+j][0]));this.circle['el'+j].push(new Number(this.circle['latlon'+j][1]));}}}}};parseDefaultUrl.prototype.shapeL_param=function(){if(this.shapeAll=='')return;this.shape['line']=new Array();this.lineCoord=new Array();for(var i=0;i<this.shapeAll.length;i++){if(this.shapeAll[i].indexOf('shape=L:')!=-1){this.shape['line'].push(this.shapeAll[i].split('=')[1]);this.line.push(this.shapeAll[i].split('=')[1].split(':'));}}
for(var j=0;j<this.line.length;j++){this.line[j].shift();for(var k=0;k<this.line[j].length;k++){if(this.line[j][k].indexOf('C')!=-1)this.line['color'+j]=this.line[j][k].split('C')[1];if(this.line[j][k].indexOf('W')!=-1)this.line['width'+j]=this.line[j][k].split('W')[1];if(this.line[j][k].indexOf(',')!=-1){this.line['latlon'+j]=this.line[j][k].split(',');this.line['nl'+j]=new Array();this.line['el'+j]=new Array();if(this.line['latlon'+j].length%2==1)return;for(var b=0;b<this.line['latlon'+j].length;b++){if(b%2==0){set_nl=this.line['latlon'+j][b];set_el=this.line['latlon'+j][b+1];if(set_nl.toString().indexOf('/')!=-1&&set_el.toString().indexOf('/')!=-1){var tmp_nl=CMSCommon.change60to10(set_nl);var tmp_el=CMSCommon.change60to10(set_el);if(tmp_nl.toString().indexOf(".")==-1)tmp_nl=tmp_nl+".0";if(tmp_el.toString().indexOf(".")==-1)tmp_el=tmp_el+".0";this.line['nl'+j].push(tmp_nl);this.line['el'+j].push(tmp_el);}
else if(set_nl.toString().indexOf('.')!=-1&&set_el.toString().indexOf('.')!=-1){var tmp_nl=set_nl;var tmp_el=set_el;if(tmp_nl.toString().indexOf(".")==-1)tmp_nl=tmp_nl+".0";if(tmp_el.toString().indexOf(".")==-1)tmp_el=tmp_el+".0";this.line['nl'+j].push(tmp_nl);this.line['el'+j].push(tmp_el);}
else{this.line['nl'+j].push(set_nl);this.line['el'+j].push(set_el);}}}
this.lineCoord.push(new shapePoints(this.line['nl'+j],this.line['el'+j]));}}}};parseDefaultUrl.prototype.shapeP_param=function(){if(this.shapeAll=='')return;this.shape['polygon']=new Array();for(var i=0;i<this.shapeAll.length;i++){if(this.shapeAll[i].indexOf('shape=P:')!=-1){this.shape['polygon'].push(this.shapeAll[i].split('=')[1]);this.poly.push(this.shapeAll[i].split('=')[1].split(':'));}}
for(var j=0;j<this.poly.length;j++){this.poly[j].shift();var num=new Number();var polyLen=this.poly[j].length;for(var k=0;k<this.poly[j].length;k++){if(this.poly[j][k].indexOf('C')!=-1){this.poly['color'+j]=this.poly[j][k].split('C')[1];num+=1;}
if(this.poly[j][k].indexOf('L')!=-1){this.poly['line'+j]=this.poly[j][k].split('L')[1];num+=1;}
if(this.poly[j][k].indexOf('W')!=-1){this.poly['width'+j]=this.poly[j][k].split('W')[1];num+=1;}
if(this.poly[j][k].indexOf('T')!=-1){this.poly['tp'+j]=this.poly[j][k].split('T')[1];num+=1;}
else if(this.poly[j][k].indexOf(',')!=-1&&this.poly[j][k].indexOf('C')==-1&&this.poly[j][k].indexOf('L')==-1&&this.poly[j][k].indexOf('W')==-1&&this.poly[j][k].indexOf('T')==-1){if(num==polyLen-1){this.poly['latlon'+j]=this.poly[j][k].split(',');}
else{this.poly['latlon'+j]=this.poly[j][polyLen-(polyLen-num)].split(',');}
this.poly['nl'+j]=new Array();this.poly['el'+j]=new Array();for(var p=0;p<this.poly['latlon'+j].length;p++){var _nl='';var _el='';if(p%2==0)_nl=this.poly['latlon'+j][p];if(p%2==1)_el=this.poly['latlon'+j][p];var tmp_nl='';var tmp_el='';if(this.poly['latlon'+j][p].toString().indexOf('/')!=-1){if(_nl!=''){tmp_nl=CMSCommon.change60to10(_nl);if(tmp_nl.toString().indexOf(".")==-1)tmp_nl=tmp_nl+".0";}else if(_el!=''){tmp_el=CMSCommon.change60to10(_el);if(tmp_el.toString().indexOf(".")==-1)tmp_el=tmp_el+".0";}
if(p%2==0)this.poly['nl'+j].push(tmp_nl);if(p%2==1)this.poly['el'+j].push(tmp_el);}
else if(this.poly['latlon'+j][p].toString().indexOf('.')!=-1){if(_nl!=''){tmp_nl=_nl;if(tmp_nl.toString().indexOf(".")==-1)tmp_nl=tmp_nl+".0";}else if(_el!=''){tmp_el=_el;if(tmp_el.toString().indexOf(".")==-1)tmp_el=tmp_el+".0";}
if(p%2==0)this.poly['nl'+j].push(parseFloat(tmp_nl));if(p%2==1)this.poly['el'+j].push(parseFloat(tmp_el));}
else{if(p%2==0)this.poly['nl'+j].push(_nl);if(p%2==1)this.poly['el'+j].push(_el);}}}}}};function shapePoints(_nlpoints,_elpoints){this.nlpoints=_nlpoints;this.elpoints=_elpoints;};parseDefaultUrl.prototype.bt_param=function(){if(this.btAll=='')return;for(var i=0;i<this.btAll.length;i++){if(this.btAll[i].indexOf('BT=')!=-1)this.bt[0]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT1=')!=-1)this.bt[1]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT2=')!=-1)this.bt[2]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT3=')!=-1)this.bt[3]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT4=')!=-1)this.bt[4]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT5=')!=-1)this.bt[5]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT6=')!=-1)this.bt[6]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT7=')!=-1)this.bt[7]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT8=')!=-1)this.bt[8]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT9=')!=-1)this.bt[9]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT10=')!=-1)this.bt[10]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT11=')!=-1)this.bt[11]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT12=')!=-1)this.bt[12]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT13=')!=-1)this.bt[13]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT14=')!=-1)this.bt[14]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT15=')!=-1)this.bt[15]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT16=')!=-1)this.bt[16]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT17=')!=-1)this.bt[17]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT18=')!=-1)this.bt[18]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT19=')!=-1)this.bt[19]=this.btAll[i].split('=')[1];if(this.btAll[i].indexOf('BT20=')!=-1)this.bt[20]=this.btAll[i].split('=')[1];else continue;}};function loadCsvData(CONFIG_CSV){var xmlhttp=CMSCommon.createHttpRequest();xmlhttp.open('GET',CONFIG_CSV,false);if(xmlhttp!=null){xmlhttp.send(null);}
if(xmlhttp.readyState==4||xmlhttp.state==200||xmlhttp.state==304){var ad=xmlhttp.responseText;if(typeof(ad)=='undefined')return;return ad;}};function setParameter(_item){if(_item=='')return;var tmp=new Array();var SP=String.fromCharCode(10);var CR=String.fromCharCode(13);var line=_item.split(SP);for(var i=0;i<line.length;i++){if(line[i].charAt(0)!='#'){val=line[i].split(CR);line[i]=val[0];var c=line[i].search(",");if(c!=-1){var iname=line[i].substring(0,c);var ivalue=line[i].substring(c+1,line[i].length);if(iname!="")CONFIG_PARAM[iname]=ivalue;}else continue;}}};function makeMapDiv(){var m=document.getElementById(_MAP);var newLayer=document.createElement('SPAN');m.parentNode.appendChild(newLayer);var span_str='';span_str+='<table>';span_str+='<tr>';span_str+='<td id="mapTable"></td>';span_str+='</tr>';span_str+='</table>';newLayer.innerHTML=span_str;document.getElementById('mapTable').appendChild(m);if(CONFIG_PARAM["mapsize_w"]&&CONFIG_PARAM["mapsize_w"]!=""&&CONFIG_PARAM["mapsize_h"]&&CONFIG_PARAM["mapsize_h"]!=""){CONFIG_PARAM['size_w']=parseInt(CONFIG_PARAM["mapsize_w"]);CONFIG_PARAM['size_h']=parseInt(CONFIG_PARAM["mapsize_h"]);}else if(CONFIG_PARAM["size_w"]&&CONFIG_PARAM["size_w"]!=""&&CONFIG_PARAM["size_h"]&&CONFIG_PARAM["size_h"]!=""){CONFIG_PARAM['size_w']=parseInt(CONFIG_PARAM['size_w']);CONFIG_PARAM['size_h']=parseInt(CONFIG_PARAM['size_h']);}else{CONFIG_PARAM['size_w']=500;CONFIG_PARAM['size_h']=500;}
if(CONFIG_PARAM['size_w']>1600||CONFIG_PARAM['size_h']>1600){if((typeof(CONFIG_PARAM['CML_FLG'])!="undefined"&&CONFIG_PARAM['CML_FLG']==1)&&(typeof(CONFIG_PARAM['flg_mapsize_unlimited'])!="undefined"&&CONFIG_PARAM['flg_mapsize_unlimited']==1)){if(CONFIG_PARAM['size_w']>2600||CONFIG_PARAM['size_h']>2600){m.style.width=500+'px';m.style.height=500+'px';}else{m.style.width=CONFIG_PARAM['size_w']+'px';m.style.height=CONFIG_PARAM['size_h']+'px';}}
else{m.style.width=500+'px';m.style.height=500+'px';}}else{m.style.width=CONFIG_PARAM['size_w']+'px';m.style.height=CONFIG_PARAM['size_h']+'px';}
if(document.getElementById(_SMAP)){var sm=document.getElementById(_SMAP);if(CONFIG_PARAM['flg_submap']==1){if((!CONFIG_PARAM['ssize_w']||!CONFIG_PARAM['ssize_h'])||(CONFIG_PARAM['ssize_w']==''||CONFIG_PARAM['ssize_h']=='')||new Number(CONFIG_PARAM['ssize_w']).toString()=='NaN'||new Number(CONFIG_PARAM['ssize_h']).toString()=='NaN'){if(default_url.size_w==''&&default_url.size_h==''){CONFIG_PARAM['ssize_w']=parseInt(500/4);CONFIG_PARAM['ssize_h']=parseInt(500/4);}
else{CONFIG_PARAM['ssize_w']=parseInt(default_url.size_w/4);CONFIG_PARAM['ssize_h']=parseInt(default_url.size_h/4);}
sm.style.width=CONFIG_PARAM['ssize_w']+'px';sm.style.height=CONFIG_PARAM['ssize_h']+'px';}
else{if((default_url.size_w!=''&&default_url.size_h!='')){if(CONFIG_PARAM['ssize_w']>=parseInt(default_url.size_w/2)||CONFIG_PARAM['ssize_h']>=parseInt(default_url.size_h/2)){CONFIG_PARAM['ssize_w']=parseInt(default_url.size_w/4);CONFIG_PARAM['ssize_h']=parseInt(default_url.size_h/4);}}else{if(CONFIG_PARAM['ssize_w']>=parseInt(CONFIG_PARAM['size_w']/2)||CONFIG_PARAM['ssize_h']>=parseInt(CONFIG_PARAM['size_h']/2)){CONFIG_PARAM['ssize_w']=parseInt(CONFIG_PARAM['size_w']/4);CONFIG_PARAM['ssize_h']=parseInt(CONFIG_PARAM['size_h']/4);}}
sm.style.width=CONFIG_PARAM['ssize_w']+'px';sm.style.height=CONFIG_PARAM['ssize_h']+'px';}}
else{sm.style.width='0px';sm.style.height='0px';sm.style.display='none';}}};function createMap(){if(MBrowser.safari){if(document.getElementById(_SMAP)&&CONFIG_PARAM['flg_submap']==1){MMap.ID=1;smm=new MMap(document.getElementById(_SMAP));MMap.ID=0;}}
mm=new MMap(document.getElementById(_MAP));mm.autoScroll=true;if(typeof(CONFIG_PARAM['el'])=='number'&&typeof(CONFIG_PARAM['nl'])=='number'){if(CONFIG_PARAM["flg_map_status"]!=1||!document.getElementById('last_nl')||!document.getElementById('last_el')||!document.getElementById('last_scl')){mm.centerAndZoom(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);}else{var lastPoint=getLastMapPoint();if(lastPoint){mm.centerAndZoom(new MPoint(lastPoint.el,lastPoint.nl),lastPoint.scl);}else{mm.centerAndZoom(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);}}}
callIconEntity();if(default_url.uc==29){if(default_url.nl&&default_url.el){if(default_url.scl){mm.centerAndZoom(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);mm.zoomTo(CONFIG_PARAM['scl']);}else{change_zoom=mm.getOptimZoomLevel(markerA);mm.centerAndZoom(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),change_zoom);CONFIG_PARAM['scl']=mm.getZoomLevel();mm.zoomTo(change_zoom);}}
else{change_points=mm.getCenterOfMarkerArray(markerA);if(default_url.scl){mm.centerAndZoom(change_points,CONFIG_PARAM['scl']);}else{change_zoom=mm.getOptimZoomLevel(markerA,mm.getCenterOfMarkerArray(markerA));mm.centerAndZoom(change_points,change_zoom);CONFIG_PARAM['scl']=mm.getZoomLevel();}
CONFIG_PARAM['el']=mm.getCenterLatLng().x;CONFIG_PARAM['nl']=mm.getCenterLatLng().y;CONFIG_PARAM['submap_scl']=CONFIG_PARAM['scl']-3;}}
if(document.getElementById(_SMAP)&&CONFIG_PARAM['flg_submap']==1){if(!MBrowser.safari){smm=new MMap(document.getElementById(_SMAP));}
CONFIG_PARAM['submap_scl']=CONFIG_PARAM['scl']-3;smm.centerAndZoom(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['submap_scl']);selectCenterMark2(smm);var submap=new MSubmap(mm);submap.show();}
showMapPatch();if(!CONFIG_PARAM["flg_resize"]||CONFIG_PARAM["flg_resize"]!=1)callMapEvent();customMapSetting();if(document.getElementById(_SMAP)&&CONFIG_PARAM['flg_submap']==1){mm.basediv.style.left="0px";smm.basediv.style.left="0px";}else if(document.getElementById(_MAP)&&(CONFIG_PARAM['size_w']&&CONFIG_PARAM['size_h']||default_url.size_w&&default_url.size_h)){mm.basediv.style.left="0px";}
if(MBrowser.ie5up&&!MBrowser.ie7up){if(document.getElementById('map').style.top=='0px'){document.getElementById('map').style.top='';}else if(document.getElementById('map').style.top==''){document.getElementById('map').style.top='0px';}
if(document.getElementById('map').style.left=='0px'){document.getElementById('map').style.left='';}else if(document.getElementById('map').style.left==''){document.getElementById('map').style.left='0px';}}};function callMapEvent(){var now_pos=mm.getCenterLatLng();MEvent.addListener(mm,'moveend',function(overlay,rpoint){var pos=mm.getCenterLatLng();var z=mm.getZoomLevel();var out=KDRIVE_OUT_OF_MAP[z];if(out!=null&&(pos.x<out.x1||out.x2<pos.x||pos.y<out.y1||out.y2<pos.y)){if(pos.x<out.x1)pos.x=out.x1;if(out.x2<pos.x)pos.x=out.x2;if(pos.y<out.y1)pos.y=out.y1;if(out.y2<pos.y)pos.y=out.y2;mm.recenterOrPanToLatLng(pos);}else{if(sbar&&sbar!='')sbar.update(mm.getCenterLatLng());if(CONFIG_PARAM["flg_map_status"]==1){if(document.getElementById('last_nl')){document.getElementById('last_nl').value=pos.y;}
if(document.getElementById('last_el')){document.getElementById('last_el').value=pos.x;}
if(document.getElementById('last_scl')){document.getElementById('last_scl').value=z;}}
if(!CONFIG_PARAM["flg_patch"]||CONFIG_PARAM["flg_patch"]!=1){}
else if(CONFIG_PARAM["flg_patch"]==1){if(typeof(mapPatchMoveendHandler)=="function")mapPatchMoveendHandler();if(CONFIG_PARAM["flg_submap"]==1&&typeof(submapPatchMoveendHandler)=="function")submapPatchMoveendHandler();}
getMapcode();if(typeof(showCenterLatLon)=="function")showCenterLatLon();if(typeof(showCenterScale)=="function")showCenterScale();var reget_flg=calculateRange(now_pos);if(reget_flg){getLandMark();now_pos=mm.getCenterLatLng();}else{if(markerA.length==0||CONFIG_PARAM['icon_center_flg']&&CONFIG_PARAM['icon_center_flg']==1){if(route_object!=null)route_object.checkResearchRoute();}}
createMarkLocDiv();if(route_object!=null){var route_check_flg=route_object.checkPoiOnMap();if(route_object.flg||route_check_flg)route_object.drawLine();}}});if(smm&&CONFIG_PARAM['flg_submap']==1){MEvent.addListener(mm,'move',function(){smm.centerAtLatLng(mm.getCenterLatLng());});MEvent.addListener(smm,'move',function(){mm.centerAtLatLng(smm.getCenterLatLng());});MEvent.addListener(smm,'moveend',function(){if(MBrowser.safari)mm.centerAtLatLng(smm.getCenterLatLng());if(sbar&&sbar!='')sbar.update(mm.getCenterLatLng());if(!CONFIG_PARAM["flg_patch"]||CONFIG_PARAM["flg_patch"]!=1){}
else if(CONFIG_PARAM["flg_patch"]==1){if(typeof(mapPatchMoveendHandler)=="function")mapPatchMoveendHandler();if(CONFIG_PARAM["flg_submap"]==1&&typeof(submapPatchMoveendHandler)=="function")submapPatchMoveendHandler();}
getMapcode();if(typeof(showCenterLatLon)=="function")showCenterLatLon();if(typeof(showCenterScale)=="function")showCenterScale();getLandMark();createMarkLocDiv();});MEvent.addListener(mm,'zoom',function(){if(markerA.length!=0){if(MBrowser.safari){mark_timer=setTimeout('resetMarker()',1500);}else{mark_timer=setTimeout('resetMarker()',900);}}
var sub_scl='';if(new Number(mm.getZoomLevel())==0)sub_scl=_ZIDtoSCL[3];if(new Number(mm.getZoomLevel())==1)sub_scl=_ZIDtoSCL[2];if(new Number(mm.getZoomLevel())==2)sub_scl=_ZIDtoSCL[1];else if(new Number(mm.getZoomLevel())!=0&&new Number(mm.getZoomLevel())!=1&&new Number(mm.getZoomLevel())!=2){sub_scl=_ZIDtoSCL[new Number(mm.getZoomLevel())-3];}
if(typeof(showCenterScale)=="function")showCenterScale();getLandMark();refreshObject();if(poib)poib.refreshPois();if(route_object!=null&&route_object.flg)route_object.drawRemoveRoute(true);createMarkLocDiv();if(sub_scl==''||sub_scl=='undefined')return;smm.zoomTo(_SCL[sub_scl]);if(!CONFIG_PARAM["flg_patch"]||CONFIG_PARAM["flg_patch"]!=1){}
else if(CONFIG_PARAM["flg_patch"]==1){if(typeof(mapPatchZoomHandler)=="function")mapPatchZoomHandler();if(CONFIG_PARAM["flg_submap"]==1&&typeof(submapPatchZoomHandler)=="function"){submapPatchZoomHandler();}}});}
else{MEvent.addListener(mm,'zoom',function(){if(!CONFIG_PARAM["flg_patch"]||CONFIG_PARAM["flg_patch"]!=1){}
else if(CONFIG_PARAM["flg_patch"]==1){if(typeof(mapPatchZoomHandler)=="function")mapPatchZoomHandler();}
if(typeof(showCenterScale)=="function")showCenterScale();if(CONFIG_PARAM["flg_map_status"]==1){if(document.getElementById('last_scl')){document.getElementById('last_scl').value=mm.getZoomLevel();}}
getLandMark();refreshObject();if(poib)poib.refreshPois();if(route_object!=null&&route_object.flg)route_object.drawRemoveRoute(true);createMarkLocDiv();if(markerA.length!=0){if(MBrowser.safari){mark_timer=setTimeout('resetMarker()',1500);}else{if(typeof(CONFIG_PARAM['CML_FLG'])!='undefined'&&CONFIG_PARAM['CML_FLG']==1){if(MBrowser.opera)displayParts('none');}
mark_timer=setTimeout('resetMarker()',900);}}else{if(typeof(CONFIG_PARAM['CML_FLG'])!='undefined'&&CONFIG_PARAM['CML_FLG']==1){if(MBrowser.opera){displayParts('none');mark_timer=setTimeout('resetMarker()',900);}}}});}};function getLastMapPoint(){if(document.getElementById('last_nl')){l_nl=document.getElementById('last_nl').value;}else{l_nl=CONFIG_PARAM['nl'];}
if(document.getElementById('last_el')){l_el=document.getElementById('last_el').value;}else{l_el=CONFIG_PARAM['el'];}
if(document.getElementById('last_scl')){l_scl=document.getElementById('last_scl').value;}else{l_scl=CONFIG_PARAM['scl'];}
if(l_nl&&l_el&&l_scl){return{nl:l_nl,el:l_el,scl:l_scl};}else{return false;}};function setLastMapStatus(){};function calculateRange(now_pos){if(!CONFIG_PARAM["move_pixel"]||CONFIG_PARAM["move_pixel"]=="")return true;var movePx=eval(CONFIG_PARAM["move_pixel"]);if(typeof(movePx)!="object"||movePx.length!=10)return true;var D=parseInt(movePx[mm.getZoomLevel()]);if(D==0)return true;if(D>100)D=100;var cpp=mm.r2p(now_pos);var lt=mm.p2r(new MPoint(cpp.x-D,cpp.y-D));var rt=mm.p2r(new MPoint(cpp.x+D,cpp.y-D));var rb=mm.p2r(new MPoint(cpp.x+D,cpp.y+D));var lb=mm.p2r(new MPoint(cpp.x-D,cpp.y+D));var regetBox=null;regetBox=new MBox(lb.x,lb.y,rt.x,rt.y);var flg=checkRegetPoi(regetBox);if(flg)return true;else return false;};function checkRegetPoi(regetBox){if(regetBox==null)return true;return!regetBox.contains(mm.getCenterLatLng());};function callIconEntity(){var url=CONFIG_PARAM['FRONT_URL']+CONFIG_PARAM['API']+'/markerInfo?grp='+CONFIG_PARAM['grp'];if(_I_CNT==0)return;for(var j=0;j<_I_CNT;j++){if(POI_PARAM['ID_'+j]!=''&&typeof(POI_PARAM['ID_'+j])!='undefined'){icon_value+='&iconid='+POI_PARAM['ID_'+j];}}
if(typeof(icon_value)=='undefined'||icon_value=='')return;url+=icon_value;url+='&xtype=json';url+='&varname=_json';var httpobj=CMSCommon.createHttpRequest();httpobj.open("GET",url,false);httpobj.send(null);if(httpobj.readyState==4||httpobj.state==200||httpobj.state==304){eval(httpobj.responseText);if(typeof(_json)=='undefined')return;}
iconJson(_json);};function iconJson(_json){if(typeof(_json)!='undefined'){if(!_json.iconlst||!_json.iconlst.icon)return;var ic=icon_value.split('&');var ic_id=new Array();var ic_count=0;var ic_type=0;for(var j=0;j<ic.length;j++){if(ic[j].indexOf('=')!=-1){ic_id.push(ic[j].split('=')[1]);ic_count++;}}
_I_CNT=ic_count;for(var k=0;k<_I_CNT;k++){var num=k+1;if(typeof(ic_same[ic_id[k]])!='undefined'){ic_same[ic_id[k]]=ic_same[ic_id[k]]+','+k;}else{ic_same[ic_id[k]]=k;ic_type++;}}
var icon_count=0;for(var m in ic_same){var icon=new Array();if(ic_same[m].toString().indexOf(',')==-1){icon.push(ic_same[m]);}
else{icon=ic_same[m].split(',');}
for(var n=0;n<_json.iconlst.icon.length;n++){if(_json.iconlst.icon[n].id==m){for(var i=0;i<icon.length;i++){_I_ID[icon[i]]=icon[i];_I_FILE[icon[i]]=(_json.iconlst.icon[n].iconfile);_I_WIDTH[icon[i]]=(_json.iconlst.icon[n].iconwidth);_I_HEIGHT[icon[i]]=(_json.iconlst.icon[n].iconheight);icon_count++;}}}}
makeMarker();}};function setPopupProp(){if(CONFIG_PARAM['flg_iname']==1){inameObj.id=new Array();inameObj.el=new Array();inameObj.nl=new Array();inameObj.str=new Array();}};function makeMarker(){setPopupProp();var lon='';var lat='';for(var j=0;j<_I_CNT;j++){cMarker=new MIcon();cMarker.image=_I_FILE[j];cMarker.width=_I_WIDTH[j];cMarker.height=_I_HEIGHT[j];cMarker.name=_I_ID[j]+'-'+j;cMarker.str=CMSCommon.entity_change(POI_PARAM['STR_'+j]);var poi_x=new Array();var poi_y=new Array();if(POI_PARAM['X_'+j]==''){poi_x[j]=parseFloat(_I_WIDTH[j]/2);}else{poi_x[j]=parseFloat(_I_WIDTH[j]/2)+POI_PARAM['X_'+j];}
if(POI_PARAM['Y_'+j]==''){poi_y[j]=parseFloat(_I_HEIGHT[j]/2);}else{poi_y[j]=parseFloat(_I_HEIGHT[j]/2)+POI_PARAM['Y_'+j];}
cMarker.iconAnchor=new MPoint(poi_x[j],poi_y[j]);if(POI_PARAM['EL_'+j].toString().indexOf('/')!=-1&&POI_PARAM['NL_'+j].toString().indexOf('/')!=-1){lon=CMSCommon.change60to10(POI_PARAM['EL_'+j]);lat=CMSCommon.change60to10(POI_PARAM['NL_'+j]);}
else if(POI_PARAM['EL_'+j].toString().indexOf('.')!=-1&&POI_PARAM['NL_'+j].toString().indexOf('.')!=-1){lon=POI_PARAM['EL_'+j];lat=POI_PARAM['NL_'+j];}
else{var pt=mm.r2p(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);el=eval(pt.x)+eval(POI_PARAM['NL_'+j]-CONFIG_PARAM['size_w']/2);nl=eval(pt.y)+eval(POI_PARAM['EL_'+j]-CONFIG_PARAM['size_h']/2);var et=mm.adp.p2r(new MPoint(el,nl),CONFIG_PARAM['scl']);lon=et.x;lat=et.y;}
if(!CONFIG_PARAM['flg_iname']||CONFIG_PARAM['flg_iname']==0||CONFIG_PARAM['flg_iname']!=1){cMarker.getHTML=getHtml;markerA[j]=new MMarker(new MPoint(lon,lat),cMarker,false);mm.addOverlay(markerA[j]);}
else if(CONFIG_PARAM['flg_iname']==1){markerA[j]=new MMarker(new MPoint(lon,lat),cMarker,false);markerA[j].div.id="mark_"+j;markerA[j].div.style.cursor="pointer";mm.addOverlay(markerA[j]);var str=POI_PARAM['STR_'+j];if(str!=''){markerA[j].div.onmouseover=function(){if(!this.oP||this.oP=='undefined')return;var _w=parseFloat(this.oP.icon.width/2);mm.openInfoWindowHtml(this.oP.rpos,this.oP.icon.str,new MSize(_w,10));}
markerA[j].div.onmouseout=function(){mm.closeInfoWindow();}}
inameObj.id[j]="mark_"+j;inameObj.el[j]=lon;inameObj.nl[j]=lat;inameObj.str[j]=cMarker.str;}
if(markerA.length!=0){if(MBrowser.safari){mark_timer=setTimeout('resetMarker()',1500);}else{mark_timer=setTimeout('resetMarker()',900);}}}
for(var i=0;i<markerA.length;i++){if(document.getElementById('marker_'+i)){document.getElementById('marker_'+i).onmouseover=mlocMOver;}
markerA[i].icon.return_zIndex=2001;}};function getHtml(){var num=cMarker.name.split('-')[1];if(_I_STYLE[POI_PARAM['TYPE_'+num]]){var direc=_I_STYLE[POI_PARAM['TYPE_'+num]].split(',')[0];var clr=_I_STYLE[POI_PARAM['TYPE_'+num]].split(',')[1];var size=_I_STYLE[POI_PARAM['TYPE_'+num]].split(',')[2];}
var _iWidth=parseInt(_I_WIDTH[num]/2);htmlStr='';if(cMarker.str==''||!cMarker.str||!_I_STYLE[POI_PARAM['TYPE_'+num]]){htmlStr+='<div style="padding:0px; position:absolute; top:0px; left:0px;" id="marker_'+num+'">';htmlStr+='<div style="padding:0px;top:0px; left:0px;" id="mark_icon_'+num+'"><img src="'+cMarker.image+'"></div>';htmlStr+='</div>';}
else{if(direc=='r'||direc=='t'||direc=='b'){htmlStr+='<div style="padding:0px; position:absolute; top:0px; left:0px;" id="marker_'+num+'">';htmlStr+='<table cellspacing="0px" cellpadding="0px">';htmlStr+='<tr><td align="left"><div style="padding:0px;top:0px; left:0px;" id="mark_icon_'+num+'"><image src="'+cMarker.image+'"></div></td>';htmlStr+='<td nowrap align="center" valign="center">';htmlStr+='<div style="background-color:#FFFFFF; border:1px solid #cfcfcf; vertical-align:center;">';htmlStr+='<font style="background-color:#FFFFFF;font-size:'+size+'pt;font-weight:bold;color:'+clr+';">';htmlStr+='&nbsp;'+cMarker.str+'&nbsp;</font>';htmlStr+='</div>';htmlStr+='</td></tr></table></div>';}
else if(direc=='l'){htmlStr+='<div style="padding:0px; position:absolute; top:0px; right:0px;" id="marker_'+num+'">';htmlStr+='<table cellspacing="0px" cellpadding="0px">';htmlStr+='<tr>';htmlStr+='<td nowrap align="center" valign="center">';htmlStr+='<div style="background-color:#FFFFFF;border:1px solid #cfcfcf; vertical-align:center;">';htmlStr+='<font style="background-color:#FFFFFF;font-size:'+size+'pt;font-weight:bold;color:'+clr+';">';htmlStr+='&nbsp;'+cMarker.str+'&nbsp;</font>'+'</div></td>';htmlStr+='<td align="left"><div style="padding:0px;top:0px; left:0px;" id="mark_icon_'+num+'"><image src="'+cMarker.image+'"></div></td>';htmlStr+='</tr></table></div></div>';}}
return htmlStr;};function getConfigFile(){if(!default_url||default_url==null){var dpInput=(typeof(_tag_param)=="undefined"||_tag_param.method=="GET")?location.href:_tag_param;default_url=new parseDefaultUrl(dpInput);default_url.url_param();default_url.icon_param();default_url.bt_param();default_url.shape_param();}
var date=new Date();var CONFIG_CSV='/custom/'+default_url.grp+'/js/config.csv?'
+date.getHours()
+date.getMinutes()
+date.getSeconds()
+date.getMilliseconds();var config_param=loadCsvData(CONFIG_CSV);setParameter(config_param);if(default_url.hash)location.href=default_url.hash;};function showMapPatch(){if(!CONFIG_PARAM["flg_patch"]||CONFIG_PARAM["flg_patch"]=="")return;if(mm&&CONFIG_PARAM["flg_patch"]==1){MAPPATCH_DEFAULT_URL="/mxasp/mapPatch";MAPPATCH_DEFAULT_GRP=CONFIG_PARAM["grp"];var kw=new KDWrapper(document.getElementById(_MAP),"");kw.map=mm;kw.enableMapPatch();if(smm&&CONFIG_PARAM["flg_submap"]==1){var kw2=new KDWrapper(document.getElementById(_SMAP),"");kw2.map=smm;kw2.enableSubMapPatch();}}};KDWrapper.prototype.enableMapPatch=function(){var rq=new POIRequest();this.mappatch=rq;rq.setMode("json");rq.setRequestParam(new mappatch_RequestParam(this.map));rq.setFilter(new mappatch_Filter());rq.getPOI();var obj=this;var mapPatchOnloadHandler=function(){if(!rq.data||!rq.data.length)return;var a=rq.data;var l=a.length;for(var i=0;i<l;i++)obj.map.addOverlay(a[i]);obj.dispatchEvent(new EventObject(KDWrapper.MAPPATCH_COMPLETE,obj));}
mapPatchMoveendHandler=function(){if(!rq.data||!rq.data.length)return;var a=rq.data;var l=a.length;for(var i=0;i<l;i++){try{obj.map.removeOverlay(a[i]);}catch(e){}}
rq.getPOI();}
mapPatchZoomHandler=function(){if(!rq.data||!rq.data.length)return;var a=rq.data;var l=a.length;for(var i=0;i<l;i++){try{obj.map.removeOverlay(a[i]);}catch(e){}}
rq.getPOI();}
mapPatchResizeHandler=function(){if(!rq.data||!rq.data.length)return;var a=rq.data;var l=a.length;for(var i=0;i<l;i++){try{obj.map.removeOverlay(a[i]);}catch(e){}}
rq.getPOI();}
if(MBrowser.opera)mapPatchOnloadHandler();rq.addEventListener("onload",mapPatchOnloadHandler);};KDWrapper.prototype.enableSubMapPatch=function(){var rq2=new POIRequest();this.mappatch=rq2;rq2.setMode("json");rq2.setRequestParam(new mappatch_RequestParam(smm));rq2.setFilter(new mappatch_Filter());rq2.getPOI();var obj=this;var submapPatchOnloadHandler=function(){if(!rq2.data||!rq2.data.length)return;var a=rq2.data;var l=a.length;for(var i=0;i<l;i++)obj.map.addOverlay(a[i]);obj.dispatchEvent(new EventObject(KDWrapper.MAPPATCH_COMPLETE,obj));}
submapPatchMoveendHandler=function(){if(!rq2.data||!rq2.data.length)return;var a=rq2.data;var l=a.length;for(var i=0;i<l;i++){try{obj.map.removeOverlay(a[i]);}catch(e){}}
rq2.getPOI();}
submapPatchZoomHandler=function(){if(!rq2.data||!rq2.data.length)return;var a=rq2.data;var l=a.length;for(var i=0;i<l;i++){try{obj.map.removeOverlay(a[i]);}catch(e){}}
rq2.getPOI();}
submapPatchResizeHandler=function(){if(!rq2.data||!rq2.data.length)return;var a=rq2.data;var l=a.length;for(var i=0;i<l;i++){try{obj.map.removeOverlay(a[i]);}catch(e){}}
rq2.getPOI();}
if(MBrowser.opera)submapPatchOnloadHandler();rq2.addEventListener("onload",submapPatchOnloadHandler);};function MSubmap(mmap){this.mdiv=mmap;this._mapdiv=null;this._subdiv=null;this.map_w=null;this.map_h=null;this.sub_w=null;this.sub_h=null;this.subpos=null;this.subborder_w=null;this.subborder_c=null;this.sLayer_in=null;this.sLayer_out=null;};MSubmap.prototype.show=function(){if(!document.getElementById(_SMAP)||CONFIG_PARAM["flg_submap"]!=1)return;this._mapdiv=document.getElementById(_MAP);this._subdiv=document.getElementById(_SMAP);this._subdiv.style.position="absolute";this._subdiv.style.top=0+"px";this._subdiv.style.right=0+"px";if(!CONFIG_PARAM['flg_sborder']||CONFIG_PARAM['flg_sborder']==''||CONFIG_PARAM['flg_sborder']==0){this._subdiv.style.zIndex=10000;}
this.mdiv.div.appendChild(this._subdiv);this.setConfigValue();this.setPosition();this.createBorder();};MSubmap.prototype.setConfigValue=function(){this.map_w=mm.div.offsetWidth;this.map_h=mm.div.offsetHeight;this.sub_w=smm.div.offsetWidth;this.sub_h=smm.div.offsetHeight;if(!CONFIG_PARAM['submap_pos']||CONFIG_PARAM['submap_pos']==''){this.subpos="TOP_RIGHT";}else if(CONFIG_PARAM['submap_pos'].toString().indexOf('_')==-1){this.subpos="TOP_RIGHT";}else{this.subpos=CONFIG_PARAM['submap_pos'].toString().toUpperCase();}
if(!CONFIG_PARAM['sborder_w']||CONFIG_PARAM['sborder_w']==''){this.subborder_w=10;}
else if(new Number(CONFIG_PARAM['sborder_w']).toString()!='NaN'&&CONFIG_PARAM['sborder_w']>=1&&CONFIG_PARAM['sborder_w']<=10){this.subborder_w=parseInt(CONFIG_PARAM['sborder_w']);}
else{this.subborder_w=10;}
if(!CONFIG_PARAM['sborder_c']||CONFIG_PARAM['sborder_c']==''){this.subborder_c='#999999';}
else if(CONFIG_PARAM['sborder_c'].toString().indexOf('#')!=-1&&CONFIG_PARAM['sborder_c'].length==7){this.subborder_c=CONFIG_PARAM['sborder_c'].toString();}
else{this.subborder_c='#999999';}};MSubmap.prototype.setPosition=function(){if(this._subdiv==null)return;switch(this.subpos){case"TOP_RIGHT":this._subdiv.style.bottom="";this._subdiv.style.top=0+"px";this._subdiv.style.left="";this._subdiv.style.right=0+"px";break;case"TOP_LEFT":this._subdiv.style.bottom="";this._subdiv.style.top=0+"px";this._subdiv.style.right="";this._subdiv.style.left=0+"px";break;case"BOTTOM_RIGHT":this._subdiv.style.top="";this._subdiv.style.bottom=0+"px";this._subdiv.style.left="";this._subdiv.style.right=0+"px";break;case"BOTTOM_LEFT":this._subdiv.style.top="";this._subdiv.style.bottom=0+"px";this._subdiv.style.right="";this._subdiv.style.left=0+"px";break;default:this._subdiv.style.bottom="";this._subdiv.style.top=0+"px";this._subdiv.style.left="";this._subdiv.style.right=0+"px";break;}};MSubmap.prototype.createBorder=function(){if(!CONFIG_PARAM['flg_sborder']||CONFIG_PARAM['flg_sborder']==''||CONFIG_PARAM['flg_sborder']==0){return;}
if(CONFIG_PARAM['flg_sborder']==1){this._mapdiv.style.position='relative';this._mapdiv.style.zIndex=1;if(document.getElementById('sub_map')){this.createOuterLayer();this._subdiv.parentNode.appendChild(this.sLayer_out);this.createInnerLayer();this.sLayer_out.appendChild(this.sLayer_in);this.sLayer_in.appendChild(this._subdiv);this.setBorderColor();this._subdiv.style.zIndex=100;this._mapdiv.appendChild(this.sLayer_out);}}};MSubmap.prototype.createOuterLayer=function(){this.sLayer_out=document.createElement('DIV');this.sLayer_out.id='sLayer_out';this.sLayer_out.style.width=(this.sub_w+this.subborder_w)+'px';this.sLayer_out.style.height=(this.sub_h+this.subborder_w)+'px';this.sLayer_out.style.backgroundColor="#FFFFFF";this.sLayer_out.style.zIndex=10000;this.sLayer_out.style.position='absolute';this.setOuterBorderC();};MSubmap.prototype.setOuterBorderC=function(){switch(this.subpos){case"TOP_RIGHT":this.sLayer_out.style.borderBottom=this.subborder_c+' 1px solid';this.sLayer_out.style.top=0+'px';this.sLayer_out.style.borderLeft=this.subborder_c+' 1px solid';this.sLayer_out.style.right=0+'px';break;case"TOP_LEFT":this.sLayer_out.style.borderBottom=this.subborder_c+' 1px solid';this.sLayer_out.style.top=0+'px';this.sLayer_out.style.borderRight=this.subborder_c+' 1px solid';this.sLayer_out.style.left=0+'px';break;case"BOTTOM_RIGHT":this.sLayer_out.style.borderTop=this.subborder_c+' 1px solid';this.sLayer_out.style.bottom=0+'px';this.sLayer_out.style.borderLeft=this.subborder_c+' 1px solid';this.sLayer_out.style.right=0+'px';break;case"BOTTOM_LEFT":this.sLayer_out.style.borderTop=this.subborder_c+' 1px solid';this.sLayer_out.style.bottom=0+'px';this.sLayer_out.style.borderRight=this.subborder_c+' 1px solid';this.sLayer_out.style.left=0+'px';break;default:this.sLayer_out.style.borderBottom=this.subborder_c+' 1px solid';this.sLayer_out.style.top=0+'px';this.sLayer_out.style.borderLeft=this.subborder_c+' 1px solid';this.sLayer_out.style.right=0+'px';break;}};MSubmap.prototype.createInnerLayer=function(){this.sLayer_in=document.createElement('DIV');this.sLayer_in.id='sLayer_in';this.sLayer_in.style.width=this.sub_w+'px';this.sLayer_in.style.height=this.sub_h+'px';this.sLayer_in.style.zIndex=10;this.setInnerBorderW();};MSubmap.prototype.setInnerBorderW=function(){switch(this.subpos){case"TOP_RIGHT":this.sLayer_in.style.borderBottom='#FFF '+this.subborder_w+'px solid';this.sLayer_in.style.borderLeft='#FFF '+this.subborder_w+'px solid';break;case"TOP_LEFT":this.sLayer_in.style.borderBottom='#FFF '+this.subborder_w+'px solid';this.sLayer_in.style.borderRight='#FFF '+this.subborder_w+'px solid';break;case"BOTTOM_RIGHT":this.sLayer_in.style.borderTop='#FFF '+this.subborder_w+'px solid';this.sLayer_in.style.borderLeft='#FFF '+this.subborder_w+'px solid';break;case"BOTTOM_LEFT":this.sLayer_in.style.borderTop='#FFF '+this.subborder_w+'px solid';this.sLayer_in.style.borderRight='#FFF '+this.subborder_w+'px solid';break;default:this.sLayer_in.style.borderBottom='#FFF '+this.subborder_w+'px solid';this.sLayer_in.style.borderLeft='#FFF '+this.subborder_w+'px solid';break;}};MSubmap.prototype.setBorderColor=function(){switch(this.subpos){case"TOP_RIGHT":this._subdiv.style.borderBottom=this.subborder_c+' 1px solid';this._subdiv.style.borderLeft=this.subborder_c+' 1px solid';break;case"TOP_LEFT":this._subdiv.style.borderBottom=this.subborder_c+' 1px solid';this._subdiv.style.borderRight=this.subborder_c+' 1px solid';this._subdiv.style.borderLeft=0+'px';break;case"BOTTOM_RIGHT":this._subdiv.style.borderTop=this.subborder_c+' 1px solid';this._subdiv.style.borderLeft=this.subborder_c+' 1px solid';break;case"BOTTOM_LEFT":this._subdiv.style.borderTop=this.subborder_c+' 1px solid';this._subdiv.style.borderRight=this.subborder_c+' 1px solid';this._subdiv.style.borderLeft=0+'px';break;default:this._subdiv.style.borderBottom=this.subborder_c+' 1px solid';this._subdiv.style.borderLeft=this.subborder_c+' 1px solid';break;}};
