$(function()
{
	$(document).pngFix(); 
	$('#gallery a').lightBox();
	
	
	/*
	$(".listRaceItem").mouseover(function(){
		$(this).animate({ backgroundColor: "#222222" }, 'fast');
	});
	
	$(".listRaceItem").mouseout(function(){
		$(this).animate({ backgroundColor: "#000000" }, 'fast');
	});
	*/
	
	
		
});

function changePeriode(periode) 
{
	$.ajax({
			type: "POST",
		   	url: "/schedule/calendrier",
		   	data: "periode="+periode,
		   	success: function(msg)
		   	{
				$('#calendrier').html(msg);
		   	},
		   	error:function(request,setting, thrownError)
		   	{
				alert( "Erreur ! : " + request + " " +setting+" "+ thrownError);
		   	}
				   
		});
	return false;
}


function showEventsDay(periode, sed) 
{
	$.ajax({
			type: "POST",
		   	url: "/schedule/calendrier",
		   	data: "periode="+periode+"&showEventsDay="+sed,
		   	success: function(msg)
		   	{
				$('#calendrier').html(msg);
		   	},
		   	error:function(request,setting, thrownError)
		   	{
				alert( "Erreur ! : " + thrownError );
		   	}
				   
		});
	return false;
}
