// -- change image in photo gallery

function contentswap(file) {
	document.mainimage.src = file;
}

// -- open PopUp

function openPopUp(url, width, height, scroll, resize) {
	if (!scroll) scroll = 0;
	if (!resize) resize = 0;
	featurePopUp = window.open(url,"BigImage","width="+width+",height="+height+",left=20,top=20,menubar=0,status=0,toolbar=0,location=0,scrollbars="+scroll+",resizable="+resize);
}