//     Script to prevent right mouseclick          //
// for MSIE and NN 4.x, works also with NN 6.0     //
//     (c) Steffen@Sebastiany.de 2001              //
//             www.u2media.de                      //


var ua = navigator.userAgent.toLowerCase();
var n = (ua.indexOf("mozilla")!=-1 && ua.indexOf("compatible")==-1 && ua.indexOf("opera")==-1);
var i = (ua.indexOf("msie")>-1);
var av = navigator.appVersion;
var v = av.substring(0, av.indexOf(" ")) *1;
var v2 = av.substring(0, av.indexOf(".")) *1;
var v3 = (ua.indexOf("ape6/")!=-1);
if (n) var vn = v2;
else if (i){
     if (v2<4) vn=3
     if (v2==4 && ua.indexOf("msie 5")==-1) vn = 4
     if (v2==4 && ua.indexOf("msie 5")>-1) vn = 5
     }
function right(e)
        {
        if (n&&vn>=4&&(e.which == 3 || e.which == 2))
                {
                alert("Sorry, no download possible, contact me directly for any picture you would like to have.");
                return false;
                }
        else {
                if (i&&v2>=4&&(event.button == 2 || event.button == 3))
                {
                alert("Sorry, no download possible, contact me directly for any picture you would like to have.");
                return false;
                }
              }
        return true;
        }

if (!n) document.onmousedown=right;
if (n&&vn==4) window.captureEvents(Event.MOUSEDOWN);
if (n&&vn==4) window.onmousedown=right;
if (n&&v3&&vn==5) document.addEventListener("mouseup",right,true);
