// Google maps
function bampton_map() {
var w = screen.availWidth;
var h = screen.availHeight;
var popW = 800, popH = 600;
var LP = (w-popW)/2, TP = (h-popH)/2;
var map1 = window.open('http://maps.google.com/maps?oi=map&q=Bampton+Oxfordshire+OX18+2HU+UK','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no,screenX=' + LP + ',screenY=' + TP + ',top=' + TP + ',left=' + LP + '');
}

function togglediv(chosen) {
	var e = document.getElementById(chosen);
	if(e.style.display == 'block')
		e.style.display = 'none';
	else
		e.style.display = 'block';

	if(e.style.visibility == 'visible')
		e.style.visibility = 'hidden';
	else
		e.style.visibility = 'visible';
}

function swap(id) {
	var obj = document.getElementById(id);
	if(obj.innerHTML == "expand")
		obj.innerHTML = "collapse";
	else
		obj.innerHTML = "expand";
}

function showPic (whichpic) {
	if (document.getElementById) {
		document.getElementById('imgplaceholder').src = whichpic.href;
		return false;
	} else {
		return true;
	}
}
