function nextMonth(timestamp)
{
	$('#calendar').load('./xhr/change_month.php', {dateParam: timestamp, change: 'next'}, function(){$('a.load-local').cluetip({sticky: true, closePosition: 'title', closeText: 'X', local: true, waitImage: false, dropShadow: true, clickThrough: true, mouseOutClose: true, fx:{open: 'slideDown', openSpeed: 'fast'}});});
	$('#calEventBoxes').load('./xhr/change_calEventBoxes.php', {dateParam: timestamp, change: 'next'});
}
function prevMonth(timestamp)
{
	$('#calendar').load('./xhr/change_month.php', {dateParam: timestamp, change: 'prev'}, function(){$('a.load-local').cluetip({sticky: true, closePosition: 'title', closeText: 'X', local: true, waitImage: false, dropShadow: true, clickThrough: true, mouseOutClose: true, fx:{open: 'slideDown', openSpeed: 'fast'}});});
	$('#calEventBoxes').load('./xhr/change_calEventBoxes.php', {dateParam: timestamp, change: 'prev'});
}
function nextGroupMonth(timestamp, idG, ligue, struct, team)
{
    $('#calendar').load('./xhr/change_month.php',
			{
			    dateParam: timestamp,
			    change: 'next',
			    idGroup: idG,
			    idLigue: ligue,
			    noStruct: struct,
				idTeam: team
			},
			function()
			{
			    $('a.load-local').cluetip(
				{
				    sticky: true,
				    closePosition: 'title',
				    closeText: 'X',
				    local: true,
				    waitImage: false,
				    dropShadow: true,
				    clickThrough: true,
				    mouseOutClose: true,
				    fx:
				    {
					open: 'slideDown',
					openSpeed: 'fast'
				    }
				});
			});
    $('#calEventBoxes').load('./xhr/change_calEventBoxes.php', {dateParam: timestamp, change: 'next', idGroup: idG, idLigue: ligue, noStruct: struct, idTeam: team});
}
function prevGroupMonth(timestamp, idG, ligue, struct, team)
{
	$('#calendar').load('./xhr/change_month.php', {dateParam: timestamp, change: 'prev', idGroup: idG, idLigue: ligue, noStruct: struct, idTeam: team}, function(){$('a.load-local').cluetip({sticky: true, closePosition: 'title', closeText: 'X', local: true, waitImage: false, dropShadow: true, clickThrough: true, mouseOutClose: true, fx:{open: 'slideDown', openSpeed: 'fast'}});});
	$('#calEventBoxes').load('./xhr/change_calEventBoxes.php', {dateParam: timestamp, change: 'prev', idGroup: idG, idLigue: ligue, noStruct: struct, idTeam: team});
}
function nextAthleteMonth(timestamp, idA)
{
	$('#calendar').load('./xhr/change_month.php', {dateParam: timestamp, change: 'next', idAthlete: idA}, function(){$('a.load-local').cluetip({sticky: true, closePosition: 'title', closeText: 'X', local: true, waitImage: false, dropShadow: true, clickThrough: true, mouseOutClose: true, fx:{open: 'slideDown', openSpeed: 'fast'}});});
	$('#calEventBoxes').load('./xhr/change_calEventBoxes.php', {dateParam: timestamp, change: 'next', idAthlete: idA});
}
function prevAthleteMonth(timestamp, idA)
{
	$('#calendar').load('./xhr/change_month.php', {dateParam: timestamp, change: 'prev', idAthlete: idA}, function(){$('a.load-local').cluetip({sticky: true, closePosition: 'title', closeText: 'X', local: true, waitImage: false, dropShadow: true, clickThrough: true, mouseOutClose: true, fx:{open: 'slideDown', openSpeed: 'fast'}});});
	$('#calEventBoxes').load('./xhr/change_calEventBoxes.php', {dateParam: timestamp, change: 'prev', idAthlete: idA});
}
