// Script by Fran&ccedil;ois de Dardel
 var windowHandle = null;
 var globalImage = null;
 var globalImageWidth = null;
 var globalImageHeight = null;
 var globalCaption = null;

function myOpen(localImage,localCaption,imageWidth,imageHeight)
{
	globalImage = localImage;
	globalCaption = localCaption;
	globalImageWidth = imageWidth;
	globalImageHeight = imageHeight;
	windowWidth = imageWidth + 34;
	 if (imageHeight > screen.height - 140)		
	 	windowHeight = screen.height - 50
	 else
		windowHeight = imageHeight + 110;
	 posX = screen.width/2 - imageWidth/2 - 20;
	windowHandle = 
window.open('photo.html','windowName','toolbar=no,location=no,status=no, scrollbars=yes,resizable=no,width='+ windowWidth +',height='+ windowHeight +',top=0,left='+ posX );
windowHandle.moveTo(posX,0);
}

function changeIt(MyImage1, MyImage2) { 
if (document.images) { document[MyImage1].src = MyImage2; } ;
} 

NewImg = new Array ();
			NewImg[0] = "images/Charles_s.jpg";
			NewImg[1] = "images/Marthon_s.jpg";
			NewImg[2] = "images/728034s.jpg";			
			NewImg[3] = "images/Ron_s.jpg";
			NewImg[4] = "images/Fechy_s.jpg";			
			NewImg[5] = "images/Titicaca_s.jpg";			
			NewImg[6] = "images/Fanmaker_s.jpg";			
			NewImg[7] = "images/Potier1_s.jpg";			
			NewImg[8] = "images/Holi_s.jpg";			
			NewImg[9] = "images/Raja_2083_s.jpg";			
			NewImg[10] = "images/TN_s.jpg";			
			NewImg[11] = "images/S_India_s.jpg";			
			NewImg[12] = "images/Impala_s.jpg";			
			NewImg[13] = "images/Voy001_s.jpg";			
			NewImg[14] = "images/Luceau18s.jpg";			
			NewImg[15] = "images/Manoir_s.jpg";			
			NewImg[16] = "images/Blason5.gif";			
			NewImg[17] = "images/Beaune12_s.jpg";			
// All images must have same size !!!

var output;
var		ImgNum=Math.floor(Math.random() * NewImg.length); // length = number of images you got -1
	
function Random_Image() {
			output = '<IMG SRC='+NewImg[ImgNum]+' NAME="slideshow" WIDTH=145 HEIGHT=100>';
			document.write(output);
}

<!-- Begin
// All images must have same size !!!

var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 4000;
var run;

function chgImg() {
			if (document.images) {
						ImgNum = ImgNum + 1;
						if (ImgNum > ImgLength) {
									ImgNum = 0;
						}
			document.slideshow.src = NewImg[ImgNum];
			}
}

function loadIt(ImgNum) {
			if (document.images) {
			document.slideshow.src = NewImg[ImgNum];
			}
}
	

function chgAuto() {
						run = setInterval("chgImg()", delay);
}
// end -->

// -------------------------------------------------------
//  newUntil ()
//  Dynamic News
//  Written by Jerry Aman, Optima System, Aug 31, 1996. 
//  Part of the PageSpinner distribution.
//  Input:	year, month (1-12) and day (1-31)   
// 		Until the last day the new image should be displayed
// -------------------------------------------------------

function newUntil_img (year, month, day)
{
	now = new Date();
	expire = new Date (year, month-1, day, 
		now.getHours(), now.getMinutes(), now.getSeconds()+1 );

	if ( expire.getTime()  >=  now.getTime())
		document.write(	
	'<IMG SRC="images/New1.gif" ALIGN="TOP" ALT="NEW!">' );
}

function newUntil_txt (year, month, day)
{
	now = new Date();
	expire = new Date (year, month-1, day, 
		now.getHours(), now.getMinutes(), now.getSeconds()+1 );

	if ( expire.getTime()  >=  now.getTime())
		document.write(	'<FONT color="#ff0033"><B> (New) </B></FONT>');
}

function updateUntil_img (year, month, day)
{
	now = new Date();
	expire = new Date (year, month-1, day, 
		now.getHours(), now.getMinutes(), now.getSeconds()+1 );

	if ( expire.getTime()  >=  now.getTime())
		document.write(	
	'<IMG SRC="images/Updated.gif" ALIGN="TOP" ALT="Updated!">' );
}

function updateUntil_txt (year, month, day)
{
	now = new Date();
	expire = new Date (year, month-1, day, 
		now.getHours(), now.getMinutes(), now.getSeconds()+1 );

	if ( expire.getTime()  >=  now.getTime())
		document.write(	'<FONT color="#000099"><B> (Updated) </B></FONT>');
}

function N_Until (year, month, day)
{
	now = new Date();
	expire = new Date (year, month-1, day, 
		now.getHours(), now.getMinutes(), now.getSeconds()+1 );

	if ( expire.getTime()  >=  now.getTime())
		document.write(	'<FONT color="#000099"><B> (N) </B></FONT>');
}

