ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false



// Tasto destro del mouse da un messaggio su una foto
var msgdx="SailingPhoto Copyright ©  by Ezio Fonda \n\tAll Rights Reserved";
// Funzione che riconosce il browser e restituisce false per la disabilitazione
 function destro(ev) {
        if (navigator.appName == 'Netscape' && (ev.which == 3 || ev.which == 2)) {
                alert(msgdx);
                return false;
        }
        else if (navigator.appName == 'Microsoft Internet Explorer' &&
                   (event.button == 2 || event.button == 3)) {
                alert(msgdx);
                return false;
         }
 return true;
 }
// Verifica la pressione del tasto destro nell'intero documento
 document.onmousedown=destro;
 if (document.layers) window.captureEvents(Event.MOUSEDOWN);
 window.onmousedown=destro;



