
function getPhoto(){var mash=new MashUp();mash.request("photozo",[{param:"type",value:"photo"},{param:"keyword",value:"バス停"}],dispPhoto);}
function getPhoto2(){var url="/calta/servlet/GetPhotozo?type=photo&keyword=バス停";url=encodeURI(url);var ajax=new Ajax.Request(url,{method:"post",onComplete:function(request){var xml=request.responseXML;dispPhoto2(xml);}});}
function dispPhoto(info){$('list').innerHTML="";for(var i=0;i<info.info.length;i++){var framediv=document.createElement("div");framediv.className="photo2";var span=document.createElement("span");span.className="shadow";var a=document.createElement("a");a.href=info.info[i].url;a.target="_blank";var img=document.createElement("img");img.src=info.info[i].thumbnail_image_url;img.alt=info.info[i].photo_title;img.title=info.info[i].photo_title;img.border="0";a.appendChild(img);span.appendChild(a);framediv.appendChild(span);framediv.appendChild(span);var div=document.createElement("div");div.className="copyright";var p=document.createElement("p");p.align="center";a=document.createElement("a");a.href="/bybus/busrail01.jsp";a.target="_blank";a.appendChild(document.createTextNode('バス停を登録'));p.appendChild(document.createTextNode('['));p.appendChild(a);p.appendChild(document.createTextNode(']'));div.appendChild(p);framediv.appendChild(div);$('list').appendChild(framediv);}}
function dispPhoto2(xml){$('list').innerHTML="";var photos=xml.getElementsByTagName("photo");for(var i=0;i<photos.length;i++){var framediv=document.createElement("div");framediv.className="photo2";var span=document.createElement("span");span.className="shadow";var a=document.createElement("a");a.href=photos[i].getElementsByTagName("url")[0].firstChild.nodeValue;a.target="_blank";var img=document.createElement("img");img.src=photos[i].getElementsByTagName("thumbnail_image_url")[0].firstChild.nodeValue;img.alt=photos[i].getElementsByTagName("photo_title")[0].firstChild.nodeValue;img.title=photos[i].getElementsByTagName("photo_title")[0].firstChild.nodeValue;;img.border="0";a.appendChild(img);span.appendChild(a);framediv.appendChild(span);framediv.appendChild(span);var div=document.createElement("div");div.className="copyright";var p=document.createElement("p");p.align="center";a=document.createElement("a");a.href="/bybus/busrail01.jsp";a.target="_blank";a.appendChild(document.createTextNode('バス停を登録'));p.appendChild(document.createTextNode('['));p.appendChild(a);p.appendChild(document.createTextNode(']'));div.appendChild(p);framediv.appendChild(div);$('list').appendChild(framediv);}}