function showmap() {
	document.getElementById( "showmap" ).style.display = "block";
}

function fReunionPressChange( nReunionMode, nReunionPressPageID ) {
	oForm = document.getElementById( "frmMaster" );
	oForm.hReunionMode.value = nReunionMode;
	oForm.hReunionPressMode.value = nReunionPressPageID;
	oForm.action = "index.asp";
	oForm.submit();
}

function fReunionGalleryChange( nReunionMode, nReunionPhotoPageID ) {
	oForm = document.getElementById( "frmMaster" );
	oForm.hReunionMode.value = nReunionMode;
	oForm.hReunionPhotoPageID.value = nReunionPhotoPageID;
	oForm.action = "index.asp";
	oForm.submit();
}

function fReunionGalleryChangeFromMB( nReunionMode, nReunionPhotoPageID ) {
	oForm = document.getElementById( "frmMaster" );
	oForm.hReunionMode.value = nReunionMode;
	oForm.hReunionPhotoPageID.value = nReunionPhotoPageID;
	oForm.action = "/reunion/index.asp";
	oForm.submit();
}

function fReunionChangeMode( nPageID, nReunionMode ) {
	oForm = document.getElementById( "frmMaster" );
	oForm.hPageID.value = nPageID;
	if(( nReunionMode > 8 ) && ( nReunionMode < 12 )) {
		oForm.hReunionMode.value = 8;
		oForm.hReunionPhotosMode.value = nReunionMode;
	} else {
		if(( nReunionMode > 12 ) && ( nReunionMode < 16 )) {
			oForm.hReunionMode.value = 12;
			oForm.hReunionThoughtsMode.value = nReunionMode;
		} else {
			oForm.hReunionMode.value = nReunionMode;
		}
	}
	oForm.action = "index.asp";
	oForm.submit();
}
function fBelfastMapChange( nPageID, nReunionMode, nMapMode ) {
	oForm = document.getElementById( "frmMaster" );
	oForm.hPageID.value = nPageID;
	oForm.hReunionMode.value = nReunionMode;
	oForm.hMapMode.value = nMapMode;
	oForm.action = "index.asp";
	oForm.submit();
}
function fBrendanSaid() {
	document.getElementById( "brendansaid" ).style.visibility = "visible";
}
function fFergieSaid() {
	document.getElementById( "fergiesaid" ).style.visibility = "visible";
}
function fBelfastMapOver( sThisColor ) {
	var sMapDetails = sThisColor + "Text";
	document.getElementById( "mapDetails" ).className = sThisColor;
	switch( sThisColor ) {
	case "mapDetailsBlue":
		document.getElementById( "mapDetailsStart" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsYellowText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsRedText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsGreenText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBluerText" ).style.visibility = "hidden";
		break;
	case "mapDetailsYellow":
		document.getElementById( "mapDetailsStart" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBlueText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsRedText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsGreenText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBluerText" ).style.visibility = "hidden";
		break;
	case "mapDetailsRed":
		document.getElementById( "mapDetailsStart" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBlueText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsYellowText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsGreenText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBluerText" ).style.visibility = "hidden";
		break;
	case "mapDetailsGreen":
		document.getElementById( "mapDetailsStart" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBlueText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsYellowText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsRedText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBluerText" ).style.visibility = "hidden";
		break;
	case "mapDetailsBluer":
		document.getElementById( "mapDetailsStart" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsBlueText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsYellowText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsRedText" ).style.visibility = "hidden";
		document.getElementById( "mapDetailsGreenText" ).style.visibility = "hidden";
		break;
	}
	document.getElementById( sMapDetails ).style.visibility = "visible";
}

function fReunionQuestionnaire( nPageID, nReunionMode ) {
	var oForm = document.getElementById( "frmMaster" );
	oForm.hPageID.value = nPageID;
	oForm.hReunionMode.value = nReunionMode;
	oForm.action = "x8ques.asp";
	oForm.submit();
}
