// JavaScript Document
//références avec défilement horizontal
// pas de défilement :
var pas2=2;
// largeur de la partie visible
var w_fen="305px";
var w_fen_start="0px";

function scrollmrq2(){
	if ( ( parseInt(mrq2.style.left) == (-(w_mrq*2)) ) && ( parseInt(mrq3.style.left) == (-(w_mrq)) ) ){
		mrq2.style.left = "958px";
	}
	if ( ( parseInt(mrq2.style.left) == (-(w_mrq)) ) && ( parseInt(mrq3.style.left) == (-(w_mrq*2)) ) ){
		mrq3.style.left = "958px";
	}
	if ( parseInt(mrq2.style.left) > -w_mrq ){
		if ( parseInt(mrq2.style.left) > 0 )
			mrq3.style.left = parseInt(mrq3.style.left)-pas2+"px";
		mrq2.style.left = parseInt(mrq2.style.left)-pas2+"px";
	}else if ( parseInt(mrq3.style.left) > -w_mrq ){
		mrq3.style.left = parseInt(mrq3.style.left)-pas2+"px";
		if ( parseInt(mrq2.style.left) > -w_mrq*2 )
			mrq2.style.left = parseInt(mrq2.style.left)-pas2+"px";
	}
}

function init_mrq2(){
	mrq2 = document.getElementById("marquee2");
	mrq3 = document.getElementById("marquee3"); 
	fen2 = document.getElementById("fenetre2"); 
	fen2.onmouseover = function(){stoc2=pas2;pas2=0};
	fen2.onmouseout = function(){pas2=stoc2};
	fen2.style.width = w_fen;
	w_mrq = parseInt("958px");//mrq2.offsetWidth;
	with(mrq2.style){position="absolute";left=w_fen_start;}
	with(mrq3.style){position="absolute";left="958px";}
	setInterval("scrollmrq2()",50);
}

