function clic(url) {
  ajax =  new Ajax.Updater('frame', url, {method:'get'});
}
var $j = jQuery.noConflict();
$j(document).ready(function() {
	$j('.ie-fix-opacity').each(function() {
		if ((browser.isIE55 || browser.isIE6up) && browser.isWin32){
			var cImage = this.currentStyle.backgroundImage.substring(this.currentStyle.backgroundImage.indexOf('"') + 1, this.currentStyle.backgroundImage.lastIndexOf('"'));
			
			this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + cImage + "', sizingMethod='scale')";
			this.style.backgroundImage = "none";}
	});													
  $j('#overlay').show();
  $j('#message').show();
  $j('#overlay').click(function() {
    $j('#overlay').hide();
    $j('#message').hide();
  });
  $j('#message').click(function() {
    $j('#overlay').hide();
    $j('#message').hide();
  });
  init_ephemeride();
});


function init_ephemeride() {
  var today = new Date();
  todayYear = today.getFullYear();
  todayMonth = today.getMonth() + 1;
  todayDate = today.getDate();
  todayInFilename =  "" + todayYear
  if (todayMonth < 10)
    todayInFilename = todayInFilename + "0"
  todayInFilename = todayInFilename + todayMonth
  if (todayDate < 10)
    todayInFilename = todayInFilename + "0"
  todayInFilename = "sig_calendrier/" + todayInFilename + todayDate + ".gif";
  $j("#ephemeride").attr("src", todayInFilename);
	$j("#ephemeride_url").attr("href", todayInFilename);
}