/*  e271.js                                      */
/*  17 september 2006                            */
/*  anthony ubelhor (ubelhor@mindspring.com)     */
/*  general-purpose scripts for eng271 web page  */


/* pre-load navigation images */
if (document.images) {

	ban0 = new Image(600,30);
	ban0.src = "img/banner10.jpg";
	ban1 = new Image(600,30);
	ban1.src = "img/banner11.jpg";
	ban2 = new Image(600,30);
	ban2.src = "img/banner12.jpg";
	ban3 = new Image(600,30);
	ban3.src = "img/banner13.jpg";
	ban4 = new Image(600,30);
	ban4.src = "img/banner14.jpg";
	ban5 = new Image(600,30);
	ban5.src = "img/banner15.jpg";
	ban6 = new Image(600,30);
	ban6.src = "img/banner16.jpg";
	ban7 = new Image(600,30);
	ban7.src = "img/banner17.jpg";
}
	
/* banner rollover. enable new image in location named by 'navbox' */ 
function banner(num){
	if(document.images)
		eval('document.images["navbox"].src = ban' + num + '.src');
}

/* pre-load printer-friendly rollover images */
	if (document.images) {
		printon = new Image(150,35);
		printon.src="img/printon.gif";
		printoff = new Image(150,35);
		printoff.src="img/printoff.gif";
	}


/* printer rollover */
function enable(imgName) { 
	if (document.images) { 
		imgOn=eval(imgName + "on.src"); 
		document[imgName].src= imgOn; 
	} 
} 

function disable(imgName) { 
	if (document.images) { 
		imgOff=eval(imgName + "off.src"); 
		document[imgName].src= imgOff; 
	} 
} 




/* eof */
