// This is used to control the Magic-Y menu
// Toggle Layer style for left property
function togLyr (el, status) { 
    var yale = (status == 1) ? "0" : "-999em";
    document.getElementById(el).style.left = yale;
}

// Suckerfish Hover for IE
init = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload = init;


// Scripts copied over from old web site

// Opens Video Window
function openVideo(url) {
        spawn=window.open(url,"video","toolbar=no,width=700,height=550,status=yes,scrollbars=no,resizable=no,menubar=no");
}

// Opens Email Window
function openEmail(url) {
        spawn=window.open(url,"video","toolbar=no,width=600,height=480,status=yes,scrollbars=yes,resizable=no,menubar=no");
}

function openWin(url) {
        spawn=window.open(url,"spawn","toolbar=no,width=630,height=500,scrollbars=yes,resizable=yes,menubar=no");
}

function openWinfull(url) {
        spawn=window.open(url,"spawn","toolbar=yes,width=800,height=600,scrollbars=yes,resizable=yes,menubar=no");
}
