$(document).ready(function() 
{

    /*
    * //les dernieres minutes
    */
   
	$("#DM").ajaxStart(function(){
              $(this).html( "<img src='/images/ajax/ajax-loader.gif' style='margin-top:50px; margin-left:120px;margin-bottom:250px;' />" );
         
	});
	
	$("#DM").ajaxStop(function(){
  		//$(this).hide();
	});
	
	$("#select_countryCity").change( function(){
		var departureCity   = $(this).val();
		var params 	      = "departureCity="+departureCity; 
		$.ajax({url:'/library/index/derniereMinuteParVille?'+params,  complete: function(data) {
		        $("#DM").slideDown("slow");
			  $("#DM").html(data.responseText);
				return false; 
        	   }
     	        });	
     	        return false; 	 
	 });


       var defaults = {			
			prevId: 		'prevBtn',
			prevText: 		'Previous',
			nextId: 		'nextBtn',	
			nextText: 		'Next',
			controlsShow:	true,
			controlsBefore:	'',
			controlsAfter:	'',	
			controlsFade:	true,
			firstId: 		'firstBtn',
			firstText: 		'First',
			firstShow:		false,
			lastId: 		'lastBtn',	
			lastText: 		'Last',
			lastShow:		false,				
			vertical:		false,
			speed: 			800,
			auto:			false,
			pause:			2000,
			continuous:		false, 
			numeric: 		false,
			numericId: 		'controls'
		}; 

             $("#slider").easySlider({
				auto: true, 
				continuous: true,
				numeric: true,
				speed: 900,
			    pause: 5000
			});
                   
                    $( "#tabs" ).tabs({ fx: { opacity: 'toggle' } });


        

 
});


