function cu(){
	return false;
}

function omu(e){
	if(e.which==1){
		window.releaseEvents(Event.MOUSEMOVE);
		window.onmousemove=null;
	}
}

function nr(e){
	if(e.which==1){
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove=cu;
	}
	if(e.which==3){
		return false;
	}
}

function cv(){
	vp=event.button;
	if(vp==2||vp==3)alert('Welcome!');
}

io=document.all;
ae=document.getElementById;

if(io){
	if(ae){
		document.onselectstart=cu;
		document.oncontextmenu=cu;
	}else{
		document.onmousedown=cv;
	}
}

if(ae && (!io)){
	document.onmousedown=cu;
	document.onmouseup=nr;
	document.oncontextmenu=cu;
}

if(document.layers){
	window.captureEvents(Event.MOUSEUP | Event.MOUSEDOWN);
	window.onmousedown=nr;window.onmouseup=omu;
}
document.oncontextmenu=function() {return false;};
document.onselectstart=function() {return false;};