/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(marquee,mh,ah){
if (parseInt(marquee.style.top)>(ah*(-1)+8))
marquee.style.top=parseInt(marquee.style.top)-copyspeed+"px"
else
marquee.style.top=parseInt(mh)+8+"px"
}

function scrollmarquee2(marquee,mh,ah){
if (parseInt(marquee.style.top)>(ah*(-1)+8))
marquee.style.top=parseInt(marquee.style.top)-copyspeed+"px"
else
marquee.style.top=parseInt(mh)+8+"px"
}

function initializemarquee(uu,vv){
cross_marquee=document.getElementById(uu)
cross_marquee.style.top=0
marqueeheight=document.getElementById(vv).offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee(cross_marquee,marqueeheight,actualheight)",30)', delayb4scroll)
}

function initializemarquee2(uu,vv){
cross_marquee2=document.getElementById(uu)
cross_marquee2.style.top=0
marqueeheight=document.getElementById(vv).offsetHeight
actualheight=cross_marquee2.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee2.style.height=marqueeheight+"px"
cross_marquee2.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee2(cross_marquee2,marqueeheight,actualheight)",30)', delayb4scroll)
}

function initialize_marquee(){
	initializemarquee("vmarquee2","home_texte_milieu");
	initializemarquee2("vmarquee","home_texte_gauche");
}
