// Popup window for activity page detail
function popup(filename){
window.open(filename, "","height=260,width=560,top=0,left=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
}

// Popup window for photos
function openPicWindow(imageType,imageName,imageWidth,imageHeight,alt) {  // v4.01
	winHeight = (imageHeight - 0) + 20;
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+winHeight+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no,left="+50+",top="+50);
	newWindow.document.open();
	newWindow.document.write('<html><meta http-equiv="imagetoolbar" content="no" /><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()" onClick="self.close()"><center>');
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
	newWindow.document.write('<br />'+alt);
	newWindow.document.write('</center></body></html>');
	newWindow.document.close();
	newWindow.focus();
}

// Popup window for activity page detail
function popupoffer(filename){
window.open(filename, "","height=260,width=580,top=0,left=0,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=yes,toolbar=no,directories=no");
}

// Flip function - swaps images
function flipPic (img, newSrc) {
document[img].src = newSrc
}