var iframe_image=null;var idpano_returned;var basedir;function hideshow_othersdates(A,B){if(document.getElementById("others-dates-bt").value==A){document.getElementById("others-dates-bt").value=B;document.getElementById("zoom_other_date").style.display=""}else{document.getElementById("others-dates-bt").value=A;document.getElementById("zoom_other_date").style.display="none"}}function showLoading(){document.getElementById("loading").innerHTML='<img src="images/loading.gif" style="position: relative; left: 254px; top: 17px;">'}function sendRequest(D,C){showLoading();var B=false;var A=this;if(window.XMLHttpRequest){A.xmlHttpReq=new XMLHttpRequest()}else{if(window.ActiveXObject){A.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP")}}A.xmlHttpReq.open("POST",D,false);A.xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");A.xmlHttpReq.send(getquerystring(C));if(A.xmlHttpReq.readyState==4){updatepage(A.xmlHttpReq.responseText)}}function getquerystring(A){qstr="current="+escape(document.getElementById("idpano").value);qstr+="&action="+A;return qstr}function xmlError(A){alert(A)}function formatDate(A){var B=A.substr(6,2)+"/"+A.substr(4,2)+"/"+A.substr(0,4)+" "+A.substr(8,2)+":"+A.substr(10,2);return B}function showPano(){var A="iframe_zoom.php?idpano="+document.getElementById("idpano").value;document.getElementById("iframe_name").src=A;document.getElementById("idpano_label").innerHTML=document.getElementById("otheridpano").innerHTML}function showNextPano(A){sendRequest("getPano.php","next");if(idpano_returned==document.getElementById("idpano").value){alert(A)}else{document.getElementById("idpano").value=idpano_returned}}function showPrevPano(A){sendRequest("getPano.php","prev");if(idpano_returned==document.getElementById("idpano").value){alert(A)}else{document.getElementById("idpano").value=idpano_returned}}function init(A,B){basedir=A;document.getElementById("idpano").value=B};
