function imgover(whichimg) {
	whichimg.src = whichimg.src.replace(new RegExp('_off\.','g'),'_on\.');
	}

function imgout(whichimg) {
	whichimg.src = whichimg.src.replace(new RegExp('_on\.','g'),'_off\.');
	}

	function NewWindow(mypage, myname, w, h, scroll) { 
	var winl = (screen.width - w) / 2; 
	var wint = (screen.height - h) / 2; 
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no' 
	win = window.open(mypage, myname, winprops) 
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
}


function facesgallery(whichimg) {
	el = document.getElementById('gallery1');
	if (el) {
		el.innerHTML = "<div id='galleryborder'><img src='/images/photos/" + whichimg + ".jpg'></div>";
	}
	
}

function showgallery(whichimg) {
	el = document.getElementById('gallery2');
	if (el) {
		el.innerHTML = "<div id='galleryborder'><img src='/images/photos/" + whichimg + ".jpg'></div>";
	}
}
