// <!--
/*
* Ne touche à rien ici, vas voir à la fin du fichier !!!
*/
function replaceBlock(theID, theTag, theText, ouca) {
/* Remplace ou ajoute du contenu à un module
* Paramètres :
*	theID  : ID du bloc (ex: "LeftPart" ou "RightPart" pour les textes libres)
* 	theTag : Nom de la balise HTML pour laquelle remplacer le contenu (c'est toujours H2!!)
* 	theText: Nouveau texte
*   ouca   : Comment procéder 
*			ouca = 0 => remplacer le texte actuel
*			ouca < 0 => insérer avant le contenu actuel
*			ouca > 0 => insérer après le contenu actuel
*
* Codé par : francisek@wanadoo.fr
*/
theTag = theTag.toUpperCase();
if (document.getElementById) {
	var sortie = false;
 var n = document.getElementById(theID);
 while(!sortie && (n.tagName != theTag)) {
  if (n.nodeType == 1)
  	n = n.firstChild;
  else n = n.nextSibling;
 }

if (n.tagName == theTag) {
n = n.firstChild;
if (ouca == 0) n.nodeValue = theText;
else if (ouca > 0) n.nodeValue = n.nodeValue + theText;
else n.nodeValue = theText + n.nodeValue;
 }
} else { alert("Non supporté");}
}
/*
* C'est là dessous que tu peux toucher:
*/

replaceBlock("Album", "H2", "My album", 0);
replaceBlock("LeftPart", "H2", "", 0);
replaceBlock("ArticleRecent", "H2", "Last read articles", 0);
replaceBlock("Calendrier", "H2", "What is the date today?", 0);
replaceBlock("Categorie", "H2", "Articles categories", 0);
replaceBlock("Lien", "H2", "Go to", 0);
replaceBlock("Recherche", "H2", "Research in this site", 0);
replaceBlock("Recommander", "H2", "Send this site to your friends!", 0);

// --> replaceBlock("Album", "H2", "My album", 0);
replaceBlock("LeftPart", "H2", "", 0);
replaceBlock("ArticleRecent", "H2", "Last read articles", 0);
replaceBlock("Calendrier", "H2", "What is the date today?", 0);
replaceBlock("Categorie", "H2", "Articles categories", 0);
replaceBlock("Lien", "H2", "Go to", 0);
replaceBlock("Recherche", "H2", "Research in this site", 0);
replaceBlock("Recommander", "H2", "Send this site to your friends!", 0);



