function showVideo(videoLink)
{
	var overlayDIV = document.getElementById('overlay');
	var videoDIV = document.getElementById('calendar-video-highlight');

	// On prend la taille de bottom-div qui est à la taille réelle du contenu
	// alors que body ne l'est pas
	overlayDIV.style.height = document.body.clientHeight + 'px';
	videoDIV.style.height = videoDIV.clientHeight;

	if (overlayDIV.style.display == 'none')
	{
		new Effect.Appear(overlayDIV, {
			duration: 0.3,
			from: 0.0,
			to: 0.6,
			afterFinish: function()
			{
				overlayDIV = document.getElementById('overlay');
				videoDIV = document.getElementById('calendar-video-highlight');

				videoDIV.style.position='absolute';
				videoDIV.style.visibility='hidden';
				videoDIV.style.display='block';
				videoDIV.style.left = ((document.body.clientWidth - videoDIV.clientWidth) / 2) + 'px';
				videoDIV.style.visibility='';

				new Effect.Appear(videoDIV, {
					duration: 0.5,
					afterFinish: function()
					{
						/*
						$('calendar-video-content').innerHTML = '<object width="425" height="344" type="application/x-shockwave-flash" data="' + videoLink + '">';
						$('calendar-video-content').innerHTML += '<param name="movie" value="' + videoLink + '" />';
						$('calendar-video-content').innerHTML += '<param name="quality" value="high" />';
						$('calendar-video-content').innerHTML += '<param name="wmode" value="transparent" />';
						$('calendar-video-content').innerHTML += '<param name="bgcolor" value="#4B4A44" />';
						$('calendar-video-content').innerHTML += '<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />';
						$('calendar-video-content').innerHTML += '</object>';
						*/

						/*
						$('calendar-video-content').innerHTML = '<object width="425" height="344"  type="application/x-shockwave-flash" style="margin:0;padding:0;border:0;vertical-align:top">';
						$('calendar-video-content').innerHTML += '<param name="movie" value="' + videoLink + '"></param>';
						$('calendar-video-content').innerHTML += '<param name="allowFullScreen" value="true"></param>';
						$('calendar-video-content').innerHTML += '<param name="allowscriptaccess" value="always"></param>';
						$('calendar-video-content').innerHTML += '<embed src="' + videoLink + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>';
						$('calendar-video-content').innerHTML += '</object>';
						*/

						$('calendar-video-content').innerHTML = '<object width="425" height="344" type="application/x-shockwave-flash" data="' + videoLink + '"><param name="movie" value="' + videoLink + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent" /><embed src="' + videoLink + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object>';




						var closeBtn = document.getElementById('calendar-video-close-btn');

						closeBtn.onmouseover = function()
						{
							Effect.Fade(this, {duration: 0.3, from: 1.0, to: 0.5});
						}

						closeBtn.onmouseout = function()
						{
							Effect.Fade(this, {duration: 0.3, from: 0.5, to: 1.0});
						}

						closeBtn.onclick = function()
						{
							new Effect.Fade(overlayDIV, {duration: 0.3});
							new Effect.Fade(videoDIV, {duration: 0.3});
						}
					}
				});
			}
		});
	}
	else
	{
		new Effect.Fade(videoDIV, {
			duration: 0.5,
			afterFinish: function()
			{
				Effect.Appear(videoDIV, {duration: 0.5});
			}
		});
	}
}

function hideVideo()
{
	var overlayDIV = document.getElementById('overlay');
	var videoDIV = document.getElementById('calendar-video-highlight');

	new Effect.Fade(videoDIV, {
		duration: 0.2,
		afterFinish: function()
		{
			Effect.Fade(overlayDIV, {duration: 0.2});
		}
	});
}