sfHover = function() {
	var sfEls = document.getElementById("main_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"), "");
		}
	}
	sfEls = document.getElementById("side_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);

function pop(url, target, width, height, scrollbars, top, left)
{
	if(target == null) target = '_blank';
	var props = '';
	if(width != null) props += ',width=' + width;
	if(height != null) props += ',height=' + height;
	if(scrollbars != null) props += ',scrollbars=' + scrollbars;
	if(top != null) props += ',top=' + top + ',screenY=' + top;
	if(left != null) props += ',left=' + left + ',screenX=' + left;
	if(props.length) props = 'resizable=1' + props;
	var win = window.open(url, target, props);
	win.focus();
	return false;
}

function followLink(link) {
	//window.location.href='http://daltonsmachines.s2o.co.uk'+link;
	window.location.href=link;
}
