var numexpitems = 0;
var textstate = new Array();
function buildArray(numitems) {
numexpitems = numitems;
for (i = 0; i < numexpitems; i++) {
textstate[i] = 0;
}
}
function toggletexton(whichtext,myself) {
myself.parentNode.parentNode.className = "onState";
//document.getElementById('nav').getElementsByTagName('ul')[0].getElementsByTagName('li')[whichtext].className = "onState";
//document.getElementById('expheadtext' + whichtext).className = "onState";
textstate[whichtext] = 1;
}
function toggletextoff(whichtext,myself) {
myself.parentNode.parentNode.className = "offState";
//document.getElementById('nav').getElementsByTagName('ul')[0].getElementsByTagName('li')[whichtext].className = "offState";
//document.getElementById('expheadtext' + whichtext).className = "offState";
textstate[whichtext] = 0;
}
function toggletext(whichtext,myself) {
if (textstate[whichtext] == 0) {
toggletexton(whichtext,myself);
} else {
toggletextoff(whichtext,myself);
}
}

function goPage (newURL) {
// This function is called from the Country dropdown to transfer to
// a different page. Ignore if the value returned is a null string
if (newURL != "") {

// skip the default entry and reset the menu selection to default
if (newURL == "-" ) {
resetMenu();
} else {
// send page to designated URL. Open window if this is a new domain
if (newURL.charAt(0) == '/') {
parent.location.href = newURL;
} else {
window.open(newURL, "Brady", "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
}
}
}
}
function resetMenu() {
// resets the menu selection upon entry to this page
document.gomenu.selector.selectedIndex = 1;
}
