	function initializeMap( point, map ) {
		if(!point)
		{
			return;
		}
		map.setCenter(point, 12);
		map.setUIToDefault();
		createHomeLocation( point, map );
	}
	function createHomeLocation( point, map ) {

		if(!point)
			return false;

		// Create our "tiny" marker icon
		var blueIcon = new GIcon( G_DEFAULT_ICON );
		blueIcon.image = '/art/mapicons/' + icons.home;
		blueIcon.shadow = "";
		blueIcon.iconSize = new GSize( 24, 24 );
		blueIcon.iconAnchor = new GPoint( 12, 12 );

		// Set up our GMarkerOptions object
		markerOptions = { icon:blueIcon };

		map.addOverlay( new GMarker(point, markerOptions) );
	}
	function createBusinessLocation( point, map, directions, locations, x ) {

		if(!point)
			return false;
		if(isNaN(x))
			return false;

		// Create our Business marker icon
		var icon = new GIcon( G_DEFAULT_ICON );
		icon.image = '/art/mapicons/' + icons.favourite;
		icon.shadow = "";
		icon.iconSize = new GSize( 24, 24 );
		icon.iconAnchor = new GPoint( 12, 12 );

		// Set up our GMarkerOptions object
		markerOptions = {icon:icon };

		var overlay = new GMarker( point, markerOptions );
		overlay._name = locations[x].name;
		overlay._rating = locations[x].rating;
		overlay._address = locations[x].address;
		overlay._directions = directions;
		GEvent.addListener(overlay, "click", locationClickHandler );
		map.addOverlay( overlay );
	}
	function locationClickHandler() {

		var html = '<div class="infowindow">';
		html += '<h4>'+this._name+'</h4>';
		html += '<h1>'+this._rating+'</h1>';
		html += '<p>'+this._address+'</p>';
		html += '</div>';

		var directions = this._directions;

		this.openInfoWindowHtml( html );
		directionsHandler( this._address.replace(/<br \/>/g,' '), directions );
	}
	function directionsHandler( destination, directions ) {

		directionsPanel = document.getElementById('directions_canvas');
		directionsPanel.style.display = 'block';
//		directions = new GDirections(map, directionsPanel);
		directions.load("from: "+home+" to: "+destination, {"preserveViewport":true});
		GEvent.addListener(directions, "addoverlay", levelHeight);
	}

