// Global Variables Declarations
var width;

// Function Declarations
function onLoad() {
	var left_margin = ( width - 600 ) / 2;
	if ( left_margin < 0 )
		left_margin = 0;
    // document.getElementById("menu_layer").style.left = left_margin + "px";
    // document.getElementById("menu_layer").style.display = "block";
}
function onResize() {
	var left_margin = ( document.body.clientWidth - 600 ) / 2;
	if ( left_margin < 0 )
	left_margin = 0;
    // document.getElementById("menu_layer").style.left = left_margin + "px";
}
function goOfferings() {
	window.location = "expertise.html" + document.forms.form_links.offerings.value;
}
function goWorkshops() {
	window.location = "workshops.html" + document.forms.form_links.workshops.value;
}
function onMenuOver() {
    // alert("onMenuOver() called!");
	document.getElementById('menu_layer').style.zIndex = 3;
}
function onMenuOut() {
    // alert("onMenuOut() called!");
	document.getElementById('menu_layer').style.zIndex = 1;
}
function changeMenu(dir) {
    // alert("changeMenu("+dir+") called!");
    if (dir == 1) {
        document.getElementById('menu_layer').style.zIndex = 3;
    } else {
	    document.getElementById('menu_layer').style.zIndex = 1;
    }
}
function menu_DoFSCommand(command, args) {
    //alert("changeMenu("+command+", "+args+") called!");
    if (args == 'over') {
        document.getElementById('menu_layer').style.zIndex = 3;
    } else {
	    document.getElementById('menu_layer').style.zIndex = 1;
    }
}