//Disable right mouse click Script

	var message = '© Veldpape BV';
	
	///////////////////////////////////
	function clickIE4(){
		if (event.button == 2) {
			alert(message);
			return false;
		}
	}
	
	function clickNS4(e){
		if (document.layers || document.getElementById && !document.all) {
			if (e.which == 2 || e.which == 3) {
				alert(message);
				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("alert(message);return false")
	
// no select script

	

function disabletext(e){
return false
}

function reEnable(){
return true
}

/*

//IE4+
document.onselectstart=new Function ("return false")

//NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable

//in FF probleem verhelpen met aanklikken inputfields
var theForm = document.forms[0]

if (theForm != null) {
	for (i = 0; i < theForm.elements.length; i++) {
		formelement = theForm.elements[i];
		if (formelement.type == "text" || formelement.type == "textarea") {
			formelement.onclick = new Function("this.focus()");
		}
	}
  }
}
*/


// sfhover

    sfHover = function(){
		if ($('nav') != null) {
			var sfEls = document.getElementById("nav").getElementsByTagName("li");
			for (var i = 0; i < sfEls.length; i++) {
				sfEls[i].onmouseover = function(){
					this.className += " sfhover";
				}
				sfEls[i].onmouseout = function(){
					this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
				}
			}
		}
		
		if (document.all) {
			//MS IE 
			if (window.attachEvent) 
				window.attachEvent("onload", sfHover);
			else {
				//IE 5.2 Mac does not support attachEvent
				var old = window.onload;
				window.onload = function(){
					if (old) 
						old();
					sfHover();
				}
			}
		}
	}
 
