/* 

1 - the Loader() function is called via the body element's onload event and ensures that all description are hidden as the page loads if the browser understands the DOM.

*/



function showHideSection(id,section)
{
      if (document.getElementById)
      {
        if (document.getElementById(id).className == "show")
        {
            document.getElementById(id).className = "hide";
        }
        else{
            hideallSection(section);
	        var div = document.getElementById(id);
	        div.className = "show";
        }
      }  
}

function hideallSection(section)
{
  if (document.getElementById)
  {
    var parent = document.getElementById(section);
    if (parent)
    {
	    var divs = parent.getElementsByTagName("div");
	    for (var i = 0; i < divs.length; i++)
	    {
	       divs[i].className = "hide";
        }
    }
  }
}

