/*

the following JavaScript code was changed to allow for any number of properly named pop up boxes.
edited 5/25/2011

var x;

//lists names of pop ups
var box = new Array();
box[0] = 'PopUpText';
box[1] = 'PopUpText1';
box[2] = 'PopUpText2';
box[3] = 'PopUpText3';
box[4] = 'PopUpText4';
box[5] = 'PopUpText5';
box[6] = 'PopUpText6';
box[7] = 'PopUpText7';
box[8] = 'PopUpText8';
box[9] = 'PopUpText9';


// hides all boxes, then opens the selected one
function openBox(i){
	for(x in box){
		if(document.getElementById(box[x]) != null){
			document.getElementById(box[x]).style.display = 'none';
		}
	}
	
	
	document.getElementById(box[i]).style.display = 'block';
}

// closes the box
function closeBox(i){
	document.getElementById(box[i]).style.display = 'none';
}

the following javascript is recommended instead:
*/


var currentbox;
currentbox = false;

function openBox(lookup)
{
	if(currentbox)
		currentbox.style.display = 'none';
	
	if(lookup == 0)
		lookup = "";
		
	currentbox = document.getElementById("PopUpText"+lookup);
	currentbox.style.display = 'block';
}

function closeBox(lookup)
{
	//the 'lookup' argument is a hold-over from the old markup and is passed in by it.
	//right now it can be ignored due to the currentbox global variable.
	currentbox.style.display = 'none';
}

/*

*/
