$(document).ready(function(){


/* Ancien Datepicker
$('#startdate').datepicker({dateFormat: 'dd/mm/yy'}); 
$('#enddate').datepicker({dateFormat: 'dd/mm/yy'}); 
*/

/* Date picker 3.4
--------------------------------- */

$('#startdate').datepicker({minDate: '-0d'}); 
$('#enddate').datepicker({beforeShow: customRange}); 

// Customize two date pickers to work as a date range 
function customRange(input) {
var df = $('#startdate').datepicker('getDate');
if (df) {
df.setDate(df.getDate() + 1);
}
return {minDate: (input.id == 'enddate' ? df : null),
maxDate: (input.id == 'startdate' ? $('#enddate').datepicker('getDate') : null)}; }


/* wslide
--------------------------------- */

  $(".actus_ch1").wslide({
                width: 472,
                height: 113,
                horiz: true,
				duration : 2000
});




/* --------------------------------- */
$("#startdate").mouseover (
	function() {
	$(this).css("border","1px solid #f2eac1");
	$(this).css("cursor","pointer");
});

$("#enddate").mouseover (
	function() {
	$(this).css("border","1px solid #f2eac1");
	$(this).css("cursor","pointer");
});

$("#startdate").mouseout (
	function() {
	$(this).css("border","1px solid #ccc");
});

$("#enddate").mouseout (
	function() {
	$(this).css("border","1px solid #ccc");
});


/*menu
--------------------------------------------- */

$("ul#navmenu").superfish({
animation : {opacity:"show",height:"show"},
delay		: 800
 });

});


/*lightbox
--------------------------------------------- */
$(function() {
	$('a[@rel*=lightbox]').lightBox();
});



