<!--
// Add META info to disable IE toolbar
if (document.createElement &&
(meta = document.createElement('meta'))) {
meta.setAttribute('http-equiv', 'imagetoolbar');
meta.setAttribute('content', 'no');
document.getElementsByTagName('head')[0].appendChild(meta);
}
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// Modified for Safari - weird behaviors which retain the oncontextmenu event of previous mousehandler, until single click
// ***********************************************
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var isSaf = ((navigator.userAgent).search("Safari") > 0) ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
if(EnableRightClick==1){ return true; }
else {return false; }
}
function mousehandler(e){
if(EnableRightClick==1){document.oncontextmenu=new Function("return true"); return true;}
if( isSaf ){document.oncontextmenu=new Function("return false"); return false;}
var myevent = (isNS) ? e : window.event;
var mytag = (isNS) ? e.target.tagName : window.event.srcElement.tagName;
//alert('mousehandler: ' + mytag);
// Enable/Disable based on mytag
if(mytag!="IMG"){document.oncontextmenu=new Function("return true"); return true; }
//alert(mytag + ' : ' + document.oncontextmenu);
//var eventbutton = (isNS) ? myevent.which : myevent.button;
//alert('eventbutton: ' + eventbutton);
//if((eventbutton==2)||(eventbutton==3)) {document.oncontextmenu=new Function("return false"); return false;}
else{document.oncontextmenu=new Function("return false"); return false;}
}
function keyhandler(e) {
var myevent = (isNS) ? e : window.event;
var mytag = (isNS) ? e.target.tagName : window.event.srcElement.tagName;
if (myevent.keyCode==96)
EnableRightClick = 1;
return;
}

document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
////-->
