// JavaScript Document


function showonlyone(thechosenone) {
      var newbox = document.getElementsByTagName("div");
            for(var x=0; x<newbox.length; x++) {
                  name = newbox[x].getAttribute("name");
                  if (name == 'newbox') {
                        if (newbox[x].id == thechosenone) {
                        newbox[x].style.display = 'block';
                  }
                  else {
                        newbox[x].style.display = 'none';
                  }
            }
      }
}


function glowOn(thdivname) {
document.getElementById(thdivname).style.backgroundImage = "url('/wp-content/themes/craiglea1/custom/home-topnav/button_on.gif')";
}

function glowOff(thdivname) {
document.getElementById(thdivname).style.backgroundImage = "url('/wp-content/themes/craiglea1/custom/home-topnav/button_off.gif')";
}

