/*
  script for shifting the logos in the index oage
*/

var logoshift = {

Astyle:null, Pstyle:null, shift:100,

start:function()
{
  this.Astyle = document.getElementById('logos_hautesalpes').style;
  this.Pstyle = document.getElementById('logos_partenaires').style;

  setTimeout("logoshift.Pmove()",4000);
},

Pmove:function()
{
  this.shift--;

  this.Pstyle.top = this.shift;

  if(this.shift > 0)
    setTimeout("logoshift.Pmove()",40);
  else
  {
    this.Astyle.top = 100;

    this.Astyle.zIndex = 1;
    this.Pstyle.zIndex = 0;

    this.shift = 100;

    setTimeout("logoshift.Amove()",4000);
  }
},

Amove:function()
{
  this.shift--;

  this.Astyle.top = this.shift;

  if(this.shift > 0)
    setTimeout("logoshift.Amove()",40);
  else
  {
    this.Pstyle.top = 100;

    this.Pstyle.zIndex = 1;
    this.Astyle.zIndex = 0;

    this.shift = 100;

    setTimeout("logoshift.Pmove()",4000);
  }
}
}

