// JavaScript Document
var conteneur; 
var pano1;
var pano2;
var timer;
var cpt=0;
var cpt2=-200;

function defile_news()
{
	conteneur = document.getElementById('news_scroll');
	//calque = document.getElementById('news_calque');
	pano1 = document.getElementById('news_1');
	pano2 = document.getElementById('news_2');
	cpt2 = (pano1.offsetHeight);
	defile_init();
	pano2.onmouseover=pano1.onmouseover=function()
	{
		defile_stop();
	}
	pano2.onmouseout=pano1.onmouseout = function ()
	{
		defile_init();
	}
}
function defile_init()
{
	timer=setInterval("defile_go()", 50);	
}
function defile_go()
{
	cpt--;
	cpt2--;
	pano1.style.top =  cpt+"px";
	pano2.style.top = cpt2+"px";
	//alert(pano1.id)
	//pano2.offsetHeight +=2;
	if(cpt<-(pano1.offsetHeight))
	{
		cpt= pano1.offsetHeight;
	}
	if(cpt2<-(pano1.offsetHeight))
	{
		cpt2= pano1.offsetHeight;
	}
}
function defile_stop()
{
	window.clearInterval(timer);
}


////////////////
/////////////////////////////
/////////////////////////////
function MenuDisplay(obj,etat)
{ 
 	document.getElementById(obj).style.display=etat;
}
///////////////////////////////////////////
function MM_jumpMenu(targ,selObj,restore){
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
}
window.name = "index";