/* Form Toggling

var ukPoint = new LatLonPoint(54.175297,-4.570312);
var englandPoint = new LatLonPoint(51.507778,-0.128056);
var scotlandPoint = new LatLonPoint(52.175297,-4.570312);
var walesPoint = new LatLonPoint(52.175297,-4.570312);
var niPoint = new LatLonPoint(52.175297,-4.570312);
var eirePoint = new LatLonPoint(52.175297,-4.570312);


function toggleMapRegion(region, flag){
	if ((region='england') && (flag)) {
		mapstraction.setCenterAndZoom(englandPoint, 8);
	}
	else if ((region='scotland') && (flag)) {
			mapstraction.setCenterAndZoom(scotlandPoint, 4);
	}
	else if ((region='wales') && (flag)) {
			mapstraction.setCenterAndZoom(walesPoint, 4);
		}
	else if ((region='ni') && (flag)) {
			mapstraction.setCenterAndZoom(englandPoint, 4);
		}
	else if ((region='eire') && (flag)) {
		mapstraction.setCenterAndZoom(eirePoint, 4);
		}
	else {
		// display the map centered on a latitude and longitude (Google zoom levels)
		mapstraction.removeAllMarkers();
		mapstraction.setCenterAndZoom(ukPoint, 6);
	}
};		

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(toggleMapRegion);
addLoadEvent(function() {
});	
*/