$(document).ready(function(){

	$(".contr").click(function() {
		
		$(this).parent().children(".offText").animate({ 		
		height:95
	  }, 1000);

		
		$(this).parent().parent().animate({ 		
		height: 145		
	  }, 1000);

	$(this).hide();
	$(this).prev(".exp").show();

	});


	$(".exp").click(function() {

		var chars = $(this).attr("id");

		chars =( chars /2)+50;

		var chars2 = chars + 55;


		
	  $(this).prev(".offText").animate({ 		
		height: chars
	  }, 1000);
		 $(this).parent().parent().animate({ 	
			
		height: chars2		
	  }, 1000);

	$(this).hide();
	$(this).next(".contr").show();
		

	});

	$("#sformSub").click(function() {

		var dateO = $("#arrival").val();
		
		  var partsDate = dateO.split("/",3);
		  var dateR=partsDate[2]+"/"+partsDate[1]+"/"+partsDate[0];
		  //alert(dateR);
		  $("#arrival").val(dateR);
		  //document.sform.submit();	
		  $('#sform').submit();

	});










});



function newsubmitform()

{

  $dateO=document.sform.arrival.value;

  var partsDate = $dateO.split("/",3);

  $dateR=partsDate[2]+"/"+partsDate[1]+"/"+partsDate[0];

  document.sform.arrival.value=$dateR;

  document.sform.submit();

}


