function show(id) 
{
	var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) 
	{
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function initialCaps(theString) 
{
// Converts a string into initial capitals. ie. the bRown fOx
// becomes The Brown Fox

// Make all of it lower case
	theString = theString.toLowerCase();

// Assumption: First character in the string is a letter & should be a capital.
	theString = theString.substr(0, 1).toUpperCase() + theString.substring(1, theString.length);

	var i = 0;
	var j = 0;
	while((j = theString.indexOf(" ", i)) && (j != -1)) 
	{
    	theString = theString.substring(0, j + 1) +
                theString.substr(j + 1, 1).toUpperCase() +
                theString.substring(j + 2, theString.length);
    				i = j+1;
	}
	// return the result
	return theString
}

  function openwin(mynewpage,newname) 
/*this function causes a new pop up window to open when the user clicks on the appropriate link.  
It has variables "mynamepage" and "newname" so that it is generic and I can use any html page and variable name.*/
  {
    winChild = window.open(mynewpage,newname,
      'width=650,height=500,toolbar=0,scrollbars=1,resizable=1') 
  }
  
  
function closeChild(){
  if(winChild){
      winChild.close();
  }
}
  
  function displayMore(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}

