// Standard print code
function printIt(){  
	if (window.print) {
		window.print() ;  
	}else{
		var browsername = '<OBJECT ID="browsername1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', browsername);
		browsername1.ExecWB(6, 2);
	}
}

// Open Popup
function popupURL(URL,name,width,height, scrollWin){
	var winLeft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	win = window.open(URL,name, 'toolbar=no, resizable=yes, scrollbars='+scrollWin+', width='+width+', height='+height+',left='+winLeft+',top='+winUp);
}

function openslideshow(num){
	url = "galleryimages.html?id=" + num
	popupURL(url,"gp",500,520,0)
}

function openslideshow2(num){
	url = "historicimages.html?id=" + num
	popupURL(url,"gp",821,546,0)
}


sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

