
/*
document.observe("dom:loaded", function() {
	google.load("maps", "2", {
		callback: function() {
			var map = new google.maps.Map2($('map'), {language: 'nl_NL'}),
				geocoder = new GClientGeocoder();
			
			geocoder.getLatLng(
			    'Flamingostraat 12, Utrecht',
			    function(point) {
			      if (point) {
			        map.setCenter(point, 15);
			        var marker = new GMarker(point);
			        map.addControl(new GLargeMapControl);
			        map.addOverlay(marker);
			        //marker.openInfoWindowHtml('Katoenenzo<br\/>Flamingostraat 12, Utrecht');
			      }
			    }
			  );
		}
	});
	
	$("sendMessageButton").observe('click', function() {
		$('contactForm').select('input, textarea').invoke("removeClassName", 'bad');
		
		var errors = 0;
		
		var email = $F("email").strip();
		if (!(email && email.length > 4 && email.include('@'))) {
			errors++;
			$("email").addClassName('bad');
		}
		
		var message = $F("message").strip();
		if (!message) {
			errors++;
			$("message").addClassName('bad');
		}
		
		if (errors) return;
		
		this.remove();
		this.stopObserving();
		
		new Ajax.Request(Katoenenzo.options.webroot + 'contact/ajax/message', {
			parameters: $('contactForm').serialize(),
			onComplete: function() {
				$('contactForm').remove();
				$('messageSend').show();
			}.bind(this)
		});
	});
});*/
//Event.observe(window, "unload", google.GUnload);
