// Function to "change" images.
	function imgAct(bimg) {
		document.images[0].src = eval(bimg + ".src");
	} 
	
	 // Function to "change" images.
function imgAct2(imgName) {
        document["change"].src = eval(imgName + ".src");
	txt1.style.visibility="visible";
        };
        
// function to hide nonexistant stories
function hidestr()
{
	for (var i = 0; i < 10; i++) {
		var nws = document.getElementById("NU0" + i);
		if (i < noOfItems) {
			nws.style.visibility="visible";
		}
		else {
			nws.style.visibility="hidden";
		}
	}
}

	// function to swap news stories
 function chgart(nwsstry) {
  		var story = document.getElementById('article');
		story.src = "Newsletters/" + nwsstry + ".pub"; 
 	   	 	
 	   for (var i = 0; i < 10; i++) {
 	   	var stry = document.getElementById("NU0" + i);
	    	if (i == nwsstry) {
	    	   stry.style.fontSize = 14;
			} else {
	     	  	stry.style.fontSize = 12;
	     	}
 	   }

}
       
	// function to swap clubs stories
 function chgclb(nwsstry) {
  		var story = document.getElementById('article');
		story.src = "club" + nwsstry + ".htm"; 
 	   	 	
 	   for (var i = 0; i < 10; i++) {
 	   	var stry = document.getElementById("NU0" + i);
	    	if (i == nwsstry) {
	    	   stry.style.fontSize = 14;
			} else {
	     	  	stry.style.fontSize = 12;
	     	}
 	   }

}
       
	// function to swap letters
 function chglet(nwsstry) {
  		var story = document.getElementById('article');
		story.src = "lttr0" + nwsstry + ".htm"; 
 	   	 	
 	   for (var i = 0; i < 10; i++) {
 	   	var stry = document.getElementById("NU0" + i);
	    	if (i == nwsstry) {
	    	   stry.style.fontSize = 14;
			} else {
	     	  	stry.style.fontSize = 12;
	     	}
 	   }

}
          
	// function to swap Events
 function chgevt(nwsstry) {
  		var story = document.getElementById('article');
		story.src = "Trips/" + nwsstry + ".htm";
		
 	   	 	
 	   for (var i = 0; i < 10; i++) {
 	   	var stry = document.getElementById("NU0" + i);
	    	if (i == nwsstry) {
	    	   stry.style.fontSize = 14;
			} else {
	     	  	stry.style.fontSize = 12;
	     	}
 	   }

}    
// Function to swap structures on who's who page
function chgstr(imgno) {
	
	var cntnt = "document.str10";

 		for (var i = 0; i < 6; i++) {
	     	var cntnt = document.getElementById("str0" + i);
	     	var strsl = document.getElementById("strsl0" + i);
	    	if (i == imgno) {
	     	   cntnt.style.visibility = "visible";
	     	   strsl.style.fontSize = 16;
		  	} else {
 	   	 	cntnt.style.visibility = "hidden";
	     	   strsl.style.fontSize = 14;
 	     }
	   }
}
