// preloader -----------------------------------------------------
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
// adobe ----------------------------------------------------------
function MM_effectAppearFade(targetElement, duration, from, to, toggle){
	Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
//menu profil -------------------------------------------------
function menuProfilHover(cible) {
	document.getElementById(cible).style.background='#FFFFFF';
	document.getElementById(cible).style.color='#000000';
}
function menuProfilOut(cible) {
	document.getElementById(cible).style.background='#7A1871';
	document.getElementById(cible).style.color='#000000';
}
//affiche message -------------------------------------------------
function show(id) { 
	document.getElementById(id).style.display = 'block';
}
function mask(id) { 
	document.getElementById(id).style.display = 'none';
}
//affiche plan ----------------------------------------------------
function openWin(theURL,winName,divers) {
  window.open(theURL,winName,divers);
}
//hauteur bloc ----------------------------------------------------
function heightDeuxColBase(origin, cible) {
	var valeur = document.getElementById(origin).offsetHeight;
	document.getElementById(cible).style.height = valeur + 'px';
}
function heightDeuxCol(origin, cible) {
	var valeur = document.getElementById(origin).offsetHeight;
	document.getElementById(cible).style.height = valeur - 20 + 'px'; //moins padding
}
function heightTroisCol(origin, cible_1, cible_2) {
	var valeur = document.getElementById(origin).offsetHeight;
	document.getElementById(cible_1).style.height = valeur - 20 + 'px'; //moins padding
	document.getElementById(cible_2).style.height = valeur - 20 + 'px';
}
//texte input CAP
function cap(cible) {
	document.getElementById(cible).value = this.value.toUpperCase();
}
