function popup (imageURL, caption) {
  var windowTop = 0;
  var windowLeft = 0;
  var defaultWidth = 1024;
  var defaultHeight = 768;
  var scrollbars = 0;
  var onLoseFocusExit = true;
  var undefined;
  var Options = "scrollbars=" + scrollbars + ",width=" + defaultWidth + ",height=" + defaultHeight + ",top=" + windowTop + ",left=" + windowLeft + ""
  var myScript = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n" +
    "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" +
    "<head>\n" +
    "<title>" + caption + "\</title>\n" +
    "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n" +
    "<meta http-equiv=\"Content-Language\" content=\"en\" />\n" +
    "<meta http-equiv=\"imagetoolbar\" content=\"no\" />\n" +
    "<script type=\"text/javascript\">\n" +
    "function resizewindow () {\n" +
    "  var width = document.myimage.width;\n" +
    "  var height = document.myimage.height;\n";
  if (navigator.appName.indexOf("Netscape") != -1) {
    myScript = myScript +  "  window.innerHeight = height;\n  window.innerWidth = width;\n"
  }
  else if (navigator.appName.indexOf("Opera") != -1) {
    myScript = myScript +  "  window.resizeTo (width+12, height+31);\n"
  }
  else if (navigator.appName.indexOf("Microsoft") != -1) {
    myScript = myScript + "  window.resizeTo (width+12, height+31);\n"
  }
  else {
    myScript = myScript + "  window.resizeTo (width+14, height+34);\n"
  }
  myScript = myScript + "}\n" + "window.onload = resizewindow;\n" +
    "</script>\n</head>\n" + "<body ";
  if (onLoseFocusExit) {myScript = myScript + " onmousedown=\"window.close()\" ";}
  myScript = myScript + "style=\"margin: 0px; padding: 0px;\">\n";

  myScript = myScript + "<table>\n";
/*
myScript = myScript + "<tr><td align = \"center\">\n";
myScript = myScript + "<script type=\"text/javascript\"><!--\n" +
					"google_ad_client = \"pub-7162026119311068\";\n" +
					"google_alternate_ad_url = \"http://www.alternate-ad-url.com/alternate\";\n" +
					"google_ad_width = 728;\n" +
					"google_ad_height = 90;\n" +
					"google_ad_format = \"728x90_as\";\n" +
					"google_ad_type = \"text_image\";\n" +
					//"//468x60 unerecette \n" +
					"google_ad_channel = \"2385547782\";\n" +
					"google_color_border = \"FFFFFF\";\n" +
					"google_color_bg = \"FFFFFF\";\n" +
					"google_color_link = \"F88017\";\n" +
					"google_color_text = \"333333\";\n" +
					"google_color_url = \"008000\";\n" +
					"google_ui_features = \"rc:6\";\n" +
					"//-->\n" +
					"</script>\n" +
					"<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n" +
					"</script>\n";
myScript = myScript + "</td></tr>";*/

  myScript = myScript + "<tr><td><img src=\"" + imageURL + "\" alt=\"" + caption + "\" title=\"" + caption + "\" name=\"myimage\" /></td></tr>\n";
  myScript = myScript + "</table>\n";
  myScript = myScript + "</body>\n" +  "</html>\n";

  var imageWindow = window.open ("","imageWin",Options);
  imageWindow.document.write (myScript)
  imageWindow.document.close ();
  if (window.focus) imageWindow.focus();
  return false;
}


function popupn(img, titre) {
titre="Agrandissement";
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'>");
w.document.write("<TR><TD valign='middle' align='center'>");
w.document.write("<script type='text/javascript'><!--\n");
w.document.write("google_ad_client = 'pub-7162026119311068';\n");
w.document.write("google_alternate_ad_url = 'http://www.alternate-ad-url.com/alternate';\n");
w.document.write("google_ad_width = 728;\n");
w.document.write("google_ad_height = 90;\n");
w.document.write("google_ad_format = '728x90_as';\n");
w.document.write("google_ad_type = 'text_image';\n");
w.document.write("google_ad_channel = '2385547782';\n");
w.document.write("google_color_border = 'FFFFFF';\n");
w.document.write("google_color_bg = 'FFFFFF';\n");
w.document.write("google_color_link = 'F88017';\n");
w.document.write("google_color_text = '333333';\n");
w.document.write("google_color_url = '008000';\n");
w.document.write("google_ui_features = 'rc:6';\n");
w.document.write("//-->\n");
w.document.write("</script>\n");
//w.document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>\n");
//w.document.write("</script>\n");


w.document.write("</TD></TR>");
w.document.write("<TR><TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Mon image'></TD></TR>");
w.document.write("</TABLE>");
w.document.write("</BODY></HTML>");
w.document.close();
}

function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
}

