var couleur1=' '
var texte1=' '
var couleur2=' '
var texte2=' '
var couleur3=' '
var texte3=' '

function tempo1()
{
  majs1++;
  if (majs1>59){majs1=0;majm1++}
  if (majm1>59){majs1=0;majm1=0;majh1++}
  if (majh1>24){majs1=0;majm1=0;majh1=0;majj1++}  
  couleur1='vert'
  texte1=majs1+"s&nbsp;"
  if((majm1>0)||(majh1>0)||(majj1>0))
  {
  	texte1=majm1+"min "+texte1
  }
  if((majm1>15)||(majh1>0)||(majj1>0))
  {
  		couleur1='rouge'
  }
  if((majh1>0)||(majj1>0))
  {
  	texte1=majh1+"h "+texte1
  }
  if (majj1>0)
  {
  	texte1=majj1+" jours "+texte1
  }  
  document.getElementById("maj1").innerHTML ="<span class='t7'>Station 1 :<span class='"+couleur1+"'> Il y a "+texte1+"</span></span>"
  compte1=setTimeout('tempo1()',1000)
}

function tempo2()
{
  majs2++;
  if (majs2>59){majs2=0;majm2++}
  if (majm2>59){majs2=0;majm2=0;majh2++}
  if (majh2>24){majs2=0;majm2=0;majh2=0;majj2++}  
  couleur2='vert'
  texte2=majs2+"s&nbsp;"
  if((majm2>0)||(majh2>0)||(majj2>0))
  {
  	texte2=majm2+"min "+texte2
  }
  if((majm2>15)||(majh2>0)||(majj2>0))
  {
  	couleur2='rouge'
  }
  if((majh2>0)||(majj2>0))
  {
  	texte2=majh2+"h "+texte2
  }
  if (majj2>0)
  {
  	texte2=majj2+" jours "+texte2
  }  
  document.getElementById("maj2").innerHTML ="<span class='t7'>Station 2 :<span class='"+couleur2+"'> Il y a "+texte2+"</span></span>"
  compte2=setTimeout('tempo2()',1000)
}

function tempo1b()
{
  majs1++;
  if (majs1>59){majs1=0;majm1++}
  if (majm1>59){majs1=0;majm1=0;majh1++}
  if (majh1>24){majs1=0;majm1=0;majh1=0;majj1++}  
  couleur1='vert'
  texte1=majs1+"s&nbsp;"
  if((majm1>0)||(majh1>0)||(majj1>0))
  {
  	texte1=majm1+"min "+texte1
  }
  if((majm1>15)||(majh1>0)||(majj1>0))
  {
  		couleur1='rouge'
  }
  if((majh1>0)||(majj1>0))
  {
  	texte1=majh1+"h "+texte1
  }
  if (majj1>0)
  {
  	texte1=majj1+" jours "+texte1
  }  
  document.getElementById("maj1b").innerHTML ="<span class='t7'>Derni&egrave;re mise &agrave; jour station 1 :<span class='"+couleur1+"'> Il y a "+texte1+"</span></span>"
  compte1=setTimeout('tempo1b()',1000)
}

function tempo2b()
{
  majs2++;
  if (majs2>59){majs2=0;majm2++}
  if (majm2>59){majs2=0;majm2=0;majh2++}
  if (majh2>24){majs2=0;majm2=0;majh2=0;majj2++}  
  couleur2='vert'
  texte2=majs2+"s&nbsp;"
  if((majm2>0)||(majh2>0)||(majj2>0))
  {
  	texte2=majm2+"min "+texte2
  }
  if((majm2>15)||(majh2>0)||(majj2>0))
  {
  	couleur2='rouge'
  }
  if((majh2>0)||(majj2>0))
  {
  	texte2=majh2+"h "+texte2
  }
  if (majj2>0)
  {
  	texte2=majj2+" jours "+texte2
  }  
  document.getElementById("maj2b").innerHTML ="<span class='t7'>Derni&egrave;re mise &agrave; jour station 2 :<span class='"+couleur2+"'> Il y a "+texte2+"</span></span>"
  compte2=setTimeout('tempo2b()',1000)
}

function tempo3b()
{
  majs3++;
  if (majs3>59){majs3=0;majm3++}
  if (majm3>59){majs3=0;majm3=0;majh3++}
  if (majh3>24){majs3=0;majm3=0;majh3=0;majj3++}  
  couleur3='vert'
  texte3=majs3+"s&nbsp;"
  if((majm3>0)||(majh3>0)||(majj2>0))
  {
  	texte3=majm3+"min "+texte3
  }
  if((majm3>15)||(majh3>0)||(majj3>0))
  {
  	couleur3='rouge'
  }
  if((majh3>0)||(majj3>0))
  {
  	texte3=majh3+"h "+texte3
  }
  if (majj3>0)
  {
  	texte3=majj3+" jours "+texte3
  }  
  document.getElementById("maj3b").innerHTML ="<span class='t7'>Derni&egrave;re mise &agrave; jour :<span class='"+couleur3+"'> Il y a "+texte3+"</span></span>"
  compte3=setTimeout('tempo3b()',1000)
}
