/*  e203.js                                      */
/*  6 Oct 2003                                   */
/*  anthony ubelhor (ubelhor@mindspring.com)     */
/*  general-purpose scripts for eng203 web page  */


/* pre-load rollover images */
function PreloadImages(length, path, type, imgWidth, imgHeight) {
	for(var i = 1; i<=length; i++) {
		this[i]= new Image(imgWidth, imgHeight)
		this[i].src= path + i + type
	}
	return this
}
over=new PreloadImages(7,'img/buttonb','.jpg', 105, 20)
norm=new PreloadImages(7,'img/buttona','.jpg', 105, 20)



/* mouse rollover functions */
function rollOn(num){
	if(document.images)
		eval('document.images["norm'+num+'"].src='+'over[num].src')
	}

function rollOff(num){
	if(document.images)
		eval('document.images["norm'+num+'"].src='+'norm[num].src')
	}

/* Create a pop-up window */
function openWin(URL) {
	noteWindow = window.open(URL,"newindow","toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=500,height=500");
	}

/* eof */

