
function changeDisplay(id)
{if(document.getElementById(id).style.visibility=='hidden')
{document.getElementById(id).style.visibility='visible';document.getElementById(id).style.position='relative';document.getElementById(id).style.width='100%';}
else
{document.getElementById(id).style.visibility='hidden';document.getElementById(id).style.position='absolute';document.getElementById(id).style.width='';}}
var yg=100;var minuteur_gallery=null;function transfertDefil_gallery(speed)
{if(minuteur_gallery==null)minuteur_gallery=setInterval('defile_gallery()',speed);}
function transfertArriere_gallery(speed)
{if(minuteur_gallery==null)minuteur_gallery=setInterval('retourArriere_gallery()',speed);}
function transfertPlus_gallery(speed)
{if(minuteur_gallery==null)minuteur_gallery=setInterval('defilplus_gallery()',speed);}
function defile_gallery()
{var hg=document.getElementById('defile_img').style.width;hg=hg.replace('px','');var left=document.getElementById('img_defile').offsetWidth;document.getElementById('img_defile').style.left=yg--+"px";if(yg<-left){yg=hg;}}
function defilplus_gallery()
{var hg=document.getElementById('defile_img').style.width;hg=hg.replace('px','');var left=document.getElementById('img_defile').offsetWidth;yg=yg-7;document.getElementById('img_defile').style.left=yg+"px";if(yg<-left){yg=hg;}}
function retourArriere_gallery()
{var hg=document.getElementById('defile_img').style.width;hg=hg.replace('px','');var left=document.getElementById('img_defile').offsetWidth;yg=yg+7;document.getElementById('img_defile').style.left=yg+"px";if(yg>hg){yg=-left;}}
function arretDefil_gallery()
{clearInterval(minuteur_gallery);minuteur_gallery=null;}
var yd=100;var minuteur_download=null;function transfertDefil_download(speed)
{if(minuteur_download==null)minuteur_download=setInterval('defile_download()',speed);}
function transfertArriere_download(speed)
{if(minuteur_download==null)minuteur_download=setInterval('retourArriere_download()',speed);}
function transfertPlus_download(speed)
{if(minuteur_download==null)minuteur_download=setInterval('defilplus_download()',speed);}
function defile_download()
{var hd=document.getElementById('defile_dl').style.width;hd=hd.replace('px','');var left=document.getElementById('dl_defile').offsetWidth;document.getElementById('dl_defile').style.left=yd--+"px";if(yd<-left){yd=hd;}}
function defilplus_download()
{var hd=document.getElementById('defile_dl').style.width;hd=hd.replace('px','');var left=document.getElementById('dl_defile').offsetWidth;yd=yd-7;document.getElementById('dl_defile').style.left=yd+"px";if(yd<-left){yd=hd;}}
function retourArriere_download()
{var hd=document.getElementById('defile_dl').style.width;hd=hd.replace('px','');var left=document.getElementById('dl_defile').offsetWidth;yd=yd+7;document.getElementById('dl_defile').style.left=yd+"px";if(yd>hd){yd=-left;}}
function arretDefil_download()
{clearInterval(minuteur_download);minuteur_download=null;}
var yd=100;var minuteur_site=null;function transfertDefil_site(speed)
{if(minuteur_site==null)minuteur_site=setInterval('defile_site()',speed);}
function transfertArriere_site(speed)
{if(minuteur_site==null)minuteur_site=setInterval('retourArriere_site()',speed);}
function transfertPlus_site(speed)
{if(minuteur_site==null)minuteur_site=setInterval('defilplus_site()',speed);}
function defile_site()
{var hd=document.getElementById('defile_ds').style.width;hd=hd.replace('px','');var left=document.getElementById('ds_defile').offsetWidth;document.getElementById('ds_defile').style.left=yd--+"px";if(yd<-left){yd=hd;}}
function defilplus_site()
{var hd=document.getElementById('defile_ds').style.width;hd=hd.replace('px','');var left=document.getElementById('ds_defile').offsetWidth;yd=yd-7;document.getElementById('ds_defile').style.left=yd+"px";if(yd<-left){yd=hd;}}
function retourArriere_site()
{var hd=document.getElementById('defile_ds').style.width;hd=hd.replace('px','');var left=document.getElementById('ds_defile').offsetWidth;yd=yd+7;document.getElementById('ds_defile').style.left=yd+"px";if(yd>hd){yd=-left;}}
function arretDefil_site()
{clearInterval(minuteur_site);minuteur_site=null;}
