// JavaScript Document

function menuroll(imgName, imgSrc) {
     document.images[imgName].src = imgSrc;
}

// The remainder of this file is not in use. The function navFlipbook was used
// to navigate photos on the homepage without the flash file.

var picNum = 1; // first/default photo number
var picLast = 6; // last photo number

function navFlipbook(selNum) {
	if (selNum == 'next') {
		iNum = picNum + 1;
		if (iNum > picLast)
			iNum = picNum;
	}
	if (selNum == 'previous') {
		iNum = picNum - 1;
		if (iNum < 1)
			iNum = picLast;
	}
	
	picNum = iNum;
	document.flipbook.src = 'images/homepage_photo0' + picNum + '.jpg';
}

function NewWindow(mypage, myname, w, h, scroll) {
	// ADD TO <A> TAG:  onClick="NewWindow(this.href,'pop','750','550','no');return false;"
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}