
window.falseFunc=function falseFunc(){return false;};function utnMaps(){var sij7;var isManage;var idPool=new Object();var idPoolEt=new Object();var intervalId=null;var mmBound=null;var isIE6=false;var nowPOIDetailWin=null;var pCircle=new Array();var poiDetailWinPool=new Array();if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&document.all)
sij7=true;else
sij7=false;function zoql6(_obj){return(typeof(_obj)!="undefined");}
function getDownloadingHtml(c){var htmlStr='';var d=document.createElement('div');d.id='downStatus';d.className='loading';d.style.position='absolute';d.style.left=(Math.floor(c.getWidth()/2)-(230/2))+'px';d.style.top=(Math.floor(c.getHeight()/2)-(100/2))+'px';d.style.zIndex=1000;htmlStr+=' <p class="toptxt">データ読み込み中</p>';htmlStr+=' <div>しばらくお待ちしてください。<br />&nbsp;</div>';htmlStr+=' <p class="bottomtxt"></p>';d.innerHTML=htmlStr;c.appendChild(d);}
function getPointTemplateData(seq){var htmlStr='';htmlStr+='<div id="mapInfo_'+seq+'" class="mapInfoC">';htmlStr+='<div id="dataDownS_'+seq+'" class="loading"></div>';htmlStr+='<div id="mifdata_'+seq+'" class="mapInfo_wrap">';htmlStr+='<div id="mapInfo_innder_'+seq+'" class="mapInfo_inner">';htmlStr+=' <input type="hidden" name="aSeq_'+seq+'" id="aSeq_'+seq+'" />';htmlStr+=' <p id="mifw_bulet_'+seq+'" class="sec_mod ho"></p>';htmlStr+=' <a id="mifw_title_'+seq+'" href="#" class="mapInfo_title longtext_link"></a>';htmlStr+=' <img src="http://image.utravelnote.com/images/note/btn/btn_close.gif" alt="" class="close_btn" onclick="utnMap.hidePOIWindow();" />';htmlStr+=' <div style="clear:both"></div>';htmlStr+=' <div class="mapInfo_photo fl">';htmlStr+='  <p id="mifw_photo_'+seq+'"></p>';htmlStr+=' </div>';htmlStr+=' <div class="mapInfo_data">';htmlStr+='  <ul id="mifw_star_'+seq+'" class="small_starC"></ul>';htmlStr+='  <p class="point"><span id="mifw_avg_'+seq+'"></span> / <span id="mifw_count_'+seq+'"></span>人</p>';htmlStr+='  <div style="clear:both"></div>';htmlStr+='  <p class="sub_title"><table><tr><td><a href="#" id="mifw_sub_title_'+seq+'"></a></td></tr></table></p>';htmlStr+=' </div>';htmlStr+=' <div class="division"></div>';htmlStr+=' <ul class="note_no_data">';htmlStr+='  <li><a id="kuchiLink_'+seq+'" href="#">口コミ(<span id="mifw_kuchiCount_'+seq+'"></span>)</a></li>';htmlStr+='  <li><a id="qnaLink_'+seq+'" href="#">Q&amp;A(<span id="mifw_qnaCount_'+seq+'"></span>)</a></li>';htmlStr+='  <li><a id="blogLink_'+seq+'" href="#">ブログレビュー(<span id="mifw_blogRCount_'+seq+'"></span>)</a></li>';htmlStr+=' </ul>';htmlStr+=' <div class="writer">By: <a id="mifw_registNick_'+seq+'" class="c_red" href="#" onfocus="this.blur();"></a></div>';htmlStr+=' <a href="#" class="bookmark fr" style="margin-top:2px;" onclick="bookmarkThisNote(\'bookmarkBtn\', $(\'aSeq_'+seq+'\').value); return false;" onfocus="this.blur();"></a>';htmlStr+=' <div style="clear:both"></div>';htmlStr+='</div>';htmlStr+='</div>';htmlStr+='</div>';return htmlStr;}
function utnMB(d,width,height,x,y,l,initFunc){this.container=d;getDownloadingHtml(this.container);if(width!=null||height!=null){this.mapObj=new NMap(d,width,height);}else{this.mapObj=new NMap(d);}
this.mapObj.setCenterAndZoom(new NPoint(x,y),l);this.mapObj.utnMapsObj=this;NEvent.addListener(this.mapObj,'move',this.opacityLayerMove);this.createOpacityLayer();this.markInit();this.init();if(initFunc)initFunc(this);this.getUtnMark(this.mapObj.getBound());NEvent.addListener(this.mapObj,"dblclick",this.arrowMark);NEvent.addListener(this.mapObj,"endDrag",this.endDrag);NEvent.addListener(this.mapObj,"redraw",this.redraw);if(Prototype.Browser.IE){window.onresize=this.wResize;}else{window.addEventListener('resize',this.wResize,false);}
NZoomControl.prototype.ballonOn=function(a){};}
utnMB.prototype.setIsManage=function(arg){isManage=arg;}
utnMB.prototype.setPointViewLevel=function(a){this.pointViewLevel=a;}
utnMB.prototype.init=function(){isManage=false;this.pointViewLevel='A';this.arrowCallBack=null;this.mapPointUrl='http://map.utravelnote.com/engine/mapPoint.php';var agent=UtnWbs.getAgent();if(agent.IE6){isIE6=true;}
if(!isManage){var nIcon;nIcon=new utnIcon('http://map.utravelnote.com/images/nav/nlevel0.png',new NSize(400,400),new NSize(Math.ceil(400/2),Math.ceil(400/2)),'default','circle_0');pCircle[0]=new NMark(new NPoint(0,0),nIcon);pCircle[0].setZindex(20);this.mapObj.addControl(pCircle[0]);pCircle[0].hide();nIcon=new utnIcon('http://map.utravelnote.com/images/nav/nlevel1.png',new NSize(400,400),new NSize(Math.ceil(400/2),Math.ceil(400/2)),'default','circle_1');pCircle[1]=new NMark(new NPoint(0,0),nIcon);pCircle[1].setZindex(20);this.mapObj.addControl(pCircle[1]);pCircle[1].hide();nIcon=new utnIcon('http://map.utravelnote.com/images/nav/nlevel2.png',new NSize(300,300),new NSize(Math.ceil(300/2),Math.ceil(300/2)),'default','circle_2');pCircle[2]=new NMark(new NPoint(0,0),nIcon);pCircle[2].setZindex(20);this.mapObj.addControl(pCircle[2]);pCircle[2].hide();nIcon=new utnIcon('http://map.utravelnote.com/images/nav/nlevel3.png',new NSize(200,200),new NSize(Math.ceil(200/2),Math.ceil(200/2)),'default','circle_3');pCircle[3]=new NMark(new NPoint(0,0),nIcon);pCircle[3].setZindex(20);this.mapObj.addControl(pCircle[3]);pCircle[3].hide();nIcon=new utnIcon('http://map.utravelnote.com/images/nav/nlevel4.png',new NSize(250,250),new NSize(Math.ceil(250/2),Math.ceil(250/2)),'default','circle_4');pCircle[4]=new NMark(new NPoint(0,0),nIcon);pCircle[4].setZindex(20);this.mapObj.addControl(pCircle[4]);pCircle[4].hide();nIcon=new utnIcon('http://map.utravelnote.com/images/nav/nlevel5.png',new NSize(250,250),new NSize(Math.ceil(250/2),Math.ceil(250/2)),'default','circle_5');pCircle[5]=new NMark(new NPoint(0,0),nIcon);pCircle[5].setZindex(20);this.mapObj.addControl(pCircle[5]);pCircle[5].hide();}
this.arrowFlag=new NMark(new NPoint(0,0),new NIcon('http://map.utravelnote.com/images/nav/pin01.gif',new NSize(26,26),new NSize(14,21)));this.arrowFlag.setZindex(50);this.mapObj.addControl(this.arrowFlag);}
utnMB.prototype.markInit=function(){mmBound={MIN_R:null,MAX_R:null,MIN_T:null,MAX_T:null,PRE_B:null};this.markInfoInit();}
utnMB.prototype.markInfoInit=function(){this.hidePOIWindow();nowPOIDetailWin=null;}
utnMB.prototype.endDrag=function(b){if(this.utnMapsObj.checkBound(b)){$('downStatus').show();this.utnMapsObj.getUtnMark(b);}}
utnMB.prototype.checkBound=function(b){if(b==null){$('downStatus').hide();return false;}
for(var i=0;i<b.length;i++){if(UtnFormCheck.isFloat(b[i])){$('downStatus').hide();return false;}}
return true;}
utnMB.prototype.getUtnMark=function(b){for(var i=0;i<b.length;i++){b[i]=parseInt(b[i]);}
var width=b[2]-b[0];var height=b[1]-b[3];var newB={'LEFT':b[0]-width,'TOP':b[1]+height,'RIGHT':b[2]+width,'BOTTOM':b[3]-height};if(mmBound.PRE_B!=null&&mmBound.PRE_B.LEFT==newB.LEFT&&mmBound.PRE_B.RIGHT==newB.RIGHT&&mmBound.PRE_B.TOP==newB.TOP&&mmBound.PRE_B.BOTTOM==newB.BOTTOM){$('downStatus').hide();return false;}
if(mmBound.MAX_R>newB.RIGHT&&mmBound.MIN_R<newB.RIGHT&&mmBound.MAX_T>newB.TOP&&mmBound.MIN_T<newB.TOP){$('downStatus').hide();return false;}
var postData='bound='+Object.toJSON(newB)+'&level='+this.mapObj.getZoom();var oAjax=new Ajax.Request(this.mapPointUrl,{method:'post',postBody:'mode=point&'+postData,onComplete:this.setPDDG});delete postData;delete oAjax;}
utnMB.prototype.arrowMark=function(pos){var obj=this.utnMapsObj;obj.arrowFlag.setPoint(pos);if(isManage){obj.arrowFlag.setText('<div id="arrowMarkDivRap" style="display:none" class="pbox"><div id="arrowMarkDiv" class="left"></div><div class="right"></div></div>');}
obj.arrowFlag.show();obj.arrowFlag.isShow=true;if(obj.arrowCallBack!=null){obj.arrowCallBack(pos,this.fromTM128ToLatLng(pos));}
setTimeout(obj.moveRange,3000,this.getBound());}
utnMB.prototype.setCenter=function(x,y){this.mapObj.setCenter(new NPoint(x,y));}
NNaverMark.prototype.goNaver=function(a){}
utnMB.prototype.moveRange=function(d){if(utnMap.checkBound(d)){utnMap.getUtnMark(d);}}
utnMB.prototype.setPDDG=function(j){var o=null;if(j.responseText===undefined){o=eval('('+j+')');utnMap.setPDM(o);$('downStatus').hide();}else{o=eval('('+j.responseText+')');if((o.outputScript.length==null||o.outputScript.length==0)&&(o.outputScriptEtc.length==null||o.outputScriptEtc.length==0)){$('downStatus').hide();return;}
utnMap.setPDM(o.outputScript);if(o.outputScriptEtc.length!=null||o.outputScriptEtc.length!=0){utnMap.setPDMEt(o.outputScriptEtc);}}
if(o.bound!=null){mmBound.PRE_B=o.bound;if(mmBound.MIN_R==null||mmBound.MAX_R==null||mmBound.MIN_T==null||mmBound.MAX_T==null){mmBound.MIN_R=o.bound.RIGHT;mmBound.MAX_R=o.bound.RIGHT;mmBound.MIN_T=o.bound.TOP;mmBound.MAX_T=o.bound.TOP;}else{if(mmBound.MIN_R>o.bound.RIGHT){mmBound.MIN_R=o.bound.RIGHT;}
if(mmBound.MAX_R<o.bound.RIGHT){mmBound.MAX_R=o.bound.RIGHT;}
if(mmBound.MIN_T>o.bound.TOP){mmBound.MIN_T=o.bound.TOP;}
if(mmBound.MAX_T<o.bound.TOP){mmBound.MAX_T=o.bound.TOP;}}}}
utnMB.prototype.rmPDM=function(s){if(s){idPool[s].hide();this.mapObj.removeControl(idPool[s]);delete idPool[s];}else{for(var k in idPool){idPool[k].hide();}}}
utnMB.prototype.setNowPDM=function(){var zoom=utnMap.mapObj.getZoom();if(this.pointViewLevel=='N'){for(var k in idPool){if(idPool[k].nS<=zoom&&zoom<=idPool[k].nE){if(idPool[k].nT=='HO'||idPool[k].nT=='FO'||idPool[k].nT=='SH'||idPool[k].nT=='PL'||idPool[k].nT=='SE'||idPool[k].nT=='ET'){idPool[k].hide();}else{idPool[k].show();}}else{idPool[k].hide();}}}else if(this.pointViewLevel=='A'){for(var k in idPool){if(idPool[k].nS<=zoom&&zoom<=idPool[k].nE){idPool[k].show();}else{idPool[k].hide();}}}else{for(var k in idPool){if(idPool[k].nS<=zoom&&zoom<=idPool[k].nE){if(idPool[k].nT==this.pointViewLevel||(idPool[k].nT!='HO'&&idPool[k].nT!='FO'&&idPool[k].nT!='SH'&&idPool[k].nT!='PL'&&idPool[k].nT!='SE'&&idPool[k].nT!='ET')){idPool[k].show();}
else{idPool[k].hide();}}}}
var limit=0;for(var k in idPoolEt){limit++;break;}
if(limit>0)intervalId=setInterval(utnMap.intervalPointEt,1500);}
utnMB.prototype.setPDMEt=function(o){var keysStr=Object.keys(idPoolEt);var r=null;var keys=new Array();if(keysStr!=''){keysStr=keysStr.toString();keys=keysStr.split(',');}
if(intervalId!=null){window.clearInterval(intervalId);intervalId=null;}
var oLen=o.length;for(var k=0;k<oLen;k++){r=o[k];if(keys.indexOf(String(r.SQ))==-1){idPoolEt[r.SQ]=r;}}
intervalId=setInterval(utnMap.intervalPointEt,200);}
utnMB.prototype.intervalPointEt=function(){if(intervalId!=null){var keysStr=Object.keys(idPool);var keys=new Array();if(keysStr!=''){keysStr=keysStr.toString();keys=keysStr.split(',');}
var showSQ=null;var limit=0;var zoom=utnMap.mapObj.getZoom();for(var k in idPoolEt){limit++;if(limit==200)break;if(parseInt(k)>=0){if(idPoolEt[k].S<=zoom&&zoom<=idPoolEt[k].E){utnMap.piecePDM(idPoolEt[k],keys);}
delete idPoolEt[k];}}
if(limit==0){window.clearInterval(intervalId);intervalId=null;}}}
utnMB.prototype.piecePDM=function(r,keys){var showSQ=null;if(keys.indexOf(String(r.SQ))==-1){showSQ=null;new UtnMark(r.FI,r.X,r.Y,r.TP,r.FW,r.FH,r.SQ,r.S,r.E,utnMap.mapObj.getZoom());}else{showSQ=String(r.SQ);}
if(showSQ==null){if(this.pointViewLevel=='A'){}else{if(r.TP!='HO'&&r.TP!='FO'&&r.TP!='SH'&&r.TP!='PL'&&r.TP!='SE'&&r.TP!='ET'){}else{if(this.pointViewLevel!=r.TP)idPool[r.SQ].hide();}}}else{if(this.pointViewLevel=='A'){idPool[showSQ].show();}else if(this.pointViewLevel!='A'&&idPool[showSQ].nT!='HO'&&idPool[showSQ].nT!='FO'&&idPool[showSQ].nT!='SH'&&idPool[showSQ].nT!='PL'&&idPool[showSQ].nT!='SE'&&idPool[showSQ].nT!='ET'){idPool[showSQ].show();}else if(this.pointViewLevel!='N'&&(idPool[showSQ].nT==this.pointViewLevel)){idPool[showSQ].show();}}}
utnMB.prototype.setPDM=function(o){var keysStr=Object.keys(idPool);var keys=new Array();if(keysStr!=''){keysStr=keysStr.toString();keys=keysStr.split(',');}
var oLen=o.length;for(var j=0;j<oLen;j++){utnMap.piecePDM(o[j],keys);}
$('downStatus').hide();}
utnMB.prototype.showPOIDetail=function(obj){var seq=obj.pointSeq.toString().replace(/s/,'');if(nowPOIDetailWin!=null){nowPOIDetailWin.hideWindow();}
var infoW=null;if(zoql6(poiDetailWinPool[seq])){infoW=poiDetailWinPool[seq];if(infoW!=null){infoW.showWindow();nowPOIDetailWin=infoW;}}else{infoW=new NInfoWindow();infoW.init(utnMap.mapObj,utnMap.mapObj.div);infoW.setZIndex(40);var p=obj.getPoint();if(parseInt(obj.nIconFw)>0)p.setX(p.getX()+parseInt(obj.nIconFw));infoW.set(new NPoint(p.getX(),p.getY()),getPointTemplateData(seq));poiDetailWinPool[seq]=infoW;if(infoW!=null){infoW.showWindow();nowPOIDetailWin=infoW;}
UtnAjax.action(utnMap.mapPointUrl,'onePoint','pointSeq='+seq);}}
utnMB.prototype.setPOIDetail=function(p,j){$('dataDownS_'+p).remove();$('mifdata_'+p).style.display='block';if(j=='[]'){var htmlStr='';htmlStr+='<div class="mapInfo_inner">';htmlStr+=' <img src="http://image.utravelnote.com/images/note/btn/btn_close.gif" alt="" class="close_btn" onclick="utnMap.hidePOIWindow();" />';htmlStr+=' <br /><br /><table style="width:90%;"><tr><td>このスポットに関連したノートの詳細情報がありません。</td></tr></table></div>';$('mapInfo_innder_'+p).innerHTML=htmlStr;return;}
var o=eval('('+j+')');var prefixUrl='http://www.utravelnote.com';if(o.C_ID=='HO'){prefixUrl='http://hotel.utravelnote.com';}
if(parseInt(o.A_SEQ)>0&&$('mifw_title_'+o.POINT_SEQ)){var linkF=function(){var title=this.title;if(title!=null&&title!=''){UtnWbs.openWindow(prefixUrl+o.URL+'/'+title,'viewNote',1000,600,'yes',true);}else{UtnWbs.openWindow(prefixUrl+o.URL,'viewNote',1000,600,'yes',true);}}
$('kuchiLink_'+o.POINT_SEQ).href=prefixUrl+o.URL+'/kuchi';$('qnaLink_'+o.POINT_SEQ).href=prefixUrl+o.URL+'/qna';$('blogLink_'+o.POINT_SEQ).href=prefixUrl+o.URL+'/blog';$('aSeq_'+o.POINT_SEQ).value=o.A_SEQ;$('mifw_title_'+o.POINT_SEQ).innerHTML=o.A_TITLE.substring(0,13);$('mifw_title_'+o.POINT_SEQ).onclick=linkF;$('mifw_bulet_'+o.POINT_SEQ).className='sec_mod '+o.C_ID.toLowerCase();var rAvg=parseFloat(o.RATING_AVG);var rHtml='';if(rAvg>0){if(rAvg-Math.floor(rAvg)==0){for(var i=1;i<=5;i++){if(i<=Math.floor(rAvg))rHtml+='<li class="on_l"></li><li class="on_r"></li>';else rHtml+='<li class="off_l"></li><li class="off_r"></li>';}}else{for(var i=1;i<=5;i++){if(i<=Math.floor(rAvg))rHtml+='<li class="on_l"></li><li class="on_r"></li>';else if(i==Math.ceil(rAvg))rHtml+='<li class="on_l"></li><li class="off_r"></li>';else rHtml+='<li class="off_l"></li><li class="off_r"></li>';}}}else{for(var i=1;i<=5;i++){rHtml+='<li class="off_l"></li><li class="off_r"></li>';}}
$('mifw_star_'+o.POINT_SEQ).innerHTML=rHtml;$('mifw_avg_'+o.POINT_SEQ).innerHTML=o.RATING_AVG;$('mifw_count_'+o.POINT_SEQ).innerHTML=o.RATING_COUNT;if(o.PHOTO_FILE==null){$('mifw_photo_'+o.POINT_SEQ).className='noImage55';}else{$('mifw_photo_'+o.POINT_SEQ).style.backgroundImage='url('+o.PHOTO_FILE+')';$('mifw_photo_'+o.POINT_SEQ).onclick=linkF;}
if(o.A_SUMMING_UP!=null){$('mifw_sub_title_'+o.POINT_SEQ).innerHTML=o.A_SUMMING_UP.substring(0,28);$('mifw_sub_title_'+o.POINT_SEQ).onclick=linkF;}
$('mifw_registNick_'+o.POINT_SEQ).innerHTML=o.A_REGIST_NICKNAME;$('mifw_registNick_'+o.POINT_SEQ).onclick=function(){UtnHtml.memberNavi(this,o.A_REGIST_SYS_ID,o.A_REGIST_NICKNAME);}
$('mifw_kuchiCount_'+o.POINT_SEQ).innerHTML=o.KUCHIKOMI_COUNT;$('mifw_blogRCount_'+o.POINT_SEQ).innerHTML=o.BLOG_REVIEW_COUNT;$('mifw_qnaCount_'+o.POINT_SEQ).innerHTML=o.QUESTION_COUNT;}}
utnMB.prototype.redraw=function(mode){$('downStatus').show();if(mode=='CS'){if(intervalId!=null){window.clearInterval(intervalId);intervalId=null;}
this.markInfoInit();this.setNowPDM();}else{utnMap.rmPDM();utnMap.markInit();}
if(utnMap.checkBound(utnMap.mapObj.getBound())){utnMap.getUtnMark(utnMap.mapObj.getBound());}}
utnMB.prototype.opacityLayerMove=function(size){var lBack=$('utnBgOpacityLayer');if(lBack){lBack.style.left=(size.width*-1)+'px';lBack.style.top=(size.height*-1)+'px';}}
utnMB.prototype.wResize=function(){var _parent=utnMap.mapObj.div;var _left=parseInt(_parent.style.left.replace(/px/g,''));var _top=parseInt(_parent.style.top.replace(/px/g,''));utnMap.lBack.style.left=(_left*-1)+'px';utnMap.lBack.style.top=(_top*-1)+'px';$('downStatus').style.left=(Math.floor(utnMap.container.getWidth()/2)-(230/2))+'px';$('downStatus').style.top=(Math.floor(utnMap.container.getHeight()/2)-(100/2))+'px';}
utnMB.prototype.createOpacityLayer=function(){if(this.mapObj.div===undefined||this.mapObj.markLayer===undefined){}else{var zIndex=parseInt(this.mapObj.markLayer.style.zIndex);if(zIndex>0)zIndex=zIndex-1;else zIndex=1;var _parent=this.mapObj.div;var lBack=$('utnBgOpacityLayer');if(!$('utnBgOpacityLayer')){lBack=document.createElement('div');lBack.id='utnBgOpacityLayer';lBack.className='utnBgOpacityLayerClass noprint';lBack.style.zIndex=zIndex;lBack.style.position='absolute';if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&document.all){lBack.unselectable="on";lBack.onselectstart=falseFunc;}else{lBack.style.MozUserSelect="none";}}
var _left=parseInt(_parent.style.left.replace(/px/g,''));var _top=parseInt(_parent.style.top.replace(/px/g,''));lBack.style.left=(_left*-1)+'px';lBack.style.top=(_top*-1)+'px';lBack.style.width=screen.width+'px';lBack.style.height=screen.height+'px';_parent.appendChild(lBack);this.lBack=lBack;}}
utnMB.prototype.indexMapReset=function(indexMap){}
utnMB.prototype.getMarkO=function(seq){if(seq!='undefiend'){return idPool[seq];}}
utnMB.prototype.hidePOIWindow=function(){if(nowPOIDetailWin!=null){nowPOIDetailWin.hideWindow();hidePOIWindow=null;}}
function utnM(file,x,y,type,fw,fh,seq,s,e,z){var nIcon=null;if(type=='BS'){nIcon=new utnIcon('http://map.utravelnote.com/images/icon/icon_BS.png',new NSize(12,13),new NSize(0,Math.ceil(13/2)),'pointer',seq);}else if(type=='HO'||type=='FO'||type=='SH'||type=='PL'||type=='SE'||type=='ET'){nIcon=new utnIcon('http://map.utravelnote.com/images/icon/icon_'+type+'.png',new NSize(13,13),new NSize(0,Math.ceil(14/2)),'pointer','s'+seq);}else{var src=null;var cursor='default';if(type=='HO'||type=='FO'||type=='SH'||type=='PL'||type=='SE'||type=='ET'){src=file+'_off.png';cursor='pointer';}else{src=file+'.png';}
nIcon=new utnIcon('http://map.utravelnote.com/map/'+src,new NSize(fw,fh),new NSize(0,Math.ceil(fh/2)),cursor,seq);}
var nPoint=new NPoint(x,y);var m=new NMark(nPoint,nIcon);utnMap.mapObj.addControl(m);idPool[seq]=m;m.pointSeq=seq;m.nIcon=nIcon;m.nT=type;m.nS=s;m.nE=e;m.nIFw=fw;m.nIFh=fh;if(type=='BS'||type=='HO'||type=='FO'||type=='SH'||type=='PL'||type=='SE'||type=='ET'){m.nIOn=file+'_on.png';}else{m.nIOn=file+'.png';m.nIOff=file+'.png';}
if(isManage==true||type=='BS'||type=='HO'||type=='FO'||type=='SH'||type=='PL'||type=='SE'||type=='ET'||type=='SB'){NEvent.addListener(m,"mouseover",this.mouseover);NEvent.addListener(m,"mouseout",this.mouseout);if(isManage==true||type!='BS'){NEvent.addListener(m,"click",this.click);}}}
utnM.prototype.mouseover=function(){var ic=$('POI_'+this.nIcon.id);var prefix=this.nIcon.id.toString().substring(0,1);if(this.nT=='BS'||this.nT=='HO'||this.nT=='FO'||this.nT=='SH'||this.nT=='PL'||this.nT=='SE'||this.nT=='ET'){if(isIE6){ic.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://map.utravelnote.com/map/"+this.nIOn+"',sizingMethod='image');";ic.src='http://map.utravelnote.com/images/nav/filter_1px.png';}else{ic.src='http://map.utravelnote.com/map/'+this.nIOn;if(this.nT=='BS'||prefix=='s'){ic.style.width=this.nIFw+'px';ic.style.height=this.nIFh+'px';}}}
var zoom=utnMap.mapObj.getZoom();if(zoom<=5){pCircle[zoom].setPoint(this.getPoint());pCircle[zoom].show();}}
utnM.prototype.mouseout=function(){var ic=$('POI_'+this.nIcon.id);var prefix=this.nIcon.id.toString().substring(0,1);if(this.nT=='BS'||this.nT=='HO'||this.nT=='FO'||this.nT=='SH'||this.nT=='PL'||this.nT=='SE'||this.nT=='ET'){if(isIE6){if(this.nT=='BS'||prefix=='s'){ic.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://map.utravelnote.com/images/icon/icon_"+this.nT+".png',sizingMethod='image');";}else{ic.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://map.utravelnote.com/map/"+this.nIOff+"',sizingMethod='image');";}
ic.src='http://map.utravelnote.com/images/nav/filter_1px.png';}else{if(this.nT=='BS'){ic.style.width='12px';ic.style.height='13px';ic.src='http://map.utravelnote.com/images/icon/icon_BS.png';}else if(prefix=='s'){ic.style.width='13px';ic.style.height='13px';ic.src='http://map.utravelnote.com/images/icon/icon_'+this.nT+'.png';}else{ic.src='http://map.utravelnote.com/map/'+this.nIOff;}}}
var zoom=utnMap.mapObj.getZoom();if(zoom<=5)pCircle[zoom].hide();}
utnM.prototype.click=function(){if(isManage){if(clickPOI!==undefined){clickPOI(this);utnMap.mapObj.setCenter(this.getPoint());}}else{utnMap.showPOIDetail(this);}}
function utnIL(){}
function utnIcon(src,size,offset,cursor,id){this.src=src;this.size=size;this.id=id;this.cursor=cursor;if(offset)this.offset=offset;else this.offset=new NSize(Math.round(size.width/2),Math.round(size.height/2));this.zIndex=0;}
utnIcon.prototype.getOffset=function(){return this.offset;};utnIcon.prototype.getSize=function(){return this.size;};utnIcon.prototype.createObj=function(vzlw9){var s3=this.create(this.src,this.size.width,this.size.height,0,0,0);if(zoql6(this.id))s3.id='POI_'+this.id;if(isManage){s3.style.cursor='pointer';}else{s3.style.cursor=this.cursor;}
return s3;};utnIcon.prototype.create=function(sdho0,width,height,left,top,zIndex,orti0,vzlw9){var n;if(vzlw9)n=vzlw9.createElement("img");else n=document.createElement("img");if(orti0)orti0.appendChild(n);n.style.position="absolute";if(sij7){n.galleryImg="no";n.unselectable="on";n.onselectstart=falseFunc;}else{n.style.MozUserSelect="none"}
n.oncontextmenu=falseFunc;if(!zIndex)zIndex=0;n.style.zIndex=zIndex;if(isIE6){n.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+sdho0+"',sizingMethod='image');";n.src='http://map.utravelnote.com/images/nav/filter_1px.png';}else{if(sdho0)n.src=sdho0;else n.src=swzk9.tlr0;}
if(!isIE6){if(zoql6(width)){n.style.width=width;n.width=width;}
if(zoql6(height)){n.style.height=height;n.height=height;}}
if(zoql6(left))n.style.left=left;if(zoql6(top))n.style.top=top;return n;};window.UtnMapBasic=utnMB;window.UtnMark=utnM;window.UtnInfoLayer=utnIL;}
utnMaps();
