function init(color,id) { // couleur du texte et son id

	var e = document.getElementById(id);
	var titre = e.innerHTML; // On récupère le contenu du titre

	// La variable "c" est un tableau contenant les couleurs à utiliser.
	// De gauche à droite : de la couleur la plus claire à la plus foncée, pour finir par la couleur du texte lui-même
	var c = ["#f6f6f6","#eee","#ccc","#aaa",color];
	
	a = 0; // Variable utilisée pour décaler les textes les uns par rapport aux autres
	t = ''; // On initialise la variable que l'on retournera par la suite

	for(i=0; i<c.length; i++) {
		// On décale à chaque fois le texte d'un pixel et on change sa couleur
		t += '<span style="color:'+c[i]+';position:absolute;margin:'+(a--)+'px 0 0 '+a+'px">'+titre+'</span>';
	}

	// On affiche pour finir le résultat, en ajoutant le texte qui superpose les autres
	e.innerHTML = t+'<span style="color:'+c[0]+';margin:0">'+titre+'</span>';
}
function init20(color,id) {
	var e = document.getElementById(id);
	var titre = e.innerHTML;

	var c = ["#eee","#ccc","#bbb",color];
	a = 0;
	t = '';

	for(i=0; i<c.length; i++) {
		t += '<span style="color:'+c[i]+';position:absolute;margin:'+(a++)+'px 0 0 '+a+'px">'+titre+'</span>';
	}
	e.innerHTML = t+'<span style="color:'+c[0]+';margin:0">'+titre+'</span>';
}

function shadow(){
	autoShadow('#f6f6f6','liena1');
}

function autoShadow(color,e) {
	if (typeof(e) != 'object') {
	var e = document.getElementById(e);
	}
	var titre = e.innerHTML;

	n = "#1F1F1F";

	var c = [n,n,n,color];
	a = 0;
	t = '';

	for(i=0; i<c.length; i++) {
		t += '<span style="color:'+c[i]+';position:absolute;margin: -1px 0px 0px 0px">'+titre+'</span>';
	}
	e.innerHTML = t+'<span style="color:'+c[0]+';margin:0">'+titre+'</span>';
}

function init2(color,id) {
	var e = document.getElementById(id);
	var titre = e.innerHTML;

	n = "white";

	var c = [n,n,n,color];
	a = 0;
	t = '';

	for(i=0; i<c.length; i++) {
		t += '<span style="color:'+c[i]+';position:absolute;margin: -1px 0px 0px 0px">'+titre+'</span>';
	}
	e.innerHTML = t+'<span style="color:'+c[0]+';margin:0">'+titre+'</span>';
}

function init3(color,id) {
	var e = document.getElementById(id);
	var titre = e.innerHTML;

	n = "#1F1F1F";

	var c = [n,n,n,color];
	a = 0;
	t = '';

	for(i=0; i<c.length; i++) {
		t += '<span style="color:'+c[i]+';position:absolute;margin: -1px 0px 0px 0px">'+titre+'</span>';
	}
	e.innerHTML = t+'<span style="color:'+c[0]+';margin:0">'+titre+'</span>';
}
function applyShadow(targetElement, shadowColor, shadowOffset) {
  if (typeof(targetElement) != 'object') {
    targetElement = document.getElementById(targetElement);
  }
  var value = targetElement.firstChild.nodeValue;
  targetElement.style.position = 'relative';
  targetElement.style.zIndex = 1;
    
  var newEl = document.createElement('span');
  newEl.appendChild(document.createTextNode(value));
  newEl.className = 'shadowed';
  newEl.style.color = shadowColor;
  newEl.style.position = 'absolute';
  newEl.style.left = shadowOffset + 'px';
  newEl.style.top = shadowOffset + 'px';
  newEl.style.zIndex = -1;
  
  targetElement.appendChild(newEl);
}