<!--
//Prepare for variable page loading
var local  = "../bollington/";
var remote = "http://www.macclesfieldcanal.org.uk/";
//Get source and set prefix
var source = parent.location.href.substring(0,4);
if (source == "file") {prefix = local; }
else {prefix = remote; } 
			//window.alert("Extract source: " + source + prefix);
//Disable right mouse click
var temp="";
function clickStop1() {
	if (document.all) {	(temp);return false; } }
function clickStop2(a) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (a.which==2||a.which==3) { (temp);return false; } } }
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickStop2;}
else{document.onmouseup=clickStop2;document.oncontextmenu=clickStop1;}
document.oncontextmenu=new Function("return false")

function loadPage(URL,winName) {
	pageName = prefix + URL;
			//window.alert("Extract URL address: " + pageName);
	aWindow = window.open(pageName,winName);
	aWindow.focus();
	}

window.defaultStatus = "  Welcome to the Macclesfield Canal!"
//-->
