function nrcIE(){
	if (document.all) { 
		return false;
	}
}
function nrcNS(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=nrcNS;
} else {
	document.onmouseup=nrcNS;document.oncontextmenu=nrcIE;
}

document.oncontextmenu=new Function("return false");

/*//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
 
function disableselect(e){
	return false;
}

function reEnable(){
	return true;
}




 
//if IE4+
document.onselectstart=new Function ("return false");
 
//if NS6
if (window.sidebar){
document.onmousedown=disableselect;
document.onclick=reEnable;
} */
document.ondragstart = function(e) {
	return false;
}

// Mozilla/Firefox  
  
document.onmousedown = function(e) {
	if (e && e.preventDefault) {
		var t = e.target;
		var nName = t.nodeName.toLowerCase();
		if (nName == "img") {
			e.preventDefault();
			return false;
		}
		while (t) {
			if (t.nodeName == "a") {
				e.preventDefault();
				return false;
			}
			t = t.parentNode;
		}
	}
}  
