
var cmmk;var cmmk_d;var scmmk;var scmmk_d;var dirb="";var polygonObjectArray=new Array();var colorPalette=["ffffff","000000","006ad5","0088b6","00ac6c","00b0bd","00b1cd","00b3f0","00b49d","027acd","0568b8","186ca1","191919","1b6f1a","314389","3c00b3","3f518f","404040","464fa1","4a7c9c","50b848","505050","5f6db3","72bf44","74a472","783200","797979","808080","878787","7f93ca","8b2e28","939598","94544b","999999","995925","9c9c9c","c4967f","af90af","a2a2a2","ababab","afcf70","d8b8a0","b0e6be","b3b3b3","b40e00","b7efb9","babdae","be0a14","bebebe","f4d772","b5a45f","c39f82","c4e8cd","c7c7c7","c8f5ba","cbdbf4","c4967f","cdcdcd","cd7575","d09d86","ea9878","dedede","def8bb","df7777","e30f00","e4ebdc","e6effb","eaecd9","ed0c6e","edbbbb","ee3d96","ffba68","f05b72","f15b5b","e4acac","e9c680","f2f9ca","f37021","f5eadf","f7941d","f7ebe9","fae5e1","fcfcde","ff6e6e","f8d45d","fbefc6","f3eba5","fff599","fff6a3","ffffde","ffffff","373737","ff0033","cc0033","ff3366","990033","cc3366","e66699","cc0066","660033","ff0099","991a66","cc3399","cc0099","ff33cc","ff00cc","ff00ff","cc00cc","330033","991a99","ff33ff","cc33cc","661a66","e666e6","e699e6","ffccff","cc00ff","cc33ff","991ae6","661a99","330066","661acc","9966e6","330099","661aff","3300ff","0000f7","0000d5","0000b3","000091","00006f","00004d","00002b","3333ff","333399","6666e6","333366","9999e6","666699","ccccff","0033ff","0033cc","003399","6699e6","003366","1a6699","1a99e6","33ccff","00ffff","00cccc","003333","1a9999","33ffff","33cccc","1a6666","66e6e6","99e6e6","669999","ccffff","00ffcc","33ffcc","1ae699","006633","1acc66","66e699","009933","1aff66","00cc33","00ff33","00f700","00d500","00b300","009100","006f00","004d00","002b00","001100","33ff33","33cc33","339933","66e666","336633","99e699","669966","33ff00","33cc00","66ff33","339900","66cc33","66ff00","99e666","66cc00","336600","99e633","66991a","99e600","ccff33","ccff00","e6ff66","ffff00","cccc00","333300","99991a","ffff33","cccc33","66661a","e6e699","ffffcc","919177","e6cc66","ffcc33","e69900","99661a","e69933","cc6600","663300","ff6600","e69966","993300","cc6633","cc3300","ff6633","ff3300","f70000","b30000","910000","6f0000","4d0000","2b0000","110000","ff3333","cc3333","993333","e66666","663333","e69999","996666","ffcccc","d5d5d5","aaaaaa","2b2b2b","0000ff","009000","00ff00","994800","ff0000","ff9000","ffb4ff","fdcc12","ffd8b0","cc0000","f1ffff","9f070f","fff1ff","fffff1","ffffff"]
var tid=0;var s_cnt="";var parts_timer=null;function customMapSetting(){selectMapDrag();selectCenterMark2(mm);setScaleImage();setScaleBar();setWheelEvent();setCopyPosition();createQrCode();dispIconToSubmap();convertColorData();drawCircleObject();drawLineObject();drawPolyObject();};function refreshObject(){if(typeof(CMSRoute)=="function"&&route_object!=null){if(route_object&&route_object.lineObj&&route_object.lineObj!=null)route_object.removeRoute();}
if(polygonObjectArray.length!=0){for(var i=0;i<polygonObjectArray.length;i++){if(!eval(polygonObjectArray[i].div.getAttribute("route")))mm.removeOverlay(polygonObjectArray[i]);}}
polygonObjectArray=new Array();drawCircleObject();drawLineObject();drawPolyObject();};function selectMapDrag(){if(CONFIG_PARAM['flg_drag']==1||!CONFIG_PARAM['flg_drag']||CONFIG_PARAM['flg_drag']==''){if(smm)smm.enableDragging();mm.enableDragging();}
else if(CONFIG_PARAM['flg_drag']==0){if(smm)smm.disableDragging();mm.disableDragging();}
else mm.enableDragging();};function selectCenterMark2(minst){if(!minst)return;minst.centerMarkHide()
if(CONFIG_PARAM['flg_center']==1){if(!minst.cmmk||typeof(minst.cmmk)=="undefined"){var cmic=new MIcon();cmic.image=CONFIG_PARAM['CENTERMARK_IMAGE_PATH'];cmic.width=11;cmic.height=11;if(MBrowser.ie5up||MBrowser.ie7up||MBrowser.safari){cmic.offsetX=6;cmic.offsetY=6;}else{cmic.offsetX=parseFloat(cmic.width/2);cmic.offsetY=parseFloat(cmic.height/2);}
minst.cmmk=new MMarker(null,cmic,false);if(CONFIG_PARAM["CML_FLG"]&&CONFIG_PARAM["CML_FLG"]==1){minst.cmmk.div.id="centermk";}
minst.cmmk.setPosByMapDivCoord(new MPoint(Math.floor(minst.div.offsetWidth/2),Math.floor(minst.div.offsetHeight/2)),minst);minst.addOverlay(minst.cmmk);}
minst.cmmk.setPosByMapDivCoord(new MPoint(Math.floor(minst.div.offsetWidth/2),Math.floor(minst.div.offsetHeight/2)),minst)
minst.cmmk.div.style.zIndex=POI.CENTERMARK_ZINDEX;if(!minst.cmmk_d||typeof(minst.cmmk_d)=="undefined"){minst.cmmk_d=document.createElement("img");minst.cmmk_d.src=CONFIG_PARAM['CENTERMARK_IMAGE_PATH'];minst.cmmk_d.style.position="absolute";minst.cmmk_d.style.display="none";minst.cmmk_d.style.zIndex=CONFIG_PARAM['main_centermark_zindex'];minst.div.appendChild(minst.cmmk_d);}
if(typeof(CONFIG_PARAM["single_center_icon"])=="undefined")minst.cmmk_d.style.display="none";var leftDiff=(MBrowser.opera&&minst.div.offsetWidth%2==0)?5.5:6;var topDiff=(MBrowser.opera)?5:6;var pos=minst.r2s(minst.cmmk.div.oP.rpos);minst.cmmk_d.style.left=Math.floor(pos.x)-leftDiff+"px";minst.cmmk_d.style.top=Math.floor(pos.y)-topDiff+"px";var updateAfterMove=function(){minst.cmmk.setPosByMapDivCoord(new MPoint(Math.floor(minst.div.offsetWidth/2),Math.floor(minst.div.offsetHeight/2)),minst);minst.cmmk.div.style.display="none";minst.cmmk_d.style.display="block";}
var updateAfterMoveend=function(){minst.cmmk.setPosByMapDivCoord(new MPoint(Math.floor(minst.div.offsetWidth/2),Math.floor(minst.div.offsetHeight/2)),minst);var leftDiff=(MBrowser.opera&&minst.div.offsetWidth%2==0)?5.5:6;var topDiff=(MBrowser.opera)?5:6;var pos=minst.r2s(minst.cmmk.div.oP.rpos);minst.cmmk_d.style.left=Math.floor(pos.x)-leftDiff+"px";minst.cmmk_d.style.top=Math.floor(pos.y)-topDiff+"px";if(typeof(CONFIG_PARAM["single_center_icon"])=="undefined"){minst.cmmk_d.style.display="none";minst.cmmk.div.style.display="block";}}
var updateAfterZoom=function(){minst.cmmk.setPosByMapDivCoord(new MPoint(Math.floor(minst.div.offsetWidth/2),Math.floor(minst.div.offsetHeight/2)),minst);var leftDiff=(MBrowser.opera&&minst.div.offsetWidth%2==0)?5.5:6;var topDiff=(MBrowser.opera)?5:6;if(typeof(CONFIG_PARAM["single_center_icon"])=="undefined"){var pos=minst.r2s(minst.cmmk.div.oP.rpos);minst.cmmk_d.style.left=Math.floor(pos.x)-leftDiff+"px";minst.cmmk_d.style.top=Math.floor(pos.y)-topDiff+"px";}}
MEvent.addListener(minst,"move",updateAfterMove);MEvent.addListener(minst,"moveend",updateAfterMoveend);MEvent.addListener(minst,"zoom",updateAfterZoom);if(minst.div.id=="map"){if(CONFIG_PARAM["flg_sclbar"]==4){if(sbar.smoothback){sbar.addMoveEndHandler();}}
if(smm){MEvent.addListener(smm,"move",updateAfterMove);MEvent.addListener(smm,"moveend",updateAfterMoveend);}}
else{MEvent.addListener(mm,"move",updateAfterMove);MEvent.addListener(mm,"moveend",updateAfterMoveend);MEvent.addListener(mm,"zoom",updateAfterZoom);}}};function setScaleImage(){if(CONFIG_PARAM['flg_sclimg']==1){if(!CONFIG_PARAM['sclimg_pos']||CONFIG_PARAM['sclimg_pos']==''||CONFIG_PARAM['sclimg_pos'].indexOf('_')==-1)mm.addControl(new MScaleControl(),new MControlPosition(M_ANCHOR_BOTTOM_RIGHT,5,5));else{var i_pos=CONFIG_PARAM['sclimg_pos'].split('_');var xpos=i_pos[1].toString().toUpperCase();var ypos=i_pos[0].toString().toUpperCase();if(xpos=='RIGHT'&&ypos=='TOP'){mm.addControl(new MScaleControl(),new MControlPosition(M_ANCHOR_TOP_RIGHT,5,5));}
else if(xpos=='LEFT'&&ypos=='TOP'){mm.addControl(new MScaleControl(),new MControlPosition(M_ANCHOR_TOP_LEFT,5,5));}
else if(xpos=='RIGHT'&&ypos=='BOTTOM'){mm.addControl(new MScaleControl(),new MControlPosition(M_ANCHOR_BOTTOM_RIGHT,5,5));}
else if(xpos=='LEFT'&&ypos=='BOTTOM'){mm.addControl(new MScaleControl(),new MControlPosition(M_ANCHOR_BOTTOM_LEFT,5,5));}
else{mm.addControl(new MScaleControl(),new MControlPosition(M_ANCHOR_BOTTOM_RIGHT,5,5));}}}
else return;};function MLinkMapionControl(latlon,smoothback){this.id="szctr"+MLinkMapionControl.ID++;this.map=null;this.initLatlon=latlon;this.initScl=null;this.div=null;this.scale_list=null;this._scale=new MMapionScale(this.onLoadScaleList,this);this.maxzoomlevel=null;this.smoothback=smoothback;this.backhomeEvent=false;};MLinkMapionControl.prototype=new MSmallMapionControl;MLinkMapionControl.ID=0;MLinkMapionControl.prototype.show=function(){this.div=document.createElement("DIV");this.div.oP=this;this.div.style.position="absolute";this.div.style.left="10px";this.div.style.top="10px";this.div.id=this.id+"div";this.div.style.zIndex=200;if(!this.scale_list)
{this.minzoomlevel=0;this.maxzoomlevel=9;}
var _mmap=this.map;this.div.onmouseup=function(){_mmap.focuselem.focus();};this.map.basediv.appendChild(this.div);this.smoothZoom=false;this.autoScaleSmooth=true;var s="";s+="<table border=0 cellpadding=0 cellspacing=4>";s+="<tr>";s+="<td>";s+="<div id=zoomin"+this.id+" style='font-size:1px;'>";s+="<img src='"+MMap.IMGPATH+"img/mcontrol/mvup.png' style='vertical-align:bottom;'>";s+="</div>";s+="</td>";s+="</tr>";s+="<tr>";s+="<td>";s+="<div id=zoomout"+this.id+" style='font-size:1px;'>";s+="<img src='"+MMap.IMGPATH+"img/mcontrol/mvdown.png' style='vertical-align:bottom;'>";s+="</div>";s+="</td>";s+="</tr>";s+="<tr>";s+="<td>";s+="<div id=backhome"+this.id+" style='font-size:1px;'>";s+="<img src='"+MMap.IMGPATH+"img/mcontrol/home_1.gif' alt='スタート位置に戻る' title='スタート位置に戻る' style='vertical-align:bottom;'>";s+="</div>";s+="</td>";s+="</tr>";s+="</table>";this.div.innerHTML=s;this.zi=document.getElementById("zoomin"+this.id);this.zi.oP=this;this.zi.onmousedown=this.zoomIn;this.zo=document.getElementById("zoomout"+this.id);this.zo.oP=this;this.zo.onmousedown=this.zoomOut;this.bh=document.getElementById("backhome"+this.id);this.bh.oP=this;this.bh.onmousedown=this.backHome;this.bh.oP.initLatlon=this.initLatlon;if(!this.maxzoomlevel&&this.map)
{this.setMaxZoomLevel(9);}
if(this.smoothback){this.addMoveEndHandler()}
this.refreshScaleList()};MLinkMapionControl.prototype.setInitScl=function(iniScl){this.initScl=iniScl;}
MLinkMapionControl.prototype.addMoveEndHandler=function(pos)
{var _mmap=this.map;var mcml=this;MEvent.addListener(_mmap,"moveend",function(){if(mcml.backhomeEvent){if(_mmap.getZoomLevel()>mcml.initScl){_mmap.smoothzoomout(_mmap.getZoomLevel()-mcml.initScl);}
else if(_mmap.getZoomLevel()<mcml.initScl){_mmap.smoothzoomin(mcml.initScl-_mmap.getZoomLevel());}
mcml.backhomeEvent=false;}});};MLinkMapionControl.prototype.zoomIn=function()
{if(this.oP.map.moving)return;if(this.oP.map.getZoomLevel()+1>this.oP.maxzoomlevel)return;if(this.oP.smoothZoom)
{this.oP.map.smoothzoomin(1);}
else
{this.oP.map.changeZoom(this.oP.map.zid+1);}};MLinkMapionControl.prototype.zoomOut=function()
{if(this.oP.map.moving)return;if(this.oP.map.getZoomLevel()==0)return;if(this.oP.smoothZoom)
{this.oP.map.smoothzoomout(1);}
else
{this.oP.map.changeZoom(this.oP.map.zid-1);}};MLinkMapionControl.prototype.setSmoothZoom=function(value)
{this.smoothZoom=value;};MLinkMapionControl.prototype.backHome=function(){if(this.oP.smoothback){var mlmc=this.oP;mlmc.backhomeEvent=true;var smoothZoomOrg=mlmc.smoothZoom;mlmc.smoothZoom=true;this.oP.map.recenterOrPanToLatLng(this.oP.initLatlon);MEvent.trigger(this.oP.map,"move");MEvent.trigger(this.oP.map,"zoom");mlmc.smoothZoom=smoothZoomOrg;}
else{this.oP.map.centerAndZoom(this.oP.initLatlon,this.oP.initScl);MEvent.trigger(this.oP.map,"moveend");MEvent.trigger(this.oP.map,"move");MEvent.trigger(this.oP.map,"zoom");}}
MLinkMapionControl.prototype.backHome=function(){if(this.oP.backhomeEvent)return;if(this.oP.map.moving||this.oP.map.smoothzoomby!=0)return;if(!this.oP.initScl)this.oP.initScl=(CONFIG_PARAM.initScl)?CONFIG_PARAM.initScl:7;var dummyPSG=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];var orgPSG=(typeof(CONFIG_PARAM["poi_search_flg"])!="undefined")?CONFIG_PARAM["poi_search_flg"]:[1,1,1,1,1,1,1,1,1,1];CONFIG_PARAM["poi_search_flg"]="["+dummyPSG.toString()+"]";this.oP.backStartLL=this.oP.map.getCenterLatLng();if(this.oP.smoothback){var mlmc=this.oP;mlmc.backhomeEvent=true;var smoothZoomOrg=mlmc.smoothZoom;mlmc.smoothZoom=true;mlmc.map.orgPSG=orgPSG;if(((mlmc.backStartLL.x!=mlmc.initLatlon.x&&mlmc.backStartLL.y!=mlmc.initLatlon.y)||mlmc.map.getZoomLevel()!=mlmc.initScl)){mlmc.map.recenterOrPanToLatLng(mlmc.initLatlon);mlmc.smoothZoom=smoothZoomOrg;}
else{CONFIG_PARAM["poi_search_flg"]=orgPSG;MEvent.trigger(mlmc.map,"move");mlmc.smoothZoom=smoothZoomOrg;mlmc.backhomeEvent=false;}}
else{var mlmc=this.oP;var nzflag=(mlmc.map.getZoomLevel()==mlmc.initScl)?true:false;mlmc.map.centerAndZoom(mlmc.initLatlon,mlmc.initScl);if((!calculateRange(mlmc.backStartLL)||(mlmc.backStartLL.x==mlmc.initLatlon.x&&mlmc.backStartLL.y==mlmc.initLatlon.y))&&nzflag){CONFIG_PARAM["poi_search_flg"]=orgPSG;MEvent.trigger(mlmc.map,"move");return;}
mlmc.backhomeEvent=true;MEvent.trigger(mlmc.map,"zoom");MEvent.trigger(mlmc.map,"move");CONFIG_PARAM["poi_search_flg"]=orgPSG;MEvent.trigger(mlmc.map,"moveend");MEvent.trigger(mlmc.map,"zoom");mlmc.backStartLL=null;mlmc.backhomeEvent=false;}}
MLinkMapionControl.prototype.addMoveEndHandler=function()
{var _mmap=this.map;var mcml=this;MEvent.addListener(_mmap,"moveend",function(){if(mcml.backhomeEvent){if(mcml.map.orgPSG)CONFIG_PARAM["poi_search_flg"]=mcml.map.orgPSG;if(_mmap.getZoomLevel()>mcml.initScl){_mmap.smoothzoomout(_mmap.getZoomLevel()-mcml.initScl);}
else if(_mmap.getZoomLevel()<mcml.initScl){_mmap.smoothzoomin(mcml.initScl-_mmap.getZoomLevel());}
else{if(calculateRange(mcml.backStartLL)&&(mcml.backStartLL.x!=mcml.initLatlon.x&&mcml.backStartLL.y!=mcml.initLatlon.y)){MEvent.trigger(_mmap,"zoom");}}
mcml.backhomeEvent=false;mcml.backStartLL=null;}});};function setScaleBar(){var right_width=5;var setAnc;var setX=5;var setY=5;var sliderOffsetW=60;var sliderOffsetH=202;var offsetX=5
var offsetY=10;var moveOffsetH=68;var moveOffsetW=68;var MMapionScale__onLoadScaleList_org=MMapionScale__onLoadScaleList;MMapionScale__onLoadScaleList=function(){MMapionScale__onLoadScaleList_org.call(this);if(typeof(CONFIG_PARAM["initScl"])=="undefined"){if(parseInt(CONFIG_PARAM["scl"])>parseInt(SCALE_HASH[meta1.scds[0]]))CONFIG_PARAM["initScl"]=SCALE_HASH[meta1.scds[0]];else CONFIG_PARAM["initScl"]=CONFIG_PARAM["scl"];}}
if(CONFIG_PARAM['flg_sclbar']==1){sbar=new MLargeMapionControl();}else if(CONFIG_PARAM['flg_sclbar']==2){sbar=new MSliderMapionControl();right_width=40;}else if(CONFIG_PARAM['flg_sclbar']==3){var mPcnt="";if(CONFIG_PARAM['sclbar_move_rate']&&CONFIG_PARAM['sclbar_move_rate']!="")mPcnt=CONFIG_PARAM['sclbar_move_rate'];dirb=new MMoveControl(mPcnt);sbar=new MSliderMapionControl();right_width=40;}else if(CONFIG_PARAM['flg_sclbar']==4&&typeof(MLinkMapionControl)!="undefined"){var inip;var inismooth=((typeof(CONFIG_PARAM["flg_sclbar_smoothback"])=="undefined"||CONFIG_PARAM["flg_sclbar_smoothback"]==""||CONFIG_PARAM["flg_sclbar_smoothback"]==1)?true:false)
if(CONFIG_PARAM.uc==1){inip=new MPoint(default_url.el,default_url.nl);}
else if(CONFIG_PARAM.uc==29){inip=new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']);}
else{inip=(default_url.el&&default_url.nl)?new MPoint(default_url.el,default_url.nl):new MPoint(139.75704029764972,35.69517875000005);}
sbar=new MLinkMapionControl(inip,inismooth);}else{sbar=new MSmallMapionControl();}
if(!CONFIG_PARAM['sclbar_pos']||CONFIG_PARAM['sclbar_pos']==''||CONFIG_PARAM['sclbar_pos'].indexOf('_')==-1){setAnc=M_ANCHOR_TOP_LEFT;if(CONFIG_PARAM['flg_sclbar']==3){setX=offsetX+(moveOffsetW-sliderOffsetW)/2;setY=((CONFIG_PARAM['flg_sclbar']==3)?moveOffsetH+5+offsetY:5);mm.addControl(dirb,new MControlPosition(setAnc,offsetX,offsetY));}}else{var b_pos=CONFIG_PARAM['sclbar_pos'].split('_');var xpos=b_pos[1].toString().toUpperCase();var ypos=b_pos[0].toString().toUpperCase();if(xpos=='RIGHT'&&ypos=='TOP'){setAnc=M_ANCHOR_TOP_RIGHT;setX=right_width;setY=((CONFIG_PARAM['flg_sclbar']==3)?moveOffsetH+5+offsetY:5);offsetX+=sliderOffsetW/2;}
else if(xpos=='LEFT'&&ypos=='TOP'){setAnc=M_ANCHOR_TOP_LEFT;setX=offsetX+(moveOffsetW-sliderOffsetW)/2;setY=((CONFIG_PARAM['flg_sclbar']==3)?moveOffsetH+5+offsetY:5);}
else if(xpos=='RIGHT'&&ypos=='BOTTOM'){setAnc=M_ANCHOR_BOTTOM_RIGHT;setX=right_width;setY=((CONFIG_PARAM['flg_sclbar']==3)?5:5);offsetY+=sliderOffsetH;offsetX+=sliderOffsetW/2;}
else if(xpos=='LEFT'&&ypos=='BOTTOM'){setAnc=M_ANCHOR_BOTTOM_LEFT;setX=offsetX+(moveOffsetW-sliderOffsetW)/2;setY=((CONFIG_PARAM['flg_sclbar']==3)?5:5);offsetY+=202;}
else{setAnc=M_ANCHOR_TOP_LEFT;setX=offsetX+(moveOffsetW-sliderOffsetW)/2;setY=((CONFIG_PARAM['flg_sclbar']==3)?moveOffsetH+5+offsetY:5);}
if(CONFIG_PARAM['flg_sclbar']==3){mm.addControl(dirb,new MControlPosition(setAnc,offsetX,offsetY));}}
mm.addControl(sbar,new MControlPosition(setAnc,setX,setY));setSmoothZoom();};function setSmoothZoom(){if(!sbar||sbar==''||CONFIG_PARAM['flg_sclbar']==2||CONFIG_PARAM['flg_sclbar']==3)return;if(CONFIG_PARAM['flg_smoothzoom']==1)sbar.setSmoothZoom(true);else sbar.setSmoothZoom(false);};function setWheelEvent(){if(CONFIG_PARAM['flg_wheel']==1)MEvent.addListener(mm,'wheel',function(){});else MEvent.clearListeners(mm,'wheel');};function setCopyPosition(){if(!CONFIG_PARAM['copy_pos']||CONFIG_PARAM['copy_pos']==''||CONFIG_PARAM['copy_pos'].indexOf('_')==-1){mm.setCopyrightPosition(M_ANCHOR_BOTTOM_LEFT);}
else{var c_pos=CONFIG_PARAM['copy_pos'].split('_');var xpos=c_pos[1].toString().toUpperCase();var ypos=c_pos[0].toString().toUpperCase();if(xpos=='RIGHT'&&ypos=='TOP'){mm.setCopyrightPosition(M_ANCHOR_TOP_RIGHT);}
else if(xpos=='LEFT'&&ypos=='TOP'){mm.setCopyrightPosition(M_ANCHOR_TOP_LEFT);}
else if(xpos=='RIGHT'&&ypos=='BOTTOM'){mm.setCopyrightPosition(M_ANCHOR_BOTTOM_RIGHT);}
else if(xpos=='LEFT'&&ypos=='BOTTOM'){mm.setCopyrightPosition(M_ANCHOR_BOTTOM_LEFT);}
else{mm.setCopyrightPosition(M_ANCHOR_BOTTOM_LEFT);}}};function dispIconToSubmap(){if(smm){if(CONFIG_PARAM['flg_subicon']==1){if(default_url.icon.length==0)return;subObj=new MIcon();subObj.image=CONFIG_PARAM['subicon_img'];subObj.width=CONFIG_PARAM['subicon_width'];subObj.height=CONFIG_PARAM['subicon_height'];subObj.iconAnchor=new MPoint(subObj.width/2,subObj.height/2);if(default_url.icon.length!=0&&markerA.length!=0||POI_PARAM['EL_0']&&POI_PARAM['EL_0']!=''&&POI_PARAM['NL_0']&&POI_PARAM['NL_0']!=''){for(var i=0;i<default_url.icon.length;i++){if(POI_PARAM['EL_'+i].toString().indexOf('/')!=-1&&POI_PARAM['NL_'+i].toString().indexOf('/')!=-1){marker=new MMarker(new MPoint(CMSCommon.change60to10(POI_PARAM['EL_'+i]),CMSCommon.change60to10(POI_PARAM['NL_'+i])),subObj);smm.addOverlay(marker);}
else{var pt=mm.r2p(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);el=eval(pt.x)+eval(POI_PARAM['NL_'+i]-CONFIG_PARAM['size_w']/2);nl=eval(pt.y)+eval(POI_PARAM['EL_'+i]-CONFIG_PARAM['size_h']/2);var et=mm.adp.p2r(new MPoint(el,nl),CONFIG_PARAM['scl']);marker=new MMarker(new MPoint(et.x,et.y),subObj);smm.addOverlay(marker);}}}}
else return;}};function convertColorData(){return false;};function drawCircleObject(){if(!default_url.param["shape"])return;if(!default_url.shape['circle'])return;var point='';var radius='';var color='';var width='';var tp='';var inner_color='';var inner_tp='';for(var i=0;i<default_url.shape['circle'].length;i++){if(!default_url.circle['latlon'+i])return;for(var j=0;j<default_url.circle['latlon'+i].length/2;j++){if(default_url.circle['el'+i][j].toString().indexOf(".")==-1&&default_url.circle['nl'+i][j].toString().indexOf(".")==-1){var pt=mm.r2p(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);var set_el=eval(pt.x)+eval(default_url.circle['latlon'+i][0]-CONFIG_PARAM['size_w']/2);var set_nl=eval(pt.y)+eval(default_url.circle['latlon'+i][1]-CONFIG_PARAM['size_h']/2);var et=mm.p2r(new MPoint(set_el,set_nl),CONFIG_PARAM['scl']);point=new MPoint(et.x,et.y);default_url.circle['latlon'+i]=new Array();default_url.circle['latlon'+i].push(et.x);default_url.circle['latlon'+i].push(et.y);default_url.circle['el'+i][j]=et.x;default_url.circle['nl'+i][j]=et.y;}
else{var tmp_el=parseFloat(default_url.circle['el'+i][j]);var tmp_nl=parseFloat(default_url.circle['nl'+i][j]);point=new MPoint(tmp_el,tmp_nl);}}
if(default_url.circle['radius'+i]==''||typeof(default_url.circle['radius'+i])=='undefined')radius=CONFIG_PARAM['c_radius'];else if(default_url.circle['radius'+i].indexOf('km')!=-1)radius=default_url.circle['radius'+i].split('km')[0]+'km';else if(default_url.circle['radius'+i].indexOf('m')!=-1)radius=default_url.circle['radius'+i].split('m')[0]+'m';else radius=default_url.circle['radius'+i]+'px';if(default_url.circle['line'+i]!=''&&typeof(default_url.circle['line'+i])!='undefined'){if(colorPalette[default_url.circle['line'+i]])color='#'+colorPalette[default_url.circle['line'+i]];else color=CONFIG_PARAM['c_color'];}
else color=CONFIG_PARAM['c_color'];if(color[i]=='')width='';else if(color[i]!=''){if(default_url.circle['width'+i]!=''&&typeof(default_url.circle['width'+i])!='undefined'){if(new Number(default_url.circle['width'+i]).toString()!='NaN')width=parseInt(default_url.circle['width'+i]);else width=CONFIG_PARAM['c_width'];}
else width=CONFIG_PARAM['c_width'];}
if(color[i]=='')tp.push('');else if(color[i]!=''){if(CONFIG_PARAM['line_tp']||CONFIG_PARAM['line_tp']!=''){var tmp_num=new Number(CONFIG_PARAM['line_tp']);if(tmp_num>=0.1&&tmp_num<=1.0)tp=CONFIG_PARAM['line_tp'];else tp=CONFIG_PARAM['c_tp'];}
else tp=CONFIG_PARAM['c_tp'];}
if(default_url.circle['color'+i]!=''&&typeof(default_url.circle['color'+i])!='undefined'){if(colorPalette[default_url.circle['color'+i]])inner_color='#'+colorPalette[default_url.circle['color'+i]];else inner_color=CONFIG_PARAM['c_incolor'];}
else inner_color=CONFIG_PARAM['c_incolor'];if(default_url.circle['tp'+i]!=''&&typeof(default_url.circle['tp'+i])!='undefined'){if(new Number(default_url.circle['tp'+i]).toString()!='NaN')inner_tp=default_url.circle['tp'+i]/100;else inner_tp=CONFIG_PARAM['c_intp'];}
else inner_tp=CONFIG_PARAM['c_intp'];circleObj=new MPolyCircle(point,radius,color,width,tp,inner_color,inner_tp);mm.addOverlay(circleObj);polygonObjectArray.push(circleObj);}};function drawLineObject(){if(!default_url.param["shape"])return;if(!default_url.shape['line'])return;for(var i=0;i<default_url.shape['line'].length;i++){if(!default_url.line['latlon'+i])return;var obj_points=new Array();for(var j=0;j<default_url.lineCoord[i].nlpoints.length;j++){if(default_url.lineCoord[i].elpoints[j].toString().indexOf(".")==-1&&default_url.lineCoord[i].nlpoints[j].indexOf(".")==-1){var pt=mm.r2p(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);var set_el=eval(pt.x)+eval(default_url.lineCoord[i].nlpoints[j]-CONFIG_PARAM['size_w']/2);var set_nl=eval(pt.y)+eval(default_url.lineCoord[i].elpoints[j]-CONFIG_PARAM['size_h']/2);var et=mm.p2r(new MPoint(set_el,set_nl),CONFIG_PARAM['scl']);obj_points.push(new MPoint(et.x,et.y));default_url.line['latlon'+i]=new Array();default_url.line['latlon'+i].push(et.x);default_url.line['latlon'+i].push(et.y);default_url.lineCoord[i].elpoints[j]=et.x;default_url.lineCoord[i].nlpoints[j]=et.y;}
else{var tmp_el=parseFloat(default_url.lineCoord[i].elpoints[j]);var tmp_nl=parseFloat(default_url.lineCoord[i].nlpoints[j]);obj_points.push(new MPoint(tmp_el,tmp_nl));}}
var color='';if(default_url.line['color'+i]!=''&&typeof(default_url.line['color'+i])!='undefined'){if(colorPalette[default_url.line['color'+i]])color='#'+colorPalette[default_url.line['color'+i]];else color=CONFIG_PARAM['l_color'];}
else color=CONFIG_PARAM['l_color'];var width='';if(default_url.line['width'+i]!=''&&typeof(default_url.line['width'+i])!='undefined'){if(new Number(default_url.line['tp'+i])!='NaN')width=parseInt(default_url.line['width'+i]);else width=CONFIG_PARAM['l_width'];}
else width=CONFIG_PARAM['l_width'];var DefaultPolyLine=new MPolyline(obj_points,color,width);mm.addOverlay(DefaultPolyLine);polygonObjectArray.push(DefaultPolyLine);}};function drawPolyObject(){if(!default_url.param["shape"])return;if(!default_url.shape['polygon'])return;var points=new Array();for(var i=0;i<default_url.poly.length;i++){if(!default_url.poly['latlon'+i])return;points=new Array();changeCoordinate=new Array();for(var j=0;j<default_url.poly['latlon'+i].length;j++){if(default_url.poly['el'+i][j]&&default_url.poly['el'+i][j].toString().indexOf(".")==-1&&default_url.poly['nl'+i][j].indexOf(".")==-1){if(typeof(default_url.poly['el'+i][j])!='undefined'&&typeof(default_url.poly['el'+i][j])!='undefined'){var pt=mm.r2p(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);var set_el=eval(pt.x)+eval(default_url.poly['nl'+i][j]-CONFIG_PARAM['size_w']/2);var set_nl=eval(pt.y)+eval(default_url.poly['el'+i][j]-CONFIG_PARAM['size_h']/2);var et=mm.p2r(new MPoint(set_el,set_nl),CONFIG_PARAM['scl']);points.push(new MPoint(et.x,et.y));default_url.poly['el'+i][j]=et.x;default_url.poly['nl'+i][j]=et.y;changeCoordinate.push(et.x);changeCoordinate.push(et.y);}}
else{if(typeof(default_url.poly['el'+i][j])!='undefined'&&typeof(default_url.poly['el'+i][j])!='undefined'){var tmp_el=parseFloat(default_url.poly['el'+i][j]);var tmp_nl=parseFloat(default_url.poly['nl'+i][j]);points.push(new MPoint(tmp_el,tmp_nl));}}}
if(changeCoordinate.length>0){default_url.poly['latlon'+i]=new Array();default_url.poly['latlon'+i]=changeCoordinate;}
var color='';if(default_url.poly['line'+i]!=''&&typeof(default_url.poly['line'+i])!='undefined'){if(colorPalette[default_url.poly['line'+i]])color='#'+colorPalette[default_url.poly['line'+i]];else color=CONFIG_PARAM['p_color'];}
else color=CONFIG_PARAM['p_color'];var width='';if(color=='')width='';else if(color!=''){if(default_url.poly['width'+i]!=''&&typeof(default_url.poly['width'+i])!='undefined'){if(new Number(default_url.poly['width'+i]).toString()!='NaN')width=parseInt(default_url.poly['width'+i]);else width=CONFIG_PARAM['p_width'];}
else width=CONFIG_PARAM['p_width'];}
var tp='';if(color=='')tp='';else if(color!=''){if(CONFIG_PARAM['poly_tp']||CONFIG_PARAM['poly_tp']!=''){var tmp_num=new Number(CONFIG_PARAM['line_tp']);if(tmp_num>=0.1&&tmp_num<=1.0)tp=CONFIG_PARAM['poly_tp'];else tp=CONFIG_PARAM['p_tp'];}
else tp=CONFIG_PARAM['p_tp'];}
var inner_color='';if(default_url.poly['color'+i]!=''&&typeof(default_url.poly['color'+i])!='undefined'){if(colorPalette[default_url.poly['color'+i]])inner_color='#'+colorPalette[default_url.poly['color'+i]];else inner_color=CONFIG_PARAM['p_incolor'];}
else inner_color=CONFIG_PARAM['p_incolor'];var inner_tp='';if(default_url.poly['tp'+i]!=''&&typeof(default_url.poly['tp'+i])!='undefined'){if(new Number(default_url.poly['tp'+i]).toString()!='NaN')inner_tp=default_url.poly['tp'+i]/100;else inner_tp=CONFIG_PARAM['p_intp'];}
else inner_tp=CONFIG_PARAM['p_intp'];polyObj=new MFillPolygon(points,color,width,tp,inner_color,inner_tp);mm.addOverlay(polyObj);polygonObjectArray.push(polyObj);}};function createQrCode(){if(CONFIG_PARAM['flg_mobile']==0||!CONFIG_PARAM['flg_mobile'])return;if(document.getElementById('qr')&&CONFIG_PARAM['flg_mobile']&&CONFIG_PARAM['flg_mobile']==1){var qr_div=document.getElementById('qr');var qrimg='<img alt="QRコード" src="'+CONFIG_PARAM['MAP_SERVER']+'/m/qr?u=';qrimg+=CONFIG_PARAM['MOBILE_FRONT']+'/c/f?'+'uc='+default_url.uc;if(!CONFIG_PARAM['mobile_grp']||CONFIG_PARAM['mobile_grp']==''){qrimg+='&grp=';}
else{qrimg+='&grp='+CONFIG_PARAM['mobile_grp'];}
if((location.href.toString().indexOf('&coco=')!=-1||(typeof(_tag_param)!='undefined'&&_tag_param["method"]=="POST"&&markerA.length!=0))&&(typeof(POI_PARAM['NL_0'])!='undefined'&&typeof(POI_PARAM['EL_0'])!='undefined')){if(POI_PARAM['NL_0'].toString().indexOf('/')!=-1&&POI_PARAM['EL_0'].toString().indexOf('/')!=-1){qrimg+='&nl='+CMSCommon._escape(CMSCommon._to_euc(POI_PARAM['NL_0']))+'&el='+CMSCommon._escape(CMSCommon._to_euc(POI_PARAM['EL_0']));qrimg+='&coco='+CMSCommon._escape(CMSCommon._to_euc(POI_PARAM['NL_0']+','+POI_PARAM['EL_0']));}else{var pt=mm.r2p(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']),CONFIG_PARAM['scl']);var qr_el=eval(pt.x)+eval(POI_PARAM['NL_0']-default_url.size_w/2);var qr_nl=eval(pt.y)+eval(POI_PARAM['EL_0']-default_url.size_h/2);var et=mm.p2r(new MPoint(qr_el,qr_nl),default_url.scl);qrimg+='&nl='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(et.y)))
+'&el='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(et.x)));qrimg+='&coco='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(et.y)+','+CMSCommon.change10to60(et.x)));}
qrimg+='&icon='+CMSCommon._escape(CMSCommon._to_euc('star,0,10,,,,'));}
else{qrimg+='&nl='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(default_url.nl)))
+'&el='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(default_url.el)));}
qrimg+='&scl='+_ZIDtoSCL[default_url.scl];qrimg+='&bid=MQR_pop&pcmap=1" border="0" vspace="1">';qr_div.innerHTML=qrimg;}};function replaceUrl(){if((mm.replaceObj&&mm.replaceObj.fired)||(typeof(replaceObj)!="undefined")||!CONFIG_PARAM['scl'])return;var home_scl=(typeof(CONFIG_PARAM["initScl"])=="undefined")?CONFIG_PARAM['scl']:CONFIG_PARAM["initScl"];if(!mm.replaceObj)mm.replaceObj={};var detectDiv=poib.detectDiv.cloneNode(true);var bll=mm.getBoundsLatLng();var tl=new MPoint(bll.minX,bll.maxY);var tlpx=mm.r2p(tl);detectDiv.style.zIndex=999999;detectDiv.style.left=(0)+"px";detectDiv.style.top=(0)+"px";POIBuilder.map.div.appendChild(detectDiv);mm.replaceObj.detectDiv=detectDiv;mm.replaceObj.fired=true;if((default_url.el==mm.getCenterLatLng().x&&default_url.nl==mm.getCenterLatLng().y)&&(home_scl==mm.getZoomLevel())){mm.replaceObj.fired=false;if(mm.replaceObj.detectDiv){POIBuilder.map.div.removeChild(mm.replaceObj.detectDiv);mm.replaceObj.detectDiv=null;}
return;}
else if((default_url.el==mm.getCenterLatLng().x&&default_url.nl==mm.getCenterLatLng().y)&&(home_scl!=mm.getZoomLevel())){mm.replaceObj.zoom=MEvent.addListener(mm,'zoom',function(){if(mm.replaceObj.zoom){MEvent.removeListener(mm.replaceObj.zoom);mm.replaceObj.zoom=null;mm.replaceObj.fired=false;if(mm.replaceObj.detectDiv){POIBuilder.map.div.removeChild(mm.replaceObj.detectDiv);mm.replaceObj.detectDiv=null;}}});replaceZoomLevel();}
else if((default_url.el!=mm.getCenterLatLng().x||default_url.nl!=mm.getCenterLatLng().y)&&(home_scl==mm.getZoomLevel())){mm.autoScroll=true;mm.replaceObj.moveend=MEvent.addListener(mm,'moveend',function(){if(CONFIG_PARAM["flg_submap"]==1&&smm)smm.centerAtLatLng(mm.getCenterLatLng());getLandMark();mark_timer=setTimeout('resetMarker()',300);if(mm.replaceObj.moveend){MEvent.removeListener(mm.replaceObj.moveend);mm.replaceObj.moveend=null;mm.replaceObj.fired=false;if(mm.replaceObj.detectDiv){POIBuilder.map.div.removeChild(mm.replaceObj.detectDiv);mm.replaceObj.detectDiv=null;}}});mm.recenterOrPanToLatLng(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']));var timeout=setTimeout(function(){researchMapPatch();clearTimeout(timeout);},300);}
else if(((default_url.el!=mm.getCenterLatLng().x&&default_url.nl!=mm.getCenterLatLng().y)&&(home_scl!=mm.getZoomLevel()))||((default_url.el!=mm.getCenterLatLng().x||default_url.nl!=mm.getCenterLatLng().y)&&(home_scl!=mm.getZoomLevel()))){var tmp_poi_search_flg=CONFIG_PARAM["poi_search_flg"];CONFIG_PARAM["poi_search_flg"]=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];mm.replaceObj.moveend=MEvent.addListener(mm,'moveend',function(){if(smm)smm.centerAtLatLng(mm.getCenterLatLng());mm.replaceObj.zoom=MEvent.addListener(mm,'zoom',function(){if(mm.replaceObj.zoom){MEvent.removeListener(mm.replaceObj.zoom);mm.replaceObj.zoom=null;if(mm.replaceObj.moveend){MEvent.removeListener(mm.replaceObj.moveend);mm.replaceObj.moveend=null;}
mm.replaceObj.fired=false;if(mm.replaceObj.detectDiv){POIBuilder.map.div.removeChild(mm.replaceObj.detectDiv);mm.replaceObj.detectDiv=null;}}});CONFIG_PARAM["poi_search_flg"]=tmp_poi_search_flg;replaceZoomLevel();});mm.autoScroll=true;mm.recenterOrPanToLatLng(new MPoint(CONFIG_PARAM['el'],CONFIG_PARAM['nl']));var timeout=setTimeout(function(){researchMapPatch();clearTimeout(timeout);},300);}};function replaceZoomLevel(){var home_scl=(typeof(CONFIG_PARAM["initScl"])=="undefined")?CONFIG_PARAM['scl']:CONFIG_PARAM["initScl"];if(home_scl==mm.getZoomLevel())return;else if(home_scl!=mm.getZoomLevel()){if(home_scl>mm.getZoomLevel()){s_cnt=parseInt(home_scl)-parseInt(mm.getZoomLevel());tid=setTimeout('smZoomin(s_cnt)',500);}
if(home_scl<mm.getZoomLevel()){s_cnt=parseInt(mm.getZoomLevel())-parseInt(home_scl);tid=setTimeout('smZoomout(s_cnt)',500);}}};function smZoomin(_cnt){mm.smoothzoomin(_cnt);clearTimeout(tid);if(MBrowser.safari){mark_timer=setTimeout('resetMarker()',1500);}else{mark_timer=setTimeout('resetMarker()',900);}};function smZoomout(_cnt){mm.smoothzoomout(_cnt);clearTimeout(tid);if(MBrowser.safari){mark_timer=setTimeout('resetMarker()',1500);}else{mark_timer=setTimeout('resetMarker()',900);}};function resetMarker(){if(markerA.length!=0){for(var j=0;j<markerA.length;j++){markerA[j].div.style.zIndex=2001;markerA[j].icon.return_zIndex=2001;}}
clearTimeout(mark_timer);if(typeof(CONFIG_PARAM['CML_FLG'])!='undefined'&&CONFIG_PARAM['CML_FLG']==1){if(MBrowser.opera)parts_timer=setTimeout('displayParts(\'block\')',400);}};function displayParts(_pattern){if(!_pattern)return;if(_pattern=='none'){if(document.getElementById('copyright'))document.getElementById('copyright').style.display='none';if(document.getElementById('szctr0div'))document.getElementById('szctr0div').style.display='none';if(document.getElementById('lmctr0div'))document.getElementById('lmctr0div').style.display='none';if(document.getElementById('slctr0div'))document.getElementById('slctr0div').style.display='none';if(document.getElementById('smctr0div'))document.getElementById('smctr0div').style.display='none';if(document.getElementById('mvctr2div'))document.getElementById('mvctr2div').style.display='none';if(document.getElementById('centermk'))document.getElementById('centermk').style.display='none';}
else if(_pattern=='block'){if(document.getElementById('copyright'))document.getElementById('copyright').style.display='block';if(document.getElementById('szctr0div'))document.getElementById('szctr0div').style.display='block';if(document.getElementById('lmctr0div'))document.getElementById('lmctr0div').style.display='block';if(document.getElementById('slctr0div'))document.getElementById('slctr0div').style.display='block';if(document.getElementById('smctr0div'))document.getElementById('smctr0div').style.display='block';if(document.getElementById('mvctr2div'))document.getElementById('mvctr2div').style.display='block';if(document.getElementById('centermk'))document.getElementById('centermk').style.display='block';}
if(parts_timer!=null)clearTimeout(parts_timer);};function researchMapPatch(){if(!CONFIG_PARAM["flg_patch"]||CONFIG_PARAM["flg_patch"]=="")return;if(CONFIG_PARAM["flg_patch"]&&CONFIG_PARAM["flg_patch"]==1){if(typeof(mapPatchMoveendHandler)=="function")mapPatchMoveendHandler();if(CONFIG_PARAM["flg_submap"]==1&&smm){if(typeof(submapPatchMoveendHandler)=="function")submapPatchMoveendHandler();}}};function makePrintUrl(_target,_style){if(!CONFIG_PARAM["uc"]||!CONFIG_PARAM["grp"])return;if(_target=="popup"||_target=="_popup"&&typeof(_style)!="undefined"||_style!=""){var print_url=new CMSPrintUrl(_target,_style);}else{var print_url=new CMSPrintUrl(_target,"");}
print_url.createPrintUrl();};function CMSPrintUrl(_target,_style){this.domain=null;this.uc=null;this.grp=null;this.pg=null;this.nl=null;this.el=null;this.scl=null;this.marker=null;this.bt=null;this.shape_c=new Array();this.shape_l=new Array();this.shape_p=new Array();if(search_api_type=="rangeinfo"||search_api_type=="block_poiwithin"){this.pgf=null;this.crdMarker=new Object();this.cm_data=new Array();}else{this.cdisp=new Array();this.cdisp_block=new Array();this.allMarker=null;this.cms_route_icon=null;this.cms_route_sp=null;this.cms_route_ep=null;this.cms_route=null;this.cms_data=new Array();}
this.url="";this.target=_target;this.style=_style;};CMSPrintUrl.prototype.createPrintUrl=function(){if(this.target=="popup"||this.target=="_popup")this.setStyle();this.setDomain();this.setUseCase();this.setGrp();this.setEnc();if(search_api_type=="rangeinfo"||search_api_type=="block_poiwithin")this.setPgf();this.setPg();this.setLocation();this.setMarker();this.setBt();this.setShapeC();this.setShapeL();this.setShapeP();if(this.checkUrlLength(this.url,0)){var arr_url=this.arrangeUrl(this.url,0);this.openUrl(arr_url);return;}
if(search_api_type=="rangeinfo"||search_api_type=="block_poiwithin"){if(!CONFIG_PARAM["flg_print_icon"]||CONFIG_PARAM["flg_print_icon"]!=1){this.setCMData();this.setCMInfoData();}}else{this.setCMSData();if(route_object!=null&&route_object.flg){this.setCMSRoute();}else{if(!CONFIG_PARAM["flg_print_icon"]||CONFIG_PARAM["flg_print_icon"]!=1)this.setCMSInfoData();}}
var arr_url=this.arrangeUrl(this.url,null);this.openUrl(arr_url);};CMSPrintUrl.prototype.setStyle=function(){if(this.style!=""&&typeof(this.style)!="undefined"){var styleArray=new Array();if(this.style.indexOf(",")!=-1){styleArray=this.style.split(",");}
var styleObject=new Object();var tmp="";for(var i=0;i<styleArray.length;i++){if(styleArray[i].split("=")[0].match(/width/)){if(typeof(parseInt(styleArray[i].split("=")[0]))=="number"){styleObject.width=styleArray[i].split("=")[1];}else{styleObject.width="";}}else if(styleArray[i].split("=")[0].match(/height/)){if(typeof(parseInt(styleArray[i].split("=")[0]))=="number"){styleObject.height=styleArray[i].split("=")[1];}else{styleObject.height="";}}else{if(tmp=="")tmp=","+styleArray[i].split("=")[0]+"="+styleArray[i].split("=")[1];else tmp+=","+styleArray[i].split("=")[0]+"="+styleArray[i].split("=")[1];}}
this.style="width="+styleObject.width+",height="+styleObject.height+tmp;}else{this.style="width=,height=";}};CMSPrintUrl.prototype.setDomain=function(){if(!CONFIG_PARAM['domain']||CONFIG_PARAM['domain']==""){this.domain=CONFIG_PARAM['FRONT_URL'];this.domain="/c/f?";}else{this.domain=CONFIG_PARAM['domain'].toString();this.domain=CONFIG_PARAM['PROTOCOL']+this.domain+"/c/f?";}
this.url=this.domain;};CMSPrintUrl.prototype.setUseCase=function(){this.uc="uc=1";if(search_api_type==""||search_api_type==null){if(route_object!=null&&route_object.flg)this.uc="uc=34";}
this.url+=this.uc;};CMSPrintUrl.prototype.setGrp=function(){this.grp="&grp="+CONFIG_PARAM["grp"];this.url+=this.grp;};CMSPrintUrl.prototype.setEnc=function(){this.enc="&enc=euc";this.url+=this.enc;};CMSPrintUrl.prototype.setPgf=function(){this.pgf="&pgf=2";this.url+=this.pgf;};CMSPrintUrl.prototype.setPg=function(){if(!CONFIG_PARAM["print_pg"]&&CONFIG_PARAM["print_pg"]==""){this.pg="&pg=2";}else if(isNaN(CONFIG_PARAM["print_pg"])||(parseInt(CONFIG_PARAM["print_pg"])>1&&parseInt(CONFIG_PARAM["print_pg"])<6)==false){this.pg="&pg=2";}else if(parseInt(CONFIG_PARAM["print_pg"])==1){this.pg=null;}else{this.pg="&pg="+CONFIG_PARAM["print_pg"];}
if(this.pg!=null)this.url+=this.pg;};CMSPrintUrl.prototype.setLocation=function(){this.nl=CMSCommon.change10to60(mm.getCenterLatLng().y);this.nl="&nl="+CMSCommon._escape(CMSCommon._to_euc(this.nl));this.el=CMSCommon.change10to60(mm.getCenterLatLng().x);this.el="&el="+CMSCommon._escape(CMSCommon._to_euc(this.el));this.scl="&scl="+_ZIDtoSCL[mm.getZoomLevel()];this.url+=this.nl+this.el+this.scl;};CMSPrintUrl.prototype.setMarker=function(){if(_I_CNT==0||_I_CNT=="")this.marker=null;for(var j=0;j<_I_CNT;j++){if(POI_PARAM['EL_'+j]!=''&&POI_PARAM['NL_'+j]!=''){if(this.marker==null){this.marker="&coco=";}else{this.marker+="&coco=";}
this.marker+=CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[j].rpos.y)));this.marker+=",";this.marker+=CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[j].rpos.x)));}
if(POI_PARAM['ID_'+j]!=''){this.marker+='&icon='+POI_PARAM['ID_'+j]+','+POI_PARAM['BLK_'+j]+','+POI_PARAM['TYPE_'+j]+','+POI_PARAM['X_'+j]+','+POI_PARAM['Y_'+j]+',';if(POI_PARAM['STR_'+j]!=''){this.marker+=CMSCommon._escape(CMSCommon._to_euc(POI_PARAM['STR_'+j]))+'&';}}}
if(this.marker!=null)this.url+=this.marker;};CMSPrintUrl.prototype.setBt=function(){if(!default_url.btAll||default_url.btAll=="")this.bt=null;if(default_url.btAll!=""){for(var i=0;i<default_url.btAll.length;i++){var val=default_url.btAll[i].split("=");if(this.bt==null)this.bt="&"+val[0]+"=";else this.bt+="&"+val[0]+"=";this.bt+=CMSCommon._escape(CMSCommon._to_euc(val[1]));}}
if(this.bt!=null)this.url+=this.bt;};CMSPrintUrl.prototype.setShapeC=function(){if(!default_url.shape["circle"])return;if(default_url.shape["circle"]){for(var i=0;i<default_url.shape["circle"].length;i++){var circle_param="&shape=C:";if(default_url.circle["color"+i]!=""&&typeof(default_url.circle["color"+i])!="undefined"){circle_param+="C"+default_url.circle["color"+i]+":";}else if(CONFIG_PARAM["c_incolorV3"]){circle_param+="C"+CONFIG_PARAM["c_incolorV3"]+":";}
if(default_url.circle["line"+i]!=""&&typeof(default_url.circle["line"+i])!="undefined"){circle_param+="L"+default_url.circle["line"+i]+":";}else if(CONFIG_PARAM["c_colorV3"]!=null){circle_param+="L"+CONFIG_PARAM["c_colorV3"]+":";}
if(default_url.circle["width"+i]!=""&&typeof(default_url.circle["width"+i])!="undefined"){circle_param+="W"+default_url.circle["width"+i]+":";}else if(CONFIG_PARAM["c_width"]){circle_param+="W"+CONFIG_PARAM["c_width"]+":";}
if(default_url.circle["tp"+i]!=""&&typeof(default_url.circle["tp"+i])!="undefined"){circle_param+="T"+default_url.circle["tp"+i]+":";}else if(CONFIG_PARAM["c_intp"]){if(new Number(CONFIG_PARAM["c_intp"])*100!=100)circle_param+="T"+new Number(CONFIG_PARAM["c_intp"])*100+":";}
if(default_url.circle["radius"+i]!=""&&typeof(default_url.circle["radius"+i])!="undefined"){circle_param+="R"+default_url.circle["radius"+i]+":";}else if(CONFIG_PARAM["c_radius"]&&CONFIG_PARAM["c_radius"]!=null){circle_param+="R"+CONFIG_PARAM["c_radius"]+":";}
if(default_url.circle["latlon"+i]!=""&&typeof(default_url.circle["latlon"+i])!="undefined"){circle_val="";for(var m=0;m<default_url.circle["latlon"+i].length;m++){circle_val+=CMSCommon._escape(CMSCommon._to_euc(default_url.circle["latlon"+i][m]))+",";}
circle_param+=circle_val.slice(0,circle_val.length-1);}
if(this.checkUrlLength(this.url,circle_param)){var arr_url=this.arrangeUrl(this.url,0);this.openUrl(arr_url);return;}
this.shape_c.push(circle_param);this.url+=this.shape_c[i];}}};CMSPrintUrl.prototype.setShapeL=function(){if(!default_url.shape["line"])return;if(default_url.shape["line"]){for(var i=0;i<default_url.shape["line"].length;i++){var line_param="&shape=L:";if(default_url.line["color"+i]!=""&&typeof(default_url.line["color"+i])!="undefined"){line_param+="C"+default_url.line["color"+i]+":";}else if(CONFIG_PARAM["l_colorV3"]!=null){line_param+="C"+CONFIG_PARAM["l_colorV3"]+":";}
if(default_url.line["width"+i]!=""&&typeof(default_url.line["width"+i])!="undefined"){line_param+="W"+default_url.line["width"+i]+":";}else if(CONFIG_PARAM["l_width"]){line_param+="W"+CONFIG_PARAM["l_width"]+":";}
if(default_url.line["latlon"+i]!="undefined"&&typeof(default_url.line["latlon"+i])!="undefined"){line_val="";for(var m=0;m<default_url.line["latlon"+i].length;m++){line_val+=CMSCommon._escape(CMSCommon._to_euc(default_url.line["latlon"+i][m]))+",";}
line_param+=line_val.slice(0,line_val.length-1);}
if(this.checkUrlLength(this.url,line_param)){var arr_url=this.arrangeUrl(this.url,0);this.openUrl(arr_url);return;}
this.shape_l.push(line_param);this.url+=this.shape_l[i];}}};CMSPrintUrl.prototype.setShapeP=function(){if(!default_url.shape["polygon"])return;if(default_url.shape["polygon"]){for(var i=0;i<default_url.shape["polygon"].length;i++){var poly_param="&shape=P:";if(default_url.poly["color"+i]!=""&&typeof(default_url.poly["color"+i])!="undefined"){poly_param+="C"+default_url.poly["color"+i]+":";}else if(CONFIG_PARAM["p_incolorV3"]){poly_param+="C"+CONFIG_PARAM["p_incolorV3"]+":";}
if(default_url.poly["line"+i]!=""&&typeof(default_url.poly["line"+i])!="undefined"){poly_param+="L"+default_url.poly["line"+i]+":";}else if(CONFIG_PARAM["p_colorV3"]!=null){poly_param+="L"+CONFIG_PARAM["p_colorV3"]+":";}
if(default_url.poly["width"+i]!=""&&typeof(default_url.poly["width"+i])!="undefined"){poly_param+="W"+default_url.poly["width"+i]+":";}else if(CONFIG_PARAM["p_width"]){poly_param+="W"+CONFIG_PARAM["p_width"]+":";}
if(default_url.poly["tp"+i]!=""&&typeof(default_url.poly["tp"+i])!="undefined"){poly_param+="T"+default_url.poly["tp"+i]+":";}else if(CONFIG_PARAM["p_intp"]){if(new Number(CONFIG_PARAM["p_intp"])*100!=100)poly_param+="T"+CONFIG_PARAM["p_intp"]+":";}
if(default_url.poly["latlon"+i]!="undefined"&&typeof(default_url.poly["latlon"+i])!="undefined"){poly_val="";for(var m=0;m<default_url.poly["latlon"+i].length;m++){poly_param+=CMSCommon._escape(CMSCommon._to_euc(default_url.poly["latlon"+i][m]))+",";}
poly_param+=poly_val.slice(0,poly_val.length-1);}
if(this.checkUrlLength(this.url,poly_param)){var arr_url=this.arrangeUrl(this.url,0);this.openUrl(arr_url);return;}
this.shape_p.push(poly_param);this.url+=this.shape_p[i];}}};CMSPrintUrl.prototype.setCMSData=function(){if(CONFIG_PARAM["content_display"]&&CONFIG_PARAM["content_display"]!=""){if(CONFIG_PARAM["content_display"].indexOf(":")!=-1){this.cdisp=CONFIG_PARAM["content_display"].split(":");}else{this.cdisp.push(CONFIG_PARAM["content_display"]);}}else{this.cdisp.push("alps");}
if(CONFIG_PARAM["content_display_block"]&&CONFIG_PARAM["content_display_block"]!=""){if(CONFIG_PARAM["content_display_block"].indexOf(":")!=-1){this.cdisp_block=CONFIG_PARAM["content_display_block"].split(":");}else{this.cdisp_block.push(CONFIG_PARAM["content_display_block"]);}}else{this.cdisp.push("block");}
if(_GNR_CODE!=""&&_MLOCAL_TAG!=""){if(this.cdisp[0].toUpperCase()=="MLOCAL"&&this.cdisp[1].toUpperCase()=="ALPS"){if(listMlocalArray.length!=0){this.allMarker=listMlocalArray.concat(listLandMarkArray);this.merge_flg=true;}else if(listLandMarkArray.length!=0){this.allMarker=listLandMarkArray;}}
else if(this.cdisp[0].toUpperCase()=="ALPS"&&this.cdisp[1].toUpperCase()=="MLOCAL"){if(listLandMarkArray.length!=0){this.allMarker=listLandMarkArray.concat(listMlocalArray);this.merge_flg=true;}else if(listMlocalArray.length!=0){this.allMarker=listMlocalArray;}}}else if(_MBLOCK_CODE!=""&&_MLOCAL_TAG!=""){if(this.cdisp_block[0].toUpperCase()=="MLOCAL"&&this.cdisp_block[1].toUpperCase()=="BLOCK"){if(listMlocalArray.length!=0&&listMlocalArray[0].id!='notFound'){this.allMarker=listMlocalArray.concat(listMblockArray);this.merge_flg=true;}else if(listMblockArray.length!=0&&listMblockArray[0].id!='notFound'){this.allMarker=listMblockArray;}}
else if(this.cdisp_block[0].toUpperCase()=="BLOCK"&&this.cdisp_block[1].toUpperCase()=="MLOCAL"){if(listMblockArray.length!=0&&listMblockArray[0].id!='notFound'){this.allMarker=listMblockArray.concat(listMlocalArray);this.merge_flg=true;}else if(listMlocalArray.length!=0&&listMlocalArray[0].id!='notFound'){this.allMarker=listMlocalArray;}}}else if(_MBLOCK_CODE!=""){if(CONFIG_PARAM["content_display_block"]&&CONFIG_PARAM["content_display_block"]!=""){if(CONFIG_PARAM["content_display_block"].toUpperCase().match(/BLOCK/)){if(listMblockArray.length!=0)this.allMarker=listMblockArray;}}else{if(listMblockArray.length!=0)this.allMarker=listMblockArray;}}else if(_MLOCAL_TAG!=""){if(CONFIG_PARAM["content_display"].toUpperCase().match(/MLOCAL/)||CONFIG_PARAM["content_display_block"].toUpperCase().match(/MLOCAL/)){if(listMlocalArray.length!=0){this.allMarker=listMlocalArray;}}}else if(_GNR_CODE!=""){if(CONFIG_PARAM["content_display"].toUpperCase().match(/ALPS/)){if(listLandMarkArray.length!=0){this.allMarker=listLandMarkArray;}}}};CMSPrintUrl.prototype.setCMSRoute=function(){this.cms_route_sp=CMSCommon._escape(CMSCommon._to_euc(route_object.sp));this.cms_route_ep=CMSCommon._escape(CMSCommon._to_euc(route_object.ep));var dr=route_object.id.split("_");if(dr[0]=="mlocal"){for(var i in this.allMarker){if(dr[1]==this.allMarker[i].id){var icon_title=CMSCommon.half_to_full_char(this.allMarker[i].title);var icon_src=this.allMarker[i].icon.src;}}
var icon_name=_OTR_ICON[icon_src];if(typeof(icon_name)=="undefined"||!icon_name||icon_name=="")icon_name="star";this.cms_route_icon="&coco="+CMSCommon._escape(CMSCommon._to_euc(route_object.ep));this.cms_route_icon+="&icon="+CMSCommon._escape(CMSCommon._to_euc(icon_name+",0,10,,,"+icon_title))+"&";}else if(dr[0]=="alps"){var alps_cnt=0;if(this.merge_flg){if(this.cdisp[0].toUpperCase()=="MLOCAL"&&this.cdisp[1].toUpperCase()=="ALPS"){alps_cnt=listMlocalArray.length+parseInt(dr[1]);}}else alps_cnt=dr[1];var icon_title=this.allMarker[alps_cnt].title;var icon_src=this.allMarker[alps_cnt].icon.src.split("/");var icon_name=icon_src[icon_src.length-1].split(".")[0];this.cms_route_icon="&coco="+CMSCommon._escape(CMSCommon._to_euc(route_object.ep));this.cms_route_icon+="&icon=asp_"+CMSCommon._escape(CMSCommon._to_euc(icon_name+",0,10,,,"+icon_title))+"&";}else{if(this.merge_flg){var id=dr[1];for(i=0;i<this.allMarker.length;i++){if(this.allMarker[i].id==id){dr[1]=i;break;}}}
var icon_title=this.allMarker[dr[1]].title;var icon_src=this.allMarker[dr[1]].icon.src;var icon_name=this.allMarker[dr[1]].iconid;if(typeof(icon_name)!="undefined"&&icon_name&&icon_name!=""){this.cms_route_icon="&coco="+CMSCommon._escape(CMSCommon._to_euc(route_object.ep));this.cms_route_icon+="&icon="+CMSCommon._escape(CMSCommon._to_euc(icon_name+",0,10,,,"+icon_title))+"&";}else{if(this.url.match(/uc=/)){this.url=this.url.replace(/uc=31/,"uc=1");return;}
return;}}
if(this.checkUrlLength(this.url,this.cms_route_icon)){var arr_url=this.arrangeUrl(this.url,1);this.openUrl(arr_url);return;}else{if(this.cms_route_icon!=null)this.url+=this.cms_route_icon;}
this.cms_route="&sp="+this.cms_route_sp;this.cms_route+="&spicon=no";this.cms_route+="&ep="+this.cms_route_ep;this.cms_route+="&epicon=no";this.cms_route+="&rp=lc:245;ls:5";if(this.checkUrlLength(this.url,this.cms_route)){var arr_url=this.arrangeUrl(this.url,1);this.openUrl(arr_url);return;}else{if(this.cms_route!=null)this.url+=this.cms_route;}};CMSPrintUrl.prototype.setCMSInfoData=function(){if(!this.allMarker)return;if(this.allMarker.length>0){for(var i=0;i<this.allMarker.length;i++){if(CONFIG_PARAM["flg_mass"]==1&&this.allMarker[i].pos&&this.allMarker[i].pos.x==0&&this.allMarker[i].pos.y==0)continue;if(this.allMarker[i]&&!this.allMarker[i].pos)continue;if(typeof(this.allMarker[i].pos)!="undefined"&&this.allMarker[i].pos.x!=0&&this.allMarker[i].pos.y!=0){var nl=CMSCommon.change10to60(this.allMarker[i].pos.y);var el=CMSCommon.change10to60(this.allMarker[i].pos.x);var coco="&coco="+CMSCommon._escape(CMSCommon._to_euc(nl+","+el));}
if(this.allMarker[i].opetype=="alps"){var icon_src=this.allMarker[i].icon.src.split("/");var icon_name=icon_src[icon_src.length-1].split(".")[0];var icon_title=this.allMarker[i].title;if(!icon_name||icon_name=="")continue;var icon="&icon=asp_"+CMSCommon._escape(CMSCommon._to_euc(icon_name+",0,10,,,"));if(icon_title&&icon_title!="")icon+=CMSCommon._escape(CMSCommon._to_euc(icon_title))+"&";}else if(this.allMarker[i].opetype=="mlocal"){var icon_src=this.allMarker[i].icon.src;var icon_name=_OTR_ICON[icon_src];var icon_title=CMSCommon.half_to_full_char(this.allMarker[i].title);if(typeof(icon_name)=="undefined"||!icon_name||icon_name=="")icon_name="star";var icon="&icon="+CMSCommon._escape(CMSCommon._to_euc(icon_name+",0,10,,,"));if(icon_title&&icon_title!="")icon+=CMSCommon._escape(CMSCommon._to_euc(icon_title))+"&";}else if(this.allMarker[i].opetype=="mblock"){var icon_src=this.allMarker[i].icon.src;var icon_name=this.allMarker[i].iconid;var icon_title=this.allMarker[i].title;if(typeof(icon_name)=="undefined"||!icon_name||icon_name=="")continue;var icon="&icon="+CMSCommon._escape(CMSCommon._to_euc(icon_name+",0,10,,,"));if(icon_title&&icon_title!="")icon+=CMSCommon._escape(CMSCommon._to_euc(icon_title))+"&";}
if(this.checkUrlLength(this.url,coco+icon)){var arr_url=this.arrangeUrl(this.url,null);this.openUrl(arr_url);return;}else{this.cms_data.push(coco+icon);this.url+=coco+icon;}}}};CMSPrintUrl.prototype.setCMData=function(){if(!poib)return;if(poib.infoDataIconArray&&poib.infoDataIconArray!=""){this.crdMarker.title=new Array();this.crdMarker.iconid=new Array();this.crdMarker.nl=new Array();this.crdMarker.el=new Array();for(var i=0;i<poib.infoDataIconArray.length;i++){if(poib.infoDataIconArray[i].length>1){var poi=poib.infoDataPoiHash[poib.infoDataIconArray[i][0]];var title="";for(var j=0;j<poib.infoDataIconArray[i].length;j++){if(title=="")title=poib.infoDataPoiHash[poib.infoDataIconArray[i][j]].title;else title+="<!-- CR -->"+poib.infoDataPoiHash[poib.infoDataIconArray[i][j]].title;}
var title_byte=CMSCommon.count_length(title);if(title_byte>128){var exstr="";if(typeof(CONFIG_PARAM["conf_name_ext"])!="undefined"&&CONFIG_PARAM["conf_name_ext"]!=""){exstr=CONFIG_PARAM["conf_name_ext"].toString();}else{exstr=DEFAULT_CONF_NAME_EXT;}
title=poib.infoDataPoiHash[poib.infoDataIconArray[i][0]].title+exstr;}
this.crdMarker.title.push(title);this.crdMarker.iconid.push(poi.crdIcon.id);this.crdMarker.nl.push(poi.pos.y);this.crdMarker.el.push(poi.pos.x);}else{var poi=poib.infoDataPoiHash[poib.infoDataIconArray[i][0]];this.crdMarker.title.push(poi.title);this.crdMarker.iconid.push(poi.iconid);this.crdMarker.nl.push(poi.pos.y);this.crdMarker.el.push(poi.pos.x);}}}};CMSPrintUrl.prototype.setCMInfoData=function(){if(!this.crdMarker.iconid&&!this.crdMarker.nl&&!this.crdMarker.el)return;var crd_nl=new Array();var crd_el=new Array();for(var i=0;i<this.crdMarker.title.length;i++){if(typeof(this.crdMarker.iconid[i])=="undefined"||this.crdMarker.iconid[i]==""||typeof(this.crdMarker.nl[i])=="undefined"||this.crdMarker.nl[i]==""||typeof(this.crdMarker.el[i])=="undefined"||this.crdMarker.el[i]==""){continue;}
if(this.crdMarker.nl[i].indexOf("/")!=-1){crd_nl.push(this.crdMarker.nl[i]);crd_el.push(this.crdMarker.el[i]);}else if(this.crdMarker.nl[i].indexOf(".")!=-1){crd_nl.push(CMSCommon.change10to60(this.crdMarker.nl[i]));crd_el.push(CMSCommon.change10to60(this.crdMarker.el[i]));}
var coco="&coco="+CMSCommon._escape(CMSCommon._to_euc(crd_nl[i]+","+crd_el[i]));var icon="&icon="+CMSCommon._escape(CMSCommon._to_euc(this.crdMarker.iconid[i]+",0,10,,,"+this.crdMarker.title[i]))+"&";if(this.checkUrlLength(this.url,coco+icon)){var arr_url=this.arrangeUrl(this.url,null);this.openUrl(arr_url);return;}
this.cm_data.push(coco+icon);this.url+=this.cm_data[i];}};CMSPrintUrl.prototype.checkUrlLength=function(_url,_param){CONFIG_PARAM['printurl_length']=1600;if(_url.length+_param.length>CONFIG_PARAM['printurl_length']){return 1;}
return 0;};CMSPrintUrl.prototype.arrangeUrl=function(_url,_iconCount){var tmp_param=_url.split("&");var param=new Array();for(var i=0;i<tmp_param.length;i++){if(tmp_param[i]!="")param.push(tmp_param[i]);}
var url=param[0];var routeCount=0;var cCount=0;var iCount=0;for(var i=0;i<param.length;i++){if(param[i].indexOf("grp=")!=-1&&url.indexOf("&grp=")==-1)url+="&"+param[i];if(param[i].indexOf("euc=")!=-1&&url.indexOf("&euc=")==-1)url+="&"+param[i];if(param[i].indexOf("pg=")!=-1&&url.indexOf("&pg=")==-1)url+="&"+param[i];if(param[i].indexOf("nl=")!=-1&&url.indexOf("&nl=")==-1)url+="&"+param[i];if(param[i].indexOf("el=")!=-1&&url.indexOf("&el=")==-1)url+="&"+param[i];if(param[i].indexOf("scl=")!=-1&&url.indexOf("&scl=")==-1)url+="&"+param[i];if(param[i].indexOf("BT=")!=-1&&url.indexOf("&BT=")==-1){url+="&"+param[i];}else if(param[i].indexOf("BT")!=-1&&param[i].indexOf("=")!=-1){var btstr=param[i].split("BT")[1];var btnum=parseInt(btstr.split("=")[0]);if(btnum<=20&&url.indexOf("&"+btnum+"=")==-1){url+="&"+param[i];}}
if(default_url.shape["circle"]&&param[i].indexOf("shape=C:")!=-1)url+="&"+param[i];if(default_url.shape["line"]&&param[i].indexOf("shape=L:")!=-1)url+="&"+param[i];if(default_url.shape["polygon"]&&param[i].indexOf("shape=P:")!=-1)url+="&"+param[i];if((route_object!=null&&route_object.flg)&&(param[i].match(/^sp=/)||param[i].match(/^spicon=/)||param[i].match(/^ep=/)||param[i].match(/^epicon=/)||param[i].match(/^rp=/))){routeCount++;}
if(param[i].match(/^coco/))cCount++;if(param[i].match(/^icon/))iCount++;}
if(routeCount==5)url+=this.cms_route;var ciArray=new Array();if(cCount==iCount){var _c=new Array();var _i=new Array();for(var i=0;i<param.length;i++){if(param[i].match(/^coco/))_c.push("&"+param[i]);if(param[i].match(/^icon/))_i.push("&"+param[i]);}
for(var i=0;i<cCount;i++)ciArray[i]=_c[i]+_i[i];}
var _markerCount=_I_CNT;if(_iconCount==""||_iconCount==0){if(_markerCount==""||_markerCount==0){}else{for(var i=0;i<ciArray.length;i++)url+=ciArray[i];}}else{if(_markerCount==""||_markerCount==0){for(var i=ciArray.length-1;i>=0;i--)url+=ciArray[i];}else{if(_iconCount==null||cCount!=_markerCount+_iconCount)_iconCount=cCount-_markerCount;for(var i=ciArray.length-1;i>=_markerCount;i--)url+=ciArray[i];for(var j=0;j<ciArray.length-_iconCount;j++)url+=ciArray[j];}}
return url;};CMSPrintUrl.prototype.openUrl=function(_url){switch(this.target){case"top":top.location.href=_url;break;case"_top":top.location.href=_url;break;case"parent":top.parent.location.href=_url;break;case"_parent":top.parent.location.href=_url;break;case"blank":window.open(_url,'print');break;case"_blank":window.open(_url,'print');break;case"popup":var cms_print=window.open(_url,'print',this.style);cms_print.focus();break;case"_popup":var cms_print=window.open(_url,'print',this.style);cms_print.focus();break;default:location.href=_url;break;}};
