function clic(url) {
  ajax =  new Ajax.Updater('frame', url, {method:'get'});
}
var $j = jQuery.noConflict();
$j(document).ready(function() {
  $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);
}