// JavaScript Document 	document.getElementById('divMain2').innerHTML = '<a href="javascript:PopupImage(\''+imageName+'\')"><img src="'+imageName+'" width="320" height="285" alt=""/></a>';
function PopupImage(img) {
	var largeur=((screen.width)-800)/2;
	var hauteur=((screen.height)-600)/2;
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes,status=no, top='+hauteur+', left='+largeur);	
	w.document.write("<HTML><HEAD><TITLE>Image taille reelle</TITLE><script src='../Scripts/clicdroit.js' type='text/javascript'></script></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+15,document.images[0].height+40); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><a href='javascript:window.close()'><IMG src='"+img+"' border=0></a>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

function ShowImage(imageName){
	a=imageName.split('/');
	var image =a[a.length-1];
	document.getElementById('divMain2').innerHTML = '<a href="javascript:PopupImage(\'images/photos/red-is-not-dead/popup/'+image+'\')"><img src="'+imageName+'" width="320" height="285" alt=""/></a>';

}


