sfHover = function() {
	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 (window.attachEvent) window.attachEvent("onload", sfHover);

var sections = new Array("books","therealpress","history","authenticity","money","systems","politics","writing","about");
var sec_colours = new Array("#cc3300","#ff6600","#ff9900","#009933","#009933","#339999","#330099","#660099","#990099");
var menu_section = '';
var sec_colour = '#990033';
var menu_button = '';
var currentSection = 'images/sections/home.gif';
var to_root = '';
var whereweare = window.location.href;
for (i=0; i<sections.length; i++) {
	secname = '/' + sections[i] + '/';
	if (whereweare.indexOf(secname)!=-1) {
		currentSection = '../images/sections/' + sections[i]  + '.gif';
		var menu_section = sections[i];
		var sec_colour = sec_colours[i];
		to_root='../';
	}
}
