//Move divs
function moveDiv(id,pixels,side) {
	if (side=='l') {
		document.getElementById(id).style.left=pixels + "px";
	} else {
		document.getElementById(id).style.right=pixels + "px";
	};
};

//Hide and show divs
function hideDiv(id) {
	document.getElementById(id).style.display="none";
};

function showDiv(id) {
	document.getElementById(id).style.display="block";
};

function reload() {
	document.location.reload();
};

//Change bg colour
function changeBGcolour() {
	var newColour = prompt("Enter a colour (any valid CSS colour name, or a hexadecimal value prefaced with \"%23\"):\nType \"default\" for the default colour.\nCookies must be enabled!", "");
	var currentPage = window.location;
	if (newColour=='' || newColour=='default') {
		setCookie('bgColour','default',1);
		document.styleSheets[0].cssRules[0].style.backgroundColor = "#003358";
	} else if (newColour==null) {
		//window.location = "";
	} else {
		setCookie('bgColour',newColour,1);
		document.styleSheets[0].cssRules[0].style.backgroundColor = newColour;
	};
};