var activeChild;
var activeMenu;

if (activeImg == '')
	activeImg = 'nav-menu0';

function init()
	{
	if (activeMenu)
     	{
     	if (activeParent)
     		{
     		eval(activeParent + "Menu.style.display='block'");
     		eval(activeParent + ".className='menuActive'");
     		eval(activeMenu + ".className='menuActiveSub'");
			if (activeParentParent)
				{
				eval(activeParentParent + ".className='menuActiveSub'");
				eval(activeParentParent + "Menu.style.display='block'");
				eval(activeMenu + ".className='menuActiveSubSub'");
				}
     		}
     	else
     		{
     		if (activeMenu.indexOf('shortcuts') >= 0)
     			{
     			eval(activeMenu + ".className='menuOverShortcuts'");
     			}
     			else
     			{
     			eval(activeMenu + ".className='menuActive'");
     			}

     		}
     		
     	if (activeMenu.substr(activeMenu.length-3,activeMenu.length) == 'Sub')
     		{
     		eval(activeMenu + "Menu.style.display='block'");
     		}
     	}
	}

function mouseOver(imgName)
	{
	if (activeImg != imgName)
		document[imgName].src = 'pictures/' + imgName + '-over.gif';
	}

function mouseOut(imgName)
	{
	if (activeImg != imgName)
		document[imgName].src = 'pictures/' + imgName + '.gif';
	}

function openPopup(URL, window_width, window_height)
	{
	var h,w
	h = screen.height //height of screen, not just the parent window
	w = screen.width //width of the screen, not just the parent window
	var l,t
	l = parseInt((w-window_width)/2)
	t = parseInt((h-window_height)/2)
	popupWin = window.open(URL,'open_window','scrollbars=1,status,dependent,width='+window_width+',height='+window_height+',left='+(l-20)+',top='+t)
}
































