//<![CDATA[

function load(arg) {
  if (GBrowserIsCompatible())  {
createMap("<span class='mapText'><strong>Quifit Fitness</strong><br />Brechtseweg 3<br />2990 Loenhout (Belgi&euml;)<br /><br />Tel &nbsp;&nbsp;+32 (0)3 669 76 65<br /><a href='mailto:info@quifit.be' class='mapLink'>info@quifit.be</a></span>","51.397833", "4.643687",15);
}}

function createMap(ghtmlMessage,glat,glong,gzoom){ 
//create the icon (replaces the standard google balloon)
	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);
	
//creates a marker at the given point, displaying the text on click 
function createMarker(point, text) 
{ 
	var marker = new GMarker(point,icon); 
	GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(text); }); return marker; } var map = new GMap2(document.getElementById("quifitMap")); 
	//add the pan & zoom control to the map 
	map.addControl(new GLargeMapControl()); 
	var point = new GLatLng(glat,glong); 
	map.setCenter(point, gzoom); 
	var mark = createMarker(point,ghtmlMessage); 
	map.addOverlay(mark); 
	mark.openInfoWindowHtml(ghtmlMessage); 
}; 
		
function printOnLoad() { 
	load(); 
	window.print(); 
};


//]]>

Event.observe(window, 'load', function() {
    if ($('trainerAdTrigger'))
	Event.observe('trainerAdTrigger', 'click', function(){
        $('trainerAd').toggle();
    });
});
