var timeI=30000;var closeimg=setTimeout('cimg()',timeI);clearTimeout(closeimg);
function vimg(event,img,ti,txt,xR,yR,cp)
{
var xAffichage,yAffichage,xDiv,yDiv,Left,Top,topPage,leftPage;
var first=true;
clearTimeout(closeimg);
//RécupDim
var monNavi = new Navigateur(navigator.userAgent);
if (monNavi.type()=='firefox'){xAffichage=window.innerWidth;yAffichage=window.innerHeight;leftPage=document.documentElement.scrollLeft;topPage=document.documentElement.scrollTop;}
if (monNavi.type()=='opera'){xAffichage=window.innerWidth;yAffichage=window.innerHeight;topPage=document.body.scrollTop;leftPage=document.body.scrollLeft;}
if (monNavi.type()=='ie'){var d=document.documentElement;xAffichage=d.clientWidth;yAffichage=d.clientHeight;topPage=d.scrollTop;leftPage=d.scrollLeft;}
//iniDimEtPos
xDiv=xR+50;yDiv=yR+35;
Left=leftPage+(xAffichage-xDiv)/2;
Top=topPage+(yAffichage-yDiv)/2-30;
document.getElementById('vimg').style.width=xDiv+'px';
var d=document.getElementById('vimg0').style;
d.left=Left+'px';
d.top=Top+'px';
d.width=xDiv+'px';
d.height=(yDiv+50)+'px';
//
txt='<p>'+txt+'</p><p id="cp">'+cp+'</p>';
txt='<p id="titre">'+ti+'</p><img />'+txt;
txt='<div id="f"><p onclick="javascrip:cimg(\'0\');" onmouseover="this.style.cursor=\'hand\'" title="Fremer">[X]</p></div>'+txt;
document.getElementById('vimg').innerHTML=txt;
document.getElementById('vimg0').style.display='block';
document.getElementById('vimg').style.display='block';
document.images[document.images.length-1].width=xR;
document.images[document.images.length-1].height=yR;
document.images[document.images.length-1].src=img;
closeimg=setTimeout('cimg(1)',timeI);
}
function cimg(val){clearTimeout(closeimg);document.getElementById('vimg').style.display='none';document.getElementById('vimg0').style.display='none';}
function vlp(evt){var souris = new posSouris(evt);var d=document.getElementById('loupe').style;d.left= souris.left()-20+'px';d.top= souris.top()+25+'px';d.display= 'block';}
function clp(){document.getElementById('loupe').style.display='none'};
