 var ROOT = "";
//var ROOT = "/redhouseashtead/dev";


navigation = {
	
	init: function() {
		
		body = document.getElementsByTagName('body')[0];
		
		Event.observe(window, "click", function(e) {
										
											if (e.which == 3) {
												e.preventDefault();
    											e.stopPropagation();
												return false;
											}
										
										}, false);
		
		Event.observe(window, "dblclick", function(e) {
										
											if (e.which == 3) {
												e.preventDefault();
    											e.stopPropagation();
												return false;
											}
										
										}, false);		
		
		Event.observe(body, "contextmenu", function() { return false; }, false);
		
		navImages = $('navigation').getElementsByTagName('img');
		
		for (i=0;i<navImages.length;i++) {
						
			navImages[i].onmouseover = function() {
											this.src = this.src.replace(".gif", "_over.gif");
									   }
			navImages[i].onmouseout = function() {
											this.src = this.src.replace("_over.gif", ".gif");
									   }
									   
		}
		
	}
	
}

Event.observe(window, "load", navigation.init, false);