function CloseImg(){
	var Myobj=document.getElementById('VignetteClick');
	Myobj.style.visibility="hidden";
}

function ImgView(MyUrl){
	var MyImgTmp = new Image();
	MyImgTmp.src = MyUrl;
	var Myobj=document.getElementById('VignetteClick');
	Myobj.filters[0].apply();
	Myobj.filters[0].play();
	Myobj.innerHTML = "<img src='" + MyUrl + "' border=0 onclick='CloseImg();' onmouseout='CloseImg();'>";
	Myobj.style.left=(document.body.offsetWidth/2) - (MyImgTmp.width/2) + document.body.scrollLeft;
	Myobj.style.top=(document.body.offsetHeight/2) - (MyImgTmp.height/2) + document.body.scrollTop;
	Myobj.style.visibility="visible";
}
function MediaOpen(MyUrl,MyWidth,MyHeight){
	var lewidth=MyWidth;
	var leheight=MyHeight;
	var leleft=(screen.width/2)-(lewidth/2);
	var letop=(screen.height/2)-(leheight/2);
	window.open(MyUrl, "Visualiseur", "width=" + lewidth + ",height=" + leheight + ",top=" + letop + ",left=" + leleft +",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
}

function OpenVignette(objSource,MyUrl){
	var Myobj=document.getElementById('Vignette');
	Myobj.filters[0].apply();
	Myobj.filters[0].play();
	Myobj.innerHTML = "<img src='" + MyUrl + "' border=0>";
	Myobj.style.left=event.x + 10 + document.body.scrollLeft;
	Myobj.style.top=event.y + 10 + document.body.scrollTop;
	Myobj.style.visibility="visible";
}
function CloseVignetteTimer(){
	//setTimeout("CloseVignette();",1000);
	CloseVignette();
}
function CloseVignette(){
	var Myobj=document.getElementById('Vignette');
	Myobj.style.visibility="hidden";
	Myobj.style.left=0;
	Myobj.style.top=0;
}
