
function loadTides()
{
  window.status = "ScanNav Logiciel de navigation et de cartographie"
  preloadTideImages();
  setTimeout("animate('maree', 1, 1500)",2000);
}

// Load images for tides animation
function preloadTideImages() {
  animation_images['maree'] = new Array();
  animation_images['maree'][0] = '../img/Tides1_t.gif';
  animation_images['maree'][1] = '../img/Tides2_t.gif';
  animation_images['maree'][2] = '../img/Tides3_t.gif';
  animation_images['maree'][3] = '../img/Tides4_t.gif';
  animation_images['maree'][4] = '../img/Tides5_t.gif';
  animation_images['maree'][5] = '../img/Tides6_t.gif';
  animation_images['maree'][6] = '../img/Tides7_t.gif';
  animation_images['maree'][7] = '../img/Tides8_t.gif';
  animation_images['maree'][8] = '../img/Tides9_t.gif';
  animation_images['maree'][9] = '../img/Tides10_t.gif';
  animation_images['maree'][10] = '../img/Tides11_t.gif';
  animation_images['maree'][11] = '../img/Tides12_t.gif';
  animation_images['maree'][12] = '../img/Tides13_t.gif';

  if (document.images) {
    var i;
    for ( i=0; i<animation_images['maree'].length; i+=1) {
      newImage(animation_images['maree'][i]);
    }
  }
}

function detailcourants(atlas)
{ 
  var URL = "../tides/details/UJA_" + atlas + ".htm";
  params = 'scrollbars=yes,toolbars=no,menubars=no,location=no,resizable=yes,width=800,height=600';
  //alert("URL = '"+URL+"'");
  openpopup = window.open(URL,"tides",params);
  openpopup.window.focus();
}

function downloadcourants(atlas)
{ 
  window.location.href="../tides/Atlas/UJA-" + atlas + ".zip";
}
