var colorhover = '#3F3F3F';
var coloroff = '#293A96';
function roll(obj){
  if(obj.id == "img-qui" || obj.id == "a-qui" ) {
    document.getElementById('img-qui').src='images/qui-c.gif';
    document.getElementById('a-qui').style.color=colorhover;
  }
  if(obj.id == "img-prest" || obj.id == "a-prest" ) {
    document.getElementById('img-prest').src='images/prest-c.gif';
    document.getElementById('a-prest').style.color=colorhover;
  }
  if(obj.id == "img-entre" || obj.id == "a-entre" ) {
    document.getElementById('img-entre').src='images/entre-c.gif';
    document.getElementById('a-entre').style.color=colorhover;
  }
  if(obj.id == "img-cand" || obj.id == "a-cand" ) {
    document.getElementById('img-cand').src='images/cand-c.gif';
    document.getElementById('a-cand').style.color=colorhover;
  }
  if(obj.id == "img-salaires" || obj.id == "a-salaires" ) {
    document.getElementById('img-salaires').src='images/salaires-c.gif';
    document.getElementById('a-salaires').style.color=colorhover;
  }
  if(obj.id == "img-part" || obj.id == "a-part" ) {
    document.getElementById('img-part').src='images/part-c.gif';
    document.getElementById('a-part').style.color=colorhover;
  }
  if(obj.id == "img-temo" || obj.id == "a-temo" ) {
    document.getElementById('img-temo').src='images/temo-c.gif';
    document.getElementById('a-temo').style.color=colorhover;
  }
}
function rollout(obj){
  if(obj.id == "img-qui" || obj.id == "a-qui" ) {
    document.getElementById('img-qui').src='images/qui-b.gif';
    document.getElementById('a-qui').style.color=coloroff;
  }
  if(obj.id == "img-prest" || obj.id == "a-prest" ) {
    document.getElementById('img-prest').src='images/prest-b.gif';
    document.getElementById('a-prest').style.color=coloroff;
  }
  if(obj.id == "img-entre" || obj.id == "a-entre" ) {
    document.getElementById('img-entre').src='images/entre-b.gif';
    document.getElementById('a-entre').style.color=coloroff;
  }
  if(obj.id == "img-cand" || obj.id == "a-cand" ) {
    document.getElementById('img-cand').src='images/cand-b.gif';
    document.getElementById('a-cand').style.color=coloroff;
  }
  if(obj.id == "img-salaires" || obj.id == "a-salaires" ) {
    document.getElementById('img-salaires').src='images/salaires-b.gif';
    document.getElementById('a-salaires').style.color=coloroff;
  }
  if(obj.id == "img-part" || obj.id == "a-part" ) {
    document.getElementById('img-part').src='images/part-b.gif';
    document.getElementById('a-part').style.color=coloroff;
  }
  if(obj.id == "img-temo" || obj.id == "a-temo" ) {
    document.getElementById('img-temo').src='images/temo-b.gif';
    document.getElementById('a-temo').style.color=coloroff;
  }
}

function crypt(User,subject){
  if (subject==undefined){
   subject="" 
  }
 window.location.href="mailto:" + User + "@gbo.fr?subject="+subject;
}
function crypt2(User){
 window.location.href="mailto:" + User + "@francoallemand.com";
}

function replier(cible){
  if(document.getElementById(cible).style.display=="block" || document.getElementById(cible).style.display==""){
    document.getElementById(cible).style.display=("none")
    return false;
  }
  if(document.getElementById(cible).style.display=="none"){
    document.getElementById(cible).style.display=("block")
    return false;
  }
}
function supprim(mess,id) {
  if(confirm(mess))
  {
    document.location.href='traitement,'+id+',supprimer.html'
  }
}
function voir_news(lang,bloc){
  for(x=0;x<document.getElementsByClassName(bloc).length;x++){
    if(document.getElementsByClassName(bloc)[x].style.display=="block" || document.getElementsByClassName(bloc)[x].style.display==""){
     document.getElementsByClassName(bloc)[x].style.display=("none")
    }
  }
  for(x=0;x<document.getElementsByClassName(lang).length;x++){
    document.getElementsByClassName(lang)[x].style.display=("block")
    }
  return false;
}

// fonction getElementsByClassName()
document.getElementsByClassName=function( nomClasse )
{ var liste=document.getElementsByTagName("*");
var retour=new Array();
var i=0;
var j=0;
var laClasse=" "+nomClasse+" ";
for( i=0 ; i < liste.length ; i++ )
if( (" "+liste[i].className + " ").indexOf( laClasse ) != -1 )
retour[j++]=liste[i];

return retour;
}