function popupcentree(page,largeur,hauteur,options) { var top=(screen.height-hauteur)/2; var left=(screen.width-largeur)/2; window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options); } function popupimage(lien,titre,largeurImg,hauteurImg,options){ var top=(screen.height-hauteurImg)/2; var left=(screen.width-largeurImg)/2; var largPop=largeurImg+10; var hautPop=hauteurImg+40; w = window.open('','chargement','top='+top+',left='+left+',width='+largPop+',height='+hautPop+','+options); w.document.write( '\n' ); w.document.write( ''+titre+'<\/title>\n' ); w.document.write( '<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />\n' ); w.document.write( '<meta http-equiv="Content-Script-Type" content="text/javascript" />\n' ); w.document.write( '<meta http-equiv="Content-Style-Type" content="text/css" />\n' ); w.document.write('<style type="text/css">\n'); w.document.write('/*<![CDATA[*/\n'); w.document.write( "body { background-color: #ffff80;}\n"); w.document.write( "img { border: 0;}\n"); w.document.write( "img.c1 {width: 352px; height: 16px;}\n"); w.document.write( "img.c2 {float:right; text-align: right; border:0; width: 88px; height: 31px;}\n"); w.document.write( "span {text-align: right;}\n"); w.document.write('/*]]>*/\n'); w.document.write("<\/style>\n"); w.document.write( "<\/head><body><div>\n" ); w.document.write( '<img class="c1" title="horodatage" alt="date et heure" src="http:\//www.trinum.com/ibox/ftpcam/mont-cenis_date.jpg"/>\n'); w.document.write( '<a href="http:\//www.webcam-ski.com/interfaces/valcenis/interface.php?pk_interface=354&m=images&r=panoramique#depart" onclick="win=window.open(this.href, \'_blank\'); if(win) return false;">lien vers le site d\'origine<\/a>\n'); w.document.write('<span><a href="http:\//validator.w3.org/check?uri=referer"><img class="c2" src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict"/><\/a><\/span>') w.document.write( '<a href="javascript:window.close();">\n<img src="'+lien+'" alt="'+titre+'" title="'+titre+', cliquer pour fermer la fenêtre" width="'+largeurImg+'" height="'+hauteurImg+'"/><\/a>\n'); w.document.write( '<script type="text/javascript">\n'); w.document.write('\//<![CDATA[\n'); w.document.write('<!--\n'); w.document.write( "self.focus();\n"); w.document.write('\//-->\n'); w.document.write('\//]]>\n'); w.document.write( "<\/script>\n"); w.document.write( "<\/div><\/body><\/html>" ); w.document.close(); }