function montre(calque, cache) { 
	calque.style.display='block'; 
}
function cache(calque) { 
	calque.style.display='none'; 
}

// ENLEVE LE FOCUS SUR LES LIENS
function blurLinks(){
	lnks = document.getElementsByTagName('a');
	for (i = 0; i < lnks.length; i++){
		lnks[i].onfocus = new Function("if(this.blur) this.blur()");
	}
	lnks2 = document.getElementsByTagName('area');
	for (j = 0; j < lnks2.length; j++){
		lnks2[j].onfocus = new Function("if(this.blur) this.blur()");
	}
}

// LANCE UNE FONCTION AU CHARGEMENT DE LA PAGE
function addOnloadEvent(fnc){
  if ( typeof window.addEventListener != "undefined" )
    window.addEventListener( "load", fnc, false );
  else if ( typeof window.attachEvent != "undefined" ) {
    window.attachEvent( "onload", fnc );
  }
  else {
    if ( window.onload != null ) {
      var oldOnload = window.onload;
      window.onload = function ( e ) {
        oldOnload( e );
        window[fnc]();
      };
    }
    else
      window.onload = fnc;
  }
}

function bg_over(c){
	c.style.background='url(_css/img/fond_menu_item_selected.png) 0px 0px repeat-x';
}
function bg_out(c){
	c.style.background='url(_css/img/fond_menu_item_not_selected.png) 0px 0px repeat-x';
}

function trans(c){
	
	c.style.filter='alpha(opacity=50)';
	//c.style.-moz-opacity='0.50';
	c.style.opacity='0.50';
}
function notrans(c){

	c.style.filter='alpha(opacity=100)';
	//c.style.-moz-opacity='1';
	c.style.opacity='1';
}

function verif_contact(f) {
	
	var champs = Array(f.nom, f.prenom, f.email);
	if(!verif_remplissage(champs))
		return false;
	
	if(!verif_mail(f.email))
		return false;

	majuscules(f.nom);
	majFirst(f.prenom);
	
	return true;
}

function spop( fichier, nom, largeur, hauteur, options ){
	var id = Math.round( Math.random() * 100 );
	var gauche = ( screen.width - largeur ) / 2;
	var haut = ( screen.height - hauteur ) / 2;
	if ( options ){
		options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche + ', ' + options;
		}
		else{
			options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche;
			}
			document.open( fichier, nom, options );
		}