//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

function clickIE4(){
	if (event.button==2){
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false");

/*function mouseDown(e) {
	
	var ctrlPressed=0;
	
	if (parseInt(navigator.appVersion)>3) {
		var evt = navigator.appName=="Netscape" ? e:event;
		if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
			// NETSCAPE 4 CODE
			var mString =(e.modifiers+32).toString(2).substring(3,6);
			ctrlPressed =(mString.charAt(1)=="1");
		} else {
			// NEWER BROWSERS [CROSS-PLATFORM]
			ctrlPressed =evt.ctrlKey;
		}
		if (ctrlPressed) 
			alert (nekopirovat_hlaska);
	}
	return true;
}

if (parseInt(navigator.appVersion)>3) {
	document.onkeydown = mouseDown;
if (navigator.appName=="Netscape") 
	document.captureEvents(Event.KEYDOWN);
}*/

