if(typeof(imglist)!='undefined'){
var imgs = new Array(); var count;
	for (count=0; count<imglist.length; count++)
	{imgs[count]=new Image(); imgs[count].src="i/" + imglist[count] + "-on.gif";}
}
function roll(imgName) {

	if (document.images) { document[imgName].src = "i/" + imgName + "-on.gif"	}

}

function out(imgName) {

	if (document.images)  {	document[imgName].src = "i/" + imgName + ".gif"	}

}
function mOver(imgName) {

	if (document.images) { document[imgName].src = "i/" + imgName + "-on.jpg"	}

}

function mOut(imgName) {

	if (document.images)  {	document[imgName].src = "i/" + imgName + ".jpg"	}

}
//use the following var to remember an image's original src value
//the imageRoll function will constantly update this value, allowing the imageOut function to use its current value
var imageSourceValue = '';
function imageRoll(imageObject)
{
	//store the current src value
	imageSourceValue = imageObject.src;
	//grab the directory from the src attribute
	var folderIndex = imageObject.src.lastIndexOf("/");
	var theDirectory = imageObject.src.substring(0,folderIndex+1);//returns the DIR in the form http://domain.com/folder
	//test for image file type, jpg v. gif
	var theFileType = imageObject.src.substring(imageObject.src.length-3);//grab the last 3 characters, they represent the file type

	imageObject.src=theDirectory+imageObject.name+'-on.'+theFileType;
}
function imageOut(imageObject)
{
	//retrieve the original image src attribute
	imageObject.src = imageSourceValue;
}
//----------------------------------------------------------------------
//----------------------------------------------------------------------
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
	if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
var popUpWin=0;
function outsideWindow(URLStr)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=1,location=1,directories=no,status=1,menubar=no,scrollbars=1,resizable=1,copyhistory=yes,width='+750+',height='+500+',left='+10+', top='+10+',screenX='+10+',screenY='+10+'');
}
//font reSizer
function changeFont(n){
  var i, a;
  for(i=0; (a = document.getElementsByTagName("td")[i]); i++) {
	if(n == 'large'){
		a.style.fontSize = '14px';
		document.bt_minus.src="http://trudeauinstitute.org/dynamicPages/i/bt_minus.gif";
		document.bt_Plus.src="http://trudeauinstitute.org/i/a.gif";
	}else{
		a.style.fontSize = '12px';
		document.bt_minus.src="http://trudeauinstitute.org/i/a.gif";
		document.bt_Plus.src="http://trudeauinstitute.org/dynamicPages/i/bt_Plus.gif";
	}
  }
}
//swap photos in faculty admin
function photoSwap(photoName){
	document.selectedPhoto.src='../staffPhotos/thumbs/'+photoName;
	document.form1.photo.value=photoName;
}
//assign photos to left side of pages
function photoAssign(photoName){
	document.selectedPhoto.src='../leftPhotos/'+photoName;
	document.form1.photo.value=photoName;
}