jQuery(document).ready(function() {
    jQuery("#tutorial").lavaLamp({ fx: "backout", speed: 700 });
});

function loadMapWithAddress(id,address,title) {
	var map = new GMap2(document.getElementById(id));
	map.enableScrollWheelZoom();
	map.addControl(new GLargeMapControl(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10, 10)));
	new GClientGeocoder().getLatLng(address, function(latlng) {
		map.setCenter(latlng,15);
		var ico = new GIcon();
		ico.image = "http://maps.gstatic.com/intl/zh-TW_ALL/mapfiles/marker_greenA.png";
		ico.iconAnchor = new GPoint(9, 34);
		ico.infoWindowAnchor = new GPoint(9, 2);
		var marker = new GMarker(latlng, {icon: ico, title: title});
		map.addOverlay(marker);
	});
}

