function image_diapo(name,copyright,url) {
	this.name=name;
	this.copyright=copyright;
	this.url=url;
}

var img = new Array();
img[0]=new image_diapo("Website%20of%20project%20Ariana,%20INRIA%20Sophia%20Antipolis_files/cell1.gif");
img[1]=new image_diapo("Website%20of%20project%20Ariana,%20INRIA%20Sophia%20Antipolis_files/cell2.jpg");
img[2]=new image_diapo("Website%20of%20project%20Ariana,%20INRIA%20Sophia%20Antipolis_files/cell3.jpg");



var nb_images=img.length;

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function rand_number(n) {
	var x;
	x=Math.round(Math.random()*100);
	x%=n;
	return x;
}

function rand_image() {
	var n=rand_number(nb_images);
	return img[n].name;
}

function initialise_diaporama() {
	var n=rand_number(nb_images);
	document.write("<table class='data' cellspacing='0' cellpadding='0'><tr><td><a id='imdiap_url' href=" + img[n].url + " target=_blank><img id='imdiap_name' src=" + img[n].name + " border='0' width='106' align='center' alt=" + img[n].copyright + "></a></td></tr></table>");
}

function lecture_diaporama() {
	var n=rand_number(nb_images);
	document.getElementById("imdiap_name").src = img[n].name;
	document.getElementById("imdiap_url").href = img[n].url;
}

function diaporama() {
	var intervalle=3000;
	setInterval("lecture_diaporama()",intervalle);
}

