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);
}

function calendar(element) {
	window.open('popup.php?module=calendar&element=' + element, '', 'width=202, height=228, top=75, left=75, scrollbars=1, resizable=1');
}
function calendar2(element) {
	window.open('popup.php?group=1&module=calendar&element=' + element, '', 'width=202, height=228, top=75, left=75, scrollbars=1, resizable=1');
}

function popup(url) {
	window.open(url, '', 'width=560, height=500, top=75, left=75, scrollbars=1, resizable=1');
}
