
// open image in popup window (for panoramas)

function OpenNewWindow(bigurl, width, height, title)
{
    var newWindow = window.open("", "pictureViewer", 
        "location=no, directories=no, fullscreen=no, menubar=no, status=no, toolbar=no, width=" + width + ", height=" + height + ", scrollbars=yes");
    newWindow.document.writeln("<html>");
	newWindow.document.writeln("<title>" + title + "</title>");
    newWindow.document.writeln("<body onBlur=window.close() style='margin: 0 0 0 0;'>");
    newWindow.document.writeln("<img src='" + bigurl + "' id='bigImage'/>");
    newWindow.document.writeln("</body></html>");
    newWindow.document.close();
}


// no right click
<!-- Original:  Martin Webb (martin@irt.org) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("all photos from VIATERRA.NET are protected by copyright laws");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
//  End -->