﻿function noRightClick(buttonClicked) {
if ((navigator.appName == 'Netscape' || navigator.appName == 'Firefox') && 
(buttonClicked.which == 2 || buttonClicked.which == 3))
 return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 3 || event.button == 2)) {
 alert("Welkom bij Nospyware");
return false;
}
return true;
}
document.onmousedown=noRightClick;
document.onmouseup=noRightClick;
if (document.layers)
 window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
 window.onmousedown=noRightClick;
 window.onmouseup=noRightClick;


IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;

function clickIE()
{
	if (IE4plus)
	    document.selection.empty();
    return false;
}

function clickNS(e)
{
	
	if ((e.which==1) && NS4)
	{
		return (e.target!=document);
	}
	else if (e.which==1 || e.which==2 || e.which==3 ) 
    {
       return false;
    }
}
if (!IE4plus) 
{
   document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
   document.onmousedown=clickNS;
   document.onmouseup= clickNS;
   document.oncontextmenu=clickIE;
} 
else 
{
   document.onmouseup= clickIE;
   document.oncontextmenu=clickIE;
}

function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
