// Clientside Javascript functions for the Midnight Moon site
// Date: 3/12/08
// Author: D. Kilburn
// ----------------------------------------------------------

// This function replaces the background image of the PicViewer DIV element, allowing it to function as an image viewport
// ----------------------------------------------------------------------------------------------------------------------
function showPic(strPath) 
{
	try {
		document.getElementById("PicViewer").className = "picBorder";
		document.getElementById("PicViewer").style.backgroundImage = "url(" + strPath + ")";
	}
	catch (exception)
	{
		alert("Error - unable to display gallery image.");
	}
	
	return;
}

function setScreenRes () 
{
	if ((screen.width>=1024) && (screen.height>=768))
	{
	 window.location="highres.html";
	}
	else
	{
	  window.location="lowres.html";
	}
}
