/* Local Navigation Menu Script */
/* By Peter Smith Version 1 */

/* ShowMe toggles the currently selected menu, image */
function showMeToggle (index) {
  // if IE 5.X, IE 6.X , Moz, DOM
  if (document.getElementById) {
    var tgmenutrs = document.getElementById("toggle").getElementsByTagName("tr");
    //First, we toggle the one we selected
    for (a=0; a < tgmenutrs.length; a++) {
      br = new RegExp(index + "-");
      if ( tgmenutrs[a].id.match(br) ) {
        tgmenutrs[a].className = ( tgmenutrs[a].className !=  "hid") ? "hid" : "";
      } // end if
    } // end for
    //Now, we toggle the image and titles
    img = document.getElementById("tgimg-" + index);
    img.src = ( img.src.match("collapse.gif") ) ? "/images/expand.gif" : "/images/collapse.gif" ;
    img.alt = ( img.alt != "Hide Section" ) ? "Hide Section" : "Show Section";
    link = img.parentNode;
    link.title = ( link.title !=  "Hide Section") ? "Hide Section" : "Show Section";
  } // end if
} // end function showMe


/* ShowMe toggles the currently selected menu, image */
function showMeToggle2 (index) {
  // if IE 5.X, IE 6.X , Moz, DOM
  if (document.getElementById) {
    var tgmenutrs = document.getElementById("toggle2").getElementsByTagName("tr");
    //First, we toggle the one we selected
    for (a=0; a < tgmenutrs.length; a++) {
      br = new RegExp(index + "-");
      if ( tgmenutrs[a].id.match(br) ) {
        tgmenutrs[a].className = ( tgmenutrs[a].className !=  "hid") ? "hid" : "";
      } // end if
    } // end for
    //Now, we toggle the image and titles
    img = document.getElementById("tgimg2-" + index);
    img.src = ( img.src.match("collapse.gif") ) ? "/images/expand.gif" : "/images/collapse.gif" ;
    img.alt = ( img.alt != "Hide Section" ) ? "Hide Section" : "Show Section";
    link = img.parentNode;
    link.title = ( link.title !=  "Hide Section") ? "Hide Section" : "Show Section";
  } // end if
} // end function showMe

function showMeToggle3 (index) {
  // if IE 5.X, IE 6.X , Moz, DOM
  if (document.getElementById) {
    var tgmenutrs = document.getElementById("toggle3").getElementsByTagName("tr");
    //First, we toggle the one we selected
    for (a=0; a < tgmenutrs.length; a++) {
      br = new RegExp(index + "-");
      if ( tgmenutrs[a].id.match(br) ) {
        tgmenutrs[a].className = ( tgmenutrs[a].className !=  "hid") ? "hid" : "";
      } // end if
    } // end for
    //Now, we toggle the image and titles
    img = document.getElementById("tgimg3-" + index);
    img.src = ( img.src.match("collapse.gif") ) ? "/images/expand.gif" : "/images/collapse.gif" ;
    img.alt = ( img.alt != "Hide Section" ) ? "Hide Section" : "Show Section";
    link = img.parentNode;
    link.title = ( link.title !=  "Hide Section") ? "Hide Section" : "Show Section";
  } // end if
} // end function showMe



