<!--
function switchimage(switchto,captiontxt) {
	document.getElementById("mainimg").src = switchto;
	document.getElementById("captiontxt").innerHTML = captiontxt;
}

function switchsnap(spimage,sptitle,sptext,spdate) {
	document.getElementById("snapimage").src = spimage;
	document.getElementById("snaptitle").innerHTML = sptitle;
	document.getElementById("snaptext").innerHTML = sptext;
	document.getElementById("snapdate").innerHTML = spdate;
}

function getWindowHeight() {
    if(window.innerHeight)
		return window.innerHeight;
    if(document.compatMode == "CSS1Compat")
		return document.body.parentNode.clientHeight;
    if(document.body.clientHeight)
		return document.body.clientHeight;	
}

function setTopMargin(id,loc) {
	topMargin = (getWindowHeight()-530)/2;
	if(loc == "inside")
		topMargin = topMargin - 16;
	strMargin = topMargin + 'px auto 0px auto';
	document.getElementById(id).style.margin = strMargin;
}
-->
