function homeLnk(display)
{
	top.document.getElementById('homeLnk').style.display = display;
}

// Function to 'deactivate' images.


function setCurrentPage(newPage)
{
//	deactivate the last page on the menu.

    if ( top.currentPage != '' )
    {
		top.document.getElementById(top.currentPage).style.display="none";
		top.document.getElementById("lnk"+top.currentPage).style.display="";
	}

	if ( newPage != '' )
	{
//		activate the menu to show the current Page.
		top.document.getElementById("lnk"+newPage).style.display="none";
		top.document.getElementById(newPage).style.display="";
	}

	top.currentPage =  newPage;
}

function setRightMenuHeight()
{
//	Do once the whole page is loaded.  
//	    Netscape does not recognize 'readystate'

	if ( top.document.getElementById("tblMainMenu") == null ||
		 (!ns6 && top.document.readyState != 'complete') )
	{
		setTimeout("setRightMenuHeight()",500);
	}

	var menuHeight;
	var menuBottom;
	var iFrameHeight;

	if ( top.document.getElementById("tblMainMenu") != null )
	{
		if ( top.document.getElementById("menuBottom") != null )
		{
//			the variable menuBottom contains the height of the 
//			bottommost td. Initialize it to zero before starting.

			top.document.getElementById("menuBottom").style.height = 0;
			
			menuHeight = top.document.getElementById("tblMainMenu").offsetHeight;
			iFrameHeight = top.document.getElementById("mainIframe").height;
			
			if ( iFrameHeight > menuHeight )
			{
				top.document.getElementById("menuBottom").style.height = iFrameHeight - menuHeight + 16;
			}
		}
	}
}

function setWorker()
{
	var newWorkerId = document.getElementById("selectWorker").value;
	
//	hide the last worker's information.
	document.getElementById("TRinfo"+currentWorker).style.display='none';
	
//	show the new worker's information.
	document.getElementById("lblWorkerName").innerHTML = document.getElementById("lblName"+newWorkerId).value;
	document.getElementById("TRinfo"+newWorkerId).style.display='';
	
//	change the picture.
	
	document["staffPic"].src = PicArray[newWorkerId].src;	

	currentWorker = document.getElementById("selectWorker").value;
}

