$(document).ready(function () {
	/*$("#TicketType").width($("#ticketInfo").width()*0.8);*/
	/*
	var scale=$("#map img:first").parent("div .moduleBody:last").width()/$("#map img:first").width();
	$("#map img:first").width($("#map img:first").width()*scale);
	$("#map img:first").height($("#map img:first").height()*scale);
	*/
	$(".more").bind("click", function(e){		
		$(this).siblings("div:last").width($("th",$("#TicketType")).width()).toggle("slow");
    });
	mapInitialize();
});
function mapInitialize() {
    if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("mapbox"));
		//map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        //map.setUIToDefault();
		//var mapControl = new GMapTypeControl();
		//map.addControl(mapControl);
		map.addControl(new GSmallZoomControl3D());
		geocoder = new GClientGeocoder();
		address=$("#gmapAddress").text();
		//address = "55 Shelley Street, Sydney, NSW, 2000, Australia",
		geocoder.getLatLng(
			address,
			function(point) {
				if (!point) {
					//alert("Map address (" + address + ") was not found.");
				} else {
					map.setCenter(point, 13);
					var marker = new GMarker(point);
					map.addOverlay(marker);
					//marker.openInfoWindowHtml("!");
				}
			}
        );
    }
}
function validate_form(thisform){
	var OK=0;
	$(":input",thisform).each(function (i) {
		//alert($(this).val());
		if($(this).val()=="0" || $(this).val()=="Book Now" || $(this).attr("name")=="event" || $(this).attr("name")=='submit'){
		}else{
			OK=1;
		}
	})
	if(OK==0){
		$(".error").show();
		return false;
	}
	return true;
}


