function sys_printme()
	{
	if (navigator.appVersion.indexOf('Mac') > 0)
		{
		alert ('Press CTRL + P to print this page.'); 
		}	
		else
		{
		window.print();
		}
	}

function showHide(ElemId)
    {
    var elem = document.getElementById(ElemId);
    elem.style.display = (elem.style.display == "inline") ? "none" : "inline";
    
    restoreMarginIeBugFix(elem);
    }
	
function restoreMarginIeBugFix(elem)
    {
    // Fix for page layout 'jumping' on mouseover of help boxes in IE - reenforce the margin on the containing fieldset.
    while(elem.nodeName.toLowerCase() != 'fieldset' && elem.nodeName.toLowerCase() != 'body') 
        {
        elem = elem.parentNode;
        }
    if(elem.nodeName.toLowerCase() == 'fieldset')
        { 
        elem.style.marginTop = '1em';
        }
	}


// start menu stuff
var currentMenu = null;

function setMenuHider() {
	var links = document.getElementsByTagName("A");
	for(i=0; i<links.length; i++) {
		if(links[i].parentNode.parentNode.className != "menu" && links[i].className != "actuator") {
			links[i].onfocus = function() {
			if (currentMenu)
				{
					currentMenu.style.visibility = "hidden";
					currentMenu = null;
				}
			}
		}
	}
}

window.document.onmouseover= function(e)
	{
	var currNode ;
	if(window.event)
		currNode=window.event.srcElement ;
	if(e)
		currNode=e.target;

	while(currNode && currNode !=document.getElementById("mainMenu"))
		{
		currNode=currNode.parentNode ;
		}
        if (currentMenu && !currNode)
		{
		currentMenu.style.visibility = "hidden";
		currentMenu = null;
		}
	}

if (!document.getElementById)
	{
	document.getElementById = function()
		{
		return null;
		}
	}

function initializeMenu(menuId, actuatorId)
	{
	var menu = document.getElementById(menuId);
	var actuator = document.getElementById(actuatorId);
	if (menu == null || actuator == null)
		{
		alert(menuId +" or "+actuatorId+ "not found") ;
		return;
		}
	actuator.onmouseover = function()
		{
	        if (currentMenu)
			{
			currentMenu.style.visibility = "hidden";
			}
		this.showMenu();
		}
	actuator.onfocus = actuator.onmouseover;
	actuator.showMenu = function()
		{
		menu.style.left = this.offsetLeft + "px";
		menu.style.top = this.offsetTop + this.offsetHeight + "px";
		menu.style.visibility = "visible";
		currentMenu = menu;
		}
	}
// end menu stuff