

function shiftTable(ref) {
		//swaps a <table> element state between 'visible' and 'collapse'
  var __browser = navigator.appName;
  if (__browser == "Netscape") {
	var curState = document.getElementById(ref).style.visibility;
		//alert("Initial State is: "+curState);
	document.getElementById(ref).style.visibility = (curState=="visible") ? "collapse" : "visible";
		//alert("Final State is: "+document.getElementById(ref).style.visibility);
  } else {
	var curState = document.getElementById(ref).style.display;
	document.getElementById(ref).style.display = (curState=="block") ? "none" : "block";
  }
}
  
 
 
 function swapImage(ref,altImg) {
	//Swaps one image for another, and retains the original image
	//so it can be used to swap back and forth
	
	obj = document.getElementById(ref);  	//assign obj to html <img> element
	if (obj.imgState == null) {
		obj.imgState = "secondary";			
		obj.pSrc = obj.src;					//stores original image source
	} else {								//switches image state indicator variable
		obj.imgState = (obj.imgState == "primary") ? "secondary" : "primary";
	}										//switched image source based on state indicator
	obj.src = (obj.imgState == "primary") ? obj.pSrc : altImg;
}

function swapImageBack(ref) {
	obj=document.getElementById(ref);
	if (obj.imgState != null && obj.pSrc != null) {
		obj.src = obj.pSrc;
		obj.imgState = "primary";
	}
}


function isItWorking() {

	alert("Reading you loud and clear!");
}