function Pop2Show(strUrl, strName, isizeX, isizeY) {
	var iPop2Show = null;
	iPop2Show = window.open(strUrl, strName, 'width='+isizeX+',height='+isizeY+',toolbar=no,scrollbars=yes,statusbar=no,menubar=no,left=15,top=15,resizable=yes,personalbar=no,locationbar=no');
	if (iPop2Show) iPop2Show.focus();
}

function PopPhot(fic, legende, isizeX, isizeY) {
	var PopPhot=null;
	PopPhot = window.open('','PHOT','width='+isizeX+',height='+isizeY+',toolbar=no,scrollbars=no,statusbar=no,titlebar=no,menubar=no,left=15,top=15,resizable=yes,personalbar=no,locationbar=no');
	PopPhot.document.write('<html><head><title></title></head><body onBlur="javascript:self.close();" bgcolor="#000000" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"><table width="100%" cellpadding="0" cellspacing="0" align="center" border="0" vspace="0" hspace="0"><tr><td></td></tr><tr><td valign="top" align="center"><a href="javascript:self.close();"><img src='+fic+' border="0" alt="Cliquez pour fermer la fen&ecirc;tre" vspace="0" hspace="0"></a><br><br></td></tr><tr><td height="1"><img src="/images/im_shim.gif" width="1" height="1"></td></tr><tr><td align="center"><bR>'+legende+'</td></tr></table></body></html>');
	PopPhot.focus();
}

// -----------------  Debut slider ----------------//

///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth='90px'
var scrollerheight='115px'
var scrollerbgcolor='#'
//3000 miliseconds=3 seconds
var pausebetweenimages=3000
var slideimages=new Array()

///////Do not edit pass this line///////////////////////
     
var ie=document.all
var dom=document.getElementById

if (slideimages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.left>0&&tlayer.left<=5){
tlayer.left=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.left>=tlayer.document.width*-1){
tlayer.left-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.left=parseInt(scrollerwidth)+5
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.left>0&&tlayer2.left<=5){
tlayer2.left=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.left>=tlayer2.document.width*-1){
tlayer2.left-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.left=parseInt(scrollerwidth)+5
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5){
tdiv.style.left=0+"px"
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(scrollerdiv2)",pausebetweenimages)
return
}
if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1){
tdiv.style.left=parseInt(tdiv.style.left)-5+"px"
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.left=scrollerwidth
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.left)>0&&parseInt(tdiv2.style.left)<=5){
tdiv2.style.left=0+"px"
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(scrollerdiv1)",pausebetweenimages)
return
}
if (parseInt(tdiv2.style.left)>=tdiv2.offsetWidth*-1){
tdiv2.style.left=parseInt(tdiv2.style.left)-5+"px"
setTimeout("move4(scrollerdiv2)",50)
}
else{
tdiv2.style.left=scrollerwidth
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
scrollerdiv1=ie? first2 : document.getElementById("first2")
scrollerdiv2=ie? second2 : document.getElementById("second2")
move3(scrollerdiv1)
scrollerdiv2.style.left=scrollerwidth
}
else if (document.div){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.left=parseInt(scrollerwidth)+5
document.main.document.second.visibility='show'
}
}

// -----------------  Fin slider ----------------//


function affiche(action,contenu){
		var voir;
		var display;
		if (action == "cache"){
			voir = "hidden";
			display = "none";
		}
		else {
			voir = "visible";
			display = "block";
		}	
		document.getElementById("bulle").innerHTML = contenu;
		function init() {
			document.onmousemove=mousemove;
		}
		function mousemove(e) {
			if (navigator.appName.indexOf("Explorer") > -1) {
				var mouseX=event.x; var mouseY=event.y;
			}
			else {var mouseX=e.pageX; var mouseY=e.pageY;}

		document.getElementById("bulle").style.top = mouseY+20+"px";
		document.getElementById("bulle").style.left = mouseX+20+"px";
		document.getElementById("bulle").style.visibility = voir;
		document.getElementById("bulle").style.display = display; 
		}	
		init();
		function cache(){
			document.getElementById("bulle").style.visibility = "hidden";
		}
	}


var defile;// l'element a deplacer
var psinit = 400; // position horizontale de depart
var pscrnt = psinit;       
function texteDefile() {
   if (!defile) defile = document.getElementById('defile');
   if (defile) {
      if(pscrnt < ( - defile.offsetWidth) ){
         pscrnt = psinit;
                } else {
         pscrnt+= -1; // pixel par deplacement
      }
      defile.style.left = pscrnt+"px";
   }
}
setInterval("texteDefile()",20); // delai de deplacement  