
function domStrategyCheck(id) {
  // This function checks for DOM strategy, then 
  // returns an object reference.
  if (document.all) {
    return document.all[id].style;
  } else if(document.layers) {
    return document.layers[id];
  }
}

// set hidden/visible vars for Netscape 4 compatibility
if (document.layers) {
  var hidden = "hide";
  var visible = "show";
} else {
  var hidden = "hidden";
  var visible = "visible";
}
var toggle = "toggle";

function changeVisibility() {
  if (document.layers || document.all) {
    var inc, endInc=arguments.length;
    // run through the args (objects) and set the visibility of each
    for (inc=0; inc<endInc; inc+=2) {
      // get a good object reference

      var theObj = domStrategyCheck(arguments[inc]);
	  	  	//alert("change visiility " + arguments[inc] +  " = " + theObj)
			if (theObj != null){
	      if (arguments[inc+1] == hidden) {
	        // hide the object
	        theObj.visibility = hidden;
	      } else if (arguments[inc+1] == visible) {
	        // show the object
	        theObj.visibility = visible;
	      } else if (arguments[inc+1] == toggle) {
	        // toggle the object's visibility
	        if (theObj.visibility == visible) {
	          theObj.visibility = hidden;
	        } else if (theObj.visibility == hidden) {
	          theObj.visibility = visible;
	        }
	      }
			}
    }
  }
}

// function to change displayed image
// for mouse over effects
	
function displayImages(id,name,iconStatus){
	if (!iconStatus) {	
		if (document.images) {
			document.images[id].src=eval(name+".src"); 
		}
		window.status = iconStatus;	
	}		
}
	
// function that displays a status bar message 
// for mouse over effects
	
function displayMessage(msgStr) {
	  document.returnValue = false;
	  if (document.images) { 
		     window.status = msgStr;
		     document.returnValue = true;
	  }
}