
	var AgrandirCarte = function()
	{
		/* Changement du bouton */
		$('#btn_reduireCarte').removeClass('hide');
		$('#btn_agrandirCarte').addClass('hide');

		/* Ouverture de la carte et du moteur */
		$('#moteur').animate({width:"675px"},'slow');
		$('#carte_medium').animate({width:"675px"},'slow');
		$('#GoogleMap').animate({width:"675px",height:"+=200px"},'slow');
		//$('.entrypoint').attr('readonly','readonly');

		/* Adaptation du moteur */
		$('#carte_medium').css('margin-top','0px');
		$('#moteur').css('margin-bottom','0px');
		$('#moteur').css('margin-top','0px');
		$('.petit').addClass('hide');
		$('.titre').addClass('hide');
		$('.text').addClass('hide');

		$('#DestinationSelected').removeClass('hide');

		$('#DepartureSelected').css('float','left');
		$('#DestinationSelected').css('float','left');
		$('#DepartureSelected').css('width','50%');
		$('#DestinationSelected').css('width','50%');

		$('#DepartureLibelle').css('display','block');
		$('#DestinationLibelle').css('display','block');
		$('#DepartureLibelle').css('margin','0 auto');
		$('#DestinationLibelle').css('margin','0 auto');
		$('#DepartureLibelle').css('margin-bottom','10px');
		$('#DestinationLibelle').css('margin-bottom','10px');

		$('#field_arrival').addClass('hide');
		$('#field_heure').addClass('hide');

		$('#leg_depart').empty();
		$('#leg_date').empty();
		$('#leg_depart').append('D&Eacute;PART ET ARRIV&Eacute;E');
		$('#leg_date').append('DATE ET HEURE');

		$('#DestinationSelected').appendTo('#field_depart');
		$('#sens').appendTo('#field_date');
		$('#hour').appendTo('#field_date');
		$('#minute').appendTo('#field_date');

		$('.modulable').addClass('moduled');

		return false;
	};

	var ReduireCarte = function()
	{
		/* Changement du bouton */
		$('#btn_reduireCarte').addClass('hide');
		$('#btn_agrandirCarte').removeClass('hide');

		/* Fermeture de la carte et du moteur */
		$('#moteur').css('width','250px');
		$('#carte_medium').css('width','450px');
		$('#GoogleMap').css('width','425px');
		$('#GoogleMap').css('height','425px');

		/* Adaptation du moteur */
		$('#carte_medium').css('margin-top','20px');
		$('#moteur').css('margin-bottom','20px');
		$('#moteur').css('margin-top','20px');
		$('.petit').removeClass('hide');
		$('.titre').removeClass('hide');
		$('.text').removeClass('hide');

		$('#DepartureSelected').css('float','');
		$('#DepartureSelected').css('width','100%');
		$('#DestinationSelected').css('width','100%');

		$('#DepartureLibelle').css('display','inline');
		$('#DestinationLibelle').css('display','inline');
		$('#DepartureLibelle').css('margin','');
		$('#DestinationLibelle').css('margin','');

		$('#field_arrival').removeClass('hide');
		$('#field_heure').removeClass('hide');

		$('#leg_depart').empty();
		$('#leg_date').empty();
		$('#leg_depart').append('D&Eacute;PART');
		$('#leg_date').append('DATE');

		$('#DestinationSelected').appendTo('#field_arrival');
		$('#sens').appendTo('#field_heure');
		$('#hour').appendTo('#field_heure');
		$('#minute').appendTo('#field_heure');


		$('.modulable').removeClass('moduled');

		GoogleMap.closeExtInfoWindow();

		return false;
	};

