 //<![CDATA[



    function loadmap() {

      if (GBrowserIsCompatible()) {

        var map = new GMap2(document.getElementById("map"));

		map.addControl(new GSmallMapControl());

		//map.addControl(new GMapTypeControl());

		//OLDmap.setCenter(new GLatLng(51.467537, -0.296545), 12);
		map.setCenter(new GLatLng(51.459475, -0.494599), 12);

       // map.openInfoWindow(map.getCenter(),

	   //document.createTextNode("Living Stone \n Natural Stone Paving"));

	   // Create our "tiny" marker icon

var icon = new GIcon();

//icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";

icon.image = "http://www.frazercox.co.uk/livingstone/images/maplogo.png";

//icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";

icon.shadow = "http://www.frazercox.co.uk/livingstone/images/maplogoshadow.png";

icon.iconSize = new GSize(152, 104);

icon.shadowSize = new GSize(170, 104);

icon.iconAnchor = new GPoint(6, 104);

icon.infoWindowAnchor = new GPoint(5, 1);

// Add 10 markers to the map at random locations

var bounds = map.getBounds();

var southWest = bounds.getSouthWest();

var northEast = bounds.getNorthEast();

var lngSpan = northEast.lng() - southWest.lng();

var latSpan = northEast.lat() - southWest.lat();

//alert("long="+lngSpan+" lat="+latSpan+" random="+Math.random());

  //OLDvar point = new GLatLng( 51.466037,-0.296545);
  var point = new GLatLng( 51.459475, -0.494599);

  map.addOverlay(new GMarker(point, icon));



      }

    }



function validate_contact(form){
	var ecount = true;
	if(form.name.value == ""){
		document.getElementById('ename').className = "error"
		document.getElementById('ename').innerHTML = "Please enter your name";
		ecount = false;
	}
	else { document.getElementById('ename').innerHTML = "";}
	if(form.email.value == ""){
		document.getElementById('eemail').className = "error"
		document.getElementById('eemail').innerHTML = "Please enter your email";
		ecount = false;
	}
	else { document.getElementById('eemail').innerHTML = "";}
	if(form.phone.value == ""){
		document.getElementById('ephone').className = "error"
		document.getElementById('ephone').innerHTML = "Please enter your phone no.";
		ecount = false;
	}
	else { document.getElementById('ephone').innerHTML = "";}
	if(form.comments.value == ""){
		document.getElementById('ecomments').className = "error"
		document.getElementById('ecomments').innerHTML = "Please enter your questions/comments";
		ecount = false;
	}
	else { document.getElementById('ecomments').innerHTML = "";}
	if(document.getElementById('hearaboutus').selectedIndex == 0){
		document.getElementById('ehearaboutus').className = "error"
		document.getElementById('ehearaboutus').innerHTML = "Please select how you heard about us";
		ecount = false;
	}
	else { document.getElementById('ehearaboutus').innerHTML = "";}
	if(document.getElementById('hearaboutus').selectedIndex == 7 && form.pleasespecify.value == ""){
		document.getElementById('epleasespecify').className = "error"
		document.getElementById('epleasespecify').innerHTML = "Please specify how you heard about us";
		ecount = false;
	}
	else { document.getElementById('epleasespecify').innerHTML = "";}
	return(ecount);
}
function pleasesupply(){
	//alert(document.getElementById('hearaboutus').selectedIndex);
	if(document.getElementById('hearaboutus').selectedIndex == 7){
		document.getElementById('pleasespecify').style.display = "block";
	}
	else{
		document.getElementById('pleasespecify').style.display = "none";	
	}
}



    //]]>