
if (document.layers) {
  visible = 'show';
  hidden = 'hide';
} else if (document.all) {
  visible = 'visible';
  hidden = 'hidden';
}

var lastForm = 'formLayer01';
var lastButton = 'buttonLayer01';

function reveal(Form, Button) {
  if (document.layers) { 
    daForm = document.layers[Form];
	daButton = document.layers[Button];
  } else if (document.all) {
    daForm = document.all(Form).style;
	daButton = document.all(Button).style;
  }
  if (lastForm != '') {
  	lastForm.visibility = hidden;
	lastButton.visibilty = hidden;
  }
  daForm.visibility = visible;
  daButton.visibilty = visible;
  lastForm = daForm;
  lastButton = daButton;

/*
  if (daForm.visibility == visible) {
    daForm.visibility = hidden;
  } else {
    daForm.visibility = visible;
  }
    lastForm.visibility = hidden;
  lastForm = daForm;
  
*/
}

function vertSpacer(spacerName,siteRoot)	{
	var myHeight = new Array('20',			'5',			'8',			'15',			'17',			'1',			'10',		'5');
	//						auxiliary,		smallOne,		lessThanP,		moreThanP,		otherThanP,		pageHeader,	   buttonz,	  formz
	var selectHeight = 0;
	if (spacerName == 'auxiliary')			selectHeight = 0;
	if (spacerName == 'smallOne')			selectHeight = 1;
	if (spacerName == 'lessThanP')			selectHeight = 2;
	if (spacerName == 'moreThanP')			selectHeight = 3;
	if (spacerName == 'otherThanP')			selectHeight = 4;
	if (spacerName == 'pageHeader')			selectHeight = 5;
	if (spacerName == 'buttonz')			selectHeight = 6;
	if (spacerName == 'formz')				selectHeight = 7;
	

	document.writeln('<table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/'+ siteRoot + '/sitewide/images/pix.gif" width="1" height="'+myHeight[selectHeight]+'" border="0"></td></tr></table>');
}




//function tempPageHeader(gifName,altTag)	{
//	document.writeln(''+gifName+''+altTag+'');
//}


