// pas de défilement :
var pas=1;
// hauteur de la partie visible
var fen;
var main;
var mrq;
var h_fen= "250px";
var h_mrq;
var stoc;
var $actus;
var interval;

$(document).ready(function () 
{	
	$actus = $("div.actuItem");
	fen = $("#actuRegion");	
	main= $(".centerLeftPane"); 
	h_fen = (main.height() -  59);
	fen.height(h_fen);
	fen.hover(function(){stoc=pas;pas=0;},function(){pas = stoc;});	
	initScroll();	
}
);

function initScroll()
{		
	if(interval) clearInterval(interval);
	mrq = $("#marquee");		
	h_mrq = mrq.height();
	mrq.css('top',0);	
	if(h_mrq > h_fen)
	{
		interval = setInterval("scrollmrq()",50);	
	}
	
}


function scrollmrq()
{
	//alert(mrq.css('top'));
	if ( parseInt(mrq.css('top').replace('px','')) > -h_mrq ) mrq.css('top',parseInt(mrq.css('top').replace('px',''))-pas);
	else mrq.css('top',parseInt(h_fen));
}

function showActu(regionId)
{
	//alert(regionId);
	$actus.show();
	//if(regionId != 'france')
	//{
		$("div.actuItem[rel!="+regionId+"]").hide();		
	//}
	initScroll();
}
