function swapImg(x,y) {		
document.images[x].src=eval(y+'.src');}
		 
currdate = new Date();
var g_aMonths = new Array( "January", "Febuary", "March", "April", "May", "June", "July", "August", "September", "Octember", "November", "December" );
		 
var currTimeout;

function popUp(theURL,winName,features) {
window.open(theURL,winName,features);}

function swapLayer(layerID)
{
	dom = eval("document.all." + layerID + ".style");  
	
	if (dom.visibility == "visible")
		dom.visibility = "hidden";
	else
		dom.visibility = "visible";
}

function photo_open_newWindow(id, width, height)
{
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	
	newWindow = window.open("/photo_display.php?id="+id,"photo"+id,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height="+height+",top="+wint+",left="+winl);
	newWindow.focus();
}

var photoWindow = null;
function photo_open(id, width, height)
{
	if (photoWindow != null) photoWindow.close();
	
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	
	photoWindow = window.open("/photo_display.php?id="+id,"photo","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height="+height+",top="+wint+",left="+winl);
	photoWindow.focus();
}

var movieWindow = null;
function movie_open(link, width, height)
{
	if (movieWindow != null) movieWindow.close();

	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	
	var movieWindow = window.open(link,"movie",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+",top="+wint+",left="+winl);
}

