// Functions v1.0 Design Dynamo Copyright 2005
var newWindow = null;

function _dd_openWindow(name, url, type, width, height) {
	_dd_closeWindow(name);
	switch(type) {
		case 'standard':
			features = "width=" + width + ",height=" + height;
			break;
		case 'flexible':
			features = "resizable," + "width=" + width + ",height=" + height;
			break;
		default:
			features = "width=" + width + ",height=" + height;
	}
	newWindow = window.open(url, name, type);
	newWindow.focus();
}

function _dd_closeWindow(name) {
	if (name != null) {
		if (!name.closed) {
			name.close();
		}
	}
}

function _dd_jumpMenu(target, menu, restore) {
	eval(target + ".location='" + menu.options[menu.selectedIndex].value + "'");
	if (restore) {
		menu.selectedIndex = 0;
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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