// Search Form

function submitform()
{
  document.searchform.submit();
}

// Equal Height
function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
$(document).ready(function() {
	equalHeight($(".column"));
});

// Google Map
function loadmap(numLat, numLong, numZoom, showControls) {

  if (GBrowserIsCompatible()) {
	    map = new GMap2(document.getElementById("map"));
	    map.checkResize();
		map.setCenter(new GLatLng(numLat, numLong), numZoom);

		if (showControls) {
	      map.addControl(new GLargeMapControl());
	      map.addControl(new GMapTypeControl());
		}
	    geocoder = new GClientGeocoder();
  }

}////end of Load Function 

function showAddress(address,ShowAd, showalert) {

	var icon = new GIcon(); 
		icon.image = 'http://google.webassist.com/google/markers/traditionalflat/poppy.png'; 
		icon.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png'; 
		icon.iconSize = new GSize(34,35); 
		icon.shadowSize = new GSize(34,35); 
		icon.iconAnchor = new GPoint(9,23); 
		icon.infoWindowAnchor = new GPoint(19,0); 
		icon.printImage = 'http://google.webassist.com/google/markers/traditionalflat/poppy.gif'; 
		icon.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/poppy_mozprint.png'; 
		icon.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif'; 
		icon.transparent = 'http://google.webassist.com/google/markers/traditionalflat/poppy_transparent.png'; 

		  geocoder.getLatLng(address, 
	                     function(point) { 
		                      if (!point) {
			                        if (showalert) {
				                      alert(address + " not found");
			                        }
		                      } else { 
									map.setCenter(point, 12); 

		                        var marker = new GMarker(point,icon);     
		                        map.addOverlay(marker);  
								GEvent.addListener(marker, "click", function() {
	          					marker.openInfoWindowHtml(ShowAd);
					        	});
                      		} 
                 		} 
		     		);

}////end of ShowAddress Function
