function maximizeWin() {
if (window.screen) {
var aw=screen.availWidth;
var ah=screen.availHeight;

if (aw >= 1024) {
aw = 1024
ah=screen.availHeight
AvailaWidth=screen.availWidth-1024
margin=AvailaWidth/2
window.moveTo(margin,0);
window.resizeTo(aw, ah);
}
else {
if (aw <= 1023) {
aw=screen.availWidth;
ah=screen.availHeight;
window.moveTo(0,0);
window.resizeTo(aw, ah);
}
}
}
}
maximizeWin()

if (window != top) top.location.href = location.href;

var clickmessage="Please write me if you are \"right-clicking\" in order to save a photograph to disk, I'm sure we can work something out."
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()

self.focus();
