/* Ava Angel index.php */

var zeit, message = "Rechtsklick ist deaktiviert, sorry! \nRight click is deactivated, sorry !";

function click0() {
	if (event.button != 1) {
		popup();
		return false;
    }
}

function nsc(e) {
	if (e.which != 1) keinkontext();
}
  
function popup() {
	alert(unescape(message));
	return false;
}
  
function nichts(e) {
	if (e.which != 1) return false;
}
  
function keinkontext() {
	clearTimeout(zeit);
	zeit = setTimeout("kontext()",1);
}
  
function kontext() {
	clearTimeout(zeit);
	popup();
}
  
if (document.all)
	if (document.getElementById) document.oncontextmenu=popup;
	else document.onmousedown=click0;

if (!(document.all) && document.getElementById)
	document.oncontextmenu=popup;

if (document.layers) {
	document.captureEvents(Event.MOUSEUP | Event.MOUSEDOWN);
	document.onmousedown=nichts;
	document.onmouseup=nsc;
}
