// JavaScript Document
function initialize(strConnectName) {
	var map;
	var currentDate = new Date();
	if (GBrowserIsCompatible()) {
		var mapOptions = {
			googleBarOptions : {
			style:"new"
		}
	}
	
	map = new GMap2(document.getElementById("map"), mapOptions);
	var point = new GLatLng(4.452733,101.388588);   //enter the longtitude and latitude here
	map.setCenter(point, 5);	
	map.setUIToDefault();
	//map.enableGoogleBar();

	//map.addControl(new GOverviewMapControl());
	
	//  ======== Add a map overview ==========
	//map.addControl(new GOverviewMapControl(new GSize(200,200)));
	
	//  ======== A function to adjust the positioning of the overview ========
	function positionOverview(x,y) {
		var omap=document.getElementById("map_overview");
		omap.style.left = x+"px";
		omap.style.top = y+"px";
		
		// == restyling ==
		omap.firstChild.style.border = "1px solid #FF0000";
		omap.firstChild.firstChild.style.left="4px";
		omap.firstChild.firstChild.style.top="4px";
		omap.firstChild.firstChild.style.width="190px";
		omap.firstChild.firstChild.style.height="190px";
	}
			
	//var tolink = "<a target=\"blank\" href=\"http://www.google.com/maps?source=uds&daddr=%40" + point.lat() + "%2C" + point.lng() + "&iwstate1=dir%3Ato&hl=it\">a qui</a>"
	//var fromlink = "<a target=\"blank\" href=\"http://www.google.com/maps?source=uds&daddr=%40" + point.lat() + "%2C" + point.lng() + "&iwstate1=dir%3Afrom&hl=it\">da qui</a>"

	//var boundaries = new GLatLngBounds(new GLatLng(44.82106316518879, 9.246540069580078), new GlatLng(44.82114687610049, 9.245960712432861));
	//var oldmap = new GGroundOverlay("http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", boundaries);
	//map.addOverlay(oldmap);
	/* casa ganesh */
		
	var marker = new GMarker(point);
	//this is where you put the text that you want to appear in the bubble
	var html = "<strong>The Lakehouse Cameron</strong><br />30th Mile Ringlet,<br />39200 Cameron Highlands,<br />Pahang, Malaysia<br />Tel: +605 495 6152<br />Fax: +605 495 6213<br />Email:<a href\"mailto:info@lakehouse-cameron.com\">info@lakehouse-cameron.com</a><br /><a href=\"http://maps.google.com/maps/place?cid=2750044581084314342&q=The+Lakehouse+Cameron+Highlands&hl=en&cd=1&cad=src:ppiwlink&ei=1XfiS-C6L5KAugPZzKSTDQ&dtab=2\" target=\"_blank\">Read Reviews</a><br /><a href=\"javascript:hhotelDispopriceFHP('ASIAHPLHTLLakehouse','','','" + currentDate.getFullYear() + "','1','1','1');\"><img src=\"images/btn_booknow.gif\" border=\"0\" /></a><br />";
	map.addOverlay(marker);
	marker.openInfoWindowHtml(html);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(html);
	});			
	}
}