// image swapper
if (document.images) {
  image1on = new Image();
  image1on.src = "graphics/justus_a.jpg";
  
  image1off = new Image();
  image1off.src = "graphics/justus.jpg";
}

function turnOn(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}
// 
// script to open new window
// Console mode: resizable, nothing else
// Scroll mode: resizable, scrollbars only
// Full mode: everything's available
//
var newWin = null;
function popUp(strURL, strType, strWidth, strHeight) {  
	if (newWin != null && !newWin.closed)    
		newWin.close();  
	var strOptions="";  
		if (strType=="console")    
			strOptions="resizable,width="+strWidth+",height="+strHeight;  
		if (strType=="scroll")
			strOptions="resizable,scrollbars,width="+strWidth+",height="+strHeight;
		if (strType=="full")    
			strOptions="toolbar,menubar,scrollbars,resizable,location,width="+
			strWidth+",height="+strHeight;  
	newWin = window.open(strURL, 'newWin', strOptions);  
	newWin.focus();
}
