//////Google Maps Stuff
///// Twiddle J Jones 2007 still hackin! N3RrdC0re forever!
	
	function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
		
window.setTimeout(function() {
 		GEvent.addListener(map, "moveend", function() {
          var center = map.getCenter();
         // document.getElementById("messsage").innerHTML = center.toString();
        });
       
		///pan stuff kinda gay but its there 
		map.panTo(new GLatLng(51.00421272952784, -114.06919956207275));}, 13);
		map.setCenter(new GLatLng(51.00421272952784, -114.06919956207275 ), 13);
		// map.openInfoWindow(map.getCenter(),
		//	 document.createTextNode('<b>Richview Fine Cars</b>','<br>stuff'));
		
     
	 // Create our "tiny" marker icon
     	var icon = new GIcon();
        icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
        icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
        icon.iconSize = new GSize(12, 20);
        icon.shadowSize = new GSize(22, 20);
        icon.iconAnchor = new GPoint(6, 20);
        icon.infoWindowAnchor = new GPoint(5, 1);
        var point = (new GLatLng(51.00431062272696, -114.06907618045807));
        map.addOverlay(new GMarker(point,icon));
       }
    }

////Validate Forms
function validate()
{
x=document.contact
phone=x.phone.value
email=x.email.value
submitOK="True"

if (phone=="" && email=="")
 {
 alert("Please enter a phone number or email address where we can reach you")
 //document.contact.phone.focus()
 submitOK="False"
 }
if (submitOK=="False")
 {
 return false
 }
}
/// no key press forms
function noenter() {
  return !(window.event && window.event.keyCode == 13); }
//////Google Analytics Coder
_uacct = "UA-869929-2";
urchinTracker();

