	$(function() {

		$("#nav a, a.book-now-link").tooltip({showBody: " - ",showURL: false, extraClass: "nice"}).fadeIn();
		
		$(".tooltip").tooltip({ 
			track: true, 
			delay: 0, 
			showURL: false,
			fixPNG: true, 
			showBody: " - ", 
			extraClass: "pretty fancy", 
			top: -15, 
			left: 5 
		}).fadeIn(); 

	});
	
	nonoDialog = function(title, html){
		$(document).ready(function(){
			$("#dialog").dialog({
				buttons: [{ 
					text: "Ok", click: function() { $(this).dialog("close"); }
				}],
				title: title,
				closeOnEscape: true,
				modal:true,
				html: html
			});
			$("#dialog").text(html);
		});
	};
	
	checkRequisites = function(){
		if ($("input[name=journey_type]:checked").val() == 'Return'){
			$("#book-return").css('class','return').show(200).addClass("return");
			$("#book-first").addClass("book-float");
		}else{
			$("#book-return").css('display',':none').hide(0).removeClass("return");
			$("#book-first").removeClass("book-float");
		}
	}
	
	gmapUpdate = function(elem){
		$(elem).gMap({ 
			mapTypeControl:         false,
			zoomControl:            false,
			panControl:             false,
			scaleControl:           false,
			streetViewControl:      true,
			markers:[{
				address: document.getElementById('inbound_zone_id').options[document.getElementById('inbound_zone_id').selectedIndex].value + ' Spain'
			}], 
			zoom:10 
		});
	}
	
	

