
function AffImage(img) {
	titre=""+img+"";
	//var newImg = new Image();
	//newImg.src = img;
	//var imgw = newImg.width;
	//var imgh = newImg.height;
	wr = 900;
	hr = 900;
	w=open("","image","width="+wr+",height="+hr+",toolbar=no,scrollbars=yes,resizable=yes");	
	w.document.write("<html><head><title>"+titre+"</title>");
	w.document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"../style_popup.css\" /></head>");
	w.document.write("<body leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 onLoad=self.focus()>");
	w.document.write("<br><center><a href=\"#\" onClick=\"javascript:window.close();\"><img src='"+img+"' style=\"border: 1px solid #000\" /></a></center>");
	w.document.write("<br><table align=center><tr><td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff; text-align: center;\">");
	w.document.write("<input class=\"st11button\" type=\"button\" value=\"Fermer\" onClick='javascript:window.close();' />");
	w.document.write("</td></tr></table>");
	w.document.write("</body></html>");
	w.document.close(); 
}


// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'Photo/Graph/Miniatures/ConvFELPS.jpg'
theImages[1] = 'Photo/Graph/Miniatures/GC_Xmas07.jpg'
theImages[2] = 'Photo/Graph/Miniatures/ConcertNoel06.jpg'
theImages[3] = 'Photo/Graph/Miniatures/Culteintercom_07.jpg'
theImages[4] = 'Photo/3D/Miniatures/Coin10.jpg'
theImages[5] = 'Photo/Graph/Miniatures/Flyer_Jesus.jpg'
theImages[6] = 'Photo/3D/Miniatures/FlyingCoins.jpg'
theImages[7] = 'Photo/Graph/Miniatures/HCC_15ans.jpg'
theImages[8] = 'Photo/Graph/Miniatures/HCC_noel_2007.jpg'
theImages[9] = 'Photo/Graph/Miniatures/NewGen.jpg'
theImages[10] = 'Photo/Graph/Miniatures/Savigny2006.jpg'
theImages[11] = 'Photo/3D/Miniatures/HeadinPrison.jpg'
theImages[12] = 'Photo/3D/Miniatures/Dice.jpg'
theImages[13] = 'Photo/Graph/Miniatures/CD_Jesus.jpg'
theImages[14] = 'Photo/Graph/Miniatures/CoursFin.jpg'
theImages[15] = 'Photo/Graph/Miniatures/HCC_logo.jpg'
theImages[16] = 'Photo/3D/Miniatures/KeyToSuccess.jpg'
theImages[17] = 'Photo/3D/Miniatures/Windrose.jpg'
theImages[18] = 'Photo/3D/Miniatures/BigWatch.jpg'
theImages[19] = 'Photo/3D/Miniatures/Helmet.jpg'
theImages[20] = 'Photo/3D/Miniatures/Help.jpg'
theImages[21] = 'Photo/Graph/Miniatures/DebtFreeLogo.jpg'
theImages[22] = 'Photo/Graph/Miniatures/CR-logo.jpg'
theImages[23] = 'Photo/3D/Miniatures/Crown.jpg'


// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


function openDir( form ) {
            var newIndex = form.fieldname.selectedIndex;
            if ( newIndex == 0 ) {
                        alert( "Please select a location!" );
            } else {
                        cururl = form.fieldname.options[ newIndex ].value;
                        window.location.assign( cururl );
            }
}

