/**
 * Initialise les liens du calendrier
 * @param ajaxURL
 * @param action
 */
function setCalendarLinks(ajaxURL,action)
{
	$(document).ready(function()
	{
		$('.did_calendrier_4jq a').each(function()
		{
			var href = $(this).attr('href');
			var dateLength = ('aaaa-mm-jj').length;
			var date = href.substr(href.length-dateLength);
			
			$(this).attr('rel',ajaxURL);
			
			$(this).cluetip(
			{
				attribute: 'rel',
				showTitle: false, // pas de titre
				clickThrough: true, // le lien reste actif
				//cluetipClass: 'notesagenda',
				dropShadow: false,
				
				fx: {
					open: 'fadeIn',
					openSpeed: 200
				},
				
				ajaxCache: false,
				ajaxSettings: {
					type: 'get',
					data: 'action='+action+'&date='+date
				}
			});
		});
	});
}

