// JavaScript Document

function MM_reloadPage(init) 
{  
  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 MM_preloadImages() 
{ 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// photo : nouvelle image a afficher
// loading : image a afficher en attendant que l'autre soit disponible
function permut_images(photo, loading)
{ 
	if (document.images['img'].src != null)
	{
		seconde = new Image();
		seconde.src = photo;
		
		if (seconde.complete == true)
		{
			document.images['img'].src=seconde.src;
		}
		else
		{
			document.images['img'].src=loading;
		}
	}
}

function permut_image_2(src, name)
{ 

	if (document.images[name].src != null)
	{
		seconde = new Image();
		seconde.src = src;
		
		if (seconde.complete == true)
		{
			document.images[name].src=seconde.src;
		}
	}
}


// permutation de texte
function permut_texte(texte)
{ 
    if (document.getElementById('txt'))
    {
		document.getElementById('txt').innerHTML = texte;
    }
}