

var docscroll;
var doctop;
var speed=100;
var movespeed=10;

var scrolldiv;
var scrollauto=0;
var totnews=0;
var n=0;
var timstart;
yescroll="y";
var divtop;
var divpos;
var divloaded=0;
var vtop;
var sty1;
var newtim;
var stopval=0;
var docheight=1000;
var ctheight=0;
var dheight=0;
function deplace(y) {
    var ofset=y*movespeed;
    var clipset=-ofset;
      if ( (y==1 && eval(docscroll+sty1+'.'+vtop)<=0 ) || (y==-1 && eval(docscroll+sty1+'.'+vtop)>-(ctheight-docheight) ) )
    {eval(docscroll+sty1+'.'+vtop+'+='+ofset);newtim=setTimeout('deplace('+y+')',speed);
    }  else {  stop();};
}

function start(y)
{ if (loaded==1 && stopval==0) {
if (docscroll==undefined) {
if (is.ie) {
  docscroll = 'document.all["scrolltext"]';
  doctop = 'document.all["topdiv"]';
vtop="pixelTop";
sty1=".style";docheight=eval(docscroll+'.offsetHeight');
ctheight=eval(doctop+'.offsetHeight');} else {
docscroll = 'document.layers["menudossier"].document.layers["topdiv"].document.layers["scrolltext"]';
  doctop = 'document.layers["menudossier"].document.layers["topdiv"]';
vtop="top";
styl="";
 ctheight=parseInt(eval(docscroll+'.clip.bottom'))-parseInt(eval(docscroll+'.clip.top'));
docheight=parseInt(eval(doctop+'.clip.bottom'))-parseInt(eval(doctop+'.clip.top'));};
};

newtim=setTimeout('deplace('+y+')',speed);stopval=1;};
}

function stop()
{ clearTimeout(newtim);stopval=0;if (scrollauto==1) {timstart=setTimeout('defilauto()',5000); } ;};


function iniscroll(divp,topdiv,divscroll)
{
divpos=divp;
divtop=topdiv;
scrolldiv=divscroll;
if (is.ie ) {
docscroll="document.all['"+scrolldiv+"']";
doctop = "document.all['"+divtop+"']";
vtop="pixelTop";
sty1=".style";docheight=eval(docscroll+'.style.offsetHeight');
ctheight=eval(doctop+'.style.offsetHeight'); }
else  {
  docscroll = "document.layers['"+divtop+"'].document.layers['"+scrolldiv+"']";
  doctop = "document.layers['"+divtop+"']";
 vtop="top";
styl="";
 ctheight=parseInt(eval(docscroll+'.clip.bottom'))-parseInt(eval(docscroll+'.clip.top'));
docheight=parseInt(eval(doctop+'.clip.bottom'))-parseInt(eval(doctop+'.clip.top'));

};

 if (divloaded==0) {
inidiv(topdiv,divp);
};
divloaded=1;
};


 var origWidth;
 var origHeight;
function initstart() {divloaded=0;
iniscroll('posconcert','boxdiv','boxscroll');
};

 function defilauto()
{    if (n<totnews-1) {
dheight=dheight+ctheight;
if (is.ie) {docheight=dheight+5;} else {docheight=dheight;};
   n=n+1;
  newtim=setTimeout('deplace('+-1+')',speed);}
  else {clearTimeout(timstart);dheight=ctheight;docheight=ctheight;
eval(docscroll+sty1+'.'+vtop+'='+ctheight);
  n=0;  newtim=setTimeout('deplace('+-1+')',speed);
  ;};
   };

  