/*==========================================================================================

This file supplied by the client. Changes required :

1.	Modify to the urls  in the array list below to use iSite urls.
Note that the first dimension of the array holds the iSite page key.
	
2.	Modify the urls to pages in the showMasthead() function to have fully specified urls
3.	Modify the urls in the showFooter() function to use iSite urls.

==========================================================================================*/

menus = new Array();

function showMenu(excluded) {
	html = "";
	for (i = 0; i < menus.length; i++) {
		if (menus[i][0] != excluded) {
			html += '<a id="section' + i + '_link" href="' + menus[i][2] + '" class="item">' + menus[i][1] + '</a>';
		} else {
			html += '<span class="itemSel">' + menus[i][1] + '</span>';
		}
	}
	document.writeln(html);
}

function getKey(evnt) {
	if (window.event) {
		return window.event.keyCode;
	} else if (evnt) {
		return evnt.which;
	}
	return null;
}

//function globalResize() {
//  maxWidth = document.body.clientWidth > 992 ? 992 : 768;
//  document.getElementById("glMasthead").style.width = maxWidth;
//  document.getElementById("glContent").style.width = maxWidth;
//  document.getElementById("glFlash").style.width = maxWidth==768?557:781;
//  document.getElementById("glFlash").style.height = maxWidth==768?114:160;
//  document.getElementById("glFooter").style.width = maxWidth;
//}
//window.onresize = globalResize; // for NS

function doLogin() {
	document.loginForm.submit();
}
