Apologies, other places I've been told I put too much in. Here is the entire JS
function update(btn) {
var ary = new Array();
switch (btn) {
case "Home":
document.getElementById("Content").src = "Home/Prayer.html";
document.getElementById("Chapter").innerHTML = "We are an organization bringing disabled and<br>non-disable people together through sports.";
ary[0] = new Array("Home/AboutUs.html", "About Us", "HomeButton");
ary[1] = new Array("Home/News.html", "Latest News", "HomeButton");
ary[2] = new Array("Home/Sponsor.html", "Sponsor Friends to Friends!", "HomeButton");
ary[3] = new Array("Home/JeffersonAwards.html", "George O'Donnell receives the Jefferson Award", "HomeButton");
ary[4] = new Array("Home/MiracleField.html", "Miracle Field Calendar", "HomeButton");
ary[5] = new Array("Home/Contact.html", "Contact Us", "HomeButton");
break;
case "SwPa":
document.getElementById("Chapter").innerHTML = "Southwest Pennsylvania Chapter<br><br>";
ary[0] = new Array("update('Home')", "Calendar", "Waiting");
ary[1] = new Array("SwPa/PhotoAlbum.html", "Photo Albums", "Waiting");
break;
case "NwPa":
document.getElementById("Chapter").innerHTML = "Northwest Pennsylvania Chapter<br><br>";
ary[0] = new Array("NwPa/Calendar.html", "Calendar", "Waiting");
ary[1] = new Array("NwPa/PhotoAlbum.html", "Photo Albums", "Waiting");
break;
}
var allTags = document.getElementsByTagName("*");
var i=0, l=0;
var e;
while(e=allTags[i++]){
if(e.id.substring(0,4) == "link") {
if (l < ary.length) {
e.onclick = function() {update(ary[l][0]);};
e.innerHTML = ary[l][1];
e.setAttribute("class", ary[l][2]);
l++;
alert(e.onclick);
}
else {
e.setAttribute("class", 'Trans');
}
}
}
return;
}
Let all bear in mind that a society is judged not so much by the standards attained by its more affluent and privileged members as by the quality of life which it is able to assure for its weakest members.