
var MashUpProperies={"types":[{"id":"hotpepper","mashmode":1},{"id":"jalan","mashmode":0},{"id":"photozo","mashmode":1},{"id":"beauty","mashmode":1},{"id":"school","mashmode":1},{"id":"4travelphoto","mashmode":1},{"id":"doodle","mashmode":1},{"id":"dokoeki","mashmode":1},{"id":"dokomise","mashmode":1}]};var Landmark=Class.create();Landmark.prototype={initialize:function(){this.id=null;this.idx=0;this.title="";this.description="";this.addr="";this.lat=null;this.lng=null;this.image=null;this.url="";this.tel="";this.comment="";this.qrcode="";this.iconid="";this.ldmkid=null;this.bbslink=null;this.doodleno="";}};var landmarkArray=null;var MashUp=Class.create();MashUp.prototype={initialize:function(){this.id=null;this.prams=null;this.MASH_URL="/calta/servlet/MashUpTunnel";this.nodlg=false;},request:function(id,option,callback){var b=false;var i;for(i=0;i<MashUpProperies.types.length;i++){if(MashUpProperies.types[i].id==id){b=true;break;}}
if(b==false){alert("mashmode Error");return;}
this.id=id;this.url=this.MASH_URL;this.url+='?';var mashmode=MashUpProperies.types[i].mashmode;this.url+=('mashmode='+mashmode);this.url+=('&mashid='+this.id);for(var i=0;i<option.length;i++){if(option[i].param!="nodlg"){this.url+="&";this.url+=encodeURI((option[i].param+"="+option[i].value));}
else{this.nodlg=option[i].value;}}
if(!this.nodlg){dlg=new WaitDialog();dlg.show("しばらくお待ちください");}
var nodlg=this.nodlg;var AjaxRequest=new Ajax.Request(this.url,{method:'post',onComplete:function(request){if(!nodlg){dlg.close();}
if(mashmode==2){callback(request.responseXML);}
else{callback(eval('('+request.responseText+')'));}},onTimeout:function(req,ajaxComponent){dlg.close();alert("タイムアウトが発生しました");}});}}
var BusStopUpdater=Class.create();BusStopUpdater.prototype={initialize:function(infoprm){this.infoprm=infoprm;this.url="/calta/servlet/CaltaServlet?action=update";this.paramNames=["ldmkid","name","highway","lat","lng","parking","bicycle","bench","roof","updaterid","description"];},update:function(callback){this.url+="&objtype=5";this.url+=this.buildUrl();this.url=encodeURI(this.url);dlg=new WaitDialog();dlg.show("バス停情報を更新しています。");var AjaxRequest=new Ajax.Request(this.url,{method:'post',onComplete:function(request){dlg.close();var xmlDoc=request.responseXML;var markers=xmlDoc.documentElement.getElementsByTagName('marker');if(markers==null){callback(null);}
if(markers.length==0){callback(null);}
var latlng=new GLatLng(markers[0].getAttribute('lat'),markers[0].getAttribute('lng'));var marker=new CaltaLandMark(markers[0].getAttribute('ldmkid'),markers[0].getAttribute('objtype'),markers[0].getAttribute('iconid'),markers[0].getAttribute('name'),latlng,null);marker.zoommin=markers[0].getAttribute('zoommin');marker.zoommax=markers[0].getAttribute('zoommax');callback(marker);},onTimeout:function(req,ajaxComponent){dlg.close();alert("タイムアウトが発生しました");}});},buildUrl:function(){try{var url="";for(var i=0;i<this.paramNames.length;i++){var prm=this.getParameter(this.paramNames[i]);if(this.paramNames[i]=="ldmkid"){if(prm==null){url+=("&"+this.paramNames[i]+"=-1");url+="&geomid=0"}
else{url+=("&"+this.paramNames[i]+"="+prm);}}
else if(this.paramNames[i]=="highway"){if(prm==null||prm==false){url+='&zoommin='+"14";url+='&zoommax='+"99";url+="&iconid="+"21";}
else{url+='&zoommin='+"12";url+='&zoommax='+"99";url+="&iconid="+"22";}}
else if(this.paramNames[i]=="updaterid"){if(prm==null||prm=="50"){url+="&updaterid="+"50";url+="&creatorid="+"50";}
else{url+=("&"+this.paramNames[i]+"="+prm);}}
else if(prm!=null){url+=("&"+this.paramNames[i]+"="+prm);}}
return url;}
catch(e){alert(e);}},getParameter:function(paramName){for(var i=0;i<this.infoprm.length;i++){if(this.infoprm[i].param==paramName){var val=this.infoprm[i].value;try{}
catch(e){}
return val;}}
return null;}}
var EventUpdater=Class.create();EventUpdater.prototype={initialize:function(infoprm){this.infoprm=infoprm;this.url="/calta/servlet/CaltaServlet?action=update";this.paramNames=["ldmkid","name","lat","lng","url","dateto","datefrom","description","iconid","movingid"];},update:function(callback){this.url+="&objtype=15";this.url+=this.buildUrl();this.url=encodeURI(this.url);dlg=new WaitDialog();dlg.show("イベント情報を更新しています。");var AjaxRequest=new Ajax.Request(this.url,{method:'post',onComplete:function(request){dlg.close();var xmlDoc=request.responseXML;var markers=xmlDoc.documentElement.getElementsByTagName('marker');if(markers==null){callback(null);}
if(markers.length==0){callback(null);}
var latlng=new GLatLng(markers[0].getAttribute('lat'),markers[0].getAttribute('lng'));var marker=new CaltaLandMark(markers[0].getAttribute('ldmkid'),markers[0].getAttribute('objtype'),markers[0].getAttribute('iconid'),markers[0].getAttribute('name'),latlng,null);marker.zoommin=markers[0].getAttribute('zoommin');marker.zoommax=markers[0].getAttribute('zoommax');marker.movingid=markers[0].getAttribute('movingid');callback(marker);},onTimeout:function(req,ajaxComponent){dlg.close();alert("タイムアウトが発生しました");}});},buildUrl:function(){var url="";for(var i=0;i<this.paramNames.length;i++){var prm=this.getParameter(this.paramNames[i]);if(this.paramNames[i]=="ldmkid"){if(prm==null){url+=("&"+this.paramNames[i]+"=-1");url+="&geomid=0"}
else{url+=("&"+this.paramNames[i]+"="+prm);}}
else if(this.paramNames[i]=="updaterid"){if(prm==null||prm=="50"){url+="&updaterid="+"50";url+="&creatorid="+"50";}
else{url+=("&"+this.paramNames[i]+"="+prm);}}
else if(prm!=null){url+=("&"+this.paramNames[i]+"="+prm);}}
return url;},getParameter:function(paramName){for(var i=0;i<this.infoprm.length;i++){if(this.infoprm[i].param==paramName){var val=this.infoprm[i].value;try{val=val.replace(/&/g,'＆');}
catch(e){}
return val;}}
return null;}}
var SpotUpdater=Class.create();SpotUpdater.prototype={initialize:function(infoprm){this.infoprm=infoprm;this.url="/calta/servlet/CaltaServlet?action=update";this.paramNames=["ldmkid","name","lat","lng","imageurl","description","iconid","zoommax","zoommin","creatorid","updaterid","url","category"];},update:function(callback){this.url+="&objtype=13";this.url+=this.buildUrl();this.url=encodeURI(this.url);dlg.show("スポット情報を更新しています。");var AjaxRequest=new Ajax.Request(this.url,{method:'post',onComplete:function(request){dlg.close();var xmlDoc=request.responseXML;var markers=xmlDoc.documentElement.getElementsByTagName('marker');if(markers==null){callback(null);}
if(markers.length==0){callback(null);}
var latlng=new GLatLng(markers[0].getAttribute('lat'),markers[0].getAttribute('lng'));var marker=new CaltaLandMark(markers[0].getAttribute('ldmkid'),markers[0].getAttribute('objtype'),markers[0].getAttribute('iconid'),markers[0].getAttribute('name'),latlng,null);marker.zoommin=markers[0].getAttribute('zoommin');marker.zoommax=markers[0].getAttribute('zoommax');callback(marker);},onTimeout:function(req,ajaxComponent){dlg.close();alert("タイムアウトが発生しました");}});},buildUrl:function(){var url="";for(var i=0;i<this.paramNames.length;i++){var prm=this.getParameter(this.paramNames[i]);if(this.paramNames[i]=="ldmkid"){if(prm==null){url+=("&"+this.paramNames[i]+"=-1");url+="&geomid=0"}
else{url+=("&"+this.paramNames[i]+"="+prm);}}
else if(this.paramNames[i]=="updaterid"){if(prm==null||prm=="50"){url+="&updaterid="+"50";url+="&creatorid="+"50";}
else{url+=("&"+this.paramNames[i]+"="+prm);}}
else if(prm!=null){url+=("&"+this.paramNames[i]+"="+prm);}}
return url;},getParameter:function(paramName){for(var i=0;i<this.infoprm.length;i++){if(this.infoprm[i].param==paramName){var val=this.infoprm[i].value;try{val=val.replace(/&/g,'＆');}
catch(e){}return val;}}
return null;}}
function getHp(){var mash=new MashUp();var p=getGmap().getCenter();landmarkArray=new Array();mash.request("hotpepper",[{param:"lat",value:p.y},{param:"lng",value:p.x},{param:"genre",value:$('hp-sel-genre').value},{param:"budget",value:$('hp-sel-budget').value}],dispShop);}
function dispShop(json){Element.hide('odekakeinfo');Element.show('contents');clearLdmkIcon();$('seachtitle').innerHTML="Hotpepperグルメ検索結果";$('seachtitle').className="pi";$('result').innerHTML="";var shop=document.createElement("div");shop.className="hpinfo";var shopinfo=json.Results;var shoptable=document.createElement("table");var table=document.createElement("tbody");shoptable.appendChild(table);table.className="hptable";if(shopinfo.NumberOfResults==0){$('result').innerHTML="検索結果はありません。";return;}
try{for(i=0;i<shopinfo.Shop.length;i++){var ldmk=new Landmark();ldmk.id="hotpepper";ldmk.idx=i;ldmk.iconid=203;var tr=document.createElement("tr");var td=document.createElement("td");td.setAttribute("colSpan","2");td.colspan=2;var h3=document.createElement("h3");var a=document.createElement("a");a.href=shopinfo.Shop[i].ShopUrl;ldmk.url=shopinfo.Shop[i].ShopUrl;a.target="_blank";ldmk.image=shopinfo.Shop[i].PictureUrl["PcMiddleImg"];a.setAttribute("idx",i);a.appendChild(document.createTextNode(shopinfo.Shop[i].ShopName));ldmk.title=shopinfo.Shop[i].ShopName;h3.appendChild(a);td.appendChild(h3);tr.appendChild(td);table.appendChild(tr);tr=document.createElement("tr");td=document.createElement("td");td.allign="center";var pdiv=document.createElement("div");pdiv.id="photo_"+i;pdiv.className="shopimgdiv";var framediv=document.createElement("div");var span=document.createElement("span");var img=document.createElement("img");img.src=shopinfo.Shop[i].PictureUrl["PcMiddleImg"];var idx=ldmk.idx;span.appendChild(img);var div=document.createElement("div");div.style.cssText="font-size:80%";if(isIE()!=true){framediv.className="photo3";div.className="copyright";span.className="shadow";}
div.appendChild(document.createTextNode("写真提供：ホットペッパー.jp"));framediv.appendChild(span);pdiv.appendChild(framediv);pdiv.appendChild(div);td.appendChild(pdiv);tr.appendChild(td);table.appendChild(tr);td=document.createElement("td");td.setAttribute("valign","top",0);var div=document.createElement("div");div.className="hpinfodiv";div.appendChild(document.createTextNode(shopinfo.Shop[i].ShopCatch));ldmk.description=shopinfo.Shop[i].ShopCatch;td.appendChild(div);tr.appendChild(td);table.appendChild(tr);tr=document.createElement("tr");td=document.createElement("td");td.setAttribute("colSpan","2");td.colspan=2;ldmk.qrcode=shopinfo.Shop[i].KtaiQRUrl;div=document.createElement("div");div.className="hpoptodiv";var comment=shopinfo.Shop[i].FoodName+"　";comment+="■営業時間:"+shopinfo.Shop[i].Open+"　";comment+="■定休日:"+shopinfo.Shop[i].Close+"　";comment+="■席数:"+shopinfo.Shop[i].Capacity+"　";comment+="■カード:"+shopinfo.Shop[i].Card+"　";div.appendChild(document.createTextNode(comment));ldmk.comment=comment;a=document.createElement("a");a.href="#top2";a.setAttribute("lng",shopinfo.Shop[i].Longitude);a.setAttribute("lat",shopinfo.Shop[i].Latitude);a.setAttribute("idx",ldmk.idx);ldmk.lng=shopinfo.Shop[i].Longitude;ldmk.lat=shopinfo.Shop[i].Latitude;a.onclick=function(){var lat=this.getAttribute("lat");var lng=this.getAttribute("lng");var latlng=new GLatLng(lat,lng);getGmap().panTo(latlng);var idx=this.getAttribute("idx");showOdekakeInfo(idx);}
a.appendChild(document.createTextNode("お出かけINFO"));p=document.createElement("p");p.align="right";p.appendChild(document.createTextNode(shopinfo.Shop[i].ShopAddress));ldmk.addr=shopinfo.Shop[i].ShopAddress;p.appendChild(document.createTextNode(" [ "));p.appendChild(a);p.appendChild(document.createTextNode(" ] "));div.appendChild(p);td.appendChild(div);tr.appendChild(td);table.appendChild(tr);landmarkArray.push(ldmk);dispLdmkIcon(ldmk);}
shop.appendChild(shoptable);$('result').appendChild(shop);}
catch(e){alert(e);}
$('result').appendChild(ul);var p=document.createElement("p");p.align="right";var a=document.createElement("a");a.href="http://www.hotpepper.jp/";var img=document.createElement("img");img.src="http://api.hotpepper.jp/content/images/hp_api_s.gif";img.alt="ホットペッパー Webサービス";img.width="155";img.height="20";img.border="0";img.title="ホットペッパー Webサービス";a.appendChild(img);p.appendChild(a);$('result').appendChild(p);}
function getHotel(){var mash=new MashUp();var p=getGmap().getCenter();landmarkArray=new Array();mash.request("jalan",[{param:"lat",value:p.y},{param:"lng",value:p.x},{param:"count",value:20},{param:"h_type","value":$F('h_type')},{param:"c_card","value":$('c_card').checked},{param:"parking","value":$('parking').checked},{param:"onsen","value":$('onsen').checked},{param:"net","net":$('net').checked},{param:"child_price","value":$('child_price').checked}],dispHotel);}
function dispHotel(info){Element.hide('odekakeinfo');Element.show('contents');$('seachtitle').innerHTML="じゃらんホテル検索結果";$('seachtitle').className="bl";$('result').innerHTML="";clearLdmkIcon();var shop=document.createElement("div");shop.className="hotelinfo";var shoptable=document.createElement("table");var table=document.createElement("tbody");shoptable.appendChild(table);shoptable.className="hptable";shoptable.border="0";if(info.NumberOfResults==0){$('result').innerHTML="検索結果はありません。";return;}
try{for(i=0;i<info.items.length;i++){var ldmk=new Landmark();ldmk.id="jalan";ldmk.idx=i;ldmk.iconid=4;ldmk.description=info.items[i].description;ldmk.description=ldmk.description.replace(/<BR>/g,'');ldmk.image=info.items[i].imageUrl;ldmk.url=info.items[i].url;ldmk.comment="■タイプ:"+info.items[i].type+" ■予算:"+info.items[i].sampleRateFrom+"～　■その他:"+info.items[i].accessInformation.replace(/<BR>/g,'');ldmk.idx=i;ldmk.lat=info.items[i].lat;ldmk.lng=info.items[i].lng;ldmk.title=info.items[i].name;var tr=document.createElement("tr");var td=document.createElement("td");td.setAttribute("colSpan","2");td.colspan=2;var h3=document.createElement("h3");var a=document.createElement("a");a.href=ldmk.url;a.target="_blank";a.setAttribute("idx",i);a.appendChild(document.createTextNode(ldmk.title));h3.appendChild(a);td.appendChild(h3);tr.appendChild(td);table.appendChild(tr);tr=document.createElement("tr");td=document.createElement("td");td.setAttribute("colSpan","2");var div=document.createElement("div");div.className="hotelinfodiv";div.appendChild(document.createTextNode(ldmk.description));td.appendChild(div);tr.appendChild(td);table.appendChild(tr);tr=document.createElement("tr");td=document.createElement("td");td.setAttribute("colSpan","2");div=document.createElement("div");div.className="hoteloptdiv";div.appendChild(document.createTextNode(ldmk.comment));a=document.createElement("a");a.href="#top2";a.setAttribute("lng",ldmk.lng);a.setAttribute("lat",ldmk.lat);a.setAttribute("idx",ldmk.idx);a.onclick=function(){var lat=this.getAttribute("lat");var lng=this.getAttribute("lng");var latlng=new GLatLng(lat,lng);getGmap().panTo(latlng);var idx=this.getAttribute("idx");showOdekakeInfo(idx);}
a.appendChild(document.createTextNode("お出かけINFO"));p=document.createElement("p");p.align="right";p.appendChild(document.createTextNode(" [ "));p.appendChild(a);p.appendChild(document.createTextNode(" ] "));div.appendChild(p);td.appendChild(div);tr.appendChild(td);table.appendChild(tr);landmarkArray.push(ldmk);dispLdmkIcon(ldmk);}
shop.appendChild(shoptable);}
catch(e){alert(e);}
$('result').appendChild(shop);var p=document.createElement("p");p.align="right";var a=document.createElement("a");a.href="http://jws.jalan.net/";var img=document.createElement("img");img.src="http://jws.jalan.net/content/images/jws_88_50_blue.gif";img.alt="じゃらん Web サービス";img.border="0";img.title="じゃらん Web サービス";a.appendChild(img);p.appendChild(a);$('result').appendChild(p);}
var schoolData=null;function getShcool(){var mash=new MashUp();var p=getGmap().getCenter();landmarkArray=new Array();schoolData=null;mash.request("school",[{param:"lat",value:p.y},{param:"lng",value:p.x},{param:"count",value:20},{param:"category_cd",value:$('category_cd').value}],dispSchool);}
function dispSchool(json){Element.hide('odekakeinfo');Element.show('contents');var info=json.results;schoolData=info.school;clearLdmkIcon();$('seachtitle').innerHTML="学校検索結果";$('seachtitle').className="gr";if(info.results_returned==0){$('result').innerHTML="検索結果はありません。";return;}
var ul=document.createElement("div");$('result').innerHTML="";var cnt=0;for(i=0;i<info.school.length;i++){var li=document.createElement("div");li.className="schoolinfo";var h3=document.createElement("h3");h3.appendChild(document.createTextNode(info.school[i].name));li.appendChild(h3);var div2=document.createElement("div");div2.id="school_"+i+"_campus";div2.className="schoolcampus";var ul2=document.createElement("div");for(var j=0;j<info.school[i].campus.length;j++){var ldmk=new Landmark();ldmk.id="school";ldmk.iconid=213;ldmk.idx=cnt++;var campus=info.school[i].campus[j];ldmk.title=info.school[i].name+":"+campus.name;ldmk.addr=campus.address;ldmk.lat=campus.latitude;ldmk.lng=campus.longitude;ldmk.url=info.school[i].urls["pc"];ldmk.qrcode=info.school[i].urls["qr"];ldmk.img="";var li2=document.createElement("p");if(campus.name.length==0){li2.appendChild(document.createTextNode(info.school[i].name));}else{li2.appendChild(document.createTextNode(campus.name));}
var a=document.createElement("a");a.href="#top2";a.setAttribute("lng",ldmk.lng);a.setAttribute("lat",ldmk.lat);a.setAttribute("idx",ldmk.idx);a.onclick=function(){var lat=this.getAttribute("lat");var lng=this.getAttribute("lng");var latlng=new GLatLng(lat,lng);getGmap().panTo(latlng);var idx=this.getAttribute("idx");showOdekakeInfo(idx);}
a.appendChild(document.createTextNode("お出かけINFO"));var p=document.createElement("p");p.align="right";p.appendChild(document.createTextNode(" [ "));p.appendChild(a);p.appendChild(document.createTextNode(" ] "));li2.appendChild(p);var hr=document.createElement("hr");hr.style.cssText="border-colof:#ccc";div2.appendChild(li2);div2.appendChild(hr);landmarkArray.push(ldmk);dispLdmkIcon(ldmk);}
div2.appendChild(ul2);li.appendChild(div2);var div3=document.createElement("div");div3.id="school_"+i+"_faculty";div3.className="schoolfaculty";var ul3=document.createElement("div");for(var j=0;j<info.school[i].faculty.length;j++){var faculty=info.school[i].faculty[j];var li3=document.createElement("p");li3.appendChild(document.createTextNode(faculty.name+" "+faculty.department));ul3.appendChild(li3);}
div3.appendChild(ul3);li.appendChild(div3);ul.appendChild(li);}
$('result').appendChild(ul);var p=document.createElement("p");p.align="right";var a=document.createElement("a");a.href="http://webservice.recruit.co.jp/";var img=document.createElement("img");img.src="http://webservice.recruit.co.jp/banner/shingaku-s.gif";img.alt="リクルート進学ネット Webサービス";img.border="0";img.title="リクルート進学ネット Webサービス";img.width="135";img.height="17";a.appendChild(img);p.appendChild(a);$('result').appendChild(p);}
function getBeauty(){var mash=new MashUp();var p=getGmap().getCenter();landmarkArray=new Array();mash.request("beauty",[{param:"lat",value:p.y},{param:"lng",value:p.x},{param:"count",value:20}],dispBeauty);}
function dispBeauty(json){var shopinfo=json.results;Element.hide('odekakeinfo');Element.show('contents');clearLdmkIcon();$('seachtitle').innerHTML="サロン・美容室検索結果";$('seachtitle').className="pi";if(shopinfo.results_returned==0){$('result').innerHTML="検索結果はありません。";return;}
$('result').innerHTML="";var shop=document.createElement("div");shop.className="hpinfo";var shoptable=document.createElement("table");var table=document.createElement("tbody");shoptable.appendChild(table);table.className="hptable";for(i=0;i<shopinfo.salon.length;i++){var ldmk=new Landmark();ldmk.id="beauty";ldmk.idx=i;ldmk.iconid=214;var tr=document.createElement("tr");var td=document.createElement("td");td.setAttribute("colSpan","2");td.colspan=2;var h3=document.createElement("h3");var main=null;if(!shopinfo.salon[i].main.length){main=shopinfo.salon[i].main;}
else if(shopinfo.salon[i].main.length>0){main=shopinfo.salon[i].main[0];}
if(!main)continue;var a=document.createElement("a");ldmk.url=shopinfo.salon[i].urls["pc"];ldmk.qrcode=shopinfo.salon[i].urls["qr"];a.href=ldmk.url;a.target="_blank";ldmk.image=main["photo"]["m"];a.setAttribute("idx",i);ldmk.title=shopinfo.salon[i].name;a.appendChild(document.createTextNode(ldmk.title));h3.appendChild(a);td.appendChild(h3);tr.appendChild(td);table.appendChild(tr);tr=document.createElement("tr");td=document.createElement("td");td.allign="center";var pdiv=document.createElement("div");pdiv.id="photo_"+i;pdiv.className="shopimgdiv";var framediv=document.createElement("div");var span=document.createElement("span");var img=document.createElement("img");img.src=ldmk.image;var idx=ldmk.idx;span.appendChild(img);var div=document.createElement("div");div.style.cssText="font-size:80%";if(isIE()!=true){framediv.className="photo3";div.className="copyright";span.className="shadow";}
div.appendChild(document.createTextNode("【画像提供：ホットペッパーBeauty】"));framediv.appendChild(span);pdiv.appendChild(framediv);pdiv.appendChild(div);td.appendChild(pdiv);tr.appendChild(td);table.appendChild(tr);td=document.createElement("td");td.setAttribute("valign","top",0);var div=document.createElement("div");div.className="hpinfodiv";ldmk.description=shopinfo.salon[i].catch_copy;div.appendChild(document.createTextNode(ldmk.description));td.appendChild(div);tr.appendChild(td);table.appendChild(tr);tr=document.createElement("tr");td=document.createElement("td");td.setAttribute("colSpan","2");td.colspan=2;div=document.createElement("div");div.className="hpoptodiv";var comment="";if(shopinfo.salon[i].open!=null){comment+="■営業時間:"+shopinfo.salon[i].open+"　";}
if(shopinfo.salon[i].close!=null){comment+="■定休日:"+shopinfo.salon[i].close+"　";}
if(shopinfo.salon[i].capacity!=null){comment+="■席数:"+shopinfo.salon[i].capacity+"　";}
if(shopinfo.salon[i].price!=null){comment+="■料金:"+shopinfo.salon[i].price+"　";}
div.appendChild(document.createTextNode(comment));ldmk.comment=comment;a=document.createElement("a");a.href="#top2";ldmk.lng=shopinfo.salon[i].lng;ldmk.lat=shopinfo.salon[i].lat;a.setAttribute("lng",ldmk.lng);a.setAttribute("lat",ldmk.lat);a.setAttribute("idx",ldmk.idx);a.onclick=function(){var lat=this.getAttribute("lat");var lng=this.getAttribute("lng");var latlng=new GLatLng(lat,lng);getGmap().panTo(latlng);var idx=this.getAttribute("idx");showOdekakeInfo(idx);}
a.appendChild(document.createTextNode("お出かけINFO"));p=document.createElement("p");p.align="right";ldmk.addr=shopinfo.salon[i].address;p.appendChild(document.createTextNode(ldmk.addr));p.appendChild(document.createTextNode(" [ "));p.appendChild(a);p.appendChild(document.createTextNode(" ] "));div.appendChild(p);td.appendChild(div);tr.appendChild(td);table.appendChild(tr);dispLdmkIcon(ldmk);landmarkArray.push(ldmk);}
shop.appendChild(shoptable);$('result').appendChild(shop);var fp=document.createElement("p");fp.align="right";var a=document.createElement("a");a.href="http://webservice.recruit.co.jp/";var img=document.createElement("img");img.src="http://webservice.recruit.co.jp/banner/beauty-s.gif";img.alt="ホットペッパーBeauty Webサービス";img.border="0";img.title="ホットペッパーBeauty Webサービス";img.width="135";img.height="17";a.appendChild(img);fp.appendChild(a);$('result').appendChild(fp);}
function getDoodle(){var mash=new MashUp();var p=getGmap().getCenter();landmarkArray=new Array();mash.request("doodle",[{param:"lat",value:p.y},{param:"lng",value:p.x},{param:"count",value:20},{param:"an",value:"bus"},{param:"type",value:$('doodle_type').value}],dispDoodle);}
function dispDoodle(json){Element.hide('odekakeinfo');Element.show('contents');clearLdmkIcon();$('seachtitle').innerHTML="地図上の落書き";$('seachtitle').className="gr";$('result').innerHTML="";var result=json.SearchResult;var cnt=0;var doodlediv;var ul;for(var i=0;i<result.item.length;i++){if(cnt==0){doodlediv=document.createElement("div");doodlediv.className="doodlediv";ul=document.createElement("div");}
var ldmk=new Landmark();ldmk.id="doodle";ldmk.idx=i;ldmk.iconid=0;var li=document.createElement("p");var h3=document.createElement("p");h3.className="doodlep"
h3.appendChild(document.createTextNode(result.item[i].description));switch(result.item[i].type){case"nomal":ldmk.iconid=251;break;case"eat":ldmk.iconid=252;break;case"station":ldmk.iconid=253;break;case"stay":ldmk.iconid=254;break;}
div=document.createElement("div");var p=document.createElement("p");p.className="date";var dateStr=result.item[i].date;dateStr=dateStr.substr(0,4)+"/"+dateStr.substr(5,2)+"/"+dateStr.substr(8,2)+" "+dateStr.substr(11,8);p.appendChild(document.createTextNode(dateStr+" "));ldmk.url=result.item[i].maplink;ldmk.title="落書きNo."+result.item[i].doodleno;ldmk.doodleno=result.item[i].doodleno;ldmk.description=result.item[i].description;ldmk.comment=dateStr+" "+result.item[i].phone+" "+result.item[i].car+" "+result.item[i].directword+" ";a=document.createElement("a");a.href="#top2";ldmk.lat=result.item[i].lat;ldmk.lng=result.item[i].long;ldmk.bbslink=result.item[i].bbslink;ldmk.url=result.item[i].maplink;a.setAttribute("lng",ldmk.lng);a.setAttribute("lat",ldmk.lat);a.setAttribute("idx",ldmk.idx);a.onclick=function(){var lat=this.getAttribute("lat");var lng=this.getAttribute("lng");var latlng=new GLatLng(lat,lng);getGmap().panTo(latlng);var idx=this.getAttribute("idx");showOdekakeInfo(idx);}
a.appendChild(document.createTextNode("掲示板"));p.appendChild(document.createTextNode("   [ "));p.appendChild(a);p.appendChild(document.createTextNode(" ] "));div.appendChild(p);li.appendChild(h3);li.appendChild(div);ul.appendChild(li);dispLdmkIcon(ldmk);landmarkArray.push(ldmk);cnt++;if(cnt==5){var p=document.createElement("p");p.align="right";p.style.cssText="margin:0px";var img=document.createElement("img");img.src="/bybus/images/kokuban6.gif";p.appendChild(img);img=document.createElement("img");img.src="/bybus/images/kokuban61.gif";p.appendChild(img);ul.appendChild(p);doodlediv.appendChild(ul);$('result').appendChild(doodlediv);cnt=0;}}
if(cnt!=0){var p=document.createElement("p");p.align="right";p.style.cssText="margin:0px";var img=document.createElement("img");img.src="/bybus/images/kokuban6.gif";p.appendChild(img);img=document.createElement("img");img.src="/bybus/images/kokuban61.gif";p.appendChild(img);ul.appendChild(p);doodlediv.appendChild(ul);$('result').appendChild(doodlediv);}
var fp=document.createElement("p");fp.align="right";var a=document.createElement("a");a.href="http://doodle.st/";var img=document.createElement("img");img.src="http://doodle.st/k/doodle_pc.gif";img.alt="doodle";img.border="0";img.title="doodle";img.width="120";img.height="34";a.appendChild(img);fp.appendChild(a);$('result').appendChild(fp);}