// Javascript to show and hide layers
// if layer is to be hidden on load then the DIV's attribute needs to be  
// style="display: none"
// DIV must also have a unique ID

function HideContent(d) {
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	document.getElementById(d).style.display = "";
}
function ReverseContentDisplay(d) {
	if(document.getElementById(d).style.display == "none") { 
		document.getElementById(d).style.display = ""; 
		}
	else { 
		document.getElementById(d).style.display = "none"; 
		}
}

//This array and function set is for the rollovers in the Top Navigation section

ver4 = (document.layers || document.all) ? 1 : 0;
 
 if (document.images) {
  navImageSrc = new Array (
		"mainnav_whoweare_a.gif",
		"mainnav_whoweare_b.gif",
		"mainnav_whatwedo_a.gif",
		"mainnav_whatwedo_b.gif",
		"mainnav_treegarden_a.gif",
		"mainnav_treegarden_b.gif",
		"mainnav_contact_a.gif",
		"mainnav_contact_b.gif",
		"credits_a.gif",
		"credits_b.gif"
		  )
  navImageList = new Array ();
  for (counter in navImageSrc) {
   navImageList[counter] = new Image();
   navImageList[counter].src = "images/" + navImageSrc[counter];
  }
 }
 
 function navRollOver(imName,over) {
  if (!document.images) {
   return
  }
  
  whichIm = document.images[imName];
  
  if (over) {
   whichIm.src = "images/mainnav_" + imName + "_b.gif"
  } else {
   whichIm.src = "images/mainnav_" + imName + "_a.gif"
  }
 }

 function RollOver(imName,over) {
  if (!document.images) {
   return
  }
  
  whichIm = document.images[imName];
  
  if (over) {
   whichIm.src = "images/" + imName + "_b.gif"
  } else {
   whichIm.src = "images/" + imName + "_a.gif"
  }
 }
