$(document).ready(function(){
	 if($("#second_Pickup").length > 0){
			//Hide div w/id extra
			if($("#ManualBookingForm_ManualBookingForm_takeCarOnFerry").val()!="No"){
			 $("#first_Dropoff").css("display","none");
				$("#first_ToTime").css("display","none");
				$("#first_ToDate").css("display","none");
				
				$("#second_Pickup").css("display","none");
				$("#second_FromTime").css("display","none");
				$("#second_FromDate").css("display","none");
				$("#Instruct1").css("display","none");
			}
			// Add onclick handler to checkbox w/id checkme
		 $("#ManualBookingForm_ManualBookingForm_takeCarOnFerry").change(function(){
			var val = $(this).val();

			//alert(val);
			// If checked
			if (val=="No")//taking car on ferry
			{
					//show the hidden div
					//$("#second_Pickup").show("fast");
					$("#first_Dropoff").show("fast");
					$("#first_ToTime").show("fast");
					$("#first_ToDate").show("fast");
					
					$("#second_Pickup").show("fast");
					$("#second_FromTime").show("fast");
					$("#second_FromDate").show("fast");
					$("#Instruct1").show("fast");
			}
			else
			{     
					//otherwise, hide it
					//$("#second_Pickup").hide("fast");
					$("#first_Dropoff").hide("fast");
					$("#first_ToTime").hide("fast");
					$("#first_ToDate").hide("fast");
					
					$("#second_Pickup").hide("fast");
					$("#second_FromTime").hide("fast");
					$("#second_FromDate").hide("fast");
					$("#Instruct1").hide("fast");
			}
		});
	}
	/*
	$("#ManualBookingForm_ManualBookingForm :input").tooltip({
	
		// place tooltip on the right edge
		position: "center left",
	
		// a little tweaking of the position
		offset: [2, -10],
	
		// use the built-in fadeIn/fadeOut effect
		effect: "fade",
	
		// custom opacity setting
		opacity: 0.7
	
	});
	*/
	
});


$(function(){
// select all desired input fields and attach tooltips to them
	
	
});
    