
/*
Script pour affichage des galeries orion colony.
Version 1 - Juillet 2002
La section ci-dessous doit figurer directement dans le code HTML et 
être modifée en fonction du nombre d'images à afficher.
L'instruction JS 
preload() 
doit être ajoutée juste avant <BODY>  
---------------------------
var NumToLoad = '01';		// Numero en ASCII de l'image à charger 
// Préchargement des images
function preload()
	{
		var temp=new load("th-01.jpg", "th-02.jpg", "th-03.jpg", "th-04.jpg",
 "th-05.jpg", "th-06.jpg");
	}
----------------------------
*/
// Pour preload
function load ()	// Utilisé par le préload
{ 
	if (document.images)
	{
		this.length=load.arguments.length;
  	  	for(var i=0; i<this.length; i++)
  		{
    		this[i] = new Image;
	    	this[i].src = load.arguments[i];
  		}
	}
}
// Affichage des Thumbs par radio bouton. Transmettre '01', '02', etc à NumImg
function Affiche( NumImg )		// Mémoriser le numéro de l'image pour pouvoir afficher en grande taille
	{							// puis afficher. Ceci ne fonctionne que si les images ont été 
		NumToLoad=NumImg;		// mises en preload
		document.images['Full'].src = 'th-'+NumImg+'.jpg';
//		document.images['Thumb'].src = 'th-'+NumImg+'.jpg';
	}
// Affichage de l'image principale, NumImg n'est pas pris en compte ici.
function Aff_Full( NumImg )
	{
		Full_Image=new Image(400,300);				// Ouverture du message chargement....
		Full_Image.src= "../../images-global/message-02.jpg";
		Full_Image.name='Full';				// Afficher l'image d'attente avant de charger
		document.Full.src = Full_Image.src;		// l'image de la galerie
		Full_Image=new Image(400,300);
		Full_Image.src= "im-"+NumToLoad+".jpg";		// Déclarer la source de l'image
		Full_Image.name='Full';				// Déclarer le nom de l'image
		document.Full.src = Full_Image.src;		// Afficher
	}
function popUpWindow(URLStr)
{
ClosePopUp();
popUpWin = open('', 'popUpWin', 'width=820,height=820,left=10, top=10,screenX=10,screenY=10');
              popUpWin.document.write( "<body bgcolor='#000000'>" );
              popUpWin.document.write( "<P ALIGN=CENTER>");
              popUpWin.document.write( "<img SRC="+URLStr+" ALIGN="+" 'CENTER' "+ "BORDER=10>");
              popUpWin.document.write( "</P>" );
              popUpWin.document.write( "</body>" )
}

function ClosePopUp()
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
}