/*---
Name			:	_bi.js
Authors			:	Mark J. Ronkes
Purpose			:	Basic Init:catch right mouseclick event; shows alert in IE; nothing in NS. Redirect 
Dependencies		:	none
*/


/* redirect user to the main page if this one is entered directly */
if(top==self)
	location.replace("http://www.normaal.nl");
	
/* catch mouse events */
document.onmousedown = right_click_event;
document.onmouseup   = right_click_event;

if (document.layers) 
	window.captureEvents(Event.MOUSEDOWN);

if (document.layers) 
	window.captureEvents(Event.MOUSEUP);
	
window.onmousedown = right_click_event;
window.onmouseup   = right_click_event;


function right_click_event(evt) 
{
	if (navigator.appName == 'Netscape' && (evt.which == 3 || evt.which == 2))
		return false;
	else if (navigator.appName == 'Mozilla' && (event.button == 2 || event.button == 3)) 
		alert("Deze functie is uitgeschakeld.");
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 
		alert("Deze functie is uitgeschakeld.");

	return true;
}

