function myWindow(src, width, height, resizable, scrollbars) {
   	mywindow = open(src, "userwindow", 'locationbar=no,status=no,menubar=no,resizable='+resizable+',width='+width+',height='+height+',screenX=0,screenY=0,dependent=yes,scrollbars='+scrollbars);
   	mywindow.focus();
}

function picWindow(src, w, h) {
   mywindow = open(src, "picwindow", 'locationbar=no,status=no,menubar=no,resizable=no,width='+w+',height='+h+',screenX=0,screenY=0,dependent=yes,scrollbars=no');
   mywindow.focus();
}

function togglemenu(id) {
	for (i=1; i<8; i++) {
		if(i != id)
			document.getElementById('menu'+i).style.display='none';
	}

	if (document.getElementById('menu'+id).style.display == 'none' || document.getElementById('menu'+id).style.display == '') {
		document.getElementById('menu'+id).style.display = 'block';
 	}
	else { 
 		document.getElementById('menu'+id).style.display = 'none';
 	}
}

function toggleDiv(id) {
	if (document.getElementById(id).style.display == 'none' || document.getElementById(id).style.display == '') {
		document.getElementById(id).style.display = 'block';
 	}
	else {
 		document.getElementById(id).style.display = 'none';
 	}

	return false;
}

sfHover = function() { 
	var sfEls = document.getElementById("menu").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"), "");
		}
	}
}

//window.onload = sfHover;
