/// <reference path="mootools.js" />


function resizeBlocks() {
    var m = $('maincontent');
    var s = $('submenuadres');
    //var a = $('submenu');
    var heightmain = m.getSize().y;
    var heightsub = s.getSize().y - 262 ;
    if (heightmain > heightsub) {
        s.setStyle('height', heightmain);
       // a.setStyle('height', heightmain);
    } else if (heightmain < heightsub) {
        m.setStyle('height', heightsub - 30);
        
    }
}

		function loadgooglemap(id) {
			if (GBrowserIsCompatible()) {
				map = new GMap2(document.getElementById(id));
				map.enableScrollWheelZoom();
				if (geocoder == null) {
					geocoder = new GClientGeocoder();
				}
				
				map.addControl(new GSmallMapControl());
				map.addControl(new GMapTypeControl());
				
			}
		}

		function showAddressMarker(address, name) {
			shopaddress = address;
			if (geocoder) {
				geocoder.getLatLng(
	      address,
	      function(point) {
	      	if (!point) {
	      		alert(address + " niet gevonden");
	      	} else {
	      		targetpoint = point;
	      		map.setCenter(point, 13);
	      		var marker = new GMarker(point);
	      		map.addOverlay(marker);
	      		//marker.openInfoWindowHtml(name);

	      	}
	      }
	    );
			}
		}

