diff --git a/.gitattributes b/.gitattributes
index b3272cdf1f24f69bd2db99da88daa515c7b620b6..9dd507e9034bd03fb7388b4d493c822131a03432 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -72,15 +72,16 @@ NAVPICS/point.gif -text
 NAVPICS/rien.gif -text
 ecrire/img_pack/admin-12.gif -text
 ecrire/img_pack/administration-24.gif -text
-ecrire/img_pack/administration-48.gif -text
+ecrire/img_pack/administration-48.png -text
 ecrire/img_pack/agenda-24.gif -text
-ecrire/img_pack/aide-48.gif -text
-ecrire/img_pack/aide-48_rtl.gif -text
+ecrire/img_pack/aide-48.png -text
+ecrire/img_pack/aide-48_rtl.png -text
 ecrire/img_pack/aide.gif -text
 ecrire/img_pack/aide_rtl.gif -text
+ecrire/img_pack/annonce.gif -text
 ecrire/img_pack/article-24.gif -text
 ecrire/img_pack/asuivre-24.gif -text
-ecrire/img_pack/asuivre-48.gif -text
+ecrire/img_pack/asuivre-48.png -text
 ecrire/img_pack/barre-blanc.gif -text
 ecrire/img_pack/barre-couleurs.gif -text
 ecrire/img_pack/barre-d.gif -text
@@ -90,21 +91,15 @@ ecrire/img_pack/base-24.gif -text
 ecrire/img_pack/breve-24.gif -text
 ecrire/img_pack/cache-24.gif -text
 ecrire/img_pack/cadenas-24.gif -text
-ecrire/img_pack/cadre-b.gif -text
-ecrire/img_pack/cadre-bd.gif -text
-ecrire/img_pack/cadre-bg.gif -text
-ecrire/img_pack/cadre-d.gif -text
-ecrire/img_pack/cadre-g.gif -text
-ecrire/img_pack/cadre-h.gif -text
-ecrire/img_pack/cadre-hd.gif -text
-ecrire/img_pack/cadre-hg.gif -text
 ecrire/img_pack/cal-jour.gif -text
+ecrire/img_pack/cal-messagerie.gif -text
 ecrire/img_pack/cal-mois.gif -text
 ecrire/img_pack/cal-semaine.gif -text
+ecrire/img_pack/cal-suivi.gif -text
 ecrire/img_pack/calendrier-24.gif -text
-ecrire/img_pack/choix-layout.gif -text
-ecrire/img_pack/choix-layout_rtl.gif -text
-ecrire/img_pack/choix-layout_rtl_he.gif -text
+ecrire/img_pack/choix-layout.png -text
+ecrire/img_pack/choix-layout_rtl.png -text
+ecrire/img_pack/choix-layout_rtl_he.png -text
 ecrire/img_pack/cookie-24.gif -text
 ecrire/img_pack/creer.gif -text
 ecrire/img_pack/croix-rouge.gif -text
@@ -116,15 +111,17 @@ ecrire/img_pack/deplierbas_rtl.gif -text
 ecrire/img_pack/deplierhaut.gif -text
 ecrire/img_pack/deplierhaut_rtl.gif -text
 ecrire/img_pack/doc-24.gif -text
-ecrire/img_pack/documents-48.gif -text
-ecrire/img_pack/documents-48_rtl.gif -text
+ecrire/img_pack/documents-48.png -text
+ecrire/img_pack/documents-48_rtl.png -text
 ecrire/img_pack/edit.gif -text
 ecrire/img_pack/effacer-cache-24.gif -text
 ecrire/img_pack/fiche-perso-24.gif -text
-ecrire/img_pack/fiche-perso-48.gif -text
+ecrire/img_pack/fiche-perso.gif -text
 ecrire/img_pack/fleche-left.png -text
 ecrire/img_pack/fleche-right.png -text
+ecrire/img_pack/fond-agenda.gif -text
 ecrire/img_pack/fond-calendrier.gif -text
+ecrire/img_pack/fond-gris-anim.gif -text
 ecrire/img_pack/fond-stats.gif -text
 ecrire/img_pack/forum-admin-24.gif -text
 ecrire/img_pack/forum-droite.gif -text
@@ -133,6 +130,7 @@ ecrire/img_pack/forum-interne-24.gif -text
 ecrire/img_pack/forum-vert.gif -text
 ecrire/img_pack/groupe-mot-24.gif -text
 ecrire/img_pack/image-24.gif -text
+ecrire/img_pack/interface-display.gif -text
 ecrire/img_pack/jauge-fond.gif -text
 ecrire/img_pack/jauge-rouge.gif -text
 ecrire/img_pack/jauge-vert.gif -text
@@ -141,26 +139,19 @@ ecrire/img_pack/langues-24.gif -text
 ecrire/img_pack/langues-modif-12.gif -text
 ecrire/img_pack/langues-off-12.gif -text
 ecrire/img_pack/logo-spip.gif -text
+ecrire/img_pack/loupe.gif -text
 ecrire/img_pack/m_envoi.gif -text
 ecrire/img_pack/m_envoi_bleu.gif -text
 ecrire/img_pack/m_envoi_bleu_rtl.gif -text
 ecrire/img_pack/m_envoi_jaune.gif -text
 ecrire/img_pack/m_envoi_jaune_rtl.gif -text
 ecrire/img_pack/m_envoi_rtl.gif -text
+ecrire/img_pack/message.gif -text
 ecrire/img_pack/messagerie-24.gif -text
-ecrire/img_pack/messagerie-48.gif -text
+ecrire/img_pack/messagerie-48.png -text
 ecrire/img_pack/mot-cle-24.gif -text
 ecrire/img_pack/naviguer-site.gif -text
-ecrire/img_pack/pave-blanc-16.png -text
-ecrire/img_pack/pave-blanc-24.png -text
-ecrire/img_pack/pave-blanc-36.png -text
-ecrire/img_pack/pave-blanc-48.png -text
-ecrire/img_pack/pave-gris-16.png -text
-ecrire/img_pack/pave-gris-24.png -text
-ecrire/img_pack/pave-gris-36.png -text
-ecrire/img_pack/pave-gris-48.png -text
-ecrire/img_pack/pave-rouge-24.png -text
-ecrire/img_pack/pave-rouge-36.png -text
+ecrire/img_pack/pense-bete.gif -text
 ecrire/img_pack/petite-cle.gif -text
 ecrire/img_pack/petition-24.gif -text
 ecrire/img_pack/poubelle.gif -text
@@ -181,12 +172,15 @@ ecrire/img_pack/puce-verte-breve.gif -text
 ecrire/img_pack/puce-verte.gif -text
 ecrire/img_pack/racine-24.gif -text
 ecrire/img_pack/racine-site-24.gif -text
+ecrire/img_pack/rayures-danger.gif -text
+ecrire/img_pack/rayures-danger.png -text
 ecrire/img_pack/rayures-fines.gif -text
+ecrire/img_pack/rayures-gris.gif -text
 ecrire/img_pack/rayures-sup.gif -text
 ecrire/img_pack/rayures.gif -text
 ecrire/img_pack/redac-12.gif -text
 ecrire/img_pack/redacteurs-24.gif -text
-ecrire/img_pack/redacteurs-48.gif -text
+ecrire/img_pack/redacteurs-48.png -text
 ecrire/img_pack/redacteurs-admin-24.gif -text
 ecrire/img_pack/redacteurs-poubelle-24.gif -text
 ecrire/img_pack/referers-24.gif -text
@@ -201,26 +195,32 @@ ecrire/img_pack/rond-hd-24.gif -text
 ecrire/img_pack/rond-hg-24.gif -text
 ecrire/img_pack/rubrique-12.gif -text
 ecrire/img_pack/rubrique-24.gif -text
+ecrire/img_pack/rv-12.gif -text
+ecrire/img_pack/rv.gif -text
+ecrire/img_pack/secteur-12.gif -text
 ecrire/img_pack/secteur-24.gif -text
+ecrire/img_pack/set-ecran-etroit.gif -text
 ecrire/img_pack/set-ecran.gif -text
 ecrire/img_pack/site-24.gif -text
 ecrire/img_pack/statistiques-24.gif -text
-ecrire/img_pack/statistiques-48.gif -text
-ecrire/img_pack/suivi-48.gif -text
+ecrire/img_pack/statistiques-48.png -text
 ecrire/img_pack/suivi-forum-24.gif -text
 ecrire/img_pack/supprimer.gif -text
 ecrire/img_pack/synchro-24.gif -text
 ecrire/img_pack/tirets-separation.gif -text
 ecrire/img_pack/tout-site-24.gif -text
+ecrire/img_pack/tout-site.gif -text
 ecrire/img_pack/traductions-24.gif -text
 ecrire/img_pack/triangle-bas.gif -text
 ecrire/img_pack/triangle-bleu-bas.gif -text
 ecrire/img_pack/triangle-bleu.gif -text
+ecrire/img_pack/triangle-droite.gif -text
+ecrire/img_pack/triangle-droite_rtl.gif -text
 ecrire/img_pack/triangle.gif -text
 ecrire/img_pack/triangle_rtl.gif -text
 ecrire/img_pack/visit-12.gif -text
-ecrire/img_pack/visiter-48.gif -text
-ecrire/img_pack/visiter-48_rtl.gif -text
+ecrire/img_pack/visiter-48.png -text
+ecrire/img_pack/visiter-48_rtl.png -text
 ecrire/img_pack/warning-24.gif -text
 ecrire/img_pack/warning.gif -text
 ecrire/img_pack/xml.gif -text
diff --git a/ecrire/articles_edit.php3 b/ecrire/articles_edit.php3
index 564617b471ce8c16ef724b94cd92a346082c8833..c16e8d56246c8d5fce5a3ed0f2c9206f363f35a6 100644
--- a/ecrire/articles_edit.php3
+++ b/ecrire/articles_edit.php3
@@ -181,7 +181,7 @@ function coupe_trop_long($texte){	// utile pour les textes > 32ko
 }
 
 
-debut_page(_T('titre_page_articles_edit', array('titre' => $titre)), "documents", "articles");
+debut_page(_T('titre_page_articles_edit', array('titre' => $titre)), "documents", "articles", "hauteurTextarea();");
 
 
 debut_grand_cadre();
@@ -379,7 +379,7 @@ echo "<P><HR><P>";
 
 	echo _T('texte_titre_obligatoire');
 	echo aide ("arttitre");
-	echo "<BR><INPUT TYPE='text' NAME='titre' style='font-weight: bold;' CLASS='formo' VALUE=\"$titre\" SIZE='40' $onfocus><P>";
+	echo "<BR><INPUT TYPE='text' NAME='titre' style='font-weight: bold; font-size: 13px;' CLASS='formo' VALUE=\"$titre\" SIZE='40' $onfocus><P>";
 
 	if (($articles_soustitre != "non") OR $soustitre) {
 		echo "<B>"._T('texte_sous_titre')."</B>";
@@ -505,9 +505,9 @@ echo "<P><HR><P>";
 
 	echo $textes_supplement;
 
-	echo "<BR>";
+	//echo "<BR>";
 	echo afficher_barre('formulaire', 'texte');
-	echo "<TEXTAREA NAME='texte' ".afficher_claret()." CLASS='formo' ROWS='$rows' COLS='40' wrap=soft>";
+	echo "<TEXTAREA id='text_area' NAME='texte' ".afficher_claret()." CLASS='formo' ROWS='$rows' COLS='40' wrap=soft>";
 	echo $texte;
 	echo "</TEXTAREA>\n";
 
diff --git a/ecrire/auteur_infos.php3 b/ecrire/auteur_infos.php3
index b9bf9dbc9568a12f658f19ea623ea53af5ec751b..529707d4ca53bf6b7d05295a2efedf7153f2b60b 100644
--- a/ecrire/auteur_infos.php3
+++ b/ecrire/auteur_infos.php3
@@ -139,6 +139,16 @@ if ($statut) { // si on poste un nom, c'est qu'on modifie une fiche auteur
 			$auteur['email'] = $email;
 	}
 
+	if ($connect_id_auteur == $id_auteur) {
+		if ($perso_activer_imessage) {
+			$query = "UPDATE spip_auteurs SET imessage='$perso_activer_imessage' WHERE id_auteur=$id_auteur";
+			$result = spip_query($query);
+			$auteur['imessage'] = $perso_activer_imessage;
+		}
+	}
+
+
+
 	// variables sans probleme
 	$auteur['bio'] = corriger_caracteres($bio);
 	$auteur['pgp'] = corriger_caracteres($pgp);
@@ -199,13 +209,21 @@ if ($statut) { // si on poste un nom, c'est qu'on modifie une fiche auteur
 }
 
 // Redirection
-if (($redirect_ok == 'oui') AND ($redirect)) {
-	@Header("Location: ".rawurldecode($redirect));
-	exit; 
+if (!$echec AND $redirect_ok == "oui") {
+	if ($redirect) {
+		@Header("Location: ".rawurldecode($redirect));
+		exit; 
+	}
+	else {
+		@Header("Location:auteurs_edit.php3?id_auteur=$id_auteur");
+		exit; 
+	}
 }
 
 
 
+
+
 //
 // Affichage
 //
@@ -216,12 +234,6 @@ else
 	debut_page($auteur['nom'],"documents","redacteurs");
 
 echo "<br><br><br>";
-gros_titre($auteur['nom']);
-
-if (($connect_statut == "0minirezo") OR $connect_id_auteur == $id_auteur) {
-	$statut_auteur=$auteur['statut'];
-	barre_onglets("auteur", "infos");
-}
 
 debut_gauche();
 
@@ -261,7 +273,7 @@ echo "<INPUT TYPE='Hidden' NAME='id_auteur' VALUE=\"$id_auteur\">";
 
 echo "<div class='serif'>";
 
-debut_cadre_relief("fiche-perso-24.gif");
+debut_cadre_relief("fiche-perso-24.gif", false, "", _T("icone_informations_personnelles"));
 
 echo _T('titre_cadre_signature_obligatoire');
 echo "("._T('entree_nom_pseudo').")<BR>";
@@ -283,37 +295,38 @@ echo "<TEXTAREA NAME='bio' CLASS='forml' ROWS='4' COLS='40' wrap=soft>";
 echo entites_html($auteur['bio']);
 echo "</TEXTAREA>\n";
 
-	if ($champs_extra) {
-		include_ecrire("inc_extra.php3");
-		extra_saisie($auteur['extra'], 'auteurs', $auteur['statut']);
-	}
+debut_cadre_enfonce("site-24.gif", false, "", _T('info_site_web'));
+echo "<B>"._T('entree_nom_site')."</B><BR>";
+echo "<INPUT TYPE='text' NAME='nom_site_auteur' CLASS='forml' VALUE=\"".entites_html($auteur['nom_site'])."\" SIZE='40'><P>\n";
 
-fin_cadre_relief();
-echo "<p>";
+echo "<B>"._T('entree_url')."</B><BR>";
+echo "<INPUT TYPE='text' NAME='url_site' CLASS='forml' VALUE=\"".entites_html($auteur['url_site'])."\" SIZE='40'>\n";
+fin_cadre_enfonce();
+	echo "<p>";
 
 if ($options == "avancees") {
-	debut_cadre_relief("cadenas-24.gif");
-	echo "<B>"._T('entree_cle_pgp')."</B><BR>";
+	debut_cadre_enfonce("cadenas-24.gif", false, "", _T('entree_cle_pgp'));
 	echo "<TEXTAREA NAME='pgp' CLASS='forml' ROWS='4' COLS='40' wrap=soft>";
 	echo entites_html($auteur['pgp']);
 	echo "</TEXTAREA>\n";
-	fin_cadre_relief();
+	fin_cadre_enfonce();
 	echo "<p>";
 }
 else {
 	echo "<input type='hidden' name='pgp' value=\"".entites_html($auteur['pgp'])."\">";
 }
 
-debut_cadre_relief("site-24.gif");
-echo "<B>"._T('entree_nom_site')."</B><BR>";
-echo "<INPUT TYPE='text' NAME='nom_site_auteur' CLASS='forml' VALUE=\"".entites_html($auteur['nom_site'])."\" SIZE='40'><P>\n";
+echo "<p>";
+	if ($champs_extra) {
+		include_ecrire("inc_extra.php3");
+		extra_saisie($auteur['extra'], 'auteurs', $auteur['statut']);
+	}
 
-echo "<B>"._T('entree_url')."</B><BR>";
-echo "<INPUT TYPE='text' NAME='url_site' CLASS='forml' VALUE=\"".entites_html($auteur['url_site'])."\" SIZE='40'>\n";
 fin_cadre_relief();
 echo "<p>";
 
 
+
 //
 // Login et mot de passe :
 // accessibles seulement aux admins non restreints et l'auteur lui-meme
@@ -370,6 +383,37 @@ fin_cadre_relief();
 echo "<p>";
 
 
+//
+// Apparaitre dans la liste des redacteurs connectes
+//
+
+if ($connect_id_auteur == $id_auteur) {
+
+	debut_cadre_relief("messagerie-24.gif", false, "", _T('info_liste_redacteurs_connectes'));
+		
+	echo "<div>"._T('texte_auteur_messagerie')."</div>";	
+
+		if ($auteur['imessage']=="non"){
+			echo "<INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='oui' id='perso_activer_imessage_on'>";
+			echo " <label for='perso_activer_imessage_on'>"._T('bouton_radio_apparaitre_liste_redacteurs_connectes')."</label> ";
+			echo "<BR><INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='non' CHECKED id='perso_activer_imessage_off'>";
+			echo " <B><label for='perso_activer_imessage_off'>"._T('bouton_radio_non_apparaitre_liste_redacteurs_connectes')."</label></B> ";
+		} else {
+			echo "<INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='oui' id='perso_activer_imessage_on' CHECKED>";
+			echo " <B><label for='perso_activer_imessage_on'>"._T('bouton_radio_apparaitre_liste_redacteurs_connectes')."</label></B> ";
+
+			echo "<BR><INPUT TYPE='radio' NAME='perso_activer_imessage' VALUE='non' id='perso_activer_imessage_off'>";
+			echo " <label for='perso_activer_imessage_off'>"._T('bouton_radio_non_apparaitre_liste_redacteurs_connectes')."</label> ";
+		}
+
+	fin_cadre_relief();
+	echo "<p />";
+
+	
+}
+
+
+
 //
 // Seuls les admins voient le menu 'statut', mais les admins restreints ne
 // pourront l'utiliser que pour mettre un auteur a la poubelle
diff --git a/ecrire/auteurs_edit.php3 b/ecrire/auteurs_edit.php3
index e9776bf91c53a9dc9f6d2d6c67b313ff49b2eed8..8a30ba376a25946097eb699d004fd79775401b52 100644
--- a/ecrire/auteurs_edit.php3
+++ b/ecrire/auteurs_edit.php3
@@ -66,13 +66,6 @@ else debut_page($nom,"documents","redacteurs");
 
 
 echo "<br><br><br>";
-gros_titre($nom);
-
-if (($connect_statut == "0minirezo") OR $connect_id_auteur == $id_auteur) {
-	$statut_auteur=$statut;
-	barre_onglets("auteur", "auteur");
-}
-
 
 debut_gauche();
 
@@ -101,12 +94,6 @@ $artoff = "autoff$id_auteur";
 if ($id_auteur>0 AND (($connect_statut == '0minirezo') OR ($connect_id_auteur == $id_auteur)))
 	afficher_boite_logo($arton, $artoff, _T('logo_auteur').aide ("logoart"), _T('logo_survol'));
 
-// raccourcis
-if ($connect_id_auteur == $id_auteur) {
-	debut_raccourcis();
-	icone_horizontale(_T('icone_tous_auteur'), "auteurs.php3", "redacteurs-24.gif","rien.gif");
-	fin_raccourcis();
-}
 
 debut_droite();
 
@@ -118,26 +105,43 @@ function mySel($varaut,$variable) {
 	return $retour;
 }
 
-if ($statut == "0minirezo") $logo = "redacteurs-admin-24.gif";
-else if ($statut == "5poubelle") $logo = "redacteurs-poubelle-24.gif";
-else $logo = "redacteurs-24.gif";
+	debut_cadre_relief("redacteurs-24.gif");
+	
+	
+	echo "<table width='100%' cellpadding='0' border='0' cellspacing='0'>";
+	
+	echo "<tr>";
+
+	echo "<td valign='top' width='100%'>";	
+
+
+	gros_titre($nom);
+
+	echo "<div>&nbsp;</div>";
 
+	if (strlen($email) > 2) echo "<div>"._T('email_2')." <B><A HREF='mailto:$email'>$email</A></B></div>";
+	if (strlen($nom_site_auteur) > 2) echo "<div>"._T('info_site_2')." <B><A HREF='$url_site'>$nom_site_auteur</A></B></div>";
 
-if (strlen($email) > 2 OR strlen($bio) > 0 OR strlen($nom_site_auteur) > 0 OR ($champs_extra AND $extra)) {
-	debut_cadre_relief("$logo");
-	echo "<FONT FACE='Verdana,Arial,Sans,sans-serif'>";
-	if (strlen($email) > 2) echo _T('email_2')." <B><A HREF='mailto:$email'>$email</A></B><BR> ";
-	if (strlen($nom_site_auteur) > 2) echo _T('info_site_2')." <B><A HREF='$url_site'>$nom_site_auteur</A></B>";
-	echo "<P>".propre($bio)."</P>";
+		
+	echo "</td>";
+	
+	echo "<td>";
+	
+	if (($connect_statut == "0minirezo") OR $connect_id_auteur == $id_auteur) {
+		icone (_T("admin_modifier_auteur"), "auteurs_infos.php3?id_auteur=$id_auteur", "redacteurs-24.gif", "edit.gif");
+	}
+	echo "</td></tr></table>";
+
+	if (strlen($bio) > 0) { echo "<div>".propre("<quote>".$bio."</quote>")."</div>"; }
+	if (strlen($pgp) > 0) { echo "<div>".propre("PGP:<cadre>".$pgp."</cadre>")."</div>"; }
 
 	if ($champs_extra AND $extra) {
 		include_ecrire("inc_extra.php3");
 		extra_affichage($extra, "auteurs");
 	}
 
-	echo "</FONT>";
+
 	fin_cadre_relief();
-}
 
 
 echo "<P>";
@@ -148,10 +152,21 @@ else $aff_art = "'prop','publie'";
 afficher_articles(_T('info_articles_auteur'),
 	", spip_auteurs_articles AS lien WHERE lien.id_auteur='$id_auteur' ".
 	"AND lien.id_article=articles.id_article AND articles.statut IN ($aff_art) ".
-	"ORDER BY articles.date DESC");
+	"ORDER BY articles.date DESC", true);
 }
 
 
+
+$query_message = "SELECT * FROM spip_messages AS messages, spip_auteurs_messages AS lien, spip_auteurs_messages AS lien2 ".
+	"WHERE lien.id_auteur=$connect_id_auteur AND lien2.id_auteur = $id_auteur AND statut='publie' AND type='normal' AND rv!='oui' AND lien.id_message=messages.id_message AND lien2.id_message=messages.id_message";
+afficher_messages(_T('info_discussion_cours'), $query_message, false, false);
+
+$query_message = "SELECT * FROM spip_messages AS messages, spip_auteurs_messages AS lien, spip_auteurs_messages AS lien2 ".
+	"WHERE lien.id_auteur=$connect_id_auteur AND lien2.id_auteur = $id_auteur AND statut='publie' AND type='normal' AND rv='oui' AND lien.id_message=messages.id_message AND lien2.id_message=messages.id_message  AND messages.date_heure > DATE_SUB(NOW(), INTERVAL 1 DAY)";
+afficher_messages(_T('info_vos_rendez_vous'), $query_message, false, false);
+
+
+
 fin_page();
 
 ?>
diff --git a/ecrire/breves.php3 b/ecrire/breves.php3
index 76dfa1cbe1c08f8514a002aea1d880f1613e6bdb..7ea992fd2f47b8ce1cd617443f7ad16b289f558d 100644
--- a/ecrire/breves.php3
+++ b/ecrire/breves.php3
@@ -30,19 +30,7 @@ function enfant($leparent){
 		$descriptif=$row['descriptif'];
 		$texte=$row['texte'];
 
-		debut_cadre_enfonce();
-
-		echo "<a href='naviguer.php3?coll=$id_rubrique'>";
-		echo "<IMG SRC='img_pack/secteur-24.gif' WIDTH=24 HEIGHT=24 BORDER=0 align='middle'>";
-		echo "</a>";
-		if (acces_restreint_rubrique($id_rubrique))
-			echo " <img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('info_administrer_rubriques')."' border='0' align='middle'>";
-
-		echo " <FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3>";
-		echo "<B>$titre</B></FONT>\n";
-		echo aide ("breves");
-
-		echo "<p>";
+		debut_cadre_enfonce("secteur-24.gif", false, '', $titre.aide ("breves"));
 
 		if ($GLOBALS['connect_statut'] == "0minirezo") $statuts = "'prop', 'refuse', 'publie'";
 		else $statuts = "'prop', 'publie'";
diff --git a/ecrire/brouteur.php3 b/ecrire/brouteur.php3
index 1a77a800cc3934c3114b03f9ffa96e8f418c6073..cce310355803140fefa2df02bdc56e7d6f6256fb 100644
--- a/ecrire/brouteur.php3
+++ b/ecrire/brouteur.php3
@@ -2,10 +2,6 @@
 
 include ("inc.php3");
 
-debut_page(_T('titre_page_articles_tous'), "asuivre", "tout-site");
-
-echo "<div>&nbsp;</div>";
-
 	if ($spip_ecran == "large") {
 		$largeur_table = 974;
 		$hauteur_table = 400;
@@ -17,7 +13,10 @@ echo "<div>&nbsp;</div>";
 	}
 	$largeur_col = round($largeur_table/$nb_col);
 	
-	
+
+debut_page(_T('titre_page_articles_tous'), "asuivre", "tout-site", " hauteurFrame($nb_col);");
+
+echo "<div>&nbsp;</div>";
 
 	echo "<table border='0' cellpadding='0' cellspacing='2' width='$largeur_table'>";
 
@@ -50,6 +49,9 @@ echo "<div>&nbsp;</div>";
 		if ($dest[0] > 0 AND $parent = $dest[$nb_col-2]) {
 			// Afficher la hierarchie pour "remonter"
 			echo "<tr><td colspan='$nb_col' style='text-align: $spip_lang_left;'>";
+			
+			echo "<div id='brouteur_hierarchie'>"; // pour calculer hauteur de iframe
+			
 			$la_rubrique = $dest[0];
 			
 			$query = "SELECT * FROM spip_rubriques WHERE id_rubrique = $la_rubrique";
@@ -76,6 +78,8 @@ echo "<div>&nbsp;</div>";
 			$icone = "racine-site-24.gif";
 			$ret = "<div style='padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px; background: url(img_pack/$icone) $spip_lang_left no-repeat;'><a href='brouteur.php3?id_rubrique=$lien'>"._T('info_racine_site')."</a></div><div style='margin-$spip_lang_left: 28px;'>$ret</div>";
 			echo $ret;
+			
+			echo "</div>";
 			echo "</td></tr>";
 			
 		}
@@ -92,7 +96,7 @@ echo "<div>&nbsp;</div>";
 	for ($i=0; $i < $nb_col; $i++) {
 		echo "<td valign='top' width='$largeur_col'>";
 		
-		echo "<iframe width='100%' id='iframe$i' name='iframe$i' src='brouteur_frame.php3?id_rubrique=".$dest[$i]."&frame=$i' height='$hauteur_table' style='background-color: #eeeeee; border-right: 1px solid white; border-bottom: 1px solid white; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc;'></iframe>";
+		echo "<iframe width='100%' id='iframe$i' name='iframe$i' src='brouteur_frame.php3?id_rubrique=".$dest[$i]."&frame=$i' class='iframe-bouteur' height='$hauteur_table'></iframe>";
 		
 		
 		echo "</td>";
diff --git a/ecrire/brouteur_frame.php3 b/ecrire/brouteur_frame.php3
index c7bfbd447dea8e75aae2811deedc3eee0fdc700a..7440b073a36df23c3e87759b7659653f76ef024e 100644
--- a/ecrire/brouteur_frame.php3
+++ b/ecrire/brouteur_frame.php3
@@ -53,13 +53,15 @@ debut_html();
 		$result=spip_query($query);
 		if (spip_num_rows($result)>0) {
 			echo "<div style='padding-top: 6px;'><b class='verdana2'>"._T("info_breves_valider")."</b></div>";
+			echo "<div class='plan-articles'>";
 			while($row=spip_fetch_array($result)){
 				$id_breve=$row['id_breve'];
 				$titre = typo($row['titre']);
 				$statut = $row['statut'];
 				$puce = "puce-orange-breve.gif";
-				echo "<div style='margin:3px; padding-top: 3px; padding-bottom= 3px; padding-$spip_lang_left: 12px;  background: url(img_pack/$puce) $spip_lang_left center no-repeat;'><a href='javascript:window.parent.location=\"breves_voir.php3?id_breve=$id_breve\"' class='arial1'>$titre</a></div>";
+				echo "<a class='$statut' href='javascript:window.parent.location=\"breves_voir.php3?id_breve=$id_breve\"'>$titre</a>";
 			}
+			echo "</div>";
 		}
 
 	}
@@ -74,11 +76,11 @@ debut_html();
 			if ($id_parent == 0) $icone = "secteur-24.gif";
 			else $icone = "rubrique-24.gif";
 			
-			echo "<div style='background-color: #cccccc; margin-bottom: 3px;'>";
+			echo "<div style='background-color: #cccccc; border: 1px solid #444444;'>";
 			icone_horizontale("$titre", "javascript:window.parent.location=\"naviguer.php3?coll=$id_rubrique\"", "$icone","");
 			echo "</div>";
 		}  else if ($frame == 0) {
-			echo "<div style='background-color: #cccccc; margin-bottom: 3px;'>";
+			echo "<div style='background-color: #cccccc; border: 1px solid #444444;'>";
 			icone_horizontale(_T('info_racine_site'), "javascript:window.parent.location=\"naviguer.php3\"", "racine-site-24.gif","");
 			echo "</div>";
 		}
@@ -93,13 +95,15 @@ debut_html();
 			$titre = typo($row['titre']);
 			$id_parent=$row['id_parent'];
 			
+			echo "<div class='brouteur_rubrique' onMouseOver=\"changeclass(this, 'brouteur_rubrique_on');\" onMouseOut=\"changeclass(this, 'brouteur_rubrique');\">";
 			if ($id_parent == '0') 	{
-				echo "<div style='margin:3px; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px; background: url(img_pack/secteur-24.gif) $spip_lang_left center no-repeat;'><b class='verdana2'><a href='brouteur_frame.php3?id_rubrique=$ze_rubrique&frame=".($frame+1)."&effacer_suivant=oui' target='iframe".($frame+1)."'>$titre</a></b></div>";
+				echo "<div style='background-image: url(img_pack/secteur-24.gif);'><a href='brouteur_frame.php3?id_rubrique=$ze_rubrique&frame=".($frame+1)."&effacer_suivant=oui' target='iframe".($frame+1)."'>$titre</a></div>";
 			}
 			else {
-				if ($frame+1 < $nb_col) echo "<div style='margin:3px; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px; background: url(img_pack/rubrique-24.gif) $spip_lang_left center no-repeat;'><b><a href='brouteur_frame.php3?id_rubrique=$ze_rubrique&frame=".($frame+1)."&effacer_suivant=oui' target='iframe".($frame+1)."'>$titre</a></b></div>";
-				else  echo "<div style='margin:3px; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px; background: url(img_pack/rubrique-24.gif) $spip_lang_left center no-repeat;'><b><a href='javascript:window.parent.location=\"brouteur.php3?id_rubrique=$ze_rubrique\"'>$titre</a></b></div>";
+				if ($frame+1 < $nb_col) echo "<div style='background-image: url(img_pack/rubrique-24.gif);'><a href='brouteur_frame.php3?id_rubrique=$ze_rubrique&frame=".($frame+1)."&effacer_suivant=oui' target='iframe".($frame+1)."'>$titre</a></div>";
+				else  echo "<div style='background-image: url(img_pack/rubrique-24.gif);'><a href='javascript:window.parent.location=\"brouteur.php3?id_rubrique=$ze_rubrique\"'>$titre</a></div>";
 			}
+			echo "</div>\n";
 		}
 	
 	
@@ -123,6 +127,7 @@ debut_html();
 			$result=spip_query($query);
 			if (spip_num_rows($result)>0) {
 				echo "<div style='padding-top: 6px;'><b class='verdana2'>"._T('info_breves_02')."</b></div>";
+				echo "<div class='plan-articles'>";
 				while($row=spip_fetch_array($result)){
 					$id_breve=$row['id_breve'];
 					$titre = typo($row['titre']);
@@ -145,9 +150,15 @@ debut_html();
 							break;
 					}
 					$puce = "puce-$puce-breve.gif";
-					echo "<div style='margin:3px; padding-top: 3px; padding-bottom= 3px; padding-$spip_lang_left: 12px;  background: url(img_pack/$puce) $spip_lang_left center no-repeat;'><a href='javascript:window.parent.location=\"breves_voir.php3?id_breve=$id_breve\"' class='arial1'>$titre</a></div>";
+					echo "<a class='$statut' href='javascript:window.parent.location=\"breves_voir.php3?id_breve=$id_breve\"'>$titre</a>";
 				}
+				echo "</div>";
+
+
 			}
+
+
+
 	
 			$query = "SELECT * FROM spip_syndic WHERE id_rubrique='$id_rubrique' AND statut!='refuse' ORDER BY nom_site";
 			$result=spip_query($query);
@@ -181,7 +192,6 @@ debut_html();
 
 	
 		if ($frame == 0 AND $id_rubrique==0) {
-			echo "<hr style='border: 0px; color: #999999; background-color: #999999; height: 2px;'>";
 	
 			$query = "SELECT articles.id_article, articles.titre, articles.statut FROM spip_articles AS articles, spip_auteurs_articles AS lien WHERE articles.statut = 'prepa' AND articles.id_article = lien.id_article AND lien.id_auteur = $connect_id_auteur GROUP BY id_article ORDER BY articles.date DESC";
 			$result=spip_query($query);
diff --git a/ecrire/calendrier.php3 b/ecrire/calendrier.php3
index f375d2227b0a399a03b1bd70d824a15a570b1bc0..1a156f8781c5bd7ce673134f39b5dd16fab0803e 100644
--- a/ecrire/calendrier.php3
+++ b/ecrire/calendrier.php3
@@ -113,13 +113,13 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){
 
 
 	// rendez-vous personnels
-	$result_messages=spip_query("SELECT messages.* FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE ((lien.id_auteur='$connect_id_auteur' AND lien.id_message=messages.id_message) OR messages.type='affich') AND messages.rv='oui' AND messages.date_heure >='$annee_today-$mois_today-1' AND messages.date_heure <= DATE_ADD('$annee_today-$mois_today-1', INTERVAL 1 MONTH) AND messages.statut='publie' GROUP BY messages.id_message ORDER BY messages.date_heure");
+	$result_messages=spip_query("SELECT messages.* FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE ((lien.id_auteur='$connect_id_auteur' AND lien.id_message=messages.id_message) OR messages.type='affich') AND messages.rv='oui' AND messages.date_fin >='$annee_today-$mois_today-1' AND messages.date_heure <= DATE_ADD('$annee_today-$mois_today-1', INTERVAL 1 MONTH) AND messages.statut='publie' GROUP BY messages.id_message ORDER BY messages.date_heure");
 	while($row=spip_fetch_array($result_messages)){
 		$id_message=$row['id_message'];
 		$date_heure=$row["date_heure"];
+		$date_fin = $row["date_fin"];
 		$titre=typo($row["titre"]);
 		$type=$row["type"];
-		$lejour=journum($row['date_heure']);
 
 		if ($type=="normal") {
 			$la_couleur = "#02531B";
@@ -137,7 +137,48 @@ function afficher_mois($jour_today,$mois_today,$annee_today,$nom_mois){
 			$la_couleur="black";
 			$couleur_fond="#aaaaaa";
 		}
-		$les_rv["$lejour"][]="<div style='padding: 2px; margin-top: 2px; background-color: $couleur_fond; border: 1px solid $la_couleur; -moz-border-radius: 3px;' class='arial0'><font color='$la_couleur'><b>".heures($date_heure).":".minutes($date_heure)."</b></font> <a href='message.php3?id_message=$id_message' style='color: black;'>$titre</a></div>";
+		
+		$heure_debut = heures($date_heure);
+		$minutes_debut = minutes($date_heure);
+		$jour_debut = journum($date_heure);
+		$mois_debut = mois($date_heure);
+		$annee_debut = annee($date_heure);
+
+		// Verifier si debut est mois precedent
+		$unix_debut = date("U", mktime($heures_debut,$minutes_debut,0,$mois_debut, $jour_debut, $annee_debut));
+		$unix_debut_today = date("U", mktime(0,0,0,$mois_today, 1, $annee_today));
+
+		if ($unix_debut <= $unix_debut_today) {
+			$jour_debut = 1;
+		}
+
+		// Verifier si fin est mois suivant
+		$heure_fin = heures($date_fin);
+		$minutes_fin = minutes($date_fin);
+		$jour_fin = journum($date_fin);
+		$mois_fin = mois($date_fin);
+		$annee_fin = annee($date_fin);
+		
+		if ($heure_fin == 0 AND $minutes_fin == 0) {
+			$heure_fin = 23;
+			$minutes_fin = 59;
+			$jour_fin = $jour_fin-1;
+		}
+
+
+		$unix_fin = date("U", mktime($heures_fin,$minutes_fin,0,$mois_fin, $jour_fin, $annee_fin));
+		$unix_fin_today = date("U", mktime(0,0,0,$mois_today+1, 1, $annee_today));
+
+		if ($unix_fin > $unix_fin_today) {
+			$jour_fin = 31;
+		}
+
+
+		for ($i = $jour_debut; $i <= $jour_fin; $i++) {
+			if ($i == $jour_debut) $les_rv["$i"][]="<div style='padding: 2px; margin-top: 2px; background-color: $couleur_fond; border: 1px solid $la_couleur; -moz-border-radius: 3px;' class='arial0'><font color='$la_couleur'><b>".heures($date_heure).":".minutes($date_heure)."</b></font> <a href='message.php3?id_message=$id_message' style='color: black;'>$titre</a></div>";
+			else $les_rv["$i"][]="<div style='padding: 2px; margin-top: 2px; background-color: $couleur_fond; border: 1px solid $la_couleur; -moz-border-radius: 3px;' class='arial0'><img src='puce$spip_lang_rtl.gif' border='0'><a href='message.php3?id_message=$id_message' style='color: black;'>$titre</a></div>";
+		}
+				
 	}
 
 	$activer_messagerie = lire_meta("activer_messagerie");
diff --git a/ecrire/config-contenu.php3 b/ecrire/config-contenu.php3
index a7dfd7f8d3011c5ed9c638b6bd61d9ec699b71e5..9f4b3ab41cbc9f359d3e74f3e35e5d468179dd42 100644
--- a/ecrire/config-contenu.php3
+++ b/ecrire/config-contenu.php3
@@ -48,24 +48,19 @@ echo "<input type='hidden' name='changer_config' value='oui'>";
 //
 // Mode de fonctionnement des forums publics
 //
-debut_cadre_relief("forum-interne-24.gif");
+debut_cadre_trait_couleur("forum-interne-24.gif", false, "", _T('info_mode_fonctionnement_defaut_forum_public').aide ("confforums"));
 
 $forums_publics=lire_meta("forums_publics");
 
 echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('info_mode_fonctionnement_defaut_forum_public')."</FONT></B> ".aide ("confforums")."</TD></TR>";
-
 echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
-if ($forums_publics=="non") {
-	$checked = ' CHECKED';
-	$gras = '<b>'; $fingras = '</b>';
-} else {
-	$checked = '';
-	$gras = ''; $fingras = '';
-}
-echo "<INPUT$checked TYPE='radio' NAME='forums_publics' VALUE='non' id='forums_non'>";
-echo $gras."<label for='forums_non'>"._T('info_desactiver_forum_public')."
-	</label>.".$fingras;
+
+
+	if ($forums_publics == "non") $block = "'none', 'block'"; 
+	else $block= "'block', 'none'";
+	echo bouton_radio("forums_publics", "non", _T('info_desactiver_forum_public'), $forums_publics == "non", "changeVisible(this.checked, 'config-options', $block);");
+
+
 echo "</TD></TR>";
 
 echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
@@ -74,52 +69,32 @@ echo "</TD></TR>";
 
 echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
 
-if ($forums_publics=="posteriori") {
-	$checked = ' CHECKED';
-	$gras = '<b>'; $fingras = '</b>';
-} else {
-	$checked = '';
-	$gras = ''; $fingras = '';
-}
-echo "<INPUT TYPE='radio'$checked NAME='forums_publics' VALUE='posteriori' id='forums_posteriori'>";
-echo " $gras<label for='forums_posteriori'>"._T('bouton_radio_publication_immediate')."</label>$fingras\n<br>";
-
-if ($forums_publics=="priori") {
-	$checked = ' CHECKED';
-	$gras = '<b>'; $fingras = '</b>';
-} else {
-	$checked = '';
-	$gras = ''; $fingras = '';
-}
-echo "<INPUT TYPE='radio'$checked NAME='forums_publics' VALUE='priori'
-id='forums_priori'>";
-echo " $gras<label for='forums_priori'>"._T('bouton_radio_moderation_priori')."</label>$fingras ";
-
-if (tester_mail()){
-	echo "\n<BR>";
-	if ($forums_publics=="abo") {
-		$checked = ' CHECKED';
-		$gras = '<b>'; $fingras = '</b>';
-	} else {
-		$checked = '';
-		$gras = ''; $fingras = '';
+
+	if ($forums_publics == "posteriori") $block = "'none', 'block'"; 
+	else $block= "'block', 'none'";
+	echo bouton_radio("forums_publics", "posteriori", _T('bouton_radio_publication_immediate'), $forums_publics == "posteriori", "changeVisible(this.checked, 'config-options', $block);");
+	echo "<br />";
+	if ($forums_publics == "priori") $block = "'none', 'block'"; 
+	else $block= "'block', 'none'";
+	echo bouton_radio("forums_publics", "priori", _T('bouton_radio_moderation_priori'), $forums_publics == "priori", "changeVisible(this.checked, 'config-options', $block);");
+
+	if (tester_mail()) {
+		echo "<br />";
+		if ($forums_publics == "abo") $block = "'none', 'block'"; 
+		else $block= "'block', 'none'";
+		echo bouton_radio("forums_publics", "abo", _T('bouton_radio_enregistrement_obligatoire'), $forums_publics == "abo", "changeVisible(this.checked, 'config-options', $block);");
 	}
-	echo "<INPUT TYPE='radio'$checked NAME='forums_publics' VALUE='abo' id='forums_abonnement'>";
-	echo " $gras<label for='forums_abonnement'>"._T('bouton_radio_enregistrement_obligatoire')."</label>$fingras ";
-}
 
 echo "</TD></TR>\n";
 
 echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
 
 if ($options == 'avancees') {
-	echo "<ul><table width='100%' cellpadding='2' border='0' class='hauteur'>\n";
-	echo "<tr><td width='100%' bgcolor='#FFCC66'>\n";
-	echo "<font face='Verdana,Arial,Sans,sans-serif' size='2' color='#333333'><b>\n";
-	echo bouton_block_invisible('forum');
-	echo _T('info_options_avancees');
-	echo "</b></font></td></tr></table>";
-	echo debut_block_invisible('forum');
+	echo "<div id='config-options' class='display_au_chargement'>";
+	echo "<ul>";
+	
+	debut_cadre_relief("", false, "", _T('info_options_avancees'));
+	
 	echo "<table width='100%' cellpadding='2' border='0' class='hauteur'>\n";
 	echo "<tr><td class='verdana2'>";
 	echo _T('info_appliquer_choix_moderation')."<br>";
@@ -130,9 +105,11 @@ if ($options == 'avancees') {
 	echo " <label for='forums_appliquer_saufnon'>"._T('bouton_radio_articles_tous_sauf_forum_desactive')."</label><br>";
 	echo "<INPUT TYPE='radio' NAME='forums_publics_appliquer' VALUE='tous' id='forums_appliquer_tous'>";
 	echo " <label for='forums_appliquer_tous'>"._T('bouton_radio_articles_tous')."</label><br>";
-	echo "</TD></TR></table>\n";
-	echo fin_block();
-	echo "</ul>";
+	echo "</TD></TR></table>";
+	fin_cadre_relief();
+	echo "</ul>\n";
+
+	echo "</div>";
 }
 else {
 	echo "<input type='hidden' name='forums_publics_appliquer' value='tous'>";
@@ -144,7 +121,7 @@ echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS
 echo "</TD></TR>";
 echo "</TABLE>\n";
 
-fin_cadre_relief();
+fin_cadre_trait_couleur();
 
 echo "<p>";
 
@@ -154,7 +131,7 @@ echo "<p>";
 //
 
 if ($options == "avancees") {
-	debut_cadre_relief("messagerie-24.gif");
+	debut_cadre_trait_couleur("messagerie-24.gif");
 
 	$activer_messagerie = lire_meta("activer_messagerie");
 	$activer_imessage = lire_meta("activer_imessage");
@@ -188,7 +165,7 @@ if ($options == "avancees") {
 	echo "</TD></TR>";
 	echo "</TABLE>\n";
 
-	fin_cadre_relief();
+	fin_cadre_trait_couleur();
 	echo "<p>";
 }
 
@@ -198,14 +175,11 @@ if ($options == "avancees") {
 //
 
 if ($options == "avancees") {
-	debut_cadre_relief("redacteurs-24.gif");
+	debut_cadre_trait_couleur("redacteurs-24.gif", false, "", _T('info_inscription_automatique'));
 
 	$accepter_inscriptions=lire_meta("accepter_inscriptions");
 	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 
-	echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>";
-	echo _T('info_inscription_automatique')."</FONT></B> </TD></TR>";
-
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
 	echo _T('info_question_inscription_nouveaux_redacteurs')."</i></blockquote>";
 	echo "</TD></TR>";
@@ -222,7 +196,7 @@ if ($options == "avancees") {
 	echo "</TD></TR>";
 	echo "</TABLE>\n";
 
-	fin_cadre_relief();
+	fin_cadre_trait_couleur();
 	echo "<p>";
 }
 
@@ -231,22 +205,18 @@ if ($options == "avancees") {
 // Activer/desactiver mails automatiques
 //
 if (tester_mail()) {
-	debut_cadre_relief();
+	debut_cadre_trait_couleur("", false, "", _T('info_envoi_email_automatique').aide ("confmails"));
 
 	$prevenir_auteurs=lire_meta("prevenir_auteurs");
 
 
 	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-	echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('info_envoi_email_automatique')."</FONT></B> ".aide ("confmails")."</TD></TR>";
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
 	echo "<blockquote><i>"._T('info_hebergeur_desactiver_envoi_email')."</i></blockquote>";
-	echo "</TD></TR>";
-
-	echo "<TR><TD>&nbsp;</TD></TR>";
-
-	echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3>";
-	echo _T('info_envoi_forum')."</FONT></B></TD></TR>";
+	echo "</TD></TR></table>";
 
+	debut_cadre_relief("", false, "", _T('info_envoi_forum'));
+	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
 	echo _T('info_option_email');
 	echo "</TD></TR>";
@@ -255,7 +225,8 @@ if (tester_mail()) {
 	afficher_choix('prevenir_auteurs', $prevenir_auteurs,
 		array('oui' => _T('info_option_faire_suivre'),
 			'non' => _T('info_option_ne_pas_faire_suivre')));
-	echo "</TD></TR>\n";
+	echo "</TD></TR></table>\n";
+	fin_cadre_relief();
 
 	//
 	// Suivi editorial (articles proposes & publies)
@@ -265,36 +236,37 @@ if (tester_mail()) {
 	$adresse_suivi=lire_meta("adresse_suivi");
 	$adresse_suivi_inscription=lire_meta("adresse_suivi_inscription");
 
-	echo "<TR><TD>&nbsp;</TD></TR>";
-	echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3>";
-	echo _T('info_suivi_activite')."</FONT></B></TD></TR>";
+	echo "<p />";
+	debut_cadre_relief("", false, "", _T('info_suivi_activite'));
+	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
 	echo _T('info_facilite_suivi_activite')."</FONT>";
-	echo "</TD></TR>";
+	echo "</TD></TR></table>";
 
 
+	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
-	if ($suivi_edito!="oui"){
-		echo "<INPUT TYPE='radio' NAME='suivi_edito' VALUE='oui' id='suivi_edito_on'>";
-		echo " <label for='suivi_edito_on'>"._T('bouton_radio_envoi_annonces')."</label> ";
-		echo "<BR><INPUT TYPE='radio' NAME='suivi_edito' VALUE='non' CHECKED id='suivi_edito_off'>";
-		echo " <B><label for='suivi_edito_off'>"._T('bouton_radio_non_envoi_annonces')."</label></B>";
-	}else{
-		echo "<INPUT TYPE='radio' NAME='suivi_edito' VALUE='oui' id='suivi_edito_on' CHECKED>";
-		echo " <B><label for='suivi_edito_on'>"._T('bouton_radio_envoi_annonces_adresse')."</label></B> ";
-		echo "<input type='text' name='adresse_suivi' value='$adresse_suivi' size='30' CLASS='fondl'>";
 
+		echo bouton_radio("suivi_edito", "oui", _T('bouton_radio_envoi_annonces_adresse'), $suivi_edito == "oui", "changeVisible(this.checked, 'config-edito', 'block', 'none');");
+
+
+			if ($suivi_edito == "oui") $style = "display: block;";
+			else $style = "display: none;";			
+			echo "<div id='config-edito' style='$style'>";
+			echo "<div style='text-align: center;'><input type='text' name='adresse_suivi' value='$adresse_suivi' size='30' CLASS='fondl'></div>";
 			echo "<blockquote class='spip'>";
 			if (!$adresse_suivi) $adresse_suivi = "mailing@monsite.net";
 			echo _T('info_config_suivi', array('adresse_suivi' => $adresse_suivi));
 			echo "<br><input type='text' name='adresse_suivi_inscription' value='$adresse_suivi_inscription' size='50' CLASS='fondl'>";
 			echo "</blockquote>";
+			echo "</div>";
 
-		echo "<BR><INPUT TYPE='radio' NAME='suivi_edito' VALUE='non' id='suivi_edito_off'>";
-		echo " <label for='suivi_edito_off'>"._T('bouton_radio_non_envoi_annonces_editoriales')."</label> ";
-	}
-	echo "</TD></TR>\n";
+		echo "<br />";
+		echo bouton_radio("suivi_edito", "non", _T('bouton_radio_non_envoi_annonces_editoriales'), $suivi_edito == "non", "changeVisible(this.checked, 'config-edito', 'none', 'block');");
+
+	echo "</TD></TR></table>\n";
+	fin_cadre_relief();
 
 	//
 	// Annonce des nouveautes
@@ -308,54 +280,60 @@ if (tester_mail()) {
 		ecrire_metas();
 	}
 
-	echo "<TR><TD>&nbsp;</TD></TR>";
-	echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3>";
-	echo _T('info_annonce_nouveautes')."</FONT></B></TD></TR>";
+	echo "<p />";
+	debut_cadre_relief("", false, "", _T('info_annonce_nouveautes'));
+	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
 	echo _T('info_non_envoi_annonce_dernieres_nouveautes');
 	echo "</TD></TR>";
 
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
-	if ($quoi_de_neuf != "oui") {
-		echo "<INPUT TYPE='radio' NAME='quoi_de_neuf' VALUE='oui' id='quoi_de_neuf_on'>";
-		echo " <label for='quoi_de_neuf_on'>"._T('bouton_radio_envoi_liste_nouveautes')."</label> ";
-		echo "<BR><INPUT TYPE='radio' NAME='quoi_de_neuf' VALUE='non' CHECKED id='quoi_de_neuf_off'>";
-		echo " <B><label for='quoi_de_neuf_off'>"._T('bouton_radio_non_envoi_liste_nouveautes')."</label></B> ";
-	}
-	else {
-		echo "<INPUT TYPE='radio' NAME='quoi_de_neuf' VALUE='oui' id='quoi_de_neuf_on' CHECKED>";
-		echo " <B><label for='quoi_de_neuf_on'>"._T('bouton_radio_envoi_liste_nouveautes')."</label></B> ";
 
+		echo bouton_radio("quoi_de_neuf", "oui", _T('bouton_radio_envoi_liste_nouveautes'), $quoi_de_neuf == "oui", "changeVisible(this.checked, 'config-neuf', 'block', 'none');");
+	//	echo "<INPUT TYPE='radio' NAME='quoi_de_neuf' VALUE='oui' id='quoi_de_neuf_on' CHECKED>";
+	//	echo " <B><label for='quoi_de_neuf_on'>"._T('bouton_radio_envoi_liste_nouveautes')."</label></B> ";
+
+			if ($quoi_de_neuf == "oui") $style = "display: block;";
+			else $style = "display: none;";			
+		echo "<div id='config-neuf' style='$style'>";
 		echo "<UL>";
 		echo "<LI>"._T('info_adresse')." <input type='text' name='adresse_neuf' value='$adresse_neuf' size='30' CLASS='fondl'>";
 		echo "<LI>"._T('info_tous_les')." <input type='text' name='jours_neuf' value='$jours_neuf' size='4' CLASS='fondl'> "._T('info_jours');
 		echo " &nbsp;  &nbsp;  &nbsp; <INPUT TYPE='submit' NAME='envoi_now' VALUE='"._T('info_envoyer_maintenant')."' CLASS='fondl'>";
 		echo "</UL>";
-		echo "<BR><INPUT TYPE='radio' NAME='quoi_de_neuf' VALUE='non' id='quoi_de_neuf_off'>";
-		echo " <label for='quoi_de_neuf_off'>"._T('info_non_envoi_liste_nouveautes')."</label> ";
-	}
-	echo "</TD></TR>\n";
+		echo "</div>";
+
+		echo "<br />";
+		echo bouton_radio("quoi_de_neuf", "non", _T('info_non_envoi_liste_nouveautes'), $quoi_de_neuf == "non", "changeVisible(this.checked, 'config-neuf', 'none', 'block');");
+		//echo "<BR><INPUT TYPE='radio' NAME='quoi_de_neuf' VALUE='non' id='quoi_de_neuf_off'>";
+		//echo " <label for='quoi_de_neuf_off'>"._T('info_non_envoi_liste_nouveautes')."</label> ";
+	
+	
+	
+	echo "</TD></TR></table>\n";
+	fin_cadre_relief();
 
 	if($options == "avancees") {
 		$email_envoi = entites_html(lire_meta("email_envoi"));
-		echo "<TR><TD>&nbsp;</TD></TR>";
-		echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#000000'>";
-		echo _T('info_email_envoi')."</FONT></B></TD></TR>";
-
+		echo "<p />";
+		debut_cadre_relief("", false, "", _T('info_email_envoi'));
+		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 		echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
 		echo _T('info_email_envoi_txt');
 		echo " <input type='text' name='email_envoi' value=\"$email_envoi\" size='20' CLASS='fondl'>";
 		echo "</TD></TR>";
-		echo "<TR><TD>&nbsp;</TD></TR>";
+		echo "<TR><TD>&nbsp;</TD></TR></table>";
+		fin_cadre_relief();
 	}
 
+	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 	echo "<TR><td style='text-align:$spip_lang_right;'>";
 	echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
 	echo "</TD></TR>";
 	echo "</TABLE>\n";
 
-	fin_cadre_relief();
+	fin_cadre_trait_couleur();
 }
 
 
diff --git a/ecrire/configuration.php3 b/ecrire/configuration.php3
index ba8455769c59a9af6f9dcf4c04bf7065278afc63..ea2bb1a5af2d6cb9ad332ae961c1fef2ddbd7055 100644
--- a/ecrire/configuration.php3
+++ b/ecrire/configuration.php3
@@ -59,7 +59,7 @@ avertissement_config();
 
 echo "<form action='configuration.php3' method='post'>";
 echo "<input type='hidden' name='changer_config' value='oui'>";
-debut_cadre_relief("racine-24.gif");
+debut_cadre_trait_couleur("racine-site-24.gif");
 
 	$nom_site = entites_html(lire_meta("nom_site"));
 	$adresse_site = entites_html(lire_meta("adresse_site"));
@@ -94,7 +94,7 @@ debut_cadre_relief("racine-24.gif");
 	echo "</TD></TR>";
 	echo "</TABLE>";
 
-fin_cadre_relief();
+fin_cadre_trait_couleur();
 
 echo "<p>&nbsp;<p>";
 
@@ -104,17 +104,14 @@ echo "<p>&nbsp;<p>";
 //
 
 if ($options == 'avancees') {
-	debut_cadre_enfonce("article-24.gif");
+	debut_cadre_trait_couleur("article-24.gif", false, "", _T('titre_les_articles'));
 
-	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-	echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' COLSPAN=2><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('titre_les_articles')."</FONT></B></TD></TR>";
-	echo "</table>";
 
 	//
 	// Champs optionnels des articles
 	//
 
-	debut_cadre_relief();
+	debut_cadre_relief("", false, "", _T('info_contenu_articles').aide ("confart"));
 
 	$articles_surtitre = lire_meta("articles_surtitre");
 	$articles_soustitre = lire_meta("articles_soustitre");
@@ -125,7 +122,6 @@ if ($options == 'avancees') {
 	$articles_urlref = lire_meta("articles_urlref");
 
 	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-	echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif' COLSPAN=2><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='black'>"._T('info_contenu_articles')."</FONT></B>".aide ("confart")."</TD></TR>";
 
 	echo "<TR><TD BACKGROUND='img_pack/rien.gif' COLSPAN='2' class='verdana2'>";
 	echo _T('texte_contenu_articles');
@@ -205,13 +201,11 @@ if ($options == 'avancees') {
 	// Articles post-dates
 	//
 
-	debut_cadre_relief();
+	debut_cadre_relief("", false, "", _T('titre_publication_articles_post_dates').aide ("confdates"));
 
 	$post_dates = lire_meta("post_dates");
 
 	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-	echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='black'>"._T('titre_publication_articles_post_dates')."</FONT></B> ".aide ("confdates")."</TD></TR>";
-
 	echo "<TR><TD class='verdana2'>";
 	echo _T('texte_publication_articles_post_dates');
 	echo "</TD></TR>";
@@ -228,10 +222,11 @@ if ($options == 'avancees') {
 	echo "</TABLE>\n";
 
 	fin_cadre_relief();
+
+	fin_cadre_trait_couleur();
 }
 
 
-if ($options == "avancees") fin_cadre_enfonce();
 
 echo "<p>";
 
@@ -240,14 +235,11 @@ echo "<p>";
 // Actives/desactiver les breves
 //
 
-debut_cadre_relief("breve-24.gif");
+debut_cadre_trait_couleur("breve-24.gif", false, "", _T('titre_breves').aide ("confbreves"));
 
 $activer_breves = lire_meta("activer_breves");
 
 echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>";
-echo _T('titre_breves')."</FONT></B> ".aide ("confbreves")."</TD></TR>";
-
 echo "<TR><TD class='verdana2'>";
 echo _T('texte_breves')."<p>";
 echo _T('info_breves');
@@ -265,7 +257,7 @@ echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS
 echo "</TD></TR>";
 echo "</TABLE>\n";
 
-fin_cadre_relief();
+fin_cadre_trait_couleur();
 
 echo "<p>";
 
@@ -276,7 +268,7 @@ echo "<p>";
 
 if ($options == "avancees") {
 
-	debut_cadre_relief("mot-cle-24.gif");
+	debut_cadre_trait_couleur("mot-cle-24.gif", false, "", _T('info_mots_cles'));
 
 	$articles_mots = lire_meta("articles_mots");
 	$config_precise_groupes = lire_meta("config_precise_groupes");
@@ -284,8 +276,6 @@ if ($options == "avancees") {
 	$forums_publics = lire_meta("forums_publics");
 
 	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-	echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('info_mots_cles')."</FONT></B> </TD></TR>";
-
 	echo "<TR><TD class='verdana2'>";
 	echo _T('texte_mots_cles')."<p>";
 	echo _T('info_question_mots_cles');
@@ -293,17 +283,27 @@ if ($options == "avancees") {
 
 	echo "<TR>";
 	echo "<TD align='center' class='verdana2'>";
-	afficher_choix('articles_mots', $articles_mots,
-		array('oui' => _T('item_utiliser_mots_cles'),
-			'non' => _T('item_non_utiliser_mots_cles')), " &nbsp; ");
-	echo "</FONT>";
-	echo "</TD></TR>";
 
-	if ($articles_mots != "non") {
 
-		echo "<TR><TD>&nbsp;</TD></TR>";
-		echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#000000'>"._T('titre_config_groupe_mots_cles')."</FONT></B></TD></TR>";
+		echo bouton_radio("articles_mots", "oui", _T('item_utiliser_mots_cles'), $articles_mots == "oui", "changeVisible(this.checked, 'mots-config', 'block', 'none');");
+		echo " &nbsp;";
+		echo bouton_radio("articles_mots", "non", _T('item_non_utiliser_mots_cles'), $articles_mots == "non", "changeVisible(this.checked, 'mots-config', 'none', 'block');");
 
+
+//	afficher_choix('articles_mots', $articles_mots,
+//		array('oui' => _T('item_utiliser_mots_cles'),
+//			'non' => _T('item_non_utiliser_mots_cles')), "<br />");
+	echo "</TD></TR></table>";
+
+	if ($articles_mots != "non") $style = "display: block;";
+	else $style = "display: none;";
+	
+		echo "<div id='mots-config' style='$style'>";
+		
+		echo "<p />";
+		debut_cadre_relief("", false, "", _T('titre_config_groupe_mots_cles'));
+
+		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 		echo "<TR><TD class='verdana2'>";
 		echo _T('texte_config_groupe_mots_cles');
 		echo "</TD></TR>";
@@ -313,12 +313,13 @@ if ($options == "avancees") {
 		afficher_choix('config_precise_groupes', $config_precise_groupes,
 			array('oui' => _T('item_utiliser_config_groupe_mots_cles'),
 				'non' => _T('item_non_utiliser_config_groupe_mots_cles')));
-		echo "</TD></TR>";
+		echo "</TD></TR></table>";
+		fin_cadre_relief();
 
 		if ($forums_publics != "non"){
-			echo "<TR><TD>&nbsp;</TD></TR>";
-			echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#000000'>"._T('titre_mots_cles_dans_forum')."</FONT></B></TD></TR>";
-
+			echo "<p />";
+			debut_cadre_relief("", false, "", _T('titre_mots_cles_dans_forum'));
+			echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 			echo "<TR><TD class='verdana2'>";
 			echo _T('texte_mots_cles_dans_forum');
 			echo "</TD></TR>";
@@ -330,15 +331,19 @@ if ($options == "avancees") {
 					'non' => _T('item_non_ajout_mots_cles')));
 			echo "</FONT>";
 			echo "</TD></TR>";
+			echo "</table>";
+			fin_cadre_relief();
 		}
-	}
+		echo "</div>";
+	
 
+	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 	echo "<TR><td style='text-align:$spip_lang_right;'>";
 	echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
 	echo "</TD></TR>";
 	echo "</TABLE>\n";
 
-	fin_cadre_relief();
+	fin_cadre_trait_couleur();
 
 	echo "<p>";
 }
@@ -348,7 +353,7 @@ if ($options == "avancees") {
 // Actives/desactiver systeme de syndication
 //
 
-debut_cadre_enfonce("site-24.gif");
+debut_cadre_trait_couleur("site-24.gif", false, "", _T('titre_referencement_sites').aide ("reference"));
 
 $activer_sites = lire_meta('activer_sites');
 $activer_syndic = lire_meta("activer_syndic");
@@ -357,91 +362,104 @@ $visiter_sites = lire_meta("visiter_sites");
 $moderation_sites = lire_meta("moderation_sites");
 
 echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('titre_referencement_sites')."</FONT></B>".aide ("reference")."</TD></TR>";
-
 
 echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
-afficher_choix('activer_sites', $activer_sites,
-	array('oui' => _T('item_gerer_annuaire_site_web'),
-	'non' => _T('item_non_gerer_annuaire_site_web')));
-echo "</TD></TR>\n";
 
+		echo bouton_radio("activer_sites", "oui", _T('item_gerer_annuaire_site_web'), $activer_sites == "oui", "changeVisible(this.checked, 'config-site', 'block', 'none');");
+		echo " &nbsp;";
+		echo bouton_radio("activer_sites", "non", _T('item_non_gerer_annuaire_site_web'), $activer_sites == "non", "changeVisible(this.checked, 'config-site', 'none', 'block');");
 
+echo "</TD></TR></table>\n";
 
-if ($activer_sites != 'non') {
-	//
+
+
+if ($activer_sites != 'non') $style = "display: block;";
+else $style = "display: none;";
+
+	echo "<div id='config-site' style='$style'>";
+	
 	// Utilisateurs autorises a proposer des sites references
 	//
-	if ($options == "avancees") {
+		echo "<p />";
+		debut_cadre_relief();
+		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 		echo "<TR><TD BACKGROUND='img_pack/rien.gif'>";
 		echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2 COLOR='#000000'>";
-		echo "<hr><p>"._T('info_question_proposer_site');
+		echo _T('info_question_proposer_site');
 			echo "<center><SELECT NAME='proposer_sites' CLASS='fondo' SIZE=1>\n";
 				echo "<OPTION".mySel('0',$proposer_sites).">"._T('item_choix_administrateurs')."\n";
 				echo "<OPTION".mySel('1',$proposer_sites).">"._T('item_choix_redacteurs')."\n";
 				echo "<OPTION".mySel('2',$proposer_sites).">"._T('item_choix_visiteurs')."\n";
 			echo "</SELECT></center><P>\n";
 		echo "</FONT>";
-		echo "</TD></TR>";
-	}
+		echo "</TD></TR></table>";
+		fin_cadre_relief();
 
-	echo "</TABLE>\n";
-
-	debut_cadre_relief();
-
-	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-
-	echo "<TR><TD BGCOLOR='EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#000000'>"._T('titre_syndication')."</FONT></B> ".aide ("rubsyn")."</TD></TR>";
 
-	//
-	// Reglage de la syndication
-	//
-	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
-	echo _T('texte_syndication');
-	echo "</TD></TR>";
-
-	echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
-	afficher_choix('activer_syndic', $activer_syndic,
-		array('oui' => _T('item_utiliser_syndication'),
-		'non' => _T('item_non_utiliser_syndication')));
+	if ($options == "avancees") {
+		debut_cadre_relief("", false, "", _T('titre_syndication').aide ("rubsyn"));
+	
+		echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
+		//
+		// Reglage de la syndication
+		//
+		echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='verdana2'>";
+		echo _T('texte_syndication');
+		echo "</TD></TR>";
+	
+		echo "<TR><TD BACKGROUND='img_pack/rien.gif' ALIGN='$spip_lang_left' class='verdana2'>";
 
-	if ($activer_syndic != "non" AND $options == "avancees") {
-		// Moderation par defaut des sites syndiques
-		echo "<p><hr><p align='$spip_lang_left'>";
-		echo _T('texte_liens_sites_syndiques')."<p>";
+			echo bouton_radio("activer_syndic", "oui", _T('item_utiliser_syndication'), $activer_syndic == "oui", "changeVisible(this.checked, 'config-syndic', 'block', 'none');");
+			echo "<br />";
+			echo bouton_radio("activer_syndic", "non", _T('item_non_utiliser_syndication'), $activer_syndic == "non", "changeVisible(this.checked, 'config-syndic', 'none', 'block');");
 
-		afficher_choix('moderation_sites', $moderation_sites,
-			array('oui' => _T('item_bloquer_liens_syndiques'),
-			'non' => _T('item_non_bloquer_liens_syndiques')));
 
-		// Si indexation, activer/desactiver pages recuperees
 
-		$activer_moteur = lire_meta("activer_moteur");
-		if ($activer_moteur == "oui") {
+	
+		if ($activer_syndic != "non") $style = "display: block;";
+		else $style = "display: none;";
+			
+			echo "<div id='config-syndic' style='$style'>";
+		
+			// Moderation par defaut des sites syndiques
 			echo "<p><hr><p align='$spip_lang_left'>";
-			echo _T('texte_utilisation_moteur_syndiques')." ";
-			echo "<blockquote><i>"._T('texte_utilisation_moteur_syndiques_2')."</i></blockquote><p>";
-
-			afficher_choix('visiter_sites', $visiter_sites,
-				array('non' => _T('item_limiter_recherche'),
-					'oui' => _T('item_non_limiter_recherche')));
-		}
+			echo _T('texte_liens_sites_syndiques')."<p>";
+	
+			afficher_choix('moderation_sites', $moderation_sites,
+				array('oui' => _T('item_bloquer_liens_syndiques'),
+				'non' => _T('item_non_bloquer_liens_syndiques')));
+	
+			// Si indexation, activer/desactiver pages recuperees
+	
+			$activer_moteur = lire_meta("activer_moteur");
+			if ($activer_moteur == "oui") {
+				echo "<p><hr><p align='$spip_lang_left'>";
+				echo _T('texte_utilisation_moteur_syndiques')." ";
+				echo "<blockquote><i>"._T('texte_utilisation_moteur_syndiques_2')."</i></blockquote><p>";
+	
+				afficher_choix('visiter_sites', $visiter_sites,
+					array('non' => _T('item_limiter_recherche'),
+						'oui' => _T('item_non_limiter_recherche')));
+			}
+			echo "</div>";
+		
+		echo "</TD></TR>\n";
+	
+		echo "</TABLE>\n";
+	
+		fin_cadre_relief();
 	}
-	echo "</TD></TR>\n";
+	echo "</div>";
 
-	echo "</TABLE>\n";
 
-	fin_cadre_relief();
-
-	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-}
 
+echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
 echo "<TR><td style='text-align:$spip_lang_right;'>";
 echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
 echo "</TD></TR>";
 echo "</TABLE>\n";
 
-fin_cadre_enfonce();
+fin_cadre_trait_couleur();
 
 echo "<p>";
 
@@ -450,13 +468,12 @@ echo "<p>";
 // Gestion des documents joints
 //
 
-debut_cadre_relief("doc-24.gif");
+debut_cadre_trait_couleur("doc-24.gif", false, "", _T('titre_documents_joints'));
 
 $documents_rubrique = lire_meta("documents_rubrique");
 $documents_article = lire_meta("documents_article");
 
 echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#FFFFFF'>"._T('titre_documents_joints')."</FONT></B> </TD></TR>";
 
 echo "<TR><TD class='verdana2'>";
 echo _T('texte_documents_joints');
@@ -480,7 +497,7 @@ echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS
 echo "</TD></TR>";
 echo "</TABLE>\n";
 
-fin_cadre_relief();
+fin_cadre_trait_couleur();
 
 echo "<p>";
 
diff --git a/ecrire/forum.php3 b/ecrire/forum.php3
index a0f06317bf870365985fde001697e840967772c1..ed0119e8dd092128aceb7283fba3e9aa17e5f89f 100644
--- a/ecrire/forum.php3
+++ b/ecrire/forum.php3
@@ -13,6 +13,9 @@ if ($admin=='oui') {
 	$urlforum = 'forum.php3';
 }
 
+// Afficher onglet si admin et forum_admin actif
+if ($connect_statut == "0minirezo" AND lire_meta('forum_prive_admin') == 'oui') barre_onglets("forums", $statutforum);
+
 debut_gauche();
 
 
diff --git a/ecrire/img_pack/admin-12.gif b/ecrire/img_pack/admin-12.gif
index 5b93b97f2d9738391e84b85fa9a0d3450461a833..64634fcf17c7cae8800d4c88a83985cfe9aaecdc 100644
Binary files a/ecrire/img_pack/admin-12.gif and b/ecrire/img_pack/admin-12.gif differ
diff --git a/ecrire/img_pack/administration-48.gif b/ecrire/img_pack/administration-48.gif
deleted file mode 100644
index b36be00137f11a95b45c692bcaff18073c73f56d..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/administration-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/administration-48.png b/ecrire/img_pack/administration-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..e9a3e7fe30eb4729bf5c2cdde17cd205bbbdae01
Binary files /dev/null and b/ecrire/img_pack/administration-48.png differ
diff --git a/ecrire/img_pack/aide-48.gif b/ecrire/img_pack/aide-48.gif
deleted file mode 100644
index 02b201ce6ac9c7ed70a2b74d4cd19411b12e560f..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/aide-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/aide-48.png b/ecrire/img_pack/aide-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..c7c90aa5addb19074a647582e2c5c94d1c1edf72
Binary files /dev/null and b/ecrire/img_pack/aide-48.png differ
diff --git a/ecrire/img_pack/aide-48_rtl.gif b/ecrire/img_pack/aide-48_rtl.gif
deleted file mode 100644
index a8951c5713e38f507fbf9776d5380f4b7adfbe6f..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/aide-48_rtl.gif and /dev/null differ
diff --git a/ecrire/img_pack/aide-48_rtl.png b/ecrire/img_pack/aide-48_rtl.png
new file mode 100644
index 0000000000000000000000000000000000000000..1f9b8757be8ecc788312837e0416f28abc6e659a
Binary files /dev/null and b/ecrire/img_pack/aide-48_rtl.png differ
diff --git a/ecrire/img_pack/annonce.gif b/ecrire/img_pack/annonce.gif
new file mode 100644
index 0000000000000000000000000000000000000000..4d34646e5ef0a0fd9e4601cf24b636d1e2e58c2e
Binary files /dev/null and b/ecrire/img_pack/annonce.gif differ
diff --git a/ecrire/img_pack/article-24.gif b/ecrire/img_pack/article-24.gif
index 83f4186bf78d5d7d48089ce4a22fdcb9ec09f69c..32a31a1f647036e514ba63a77e7f9efd92d48ec0 100644
Binary files a/ecrire/img_pack/article-24.gif and b/ecrire/img_pack/article-24.gif differ
diff --git a/ecrire/img_pack/asuivre-48.gif b/ecrire/img_pack/asuivre-48.gif
deleted file mode 100644
index 7edee1b884f7f082b554b4594b928103751777e1..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/asuivre-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/asuivre-48.png b/ecrire/img_pack/asuivre-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..32c4cd112d412b6a2457461c72d9dc2ae9fca3f8
Binary files /dev/null and b/ecrire/img_pack/asuivre-48.png differ
diff --git a/ecrire/img_pack/barre-couleurs.gif b/ecrire/img_pack/barre-couleurs.gif
index e28927ff870bb785cc42676c07f95f46cecf07a7..b68731ae92a0e2be8ddcbdae218d472969f60bbf 100644
Binary files a/ecrire/img_pack/barre-couleurs.gif and b/ecrire/img_pack/barre-couleurs.gif differ
diff --git a/ecrire/img_pack/base-24.gif b/ecrire/img_pack/base-24.gif
index 7e154ba02f00542ee9d4920bf13257653d2df394..dba1364766555a1ca537906b41613a5ffa07e01d 100644
Binary files a/ecrire/img_pack/base-24.gif and b/ecrire/img_pack/base-24.gif differ
diff --git a/ecrire/img_pack/breve-24.gif b/ecrire/img_pack/breve-24.gif
index b4273aa5b8e574cae8ac4af12eb2b264096c8117..9ab1f057d6eff539f20de9b806a3e0db7c5b6dae 100644
Binary files a/ecrire/img_pack/breve-24.gif and b/ecrire/img_pack/breve-24.gif differ
diff --git a/ecrire/img_pack/cadre-b.gif b/ecrire/img_pack/cadre-b.gif
deleted file mode 100644
index afaf01de744229d1b87697672366f1e57abf014b..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-b.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-bd.gif b/ecrire/img_pack/cadre-bd.gif
deleted file mode 100644
index f094775b9fd922d38579770ded839437045405cd..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-bd.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-bg.gif b/ecrire/img_pack/cadre-bg.gif
deleted file mode 100644
index dcc20c7e1ccfa8311346083af6cfefcd334620f7..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-bg.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-d.gif b/ecrire/img_pack/cadre-d.gif
deleted file mode 100644
index aa618f7a454d2fb8271cf86b50d45a86816d943f..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-d.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-g.gif b/ecrire/img_pack/cadre-g.gif
deleted file mode 100644
index 41643f5c281f51a283b8fc2a03eaa33c29f26187..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-g.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-h.gif b/ecrire/img_pack/cadre-h.gif
deleted file mode 100644
index 2857d908c34c66c9ffb4fbd3c30a76011c411177..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-h.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-hd.gif b/ecrire/img_pack/cadre-hd.gif
deleted file mode 100644
index 7e35ab9297ee84f3827f74bd26ecba1df9b5d115..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-hd.gif and /dev/null differ
diff --git a/ecrire/img_pack/cadre-hg.gif b/ecrire/img_pack/cadre-hg.gif
deleted file mode 100644
index edb638f50508316c15646e1e59bebcd57164dd02..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/cadre-hg.gif and /dev/null differ
diff --git a/ecrire/img_pack/cal-messagerie.gif b/ecrire/img_pack/cal-messagerie.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6bf67514b77e9b89cc2a967a583633ead3fcc7e0
Binary files /dev/null and b/ecrire/img_pack/cal-messagerie.gif differ
diff --git a/ecrire/img_pack/cal-suivi.gif b/ecrire/img_pack/cal-suivi.gif
new file mode 100644
index 0000000000000000000000000000000000000000..2aa32394a4fa7be0dcdf787ecea2bd82ff0f0c2d
Binary files /dev/null and b/ecrire/img_pack/cal-suivi.gif differ
diff --git a/ecrire/img_pack/choix-layout.gif b/ecrire/img_pack/choix-layout.gif
deleted file mode 100644
index bd43004d154834f57b858baa545bef27a497990c..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/choix-layout.gif and /dev/null differ
diff --git a/ecrire/img_pack/choix-layout.png b/ecrire/img_pack/choix-layout.png
new file mode 100644
index 0000000000000000000000000000000000000000..3e0417f270562034e55c70a3df9c695eb23a8c5d
Binary files /dev/null and b/ecrire/img_pack/choix-layout.png differ
diff --git a/ecrire/img_pack/choix-layout_rtl.gif b/ecrire/img_pack/choix-layout_rtl.gif
deleted file mode 100644
index 7d6b2b4ed146fd829a61adc8099cce2ace1c4ce1..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/choix-layout_rtl.gif and /dev/null differ
diff --git a/ecrire/img_pack/choix-layout_rtl.png b/ecrire/img_pack/choix-layout_rtl.png
new file mode 100644
index 0000000000000000000000000000000000000000..a8808e505badc1e9dc957737f6f123973bb1a235
Binary files /dev/null and b/ecrire/img_pack/choix-layout_rtl.png differ
diff --git a/ecrire/img_pack/choix-layout_rtl_he.gif b/ecrire/img_pack/choix-layout_rtl_he.gif
deleted file mode 100644
index 1b755cec53c97bf53baf42a5b326b422ab80bd95..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/choix-layout_rtl_he.gif and /dev/null differ
diff --git a/ecrire/img_pack/choix-layout_rtl_he.png b/ecrire/img_pack/choix-layout_rtl_he.png
new file mode 100644
index 0000000000000000000000000000000000000000..5734c4ddb002dc26937be1a452f497ff2cdccb33
Binary files /dev/null and b/ecrire/img_pack/choix-layout_rtl_he.png differ
diff --git a/ecrire/img_pack/deconnecter-24.gif b/ecrire/img_pack/deconnecter-24.gif
index 1db9e40963d5ab8051b5c3654f511279a2924a55..3df90e04dacec6c45ff3bf9b11be5c2bc745f876 100644
Binary files a/ecrire/img_pack/deconnecter-24.gif and b/ecrire/img_pack/deconnecter-24.gif differ
diff --git a/ecrire/img_pack/deconnecter-24_rtl.gif b/ecrire/img_pack/deconnecter-24_rtl.gif
index 8c83a4c4be0933524be3cf03a42231b433d267c7..c6f5141d11080d4f03414d5e8d26415fbfae93b9 100644
Binary files a/ecrire/img_pack/deconnecter-24_rtl.gif and b/ecrire/img_pack/deconnecter-24_rtl.gif differ
diff --git a/ecrire/img_pack/documents-48.gif b/ecrire/img_pack/documents-48.gif
deleted file mode 100644
index 184570628e71dacd527ddc5af2d309d0c52ab685..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/documents-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/documents-48.png b/ecrire/img_pack/documents-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..47497d9f452cb101256ee47c314515476abaf09e
Binary files /dev/null and b/ecrire/img_pack/documents-48.png differ
diff --git a/ecrire/img_pack/documents-48_rtl.gif b/ecrire/img_pack/documents-48_rtl.gif
deleted file mode 100644
index 4f2b252be8cea76aa4a2d36358da5cbc751eee2a..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/documents-48_rtl.gif and /dev/null differ
diff --git a/ecrire/img_pack/documents-48_rtl.png b/ecrire/img_pack/documents-48_rtl.png
new file mode 100644
index 0000000000000000000000000000000000000000..a279cd36e27a336a26eef8a31450925db1b57fb2
Binary files /dev/null and b/ecrire/img_pack/documents-48_rtl.png differ
diff --git a/ecrire/img_pack/fiche-perso-24.gif b/ecrire/img_pack/fiche-perso-24.gif
index 77aaefec53a86fbd265462f1cef2ed90dd95fee4..803d6ce5f1d590ab4b1c76443a10dcf47b723ff2 100644
Binary files a/ecrire/img_pack/fiche-perso-24.gif and b/ecrire/img_pack/fiche-perso-24.gif differ
diff --git a/ecrire/img_pack/fiche-perso-48.gif b/ecrire/img_pack/fiche-perso-48.gif
deleted file mode 100644
index efc83f63950f917f5350d1b0894a4ece0b161479..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/fiche-perso-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/fiche-perso.gif b/ecrire/img_pack/fiche-perso.gif
new file mode 100644
index 0000000000000000000000000000000000000000..e4b554edd9d54916d1fd7af0f10391e6200c1305
Binary files /dev/null and b/ecrire/img_pack/fiche-perso.gif differ
diff --git a/ecrire/img_pack/fond-agenda.gif b/ecrire/img_pack/fond-agenda.gif
new file mode 100644
index 0000000000000000000000000000000000000000..5260c3c67882ae2cbef3e72a5454d7e8149bf338
Binary files /dev/null and b/ecrire/img_pack/fond-agenda.gif differ
diff --git a/ecrire/img_pack/fond-gris-anim.gif b/ecrire/img_pack/fond-gris-anim.gif
new file mode 100644
index 0000000000000000000000000000000000000000..b8aa8e340bd8c4cc499ef03caef6b3c3c65deb93
Binary files /dev/null and b/ecrire/img_pack/fond-gris-anim.gif differ
diff --git a/ecrire/img_pack/interface-display.gif b/ecrire/img_pack/interface-display.gif
new file mode 100644
index 0000000000000000000000000000000000000000..d438659f3949d1632a92fb6e8d2cd8ade671d62c
Binary files /dev/null and b/ecrire/img_pack/interface-display.gif differ
diff --git a/ecrire/img_pack/loupe.gif b/ecrire/img_pack/loupe.gif
new file mode 100644
index 0000000000000000000000000000000000000000..49b8c11d9224dd9244b35eeccf5d0833d4848216
Binary files /dev/null and b/ecrire/img_pack/loupe.gif differ
diff --git a/ecrire/img_pack/message.gif b/ecrire/img_pack/message.gif
new file mode 100644
index 0000000000000000000000000000000000000000..d4c083428d3b93a6bfcf78376359398ea7f39721
Binary files /dev/null and b/ecrire/img_pack/message.gif differ
diff --git a/ecrire/img_pack/messagerie-48.gif b/ecrire/img_pack/messagerie-48.gif
deleted file mode 100644
index b47352d72d8b99139eac29a831f9b1509926e9a9..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/messagerie-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/messagerie-48.png b/ecrire/img_pack/messagerie-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..83c734aa273beb5e3b27e7815289563a4248733e
Binary files /dev/null and b/ecrire/img_pack/messagerie-48.png differ
diff --git a/ecrire/img_pack/mot-cle-24.gif b/ecrire/img_pack/mot-cle-24.gif
index 0fac007bb5e73b98f4bf023c27d09dd578cd4276..506f79e9d443fada9e82e5a652403ad45e32252a 100644
Binary files a/ecrire/img_pack/mot-cle-24.gif and b/ecrire/img_pack/mot-cle-24.gif differ
diff --git a/ecrire/img_pack/naviguer-site.gif b/ecrire/img_pack/naviguer-site.gif
index 35f13e0f204bf82a458035de16d01487017dacaf..d23b1d2782bc460e5b8d36b4c46c0325f31f9a08 100644
Binary files a/ecrire/img_pack/naviguer-site.gif and b/ecrire/img_pack/naviguer-site.gif differ
diff --git a/ecrire/img_pack/pave-blanc-16.png b/ecrire/img_pack/pave-blanc-16.png
deleted file mode 100644
index 363993cc9f6d251088aa0cf42d4c5ecf94ecdaf8..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-blanc-16.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-blanc-24.png b/ecrire/img_pack/pave-blanc-24.png
deleted file mode 100644
index 742b554de819cc7d3e5e3cad7990d4533be8159f..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-blanc-24.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-blanc-36.png b/ecrire/img_pack/pave-blanc-36.png
deleted file mode 100644
index d57ed9bd948f988dd63f80fcfb6c83d253caa675..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-blanc-36.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-blanc-48.png b/ecrire/img_pack/pave-blanc-48.png
deleted file mode 100644
index 8bf1014b7e765f00e7d43c731d3b7293eafa2abc..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-blanc-48.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-gris-16.png b/ecrire/img_pack/pave-gris-16.png
deleted file mode 100644
index 07361cb5d2c0a06e5a41a6f630a5e7c45307e768..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-gris-16.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-gris-24.png b/ecrire/img_pack/pave-gris-24.png
deleted file mode 100644
index 6a3dc9a50be2e18afa7a3adc3d351746412a02a2..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-gris-24.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-gris-36.png b/ecrire/img_pack/pave-gris-36.png
deleted file mode 100644
index 6e4d873bb4699e0d6e8d17990bb94882ce7b7135..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-gris-36.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-gris-48.png b/ecrire/img_pack/pave-gris-48.png
deleted file mode 100644
index 39b2772f40e2d0d14a2a7459869aa7807282fbaf..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-gris-48.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-rouge-24.png b/ecrire/img_pack/pave-rouge-24.png
deleted file mode 100644
index 71d6382ef4c32b6375754f216d7695b0f062a4dd..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-rouge-24.png and /dev/null differ
diff --git a/ecrire/img_pack/pave-rouge-36.png b/ecrire/img_pack/pave-rouge-36.png
deleted file mode 100644
index 7c18fb8a681d94f0599cdaafa489836baaf1d69d..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/pave-rouge-36.png and /dev/null differ
diff --git a/ecrire/img_pack/pense-bete.gif b/ecrire/img_pack/pense-bete.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c903332dfc1c5f3a295b72a8e8813631305491f9
Binary files /dev/null and b/ecrire/img_pack/pense-bete.gif differ
diff --git a/ecrire/img_pack/puce-blanche-breve.gif b/ecrire/img_pack/puce-blanche-breve.gif
index 597b7e52c7d4c23c46d45fda978729f21a578eae..c0404d9fb682c57a42ab41cfd2cec9df7b16b34c 100644
Binary files a/ecrire/img_pack/puce-blanche-breve.gif and b/ecrire/img_pack/puce-blanche-breve.gif differ
diff --git a/ecrire/img_pack/puce-blanche.gif b/ecrire/img_pack/puce-blanche.gif
index 6f2e0f34b88c929908c0bd994e75d4b715634af9..800fcd1ccb740f7c0a31729d7175bbdb8a8f774d 100644
Binary files a/ecrire/img_pack/puce-blanche.gif and b/ecrire/img_pack/puce-blanche.gif differ
diff --git a/ecrire/img_pack/puce-orange-breve.gif b/ecrire/img_pack/puce-orange-breve.gif
index 11fb0340d810ec03fe075fff33b4ec4969c2dfb3..70d0ec8b28deeea7fee6680c190700c140386e1d 100644
Binary files a/ecrire/img_pack/puce-orange-breve.gif and b/ecrire/img_pack/puce-orange-breve.gif differ
diff --git a/ecrire/img_pack/puce-orange.gif b/ecrire/img_pack/puce-orange.gif
index de6cfea24a658c45075b4dc651057fd3e3ba7776..efee1f26239149169632f3286b71dd6708433843 100644
Binary files a/ecrire/img_pack/puce-orange.gif and b/ecrire/img_pack/puce-orange.gif differ
diff --git a/ecrire/img_pack/puce-poubelle-breve.gif b/ecrire/img_pack/puce-poubelle-breve.gif
index 6318666acfc7cfe33fdd1d46f81be9e73e302fe1..cbd60426afe89b3bef131b9b20c08e9c5748a429 100644
Binary files a/ecrire/img_pack/puce-poubelle-breve.gif and b/ecrire/img_pack/puce-poubelle-breve.gif differ
diff --git a/ecrire/img_pack/puce-poubelle.gif b/ecrire/img_pack/puce-poubelle.gif
index 0f615d5774f87c1fbf9d10579c0f1c8da9d12b88..36370094b6cbb075bc221448cd715a4e5a6fdd49 100644
Binary files a/ecrire/img_pack/puce-poubelle.gif and b/ecrire/img_pack/puce-poubelle.gif differ
diff --git a/ecrire/img_pack/puce-rouge-breve.gif b/ecrire/img_pack/puce-rouge-breve.gif
index 6f68035c2d3764d0b686f2f708913a325785afab..c3d310f975fabad4969bec4bcb68ed622cf5b10d 100644
Binary files a/ecrire/img_pack/puce-rouge-breve.gif and b/ecrire/img_pack/puce-rouge-breve.gif differ
diff --git a/ecrire/img_pack/puce-rouge.gif b/ecrire/img_pack/puce-rouge.gif
index a8aa20fdda596be197ed44fb1ca6327fe8e06d55..10a89da9efca373b75078551682b218aed11ad04 100644
Binary files a/ecrire/img_pack/puce-rouge.gif and b/ecrire/img_pack/puce-rouge.gif differ
diff --git a/ecrire/img_pack/puce-verte-breve.gif b/ecrire/img_pack/puce-verte-breve.gif
index f4ef389a12b71effd81a16c7e677ea47717c62f1..2c83a13ca74d5011e6d403aab74c470b0d6a2376 100644
Binary files a/ecrire/img_pack/puce-verte-breve.gif and b/ecrire/img_pack/puce-verte-breve.gif differ
diff --git a/ecrire/img_pack/puce-verte.gif b/ecrire/img_pack/puce-verte.gif
index f18e77d33d5a3ba0612f2a9c7a5c8b5ecd3f2b62..eb6e554d3e38810acdaa6938d1ef4f9331f4dace 100644
Binary files a/ecrire/img_pack/puce-verte.gif and b/ecrire/img_pack/puce-verte.gif differ
diff --git a/ecrire/img_pack/racine-site-24.gif b/ecrire/img_pack/racine-site-24.gif
index 06d8632d70fff838c3a5745195152d7dc1277d6f..04957d4fb37d45db77e826263976ad096608092b 100644
Binary files a/ecrire/img_pack/racine-site-24.gif and b/ecrire/img_pack/racine-site-24.gif differ
diff --git a/ecrire/img_pack/rayures-danger.gif b/ecrire/img_pack/rayures-danger.gif
new file mode 100644
index 0000000000000000000000000000000000000000..1f8d50ef05e663f97ffcc85de7dc3a059f5e555d
Binary files /dev/null and b/ecrire/img_pack/rayures-danger.gif differ
diff --git a/ecrire/img_pack/rayures-danger.png b/ecrire/img_pack/rayures-danger.png
new file mode 100644
index 0000000000000000000000000000000000000000..1710a7927635ff42c74675e633520d6f91e9eebf
Binary files /dev/null and b/ecrire/img_pack/rayures-danger.png differ
diff --git a/ecrire/img_pack/rayures-gris.gif b/ecrire/img_pack/rayures-gris.gif
new file mode 100644
index 0000000000000000000000000000000000000000..8e5d215d20570bc9b03d899d1f17bf3842691cdc
Binary files /dev/null and b/ecrire/img_pack/rayures-gris.gif differ
diff --git a/ecrire/img_pack/redac-12.gif b/ecrire/img_pack/redac-12.gif
index a194f92115c42de2d7bf737f832e28e95fe4b400..a93970419a2e6abeebaf82e937fce6511224e8b8 100644
Binary files a/ecrire/img_pack/redac-12.gif and b/ecrire/img_pack/redac-12.gif differ
diff --git a/ecrire/img_pack/redacteurs-24.gif b/ecrire/img_pack/redacteurs-24.gif
index b558f83c6af60332af4d3340703ce6aca7c291dc..de7cb23883b7cfa39766caa0246577c1dcb199d6 100644
Binary files a/ecrire/img_pack/redacteurs-24.gif and b/ecrire/img_pack/redacteurs-24.gif differ
diff --git a/ecrire/img_pack/redacteurs-48.gif b/ecrire/img_pack/redacteurs-48.gif
deleted file mode 100644
index 8fd47e993eee01dc1ed17ceeb045213170f0a547..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/redacteurs-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/redacteurs-48.png b/ecrire/img_pack/redacteurs-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..61e1c8542a2398befa1ec530aeb91db4c11a70ec
Binary files /dev/null and b/ecrire/img_pack/redacteurs-48.png differ
diff --git a/ecrire/img_pack/rubrique-12.gif b/ecrire/img_pack/rubrique-12.gif
index 4501c91912ffb3253f7777b80e8ecfde1af0fa56..9ecba432ea759652a641e89099f0f792ac54a3cd 100644
Binary files a/ecrire/img_pack/rubrique-12.gif and b/ecrire/img_pack/rubrique-12.gif differ
diff --git a/ecrire/img_pack/rubrique-24.gif b/ecrire/img_pack/rubrique-24.gif
index 2c1b67ac2f2b31acb591f9f1ec74b47bb64bb06d..fb8f4b49ae55937b8fe01c24ef7203d4f1cb0735 100644
Binary files a/ecrire/img_pack/rubrique-24.gif and b/ecrire/img_pack/rubrique-24.gif differ
diff --git a/ecrire/img_pack/rv-12.gif b/ecrire/img_pack/rv-12.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c172c116941589afe3b4a2b14ed2436bdaf8a390
Binary files /dev/null and b/ecrire/img_pack/rv-12.gif differ
diff --git a/ecrire/img_pack/rv.gif b/ecrire/img_pack/rv.gif
new file mode 100644
index 0000000000000000000000000000000000000000..db24b9c84efb79bf47fb2a843c6d1379744846ea
Binary files /dev/null and b/ecrire/img_pack/rv.gif differ
diff --git a/ecrire/img_pack/secteur-12.gif b/ecrire/img_pack/secteur-12.gif
new file mode 100644
index 0000000000000000000000000000000000000000..9c4c2ecbce5a9ced2bb7f1af04a7b78d637b047d
Binary files /dev/null and b/ecrire/img_pack/secteur-12.gif differ
diff --git a/ecrire/img_pack/secteur-24.gif b/ecrire/img_pack/secteur-24.gif
index 0024f01620a3b85f0e83554c3a205a9bad1c93ac..82360d945bcd63d635de3f41b2c1684661e0ce2a 100644
Binary files a/ecrire/img_pack/secteur-24.gif and b/ecrire/img_pack/secteur-24.gif differ
diff --git a/ecrire/img_pack/set-ecran-etroit.gif b/ecrire/img_pack/set-ecran-etroit.gif
new file mode 100644
index 0000000000000000000000000000000000000000..4a624b9f1c3ffa5b9f2409c94fc3e5c84296c33d
Binary files /dev/null and b/ecrire/img_pack/set-ecran-etroit.gif differ
diff --git a/ecrire/img_pack/set-ecran.gif b/ecrire/img_pack/set-ecran.gif
index 92c5e6cf92e498b24fba973b50312205d58d82f0..fd0d86592a545850e7ff354136f6ff0d828a43e0 100644
Binary files a/ecrire/img_pack/set-ecran.gif and b/ecrire/img_pack/set-ecran.gif differ
diff --git a/ecrire/img_pack/site-24.gif b/ecrire/img_pack/site-24.gif
index 32d2517247142278f800bb35572b37e2520c4b50..11f9350c3be9f87ba63ef08dc21ad1607be30215 100644
Binary files a/ecrire/img_pack/site-24.gif and b/ecrire/img_pack/site-24.gif differ
diff --git a/ecrire/img_pack/statistiques-48.gif b/ecrire/img_pack/statistiques-48.gif
deleted file mode 100755
index 9b91c0a6ff8f90e76b433136772c73478736027a..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/statistiques-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/statistiques-48.png b/ecrire/img_pack/statistiques-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..1bcd5962ef5025bee553cac11ee4efa2c9e79e92
Binary files /dev/null and b/ecrire/img_pack/statistiques-48.png differ
diff --git a/ecrire/img_pack/suivi-48.gif b/ecrire/img_pack/suivi-48.gif
deleted file mode 100644
index 1bed4b985cf631e53b8f7e6217cda4dda69fab09..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/suivi-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/tout-site.gif b/ecrire/img_pack/tout-site.gif
new file mode 100644
index 0000000000000000000000000000000000000000..caa4d9f0de5eeb9d85a8779979c9bd7287a2ecc2
Binary files /dev/null and b/ecrire/img_pack/tout-site.gif differ
diff --git a/ecrire/img_pack/triangle-droite.gif b/ecrire/img_pack/triangle-droite.gif
new file mode 100644
index 0000000000000000000000000000000000000000..3fdbd266c8212e1e0f9c3f67e4831ac0d47d1831
Binary files /dev/null and b/ecrire/img_pack/triangle-droite.gif differ
diff --git a/ecrire/img_pack/triangle-droite_rtl.gif b/ecrire/img_pack/triangle-droite_rtl.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6a090c3ca3eee5be8dec1f9595d9d5843a83bf3b
Binary files /dev/null and b/ecrire/img_pack/triangle-droite_rtl.gif differ
diff --git a/ecrire/img_pack/visit-12.gif b/ecrire/img_pack/visit-12.gif
index 522ae964e67d73777bcc6ccef887e7cadabe4d89..329148d8bb55d2206550cf5da302b31ac38ea55a 100644
Binary files a/ecrire/img_pack/visit-12.gif and b/ecrire/img_pack/visit-12.gif differ
diff --git a/ecrire/img_pack/visiter-48.gif b/ecrire/img_pack/visiter-48.gif
deleted file mode 100644
index 83accc94ae548cc547fbba3ab8064e0ae945f5ad..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/visiter-48.gif and /dev/null differ
diff --git a/ecrire/img_pack/visiter-48.png b/ecrire/img_pack/visiter-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..51564610e2567dd666703a29ecfe448798e1e3e4
Binary files /dev/null and b/ecrire/img_pack/visiter-48.png differ
diff --git a/ecrire/img_pack/visiter-48_rtl.gif b/ecrire/img_pack/visiter-48_rtl.gif
deleted file mode 100644
index e5d55ac6e12d29a8b4b7d0844dc94799ff46b4a3..0000000000000000000000000000000000000000
Binary files a/ecrire/img_pack/visiter-48_rtl.gif and /dev/null differ
diff --git a/ecrire/img_pack/visiter-48_rtl.png b/ecrire/img_pack/visiter-48_rtl.png
new file mode 100644
index 0000000000000000000000000000000000000000..25860b2af83ef8dfb7131a802fde79b694483256
Binary files /dev/null and b/ecrire/img_pack/visiter-48_rtl.png differ
diff --git a/ecrire/inc.php3 b/ecrire/inc.php3
index d9f3a1e1a18f3c1f3a6dc894b0a8881bf99a892a..6f01d80a1ad8b7ba8e0b6848972b592ca0da76fe 100644
--- a/ecrire/inc.php3
+++ b/ecrire/inc.php3
@@ -67,96 +67,54 @@ $options      = $prefs['options'];
 $spip_display = $prefs['display'];
 
 switch ($prefs['couleur']) {
+	case 6:
+		/// Jaune
+		$couleur_foncee="#9DBA00";
+		$couleur_claire="#C5E41C";
+		$couleur_lien="#657701";
+		$couleur_lien_off="#A6C113";
+		break;
 	case 1:
-		/// Vert
-		$couleur_foncee="#02531B";
-		$couleur_claire="#CFFEDE";
-		$couleur_lien_off="#304C38";
-		$couleur_lien="#854270";
+		/// Violet clair
+		$couleur_foncee="#AA015D";
+		$couleur_claire="#DF87C1";
+		$couleur_lien="#E95503";
+		$couleur_lien_off="#8F004D";
 		break;
 	case 2:
-		/// Rouge
-		$couleur_foncee="#640707";
-		$couleur_claire="#FFE0E0";
-		$couleur_lien="#346868";
-		$couleur_lien_off="#684747";
+		/// Orange
+		$couleur_foncee="#D64F04";
+		$couleur_claire="#F9A20E";
+		$couleur_lien="#81A0C1";
+		$couleur_lien_off="#FF5B00";
 		break;
 	case 3:
-		/// Jaune
-		$couleur_foncee="#666500";
-		$couleur_claire="#FFFFE0";
-		$couleur_lien="#65659C";
-		$couleur_lien_off="#6A6A43";
+		/// Vert-eau
+		$couleur_foncee="#299B9A";
+		$couleur_claire="#87DFDE";
+		$couleur_lien="#5E0283";
+		$couleur_lien_off="#472854";
 		break;
 	case 4:
-		/// Violet
-		$couleur_foncee="#340049";
-		$couleur_claire="#F9EBFF";
-		$couleur_lien="#396B25";
-		$couleur_lien_off="#472854";
+		/// Bleu pastelle
+		$couleur_foncee="#127896";
+		$couleur_claire="#48B4D3";
+		$couleur_lien="#869100";
+		$couleur_lien_off="#5B55A0";
 		break;
 	case 5:
 		/// Gris
-		$couleur_foncee="#3F3F3F";
-		$couleur_claire="#F2F2F2";
+		$couleur_foncee="#727D87";
+		$couleur_claire="#C0CAD4";
 		$couleur_lien="#854270";
 		$couleur_lien_off="#666666";
 		break;
-	case 6:
-		/// Bleu
-		$couleur_foncee="#3874B0";
-		$couleur_claire="#EDF3FE";
-		$couleur_lien="#814E1B";
-		$couleur_lien_off="#435E79";
-		break;
-	case 7:
-		/// Bleu pastelle
-		$couleur_foncee="#766CF6";
-		$couleur_claire="#EBE9FF";
-		$couleur_lien="#869100";
-		$couleur_lien_off="#5B55A0";
-		break;
-	case 8:
-		/// Vert pastelles
-		$couleur_foncee="#009F3C";
-		$couleur_claire="#E2FDEC";
-		$couleur_lien="#EE0094";
-		$couleur_lien_off="#02722C";
-		break;
-	case 9:
-		/// Rouge vif
-		$couleur_foncee="#FF0000";
-		$couleur_claire="#FFEDED";
-		$couleur_lien="#D302CE";
-		$couleur_lien_off="#D40202";
-		break;
-	case 10:
-		/// Orange
-		$couleur_foncee="#E95503";
-		$couleur_claire="#FFF2EB";
-		$couleur_lien="#81A0C1";
-		$couleur_lien_off="#FF5B00";
-		break;
-	case 11:
-		/// Violet clair
-		$couleur_foncee="#CD006F";
-		$couleur_claire="#FDE5F2";
-		$couleur_lien="#E95503";
-		$couleur_lien_off="#8F004D";
-		break;
-	case 12:
-		/// Marron
-		$couleur_foncee="#8C6635";
-		$couleur_claire="#F5EEE5";
-		$couleur_lien="#1A64DF";
-		$couleur_lien_off="#955708";
-		break;
 	default:
-		/// Bleu
-		$couleur_foncee="#3874B0";
-		$couleur_claire="#EDF3FE";
-		$couleur_lien="#814E1B";
-		$couleur_lien_off="#435E79";
+		/// Jaune
+		$couleur_foncee="#9DBA00";
+		$couleur_claire="#C5E41C";
+		$couleur_lien="#116E95";
+		$couleur_lien_off="#50A4C7";
 }
 
 
diff --git a/ecrire/inc_agenda.php3 b/ecrire/inc_agenda.php3
index 31eee5270cef954e77a3a9f95172a47f7cbb632e..f58f0ca54dddd55d89982b0d2fdb05b7e6ac4dd4 100644
--- a/ecrire/inc_agenda.php3
+++ b/ecrire/inc_agenda.php3
@@ -92,10 +92,10 @@ function agenda ($mois, $annee, $jour_ved, $mois_ved, $annee_ved, $semaine = fal
 				}
 				else {
 					if ($jour_semaine == 7) {
-						$couleur_fond = $couleur_claire;
-						$couleur = "#aaaaaa";
+						$couleur_fond = "#aaaaaa";
+						$couleur = "white";
 					} else {
-						$couleur_fond = "#eeeeee";
+						$couleur_fond = "#ffffff";
 						$couleur = "#aaaaaa";
 					}
 					if ($les_rv[$j] > 0) {
@@ -163,7 +163,7 @@ function calendrier_jour($jour,$mois,$annee,$large = "large", $le_message = 0) {
 	
 	$nom = mktime(1,1,1,$mois,$jour,$annee);
 	$jour_semaine = date("w",$nom);
-	if ($jour_semaine == 0) $bgcolor = $couleur_claire;
+	if ($jour_semaine == 0) $bgcolor = "#e0e0e0";
 
 	if ($large == "col" ) {
 		echo "<div align='center' style='padding: 5px;'><b class='verdana1'><a href='calendrier_jour.php3?jour=$jour&mois=$mois&annee=$annee' style='color:black;'>".affdate_jourcourt("$annee-$mois-$jour")."</a></b></div>";
@@ -223,7 +223,8 @@ function calendrier_jour($jour,$mois,$annee,$large = "large", $le_message = 0) {
 	}
 
 	// rendez-vous personnels
-	$result_messages=spip_query("SELECT messages.* FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE ((lien.id_auteur='$connect_id_auteur' AND lien.id_message=messages.id_message) OR messages.type='affich') AND messages.rv='oui' AND messages.date_heure >='$annee-$mois-$jour' AND messages.date_heure <= '$annee-$mois-$jour 23:59:59' AND messages.statut='publie' GROUP BY messages.id_message ORDER BY messages.date_heure");
+	$result_messages=spip_query("SELECT messages.* FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE ((lien.id_auteur='$connect_id_auteur' AND lien.id_message=messages.id_message) OR messages.type='affich') AND messages.rv='oui' AND messages.date_heure <='$annee-$mois-$jour 23:59:00' AND messages.date_fin > '$annee-$mois-$jour 00:00:00' AND messages.statut='publie' GROUP BY messages.id_message ORDER BY messages.date_heure");
+				// Note: le $date_fin est strictement superieur a minuit
 	while($row=spip_fetch_array($result_messages)){
 		$id_message=$row['id_message'];
 		$date_heure=$row["date_heure"];
@@ -250,13 +251,40 @@ function calendrier_jour($jour,$mois,$annee,$large = "large", $le_message = 0) {
 			$couleur_fond="#aaaaaa";
 		}
 
+
+
 		$heure_debut = heures($date_heure);
 		$minutes_debut = minutes($date_heure);
+		$jour_debut = journum($date_heure);
+		$mois_debut = mois($date_heure);
+		$annee_debut = annee($date_heure);
+
+		// Verifier si debut est jour precedent
+		$unix_debut = date("U", mktime($heures_debut,$minutes_debut,0,$mois_debut, $jour_debut, $annee_debut));
+		$unix_debut_today = date("U", mktime(0,0,0,$mois, $jour, $annee));
 
-		// En attendant gestion heure de fin...
+		if ($unix_debut < $unix_debut_today) {
+			$heure_debut = 0;
+			$minutes_debut = 0;
+		}
+
+		// Verifier si fin est jour suivant
 		$heure_fin = heures($date_fin);
 		$minutes_fin = minutes($date_fin);
+		$jour_fin = journum($date_fin);
+		$mois_fin = mois($date_fin);
+		$annee_fin = annee($date_fin);
+
 
+		$unix_fin = date("U", mktime($heures_fin,$minutes_fin,0,$mois_fin, $jour_fin, $annee_fin));
+		$unix_fin_today = date("U", mktime(23,59,0,$mois, $jour, $annee));
+
+		if ($unix_fin > $unix_fin_today) {
+			$heure_fin = 23;
+			$minutes_fin = 59;
+		}
+
+		// Corriger pour l'affichage dans le tableau (debut et fin de tableau sont reduits)
 		if ($heure_debut < 6) {
 			$heure_debut = 6;
 			$minutes_debut = 0;	
@@ -331,7 +359,7 @@ function calendrier_jour($jour,$mois,$annee,$large = "large", $le_message = 0) {
 }
 
 function liste_rv($query, $type) {
-	global $spip_lang_rtl, $spip_lang_left;
+	global $spip_lang_rtl, $spip_lang_left, $spip_lang_right;
 	
 	if ($type == annonces) {
 		$titre = _T('info_annonces_generales');
@@ -354,12 +382,12 @@ function liste_rv($query, $type) {
 
 	$result = spip_query($query);
 	if (spip_num_rows($result) > 0){
-		echo "<div>&nbsp;</div><div style='border: 1px solid #999999; background-color: $couleur_fond; -moz-border-radius: 5px;'>";
-		echo "<div style='background-color: $couleur_titre; padding: 3px; color: $couleur_texte;'>";
-		echo "<b class='verdana1'>$titre</b>";
-		echo "</div>";
-		echo "<div style='padding: 3px;'>";
+		
+		debut_cadre_enfonce("", false, "", $titre);
+
+		echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>";
 		while ($row = spip_fetch_object($result)) {
+		
 			if (ereg("^=([^[:space:]]+)$",$row->texte,$match))
 				$url = $match[1];
 			else
@@ -367,32 +395,57 @@ function liste_rv($query, $type) {
 				$type=$row->type;
 				$rv = $row->rv;
 				$date = $row->date_heure;
+				$date_fin = $row -> date_fin;
 
-				if ($type=="normal") $bouton = "m_envoi";
-				elseif ($type=="pb") $bouton = "m_envoi_bleu";
-				elseif ($type=="affich") $bouton = "m_envoi_jaune";
-				else $bouton = "m_envoi";
+				if ($type=="normal") $bouton = "message";
+				elseif ($type=="pb") $bouton = "pense-bete";
+				elseif ($type=="affich") $bouton = "annonce";
+				else $bouton = "message";
+			
+				//if ($rv == "oui") $bouton .= "-rv";
 			
 			$titre = typo($row->titre);
-
-			echo "<div style='margin: 5px; padding-$spip_lang_left: 20px; background: url(img_pack/$bouton$spip_lang_rtl.gif) $spip_lang_left center no-repeat;'>";
+			
 			if ($rv == "oui") {
-				echo "<b class='arial0'>".affdate_jourcourt($date)."</b><br />";
+				echo "<tr><td colspan='2'>";
+				$date_jour = affdate_jourcourt($date);
+				if ($date_jour != $date_rv) echo "<div class='arial11'><b>$date_jour</b></div>";
+				echo "</td></tr>";
 			}
-			echo "<b><a href='$url' class='arial1'>$titre</a></b>";
-			echo "</div>\n";
+			
+			echo "<tr>";
+			echo "<td width='24' valign='middle'>";
+				echo "<a href='$url'>";
+				if ($rv == "oui") echo "<img src='img_pack/rv.gif' style='background: url(img_pack/$bouton.gif) no-repeat;' border='0'>";
+				else echo "<img src='img_pack/$bouton.gif' border='0'>";
+				echo "</a>";
+			echo "</td>";
+			
+			echo "<td valign='middle'>";
+				if ($rv == "oui") {
+					echo "<div class='arial0' style='float: $spip_lang_left; line-height: 12px; color: #666666; margin-$spip_lang_right: 3px; padding-$spip_lang_right: 4px; background: url(img_pack/fond-agenda.gif) $spip_lang_right center no-repeat;'>".heures($date).":".minutes($date)."<br />".heures($date_fin).":".minutes($date_fin)."</div>";
+				}
+			
+				echo "<div><b><a href='$url' class='arial1' style='color: #333333;'>$titre</a></b></div>";
+			echo "</td>";
+			echo "</tr>\n";
+			
+			$date_rv = $date_jour;
+			
 		}
-		echo "</div>";
-		
-		echo "</div>";
+		echo "</table>";
+		fin_cadre_enfonce();
 	}
 }
 
-function afficher_taches () {
+function afficher_annonces () {
 	global $connect_id_auteur, $options;
 	$query = "SELECT * FROM spip_messages WHERE type = 'affich' AND rv != 'oui' AND statut = 'publie' ORDER BY date_heure DESC";
 	liste_rv($query, "annonces");
+}
 
+function afficher_taches () {
+	global $connect_id_auteur, $options;
 	$query = "SELECT * FROM spip_messages AS messages WHERE id_auteur=$connect_id_auteur AND statut='publie' AND type='pb' AND rv!='oui'";
 	liste_rv($query, "pb");
 
diff --git a/ecrire/inc_barre.php3 b/ecrire/inc_barre.php3
index 4f1ac6d16bd49d8530d4349b8b0c98e2987d7671..7c536571dad42057435daad70730ca762c47bb6d 100644
--- a/ecrire/inc_barre.php3
+++ b/ecrire/inc_barre.php3
@@ -53,8 +53,8 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
 	if (test_barre()) {
 		$ret = afficher_script_barre();
 		$champ = "document.$formulaire.$texte";
-		$ret .= "<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
-		$ret .= "<tr width='100%'>";
+		$ret .= "<table class='spip_barre' width='100%' cellpadding='0' cellspacing='0' border='0'>";
+		$ret .= "<tr width='100%' class='spip_barre'>";
 		$ret .= "<td style='text-align: $spip_lang_left;' valign='middle'>";
 		$col++;
 
@@ -64,7 +64,7 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
 		if (!$forum) {
 			$ret .= bouton_barre_racc ("javascript:barre_raccourci('\n\n{{{','}}}\n\n',$champ)", "intertitre.png", _T('barre_intertitre'), $formulaire, $texte);
 		}
-		$ret .= "&nbsp;&nbsp;&nbsp;";
+		$ret .= "</td>&nbsp;&nbsp;&nbsp;<td>";
 
 		// Lien hypertexte, notes de bas de page, citations
 		$ret .= bouton_barre_racc ("javascript:barre_demande('[','->',']', '".addslashes(_T('barre_lien_input'))."', $champ)",
@@ -73,7 +73,7 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
 			$ret .= bouton_barre_racc ("javascript:barre_raccourci('[[',']]',$champ)", "notes.png", _T('barre_note'), $formulaire, $texte);
 		}
 		if ($forum) {
-			$ret .= "&nbsp;&nbsp;&nbsp;";
+			$ret .= "</td>&nbsp;&nbsp;&nbsp;<td>";
 			$ret .= bouton_barre_racc ("javascript:barre_raccourci('\n\n<quote>','</quote>\n\n',$champ)", "quote.png", _T('barre_quote'), $formulaire, $texte);
 		}
 
@@ -85,9 +85,11 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
 		}
 
 		$ret .= "</td>";
+		
+			$ret .= "</td>&nbsp;&nbsp;&nbsp;<td>";
 
 		// Insertion de caracteres difficiles a taper au clavier (guillemets, majuscules accentuees...)
-		$ret .= "<td style='text-align:$spip_lang_right;' valign='middle'>";
+		$ret .= "<td style='text-align:$spip_lang_left;' valign='middle'>";
 		$col++;
 		if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf" OR $spip_lang == "ar" OR $spip_lang == "es") {
 			$ret .= bouton_barre_racc ("javascript:barre_raccourci('&laquo;','&raquo;',$champ)", "guillemets.png", _T('barre_guillemets'), $formulaire, $texte);
@@ -101,9 +103,7 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
 			$ret .= bouton_barre_racc ("javascript:barre_raccourci('&ldquo;','&rdquo;',$champ)", "guillemets-simples.png", _T('barre_guillemets'), $formulaire, $texte);
 			$ret .= bouton_barre_racc ("javascript:barre_raccourci('&lsquo;','&rsquo;',$champ)", "guillemets-uniques.png", _T('barre_guillemets_simples'), $formulaire, $texte);
 		}
-		$ret .= "&nbsp;&nbsp;&nbsp;";
 		if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf") {
-			$ret .= "&nbsp;&nbsp;&nbsp;";
 			$ret .= bouton_barre_racc ("javascript:barre_inserer('&Agrave;',$champ)", "agrave-maj.png", _T('barre_a_accent_grave'), $formulaire, $texte);
 			$ret .= bouton_barre_racc ("javascript:barre_inserer('&Eacute;',$champ)", "eacute-maj.png", _T('barre_e_accent_aigu'), $formulaire, $texte);
 			if ($spip_lang == "fr") {
@@ -113,12 +113,15 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
 		}
 		$ret .= bouton_barre_racc ("javascript:barre_inserer('&euro;',$champ)", "euro.png", _T('barre_euro'), $formulaire, $texte);
 		$ret .= "</td>";
+		
+			$ret .= "</td>&nbsp;&nbsp;&nbsp;<td>";
 
 		if ($flag_ecrire) {
 			$ret .= "<td style='text-align:$spip_lang_right;' valign='middle'>";
 			$col++;
 			$ret .= "&nbsp;&nbsp;&nbsp;";
 			$ret .= aide("raccourcis");
+			$ret .= "&nbsp;";
 			$ret .= "</td>";
 		}
 		$ret .= "</tr>";
diff --git a/ecrire/inc_config.php3 b/ecrire/inc_config.php3
index c98b076218005b17f472e71973d13510f9870c65..11a60c3aad0563bf8be30411a6aca62f72797144 100644
--- a/ecrire/inc_config.php3
+++ b/ecrire/inc_config.php3
@@ -87,11 +87,12 @@ function init_config() {
 
 
 function avertissement_config() {
+	global $spip_lang_right, $spip_lang_left;
 	debut_boite_info();
 
-	echo "<div class='serif' align='justify'>
-	<center><B>"._T('avis_attention')."</B></center>
-	<img src='img_pack/warning.gif' alt='' width='48' height='48' align='right'>";
+	echo "<div class='verdana2' align='justify'>
+	<p align='center'><B>"._T('avis_attention')."</B></p>
+	<img src='img_pack/warning.gif' alt='' width='48' height='48' align='$spip_lang_right' style='padding-$spip_lang_left: 10px;' />";
 
 	echo _T('texte_inc_config');
 
@@ -102,9 +103,11 @@ function avertissement_config() {
 }
 
 
-function bouton_radio($nom, $valeur, $titre, $actif = false) {
+function bouton_radio($nom, $valeur, $titre, $actif = false, $onClick="") {
 	static $id_label = 0;
-	$texte = "<input type='radio' name='$nom' value='$valeur' id='label_$id_label'";
+	
+	if (strlen($onClick) > 0) $onClick = " onClick=\"$onClick\"";
+	$texte = "<input type='radio' name='$nom' value='$valeur' id='label_$id_label'$onClick";
 	if ($actif) {
 		$texte .= ' checked';
 		$titre = '<b>'.$titre.'</b>';
diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index d0d643ed0bc8f27e2a36624a1663c14228d4a177..c9306b7c39c62ad4c1156503b19c2e5b4bc21c90 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -33,6 +33,8 @@ function bouton_imessage($destinataire, $row = '') {
 	// si on passe "force" au lieu de $row, on affiche l'icone sans verification
 	global $connect_id_auteur;
 	global $spip_lang_rtl;
+	global $couche_invisible;
+	$couche_invisible ++;
 
 	$url = new Link("message_edit.php3");
 
@@ -40,7 +42,6 @@ function bouton_imessage($destinataire, $row = '') {
 	if ($destinataire == $connect_id_auteur)
 		return;
 	// verifier que le destinataire a un login
-
 	if ($row != "force") {
 		$login_req = "select login, messagerie from spip_auteurs where id_auteur=$destinataire AND en_ligne>DATE_SUB(NOW(),INTERVAL 15 DAY)";
 		$row = spip_fetch_array(spip_query($login_req));
@@ -57,122 +58,143 @@ function bouton_imessage($destinataire, $row = '') {
 	else $title = _T('info_ecire_message_prive');
 
 	$texte_bouton = "<img src='img_pack/m_envoi$spip_lang_rtl.gif' width='14' height='7' border='0'>";
-	return "<a href='". $url->getUrl() ."' title=\"$title\">$texte_bouton</a>";
+		
+	
+	$ret .= "<a href='". $url->getUrl() ."' title=\"$title\">";
+	$ret .= "$texte_bouton</a>";
+
+	return $ret;
+	
+
 }
 
+
 //
 // Cadres
 //
-
-function debut_cadre($style, $icone, $fonction) {
-	global $spip_display;
+function debut_cadre($style, $icone = "", $fonction = "", $titre = "") {
+	global $spip_display, $spip_lang_left;
 	static $accesskey = 97; // a
 
-	if ($GLOBALS['spip_lang_rtl']) {
-		$g = 'd';
-		$d = 'g';
-		$bgright = 'right';
-	} else {
-		$g = 'g';
-		$d = 'd';
-	}
-
 	// accesskey pour accessibilite espace prive
 	$accesskey_c = chr($accesskey++);
-	$retour_aff .= "<a name='access-$accesskey_c' href='#access-$accesskey_c' accesskey='$accesskey_c'></a>";
+	$ret = "<a name='access-$accesskey_c' href='#access-$accesskey_c' accesskey='$accesskey_c'></a>";
 
-	if ($spip_display != 1){
-		if (strlen($icone)<3) $icone = "rien.gif";
-		$retour_aff .= "\n<table class='cadre' cellspacing='0' cellpadding='0'><tr>";
-		$retour_aff .= "\n<td class='$style-h$g'></td>";
-		$retour_aff .= "\n<td class='$style-h'>";
+
+	$ret .= "<div style='position: relative; z-index: 1;'>";
+	if ($spip_display != 1 AND strlen($icone) > 1) {
+		$style_gauche = " style='padding-$spip_lang_left: 38px;'";
+		$ret .= "<div style='position: absolute; top: 0px; $spip_lang_left: 10px; z-index: 2;'>";
 		if ($fonction) {
-			$retour_aff .= "<div style='background: url(img_pack/$icone) no-repeat $bgright; padding: 0px; margin: 0px;'>";
-			$retour_aff .= "<img src='img_pack/$fonction'>";
-			$retour_aff .= "</div>";
+			$ret .= "<div style='$bgright"."background: url(img_pack/$icone) no-repeat; padding: 0px; margin: 0px;'>";
+			$ret .= "<img src='img_pack/$fonction'>";
+			$ret .= "</div>";
 		}
-		else $retour_aff .= "<img src='img_pack/$icone'>";
-		$retour_aff .= "</td>";
-		$retour_aff .= "\n<td class='$style-h$d'></td></tr>";
-		$retour_aff .= "\n<tr><td class='$style-$g'></td>";
-		$retour_aff .= "\n<td class='$style-c'>";
-	}
-	return $retour_aff;
-}
+		else $ret .= "<img src='img_pack/$icone'>";
+		$ret .= "</div>";
 
-function fin_cadre($style) {
-	global $spip_display;
-
-	if ($GLOBALS['spip_lang_rtl']) {
-		$g = 'd';
-		$d = 'g';
-	} else {
-		$g = 'g';
-		$d = 'd';
+		$style_cadre = " style='position: relative; top: 15px; margin-bottom: 15px; z-index: 1;'";
 	}
 
-	if ($spip_display != 1){
-		$retour_aff .= "\n</td>";
-		$retour_aff .= "\n<td class='$style-$d'></td></tr>";
-		$retour_aff .= "\n<tr><td class='$style-b$g'></td>";
-		$retour_aff .= "\n<td class='$style-b'></td>";
-		$retour_aff .= "\n<td class='$style-b$d'></td></tr>";
-		$retour_aff .= "\n<tr><td><img src='img_pack/rien.gif' alt='' width='1' height='5'></td></tr>";
-		$retour_aff .= "\n</table>\n";
-	}
-	return $retour_aff;
-}
-
-function debut_cadre_relief($icone='', $return = false, $fonction=''){
-	global $spip_display;
-	if ($spip_display != 1){
-		$retour_aff = debut_cadre('r', $icone, $fonction);
+	if ($style == "e") {
+		$ret .= "<div class='cadre-e-noir'$style_cadre><div class='cadre-$style'>";
 	}
 	else {
-		$retour_aff = "<p><div style='border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; -moz-border-radius: 6px;'><div style='border: 1px solid #666666; padding: 5px; -moz-border-radius: 6px; background-color: white;'>";
+		$ret .= "<div class='cadre-$style'$style_cadre>";
 	}
+	
+	if (strlen($titre) > 0) {
+		$ret .= "<div class='cadre-titre'$style_gauche>$titre</div>";
+	}
+	
+	
+	$ret .= "<div class='cadre-padding'>";
+	
+	
+	return $ret;
+}
+
+
+function fin_cadre($style="") {
+	if ($style == "e") $ret = "</div>";
+	$ret .= "</div></div></div>\n";
+	$ret .= "<div style='height: 5px;'></div>";
+	
+	return $ret;
+}
+
+
+
+
+function debut_cadre_relief($icone='', $return = false, $fonction='', $titre = ''){
+	$retour_aff = debut_cadre('r', $icone, $fonction, $titre);
 
 	if ($return) return $retour_aff;
 	else echo $retour_aff;
 }
 
 function fin_cadre_relief($return = false){
-	global $spip_display;
-	if ($spip_display != 1){
-		$retour_aff = fin_cadre('r');
-	}
-	else {
-		$retour_aff = "</div></div></p>\n";
-	}
+	$retour_aff = fin_cadre('r');
 
 	if ($return) return $retour_aff;
 	else echo $retour_aff;
 }
 
 
-function debut_cadre_enfonce($icone='', $return = false, $fonction=''){
-	global $spip_display;
-
-	if ($spip_display != 1){
-		$retour_aff = debut_cadre('e', $icone, $fonction);
-	}
-	else {
-		$retour_aff = "<p><div style=\"border: 1px solid #333333; -moz-border-radius: 6px; background-color: #e0e0e0;\"><div style=\"padding: 5px; border-left: 1px solid #999999; border-top: 1px solid #999999; -moz-border-radius: 6px;\">";
-	}
+function debut_cadre_enfonce($icone='', $return = false, $fonction='', $titre = ''){
+	$retour_aff = debut_cadre('e', $icone, $fonction, $titre);
 
 	if ($return) return $retour_aff;
 	else echo $retour_aff;
 }
 
 function fin_cadre_enfonce($return = false){
-	global $spip_display;
 
-	if ($spip_display != 1) {
-		$retour_aff = fin_cadre('e');
-	}
-	else {
-		$retour_aff = "</div></div></p>\n";
-	}
+	$retour_aff = fin_cadre('e');
+
+	if ($return) return $retour_aff;
+	else echo $retour_aff;
+}
+
+
+function debut_cadre_gris_clair($icone='', $return = false, $fonction='', $titre = ''){
+	$retour_aff = debut_cadre('gris-clair', $icone, $fonction, $titre);
+
+	if ($return) return $retour_aff;
+	else echo $retour_aff;
+}
+
+function fin_cadre_gris_clair($return = false){
+	$retour_aff = fin_cadre('gris-clair');
+
+	if ($return) return $retour_aff;
+	else echo $retour_aff;
+}
+
+
+function debut_cadre_couleur($icone='', $return = false, $fonction='', $titre=''){
+	$retour_aff = debut_cadre('couleur', $icone, $fonction, $titre);
+
+	if ($return) return $retour_aff;
+	else echo $retour_aff;
+}
+
+function fin_cadre_couleur($return = false){
+	$retour_aff = fin_cadre('couleur');
+
+	if ($return) return $retour_aff;
+	else echo $retour_aff;
+}
+
+function debut_cadre_trait_couleur($icone='', $return = false, $fonction='', $titre=''){
+	$retour_aff = debut_cadre('trait-couleur', $icone, $fonction, $titre);
+
+	if ($return) return $retour_aff;
+	else echo $retour_aff;
+}
+
+function fin_cadre_trait_couleur($return = false){
+	$retour_aff = fin_cadre('trait-couleur');
 
 	if ($return) return $retour_aff;
 	else echo $retour_aff;
@@ -198,14 +220,18 @@ function fin_boite_alerte() {
 // une boite info
 //
 function debut_boite_info() {
-	global $couleur_claire,  $couleur_foncee;
+/*	global $couleur_claire,  $couleur_foncee;
 	echo "&nbsp;<p><div style='border: 1px dashed #666666;'><table cellpadding='5' cellspacing='0' border='0' width='100%' style='border-left: 1px solid $couleur_foncee; border-top: 1px solid $couleur_foncee; border-bottom: 1px solid white; border-bottom: 1px solid white' background=''>";
 	echo "<tr><td bgcolor='$couleur_claire' width='100%'>";
 	echo "<font face='Verdana,Arial,Sans,sans-serif' size='2' color='#333333'>";
+	*/
+	
+	echo "<div class='cadre-info'>";
 }
 
 function fin_boite_info() {
-	echo "</font></td></tr></table></div>\n\n";
+	//echo "</font></td></tr></table></div>\n\n";
+	echo "</div>";
 }
 
 //
@@ -233,6 +259,23 @@ function bandeau_titre_boite($titre, $afficher_auteurs, $boite_importante = true
 	echo "</TD>";
 	echo "</TR>";
 }
+//
+// une autre boite
+//
+function bandeau_titre_boite2($titre, $logo="", $fond="white", $texte="black") {
+	global $spip_lang_left, $spip_display;
+	
+	if (strlen($logo) > 0 AND $spip_display != 1) {
+		echo "<div style='position: relative;'>";
+		echo "<div style='position: absolute; top: -12px; $spip_lang_left: 3px;'><img src='img_pack/$logo'></div>";
+		echo "<div style='background-color: $fond; color: $texte; padding: 3px; padding-$spip_lang_left: 30px; border-bottom: 1px solid #444444;' class='verdana2'><b>$titre</b></div>";
+	
+		echo "</div>";
+	} else {
+		echo "<div style='background-color: $fond; color: $texte; padding: 3px; border-bottom: 1px solid #444444;' class='verdana2'><b>$titre</b></div>";
+	}
+
+}
 
 
 //
@@ -244,7 +287,7 @@ function debut_raccourcis() {
 
 	debut_cadre_enfonce();
 	echo "<font face='Verdana,Arial,Sans,sans-serif' size=1>";
-	echo "<b>"._T('titre_cadre_raccourcis')."</b><p>";
+	echo "<b>"._T('titre_cadre_raccourcis')."</b><p />";
 }
 
 function fin_raccourcis() {
@@ -263,8 +306,9 @@ function afficher_liste($largeurs, $table, $styles = '') {
 	reset($table);
 	echo "\n";
 	while (list(, $t) = each($table)) {
-		$couleur_fond = ($ifond ^= 1) ? '#FFFFFF' : $couleur_claire;
-		echo "<tr bgcolor=\"$couleur_fond\">";
+		// $couleur_fond = ($ifond ^= 1) ? '#FFFFFF' : $couleur_claire;
+		//echo "<tr bgcolor=\"$couleur_fond\">";
+		echo "<tr class='tr_liste' onMouseOver=\"changeclass(this,'tr_liste_over');\" onMouseOut=\"changeclass(this,'tr_liste');\">";
 		reset($largeurs);
 		if ($styles) reset($styles);
 		while (list(, $texte) = each($t)) {
@@ -284,6 +328,7 @@ function afficher_liste($largeurs, $table, $styles = '') {
 
 function afficher_tranches_requete(&$query, $colspan) {
 	static $ancre = 0;
+	global $spip_lang_right;
 
 	$query = trim($query);
 	$query_count = eregi_replace('^(SELECT)[[:space:]].*[[:space:]](FROM)[[:space:]]', '\\1 COUNT(*) \\2 ', $query);
@@ -306,7 +351,7 @@ function afficher_tranches_requete(&$query, $colspan) {
 		$ancre++;
 
 		$texte .= "<a name='a$ancre'></a>";
-		$texte .= "<tr><td background=\"\" class=\"arial2\" colspan=\"".($colspan - 1)."\">";
+		$texte .= "<tr style='background-color: #dddddd;'><td class=\"arial2\" style='border-bottom: 1px solid #444444;' colspan=\"".($colspan - 1)."\">";
 
 		for ($i = 0; $i < $num_rows; $i += $nb_aff){
 			$deb = $i + 1;
@@ -323,7 +368,7 @@ function afficher_tranches_requete(&$query, $colspan) {
 			}
 		}
 		$texte .= "</td>\n";
-		$texte .= "<td background=\"\" class=\"arial2\" colspan=\"1\" align=\"right\" valign=\"top\">";
+		$texte .= "<td class=\"arial2\" style='border-bottom: 1px solid #444444; text-align: $spip_lang_right;' colspan=\"1\" align=\"right\" valign=\"top\">";
 		if ($deb_aff == -1) {
 			$texte .= "<B>"._T('info_tout_afficher')."</B>";
 		} else {
@@ -346,6 +391,7 @@ function afficher_tranches_requete(&$query, $colspan) {
 }
 
 
+
 //
 // Afficher tableau d'articles
 //
@@ -383,11 +429,15 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a
 	if (strlen($tranches) OR $toujours_afficher) {
 	 	$result = spip_query($requete);
 
-		if ($afficher_cadre) debut_cadre_relief("article-24.gif");
-		echo "<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100% background=''>";
-		echo "<table width=100% cellpadding=3 cellspacing=0 border=0>";
+		// if ($afficher_cadre) debut_cadre_gris_clair("article-24.gif");
+
+
+		echo "<div style='height: 12px;'></div>";
+		echo "<div class='liste'>";
+		bandeau_titre_boite2($titre_table, "article-24.gif");
+
+		echo "<table width='100%' cellpadding='2' cellspacing='0' border='0'>";
 
-		bandeau_titre_boite($titre_table, $afficher_auteurs);
 
 		echo $tranches;
 
@@ -426,6 +476,9 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a
 				}
 				$les_auteurs = substr($les_auteurs, 2);
 			}
+			
+			
+			$les_auteurs = "<div class='liste_clip' style='width: 100px;'>$les_auteurs</div>";
 
 			switch ($statut) {
 			case 'publie':
@@ -451,7 +504,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a
 			}
 			$puce = "puce-$puce.gif";
 
-			$s = "<div style='background: url(img_pack/$puce) $spip_lang_left center no-repeat; padding-$spip_lang_left: 17px;'>";
+			$s = "<div style='background: url(img_pack/$puce) $spip_lang_left center no-repeat; margin-$spip_lang_left: 3px; padding-$spip_lang_left: 14px;'>";
 
 			//$s. = "<a href=\"articles.php3?id_article=$id_article\" title=\"$title\">";
 
@@ -474,6 +527,9 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a
 				$s .= "<br><font size=\"1\"><a href='statistiques_visites.php3?id_article=$id_article'>"._T('lien_visites', array('visites' => $visites))."</a></font>";
 				if ($popularite > 0) $s .= "<br><font size=\"1\"><a href='statistiques_visites.php3?id_article=$id_article'>"._T('lien_popularite', array('popularite' => $popularite))."</a></font>";
 			}
+			
+			$s = "<div class='liste_clip' style='width: 100px;'>$s</div>";
+			
 			$vals[] = $s;
 
 			$table[] = $vals;
@@ -481,29 +537,32 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a
 		spip_free_result($result);
 
 		if ($afficher_auteurs) {
-			$largeurs = array('', 100, 90);
+			$largeurs = array('', 100, 100);
 			$styles = array('arial2', 'arial1', 'arial1');
 		}
 		else {
-			$largeurs = array('', 90);
+			$largeurs = array('', 100);
 			$styles = array('arial2', 'arial1');
 		}
 		afficher_liste($largeurs, $table, $styles);
 
-		echo "</table></td></tr></table>";
-		if ($afficher_cadre) fin_cadre_relief();
+		echo "</table>";
+		echo "</div>";
+		//if ($afficher_cadre) fin_cadre_gris_clair();
 
 	}
 	return $tous_id;
 }
 
 
+
 //
 // Afficher tableau de breves
 //
 
 function afficher_breves($titre_table, $requete, $affrub=false) {
-	global $connect_id_auteur, $spip_lang_right, $dir_lang;
+	global $connect_id_auteur, $spip_lang_right, $spip_lang_left, $dir_lang, $couleur_claire, $couleur_foncee;
+
 
 	if ((lire_meta('multi_rubriques') == 'oui' AND $GLOBALS['coll'] == 0) OR lire_meta('multi_articles') == 'oui') {
 		$afficher_langue = true;
@@ -516,19 +575,17 @@ function afficher_breves($titre_table, $requete, $affrub=false) {
 
 	if (strlen($tranches)) {
 
-		debut_cadre_relief("breve-24.gif");
+		//debut_cadre_relief("breve-24.gif");
+
+		if ($titre_table) echo "<div style='height: 12px;'></div>";
+		echo "<div class='liste'>";
 
 		if ($titre_table) {
-			echo "<p><table width=100% cellpadding=0 cellspacing=0 border=0 background=''>";
-			echo "<tr><td width=100% background=''>";
-			echo "<table width=100% cellpadding=3 cellspacing=0 border=0>";
-			echo "<tr bgcolor='#EEEECC'><td width=100% colspan=2><font face='Verdana,Arial,Sans,sans-serif' size=3 color='#000000'>";
-			echo "<b>$titre_table</b></font></td></tr>";
-		}
-		else {
-			echo "<p><table width=100% cellpadding=3 cellspacing=0 border=0 background=''>";
+			bandeau_titre_boite2($titre_table, "breve-24.gif", $couleur_foncee, "white");
 		}
 
+		echo "<table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>";
+
 		echo $tranches;
 
 		$result = spip_query($requete);
@@ -546,7 +603,7 @@ function afficher_breves($titre_table, $requete, $affrub=false) {
 			$id_rubrique = $row['id_rubrique'];
 			switch ($statut) {
 			case 'prop':
-				$puce = "puce-blanche-breve";
+				$puce = "puce-orange-breve";
 				$title = _T('titre_breve_proposee');
 				break;
 			case 'publie':
@@ -559,37 +616,37 @@ function afficher_breves($titre_table, $requete, $affrub=false) {
 				break;
 			}
 
-			$s = "<a href='breves_voir.php3?id_breve=$id_breve' title=\"$title\">";
-			$s .= "<img src='img_pack/$puce.gif' alt='' width='8' height='9' border='0'></a>&nbsp;&nbsp;";
+			$s = "<div style='background: url(img_pack/$puce.gif) $spip_lang_left center no-repeat; margin-$spip_lang_left: 3px; padding-$spip_lang_left: 12px;'>";
 			$s .= "<a href='breves_voir.php3?id_breve=$id_breve'$dir_lang>";
 			$s .= typo($titre);
 			$s .= "</a>";
 			if ($afficher_langue AND $lang != $langue_defaut)
 				$s .= " <font size='1' color='#666666'$dir_lang>(".traduire_nom_langue($lang).")</font>";
 
+			$s .= "</div>";
 			$vals[] = $s;
 
-			$s = "<div align='$spip_lang_right'>";
+			$s = "";
 			if ($affrub) {
-				$rub = spip_fetch_array(spip_query("SELECT titre FROM spip_rubriques WHERE id_rubrique=$id_rubrique"));
-				$s .= typo($rub['titre']);
+				$rub = spip_fetch_array(spip_query("SELECT id_rubrique, titre FROM spip_rubriques WHERE id_rubrique=$id_rubrique"));
+				$id_rubrique = $rub['id_rubrique'];
+				$s .= "<a href='naviguer.php3?coll=$id_rubrique'>".typo($rub['titre'])."</a>";
 			} else if ($statut != "prop")
 				$s = affdate_jourcourt($date_heure);
 			else
 				$s .= _T('info_a_valider');
-			$s .= "</div>";
 			$vals[] = $s;
 			$table[] = $vals;
 		}
 		spip_free_result($result);
 
-		$largeurs = array('', '');
-		$styles = array('arial2', 'arial1');
+		if ($affrub) $largeurs = array('', '170');
+		else  $largeurs = array('', '100');
+		$styles = array('arial11', 'arial1');
 		afficher_liste($largeurs, $table, $styles);
 
-		if ($titre_table) echo "</TABLE></TD></TR>";
-		echo "</TABLE>";
-		fin_cadre_relief();
+		echo "</table></div>";
+		//fin_cadre_relief();
 	}
 	return $tous_id;
 }
@@ -607,18 +664,14 @@ function afficher_rubriques($titre_table, $requete) {
 
 	if (strlen($tranches)) {
 
-		debut_cadre_relief("rubrique-24.gif");
+		if ($titre_table) echo "<div style='height: 12px;'></div>";
+		echo "<div class='liste'>";
+		//debut_cadre_relief("rubrique-24.gif");
 
 		if ($titre_table) {
-			echo "<p><table width=100% cellpadding=0 cellspacing=0 border=0 background=''>";
-			echo "<tr><td width=100% background=''>";
-			echo "<table width=100% cellpadding=3 cellspacing=0 border=0>";
-			echo "<tr bgcolor='#333333'><td width=100% colspan=2><font face='Verdana,Arial,Sans,sans-serif' size=3 color='#FFFFFF'>";
-			echo "<b>$titre_table</b></font></td></tr>";
-		}
-		else {
-			echo "<p><table width=100% cellpadding=3 cellspacing=0 border=0 background=''>";
+			bandeau_titre_boite2($titre_table, "rubrique-24.gif", "#999999", "white");
 		}
+		echo "<table width=100% cellpadding=3 cellspacing=0 border=0 background=''>";
 
 		echo $tranches;
 
@@ -629,11 +682,14 @@ function afficher_rubriques($titre_table, $requete) {
 			$vals = '';
 
 			$id_rubrique = $row['id_rubrique'];
+			$id_parent = $row['id_parent'];
 			$tous_id[] = $id_rubrique;
 			$titre = $row['titre'];
+			
+			if ($id_parent == 0) $puce = "img_pack/secteur-12.gif";
+			else $puce = "img_pack/rubrique-12.gif";
 
 			$s = "<b><a href=\"naviguer.php3?coll=$id_rubrique\">";
-			$puce = "puce$spip_lang_rtl.gif";
 			$s .= "<img src=\"$puce\" alt=\"- \" border=\"0\"> ";
 			$s .= typo($titre);
 			$s .= "</A></b>";
@@ -650,9 +706,9 @@ function afficher_rubriques($titre_table, $requete) {
 		$styles = array('arial2', 'arial2');
 		afficher_liste($largeurs, $table, $styles);
 
-		if ($titre_table) echo "</TABLE></TD></TR>";
 		echo "</TABLE>";
-		fin_cadre_relief();
+		//fin_cadre_relief();
+		echo "</div>";
 	}
 	return $tous_id;
 }
@@ -756,6 +812,145 @@ function afficher_auteurs ($titre_table, $requete) {
 	return $tous_id;
 }
 
+/*
+ * Afficher liste de messages
+ */
+
+function afficher_messages($titre_table, $query_message, $afficher_auteurs = true, $important = false, $boite_importante = true, $obligatoire = false) {
+	global $messages_vus;
+	global $connect_id_auteur;
+	global $couleur_claire, $couleur_foncee;
+	global $spip_lang_rtl, $spip_lang_left;
+
+	// Interdire l'affichage de message en double
+	if ($messages_vus) {
+		$query_message .= ' AND messages.id_message NOT IN ('.join(',', $messages_vus).')';
+	}
+
+
+	if ($afficher_auteurs) $cols = 3;
+	else $cols = 2;
+	$query_message .= ' ORDER BY date_heure DESC';
+	$tranches = afficher_tranches_requete($query_message, $cols);
+
+	if ($tranches OR $obligatoire) {
+		if ($important) debut_cadre_couleur();
+
+		echo "<div style='height: 12px;'></div>";
+		echo "<div class='liste'>";
+	//	bandeau_titre_boite($titre_table, $afficher_auteurs, $boite_importante);
+		bandeau_titre_boite2($titre_table, "messagerie-24.gif", $couleur_foncee, "white");
+		echo "<TABLE WIDTH='100%' CELLPADDING='2' CELLSPACING='0' BORDER='0'>";
+
+
+		echo $tranches;
+
+		$result_message = spip_query($query_message);
+		$num_rows = spip_num_rows($result_message);
+
+		while($row = spip_fetch_array($result_message)) {
+			$vals = '';
+
+			$id_message = $row['id_message'];
+			$date = $row["date_heure"];
+			$date_fin = $row["date_fin"];
+			$titre = $row["titre"];
+			$type = $row["type"];
+			$statut = $row["statut"];
+			$page = $row["page"];
+			$rv = $row["rv"];
+			$vu = $row["vu"];
+			$messages_vus[$id_message] = $id_message;
+
+			//
+			// Titre
+			//
+
+			$s = "<A HREF='message.php3?id_message=$id_message'>";
+
+			switch ($type) {
+			case 'pb' :
+				$puce = "m_envoi_bleu$spip_lang_rtl.gif";
+				break;
+			case 'memo' :
+				$puce = "m_envoi_jaune$spip_lang_rtl.gif";
+				break;
+			case 'affich' :
+				$puce = "m_envoi_jaune$spip_lang_rtl.gif";
+				break;
+			case 'normal':
+			default:
+				$puce = "m_envoi$spip_lang_rtl.gif";
+				break;
+			}
+				
+			$s .= "<img src='img_pack/$puce' width='14' height='7' border='0'>";
+			$s .= "&nbsp;&nbsp;".typo($titre)."</A>";
+			$vals[] = $s;
+
+			//
+			// Auteurs
+
+			if ($afficher_auteurs) {
+				$query_auteurs = "SELECT auteurs.id_auteur, auteurs.nom FROM spip_auteurs AS auteurs, spip_auteurs_messages AS lien WHERE lien.id_message=$id_message AND lien.id_auteur!=$connect_id_auteur AND lien.id_auteur=auteurs.id_auteur";
+				$result_auteurs = spip_query($query_auteurs);
+				$auteurs = '';
+				while ($row_auteurs = spip_fetch_array($result_auteurs)) {
+					$id_auteur = $row_auteurs['id_auteur'];
+					$auteurs[] = "<a href='auteurs_edit.php3?id_auteur=$id_auteur'>".typo($row_auteurs['nom'])."</a>";
+				}
+
+				if ($auteurs AND $type == 'normal') {
+					$s = "<FONT FACE='Arial,Sans,sans-serif' SIZE=1>";
+					$s .= join(', ', $auteurs);
+					$s .= "</FONT>";
+				}
+				else $s = "&nbsp;";
+				$vals[] = $s;
+			}
+			
+			//
+			// Date
+			//
+			
+			$s = affdate($date);
+			if ($rv == 'oui') {
+				$jour=journum($date);
+				$mois=mois($date);
+				$annee=annee($date);
+				
+				$heure = heures($date).":".minutes($date);
+				$heure_fin = heures($date_fin).":".minutes($date_fin);
+
+				$s = "<div style='background: url(img_pack/rv-12.gif) $spip_lang_left center no-repeat; padding-$spip_lang_left: 15px;'><a href='calendrier_jour.php3?jour=$jour&mois=$mois&annee=$annee'><b style='color: black;'>$s</b><br />$heure-$heure_fin</a></div>";
+			} else {
+				$s = "<font color='#999999'>$s</font>";
+			}
+			
+			$vals[] = $s;
+
+			$table[] = $vals;
+		}
+
+		if ($afficher_auteurs) {
+			$largeurs = array('', 130, 120);
+			$styles = array('arial2', 'arial1', 'arial1');
+		}
+		else {
+			$largeurs = array('', 120);
+			$styles = array('arial2', 'arial1');
+		}
+		afficher_liste($largeurs, $table, $styles);
+
+		echo "</TABLE>";
+		echo "</div>\n\n";
+		spip_free_result($result_message);
+		if ($important) fin_cadre_couleur();
+	}
+}
+
+
+
 //
 // Afficher les forums
 //
@@ -937,11 +1132,20 @@ function bouton($titre,$lien) {
 // Presentation de l'interface privee, debut du HTML
 //
 
-function debut_html($titre = "") {
+function debut_html($titre = "", $rubrique="", $onLoad="") {
 	global $couleur_foncee, $couleur_claire, $couleur_lien, $couleur_lien_off;
 	global $flag_ecrire;
-	global $spip_lang_rtl;
-
+	global $spip_lang_rtl, $spip_lang_left;
+	global $mode;
+	global $connect_statut, $connect_toutes_rubriques;
+	
+	/*
+	if ($rubrique == "administration") {
+		$GLOBALS["couleur_claire"] = "#e3d3d5";
+		$GLOBALS["couleur_foncee"] = "#960014";
+	}
+	*/
+	
 	$nom_site_spip = entites_html(lire_meta("nom_site"));
 	$titre = textebrut(typo($titre));
 
@@ -967,21 +1171,166 @@ function debut_html($titre = "") {
 	afficher_script_layer();
 ?>
 <script type='text/javascript'><!--
-function changeclass(objet, myClass)
-{
-		objet.className = myClass;
-}
-function changesurvol(iddiv, myClass)
-{
-		document.getElementById(iddiv).className = myClass;
-}
-var antifocus=false; // effacement titre quand new=oui
+	var init_gauche = true;
+
+	function findObj(n, d) { //v4.0
+		var p,i,x;
+		if(!d) d = document; 
+		if((p = n.indexOf("?"))>0 && parent.frames.length) {
+			d = parent.frames[n.substring(p+1)].document; 
+			n = n.substring(0,p);
+		}
+		if(!(x = d[n]) && d.all) x = d.all[n]; 
+		for (i = 0; !x && i<d.forms.length; i++) x = d.forms[i][n];
+		for(i=0; !x && d.layers && i<d.layers.length; i++) x = findObj(n,d.layers[i].document);
+		if(!x && document.getElementById) x = document.getElementById(n); return x;
+	}
+	
+	function changestyle(id_couche, element, style) {
+
+		<?php if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) { ?>
+			findObj('bandeaudocuments').style.visibility = 'hidden';
+			findObj('bandeauredacteurs').style.visibility = 'hidden';
+			<?php if (lire_meta("activer_statistiques") != 'non') ?> findObj('bandeausuivi').style.visibility = 'hidden';
+			findObj('bandeauadministration').style.visibility = 'hidden';
+		<?php } ?>
+		
+		findObj('bandeaudeconnecter').style.visibility = 'hidden';
+		findObj('bandeautoutsite').style.visibility = 'hidden';
+		findObj('bandeaunavrapide').style.visibility = 'hidden';
+		findObj('bandeauagenda').style.visibility = 'hidden';
+		findObj('bandeaumessagerie').style.visibility = 'hidden';
+		findObj('bandeausynchro').style.visibility = 'hidden';
+		findObj('bandeaurecherche').style.visibility = 'hidden';
+		findObj('bandeauinfoperso').style.visibility = 'hidden';
+		findObj('bandeaudisplay').style.visibility = 'hidden';
+		findObj('bandeauecran').style.visibility = 'hidden';
+		findObj('bandeauinterface').style.visibility = 'hidden';
+		
+		if (init_gauche) {
+		<?php if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) { ?>
+			decalerCouche('bandeaudocuments');
+			decalerCouche('bandeauredacteurs');
+			<?php if (lire_meta("activer_statistiques") != 'non') ?> decalerCouche('bandeausuivi');
+			decalerCouche('bandeauadministration');
+		<?php } ?>
+			init_gauche = false;
+		}
+		
+		
+		if (!(layer = findObj(id_couche))) return;
+	
+		layer.style[element] = style;
+	}
+	
+	function decalerCouche(id_couche) {
+		if (!(layer = findObj(id_couche))) return;
+		
+		<?php if ($spip_lang_left == "left") {  /* uniquement affichage ltr: bug Mozilla dans offsetWidth quand ecran inverse! */  ?>
+		
+		if ( parseInt(layer.style.<?php echo $spip_lang_left; ?>) > 0) {
+			gauche = parseInt(layer.style.<?php echo $spip_lang_left; ?>) - Math.floor( layer.offsetWidth / 2 ) + Math.floor(<?php echo largeur_icone_bandeau_principal(_T('icone_a_suivre')); ?> / 2);
+			if (gauche < 0) gauche = 0;
+		 
+			layer.style.<?php echo $spip_lang_left; ?> = gauche+"px";
+		}
+		
+		<?php } ?>
+		
+	}	
+	
+	function changeclass(objet, myClass)
+	{
+			objet.className = myClass;
+	}
+	function changesurvol(iddiv, myClass)
+	{
+			document.getElementById(iddiv).className = myClass;
+	}
+	function setActiveStyleSheet(title) {
+	   var i, a, main;
+	   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
+		 if(a.getAttribute("rel").indexOf("style") != -1
+			&& a.getAttribute("title")) {
+		   a.disabled = true;
+		   if(a.getAttribute("title") == title) a.disabled = false;
+		 }
+	   }
+	}
+	
+	function getHeight(obj) {
+		if (obj == "window") {
+			return hauteur_fenetre();
+		}
+		else
+		{
+			obj = document.getElementById(obj);
+			if (obj.offsetHeight) return obj.offsetHeight;
+		}
+	}
+	function hauteur_fenetre() {
+		var myWidth = 0, myHeight = 0;
+		if( typeof( window.innerWidth ) == 'number' ) {
+			//Non-IE
+			myHeight = window.innerHeight;
+		} else {
+			if( document.documentElement &&
+				( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
+				//IE 6+ in 'standards compliant mode'
+				myHeight = document.documentElement.clientHeight;
+			} else {
+				if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
+					//IE 4 compatible
+					myHeight = document.body.clientHeight;
+				}
+			}
+		}
+		return myHeight;
+	}
+
+	
+	function hauteurFrame(nbCol) {
+		hauteur = hauteur_fenetre() - 40;
+		hauteur = hauteur - getHeight('haut-page');
+		
+		if (findObj('brouteur_hierarchie')) hauteur = hauteur - getHeight('brouteur_hierarchie');
+			
+		for (i=0; i<nbCol; i++) {
+			source = document.getElementById("iframe" + i);
+			source.style.height = hauteur + 'px';
+		}
+	}
+
+	function hauteurTextarea() {
+		hauteur = hauteur_fenetre() - 80;
+		
+		source = document.getElementById("text_area");
+		source.style.height = hauteur + 'px';
+	}
+
+	function changeVisible(input, id, select, nonselect) {
+		if (input) {
+			findObj(id).style.display = select;
+		} else {
+			findObj(id).style.display = nonselect;
+		}
+		
+	}
+
+	
+	var antifocus=false; // effacement titre quand new=oui
+	
 //--></script>
+	<link rel="alternate stylesheet" href="spip_style_invisible.css" type="text/css" title="invisible" />
+	<link rel="stylesheet" href="spip_style_visible.css" type="text/css" title="visible" />
 </head>
 <?php
-	echo "<body text='#000000' bgcolor='#e4e4e4' background='img_pack/degrade.jpg' link='$couleur_lien' vlink='$couleur_lien_off' alink='$couleur_lien_off' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'";
+	echo "<body text='#000000' bgcolor='#f8f7f3' link='$couleur_lien' vlink='$couleur_lien_off' alink='$couleur_lien_off' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' frameborder='0'";
+
 	if ($spip_lang_rtl)
 		echo " dir='rtl'";
+	//if ($mode == "wysiwyg") echo " onLoad='debut_editor();'";
+	echo " onLoad=\"setActiveStyleSheet('invisible');$onLoad\"";
 	echo ">";
 }
 
@@ -989,91 +1338,63 @@ var antifocus=false; // effacement titre quand new=oui
 
 function onglet_relief_inter(){
 	global $spip_display;
-	if ($spip_display != 1) {
-		echo "<td background='img_pack/barre-noir.gif'><img src='img_pack/rien.gif' alt='' width='1' height='40'></td>";
-	}
+	
+	echo "<td>&nbsp;</td>";
+	
 }
 
 function debut_onglet(){
 	global $spip_display;
-	if ($spip_display == 1) {
-		echo "\n";
-		echo "<p><table cellpadding=0 cellspacing=3 border=0>";
-		echo "<tr>";
-	}
-	else {
-		echo "\n";
-		echo "<p><table cellpadding=0 cellspacing=0 border=0>";
-		echo "<tr><td>";
-		if ($GLOBALS['spip_lang_rtl'])
-			echo "<img src='img_pack/barre-d.gif' alt='' width='16' height='40'>";
-		else
-			echo "<img src='img_pack/barre-g.gif' alt='' width='16' height='40'>";
-		echo "</td>";
-	}
+
+	echo "\n\n";
+	echo "<div style='padding: 7px;'><table cellpadding='0' cellspacing='0' border='0' align='center'>";
+	echo "<tr>";
 }
 
 function fin_onglet(){
 	global $spip_display;
-	onglet_relief_inter();
-	if ($spip_display == 1) {
-		echo "</tr>";
-		echo "</table>";
-	} else {
-		echo "<td>";
-		if ($GLOBALS['spip_lang_rtl'])
-			echo "<img src='img_pack/barre-g.gif' alt='' width='16' height='40'>";
-		else
-			echo "<img src='img_pack/barre-d.gif' alt='' width='16' height='40'>";
-		echo "</td></tr>";
-		echo "</table>";
-	}
+	echo "</tr>";
+	echo "</table></div>\n\n";
 }
 
 function onglet($texte, $lien, $onglet_ref, $onglet, $icone=""){
-	global $spip_display ;
-	if ($spip_display == 1) {
-		if ($onglet_ref == $onglet){
-			echo "\n<td  class='iconeon' valign='middle'>";
-			echo "<font face='Verdana,Arial,Sans,sans-serif' size='2' color='black'><b>$texte</b></font>";
-			echo "</td>";
-		}
-		else {
-			echo "\n<td class='iconeoff' onMouseOver=\"changeclass(this,'iconeon');\" onMouseOut=\"changeclass(this,'iconeoff');\" onClick=\"document.location='$lien'\" valign='middle'>";
-			echo "<a href='$lien' class='icone'><font face='Verdana,Arial,Sans,sans-serif' size='2' color='#666666'><b>$texte</b></font></a>";
-			echo "</td>";
-		}
-	}
-	else {
-		if ($onglet_ref == $onglet){
-			onglet_relief_inter();
-			if (strlen($icone)>3){
-				echo "\n<td background='img_pack/barre-noir.gif' height=40 valign='top'>";
-				echo "&nbsp; <img src='img_pack/$icone' border=0>";
-				echo "</td>";
+	global $spip_display, $spip_lang_left ;
+
+
+	echo "<td>";
+	
+	if ($onglet != $onglet_ref) {
+		echo "<div style='position: relative;'>";
+		if ($spip_display != 1) {
+			if (strlen($icone) > 0) {
+				echo "<div style='z-index: 2; position: absolute; top: 0px; $spip_lang_left: 5px;'><img src='img_pack/$icone' /></div>";
+				$style = " top: 7px; padding-$spip_lang_left: 32px; z-index: 1;";
+			} else {
+				$style = " top: 7px;";
 			}
-			echo "\n<td background='img_pack/barre-noir.gif' height=40 valign='middle'>";
-			echo "&nbsp; <font face='Verdana,Arial,Sans,sans-serif' size='2' color='black'><b>$texte</b></font> &nbsp;";
-			echo "</td>";
 		}
-		else {
-			onglet_relief_inter();
-			echo "\n<td class='reliefblanc' onMouseOver=\"changeclass(this,'reliefgris');\" onMouseOut=\"changeclass(this,'reliefblanc');\" height='40' valign='middle'>\n";
-			echo "<table border='0' cellspacing='0' cellpadding='0'><tr>\n";
-
-			if (strlen($icone)>3){
-				echo "\n<td height=40 valign='middle'>";
-				echo "&nbsp; <a href='$lien' class='icone'><img src='img_pack/$icone' border=0></a>";
-				echo "</td>";
+		
+		echo "<div onMouseOver=\"changeclass(this, 'onglet_on');\" onMouseOut=\"changeclass(this, 'onglet');\" class='onglet' style='position: relative;$style'><a href='$lien'>$texte</a></div>";
+		
+		
+		echo "</div>";
+	} else {
+		echo "<div style='position: relative;'>";
+		if ($spip_display != 1) {
+			if (strlen($icone) > 0) {
+				echo "<div style='z-index: 2; position: absolute; top: 0px; $spip_lang_left: 5px;'><img src='img_pack/$icone' /></div>";
+				$style = " top: 7px; padding-$spip_lang_left: 32px; z-index: 1;";
+			} else {
+				$style = " top: 7px;";
 			}
-			echo "\n<td height=40 valign='middle'>";
-			echo "<a href='$lien' class='icone'>&nbsp; <font face='Verdana,Arial,Sans,sans-serif' size='2' color='#666666'><b>$texte</b></font></a> &nbsp;";
-			echo "</td>";
-
-			echo "\n</tr></table>";
-			echo "\n</td>\n";
 		}
+		
+		echo "<div class='onglet_off' style='position: relative;$style'>$texte</div>";
+		
+		
+		echo "</div>";
 	}
+	echo "</td>";
 }
 
 
@@ -1083,13 +1404,26 @@ function barre_onglets($rubrique, $onglet){
 	debut_onglet();
 
 	if ($rubrique == "statistiques") {
-		onglet(_T('onglet_evolution_visite_mod'), "statistiques_visites.php3", "evolution", $onglet, "statistiques-24.gif");
-		onglet(_T('titre_liens_entrants'), "statistiques_referers.php3", "referers", $onglet, "referers-24.gif");
+	//	onglet(_T('onglet_evolution_visite_mod'), "statistiques_visites.php3", "evolution", $onglet, "statistiques-24.gif");
+	//	onglet(_T('titre_liens_entrants'), "statistiques_referers.php3", "referers", $onglet, "referers-24.gif");
 	}
 	if ($rubrique == "repartition") {
-		onglet(_T('onglet_repartition_rubrique'), "statistiques.php3", "rubriques", $onglet, "rubrique-24.gif");
-		if (lire_meta('multi_articles') == 'oui' OR lire_meta('multi_rubriques') == 'oui')
+		if (lire_meta('multi_articles') == 'oui' OR lire_meta('multi_rubriques') == 'oui') {
+			onglet(_T('onglet_repartition_rubrique'), "statistiques.php3", "rubriques", $onglet, "rubrique-24.gif");
 			onglet(_T('onglet_repartition_lang'), "statistiques_lang.php3", "langues", $onglet, "langues-24.gif");
+		}
+	}
+
+	if ($rubrique == "rep_depuis") {
+		onglet(_T('icone_repartition_actuelle'), "statistiques_lang.php3", "popularite", $onglet);
+		onglet(_T('onglet_repartition_debut'), "statistiques_lang.php3?critere=debut", "debut", $onglet);
+
+	}
+
+	if ($rubrique == "stat_depuis") {
+		onglet(_T('icone_repartition_actuelle'), "statistiquesphp3", "popularite", $onglet);
+		onglet(_T('onglet_repartition_debut'), "statistiques.php3?critere=debut", "debut", $onglet);
+
 	}
 
 	if ($rubrique == "administration"){
@@ -1120,6 +1454,11 @@ function barre_onglets($rubrique, $onglet){
 			onglet(_T('module_fichiers_langues'), "lang_raccourcis.php3", "fichiers", $onglet, "traductions-24.gif");
 		}
 	}
+	
+	if ($rubrique == "forums") {
+		onglet(_T('titre_forum'), "forum.php3", "privrac", $onglet, "forum-interne-24.gif");
+		onglet(_T('icone_forum_administrateur'), "forum_admin.php3", "privadm", $onglet, "forum-admin-24.gif");
+	}
 
 	if ($rubrique == "suivi_forum"){
 		onglet(_T('onglet_messages_publics'), "controle_forum.php3?page=public", "public", $onglet, "racine-site-24.gif");
@@ -1136,27 +1475,47 @@ function barre_onglets($rubrique, $onglet){
 }
 
 
-function icone_bandeau_principal($texte, $lien, $fond, $rubrique_icone = "vide", $rubrique = "", $lien_noscript = ""){
+function largeur_icone_bandeau_principal($texte) {
 	global $spip_display, $spip_ecran ;
-	global $menu_accesskey, $compteur_survol;
+	global $connect_statut, $connect_toutes_rubriques;
 
 	if ($spip_display == 1){
-		//$hauteur = 20;
 		$largeur = 80;
 	}
 	else if ($spip_display == 3){
-		//$hauteur = 50;
 		$largeur = 60;
-		$title = " title=\"$texte\"";
-		$alt = " alt=\"$texte\"";
 	}
 	else {
-		//$hauteur = 80;
 		if (count(explode(" ", $texte)) > 1) $largeur = 84;
 		else $largeur = 80;
 		$alt = " alt=\" \"";
 	}
+	if ($spip_ecran == "large") $largeur = $largeur + 30;
+
+	if (!($connect_statut == "0minirezo" AND $connect_toutes_rubriques)) {
+		$largeur = $largeur + 30;
+	}
 
+
+	return $largeur;
+}
+
+function icone_bandeau_principal($texte, $lien, $fond, $rubrique_icone = "vide", $rubrique = "", $lien_noscript = "", $sous_rubrique_icone = "", $sous_rubrique = ""){
+	global $spip_display, $spip_ecran, $couleur_foncee ;
+	global $menu_accesskey, $compteur_survol;
+
+	$largeur = largeur_icone_bandeau_principal($texte);
+
+	if ($spip_display == 1){
+	}
+	else if ($spip_display == 3){
+		$title = " title=\"$texte\"";
+		$alt = " alt=\"$texte\"";
+	}
+	else {
+		$alt = " alt=\" \"";
+	}
+	
 	if (!$menu_accesskey) $menu_accesskey = 1;
 	if ($menu_accesskey < 10) {
 		$accesskey = " accesskey='$menu_accesskey'";
@@ -1167,7 +1526,7 @@ function icone_bandeau_principal($texte, $lien, $fond, $rubrique_icone = "vide",
 		$menu_accesskey++;
 	}
 
-	if ($rubrique_icone == $rubrique) $class_select = " class='selection'";
+	if ($sous_rubrique_icone == $sous_rubrique) $class_select = " class='selection'";
 
 	if (eregi("^javascript:",$lien)) {
 		$a_href = "<a$accesskey onClick=\"$lien; return false;\" href='$lien_noscript' target='spip_aide'$class_select>";
@@ -1179,12 +1538,12 @@ function icone_bandeau_principal($texte, $lien, $fond, $rubrique_icone = "vide",
 	$compteur_survol ++;
 
 	if ($spip_display != 1) {
-		echo "<td class='cellule48' width='$largeur'>$a_href<img src='img_pack/$fond'$alt$title>";
+		echo "<td class='cellule48' onMouseOver=\"changestyle('bandeau$rubrique_icone', 'visibility', 'visible');\" width='$largeur'>$a_href<img src='img_pack/$fond' width='48' height='48'$alt$title>";
 		if ($spip_display != 3) {
 			echo "<span>$texte</span>";
 		}
 	}
-	else echo "<td class='cellule-texte' width='$largeur'>$a_href".$texte;
+	else echo "<td class='cellule-texte' onMouseOver=\"changestyle('bandeau$rubrique_icone', 'visibility', 'visible');\" width='$largeur'>$a_href".$texte;
 	echo "</a></td>\n";
 }
 
@@ -1217,8 +1576,6 @@ function icone_bandeau_secondaire($texte, $lien, $fond, $rubrique_icone = "vide"
 	}
 	if ($spip_display != 3 AND strlen($texte)>16) $largeur += 20;
 	
-	if ($largeur) $width = "width='$largeur'";
-
 	if (!$menu_accesskey) $menu_accesskey = 1;
 	if ($menu_accesskey < 10) {
 		$accesskey = " accesskey='$menu_accesskey'";
@@ -1236,7 +1593,8 @@ function icone_bandeau_secondaire($texte, $lien, $fond, $rubrique_icone = "vide"
 	$a_href = "<a$accesskey href=\"$lien\"$class_select>";
 
 	if ($spip_display != 1) {
-		echo "<td class='cellule36' width='$largeur'>$a_href<img src='img_pack/$fond'$alt$title>";
+		echo "<td class='cellule36' style='width: ".$largeur."px;'>";
+		echo "$a_href<img src='img_pack/$fond'$alt$title>";
 		if ($aide AND $spip_display != 3) echo aide($aide)." ";
 		if ($spip_display != 3) {
 			echo "<span>$texte</span>";
@@ -1257,7 +1615,7 @@ function icone($texte, $lien, $fond, $fonction="", $align="", $afficher='oui'){
 
 	if ($spip_display == 1){
 		$hauteur = 20;
-		$largeur = 80;
+		$largeur = 100;
 		$alt = " alt=\"\"";
 	}
 	else if ($spip_display == 3){
@@ -1268,7 +1626,7 @@ function icone($texte, $lien, $fond, $fonction="", $align="", $afficher='oui'){
 	}
 	else {
 		$hauteur = 70;
-		$largeur = 80;
+		$largeur = 100;
 	}
 
 	if ($fonction == "supprimer.gif") {
@@ -1326,16 +1684,59 @@ function bandeau_barre_verticale(){
 
 
 // lien changement de couleur
-function lien_change_var($lien, $set, $couleur, $coords, $titre) {
+function lien_change_var($lien, $set, $couleur, $coords, $titre, $mouseOver="") {
 	$lien->addVar($set, $couleur);
-	return "\n<area shape='rect' href='". $lien->getUrl() ."' coords='$coords' title=\"$titre\">";
+	return "\n<area shape='rect' href='". $lien->getUrl() ."' coords='$coords' title=\"$titre\" $mouseOver>";
 }
 
 //
 // Debut du corps de la page
 //
 
-function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivre") {
+function bandeau_rubrique ($id_rubrique, $titre_rubrique, $z = 1) {
+	global $zdecal;
+	global $spip_ecran, $spip_display;
+	global $spip_lang, $spip_lang_rtl, $spip_lang_left, $spip_lang_right;
+
+	// Calcul du nombre max de sous-menus	
+	$zdecal = $zdecal + 1;
+	if ($spip_ecran == "large") $zmax = 8;
+	else $zmax= 6;
+	
+	// Limiter volontairement le nombre de sous-menus 
+	$zmax = 3;
+	
+	
+	if ($zindex < 1) $zindex = 1;
+	if ($zdecal == 1) $image = "secteur-12.gif";
+	else $image = "rubrique-12.gif";
+	
+	
+	
+	$result_rub = spip_query("SELECT * FROM spip_rubriques WHERE id_parent=$id_rubrique ORDER BY titre");
+
+	$i = spip_num_rows($result_rub);
+	if ($i > 0 AND $zdecal < $zmax) {
+		echo "<div style='position: relative; z-index: $z;' onMouseOver=\"findObj('bandeau_rub$id_rubrique').style.visibility = 'visible';\" onMouseOut=\"findObj('bandeau_rub$id_rubrique').style.visibility = 'hidden';\">\n";
+		echo "<div style='background: url(img_pack/triangle-droite$spip_lang_rtl.gif) $spip_lang_right center no-repeat;'><a href='naviguer.php3?coll=$id_rubrique' class='bandeau_rub' style='background-image: url(img_pack/$image);'>$titre_rubrique</a></div>\n";
+		echo "<div class='bandeau_rub' style='z-index: ".($z+1).";' id='bandeau_rub$id_rubrique'>";
+		while ($row_rub = spip_fetch_array($result_rub)) {
+			$id_rub = $row_rub["id_rubrique"];
+			$titre_rub = supprimer_numero(typo($row_rub["titre"]));
+			//echo "<a href='naviguer.php3?coll=$id_rub' class='bandeau_rub'>$titre_rub</a>";
+			bandeau_rubrique ($id_rub, $titre_rub, ($z+$i));
+			$i = $i - 1;
+		}
+		echo "</div>";
+		echo "</div></n>";
+	} else {
+		echo "<div><a href='naviguer.php3?coll=$id_rubrique' class='bandeau_rub' style='background-image: url(img_pack/$image); padding-$spip_lang_right: 2px;'>$titre_rubrique</a></div>";
+	}
+	$zdecal = $zdecal - 1;
+
+}
+
+function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivre", $onLoad = "") {
 	global $couleur_foncee;
 	global $couleur_claire;
 	global $adresse_site;
@@ -1345,7 +1746,7 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr
 	global $connect_toutes_rubriques;
 	global $auth_can_disconnect, $connect_login;
 	global $options, $spip_display, $spip_ecran;
-	global $spip_lang, $spip_lang_rtl;
+	global $spip_lang, $spip_lang_rtl, $spip_lang_left, $spip_lang_right;
 	$activer_messagerie = lire_meta("activer_messagerie");
 	global $clean_link;
 
@@ -1361,90 +1762,81 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr
 
 	if (strlen($adresse_site)<10) $adresse_site="../";
 
-	debut_html($titre);
+	debut_html($titre, $rubrique, $onLoad);
 
 	$ctitre = _T('titre_changer_couleur_interface');
 	echo "\n<map name='map_couleur'>";
-	echo lien_change_var ($clean_link, 'set_couleur', 6, '0,0,10,10', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 1, '12,0,22,10', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 2, '24,0,34,10', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 3, '36,0,46,10', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 4, '48,0,58,10', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 5, '60,0,70,10', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 7, '0,11,10,21', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 8, '12,11,22,21', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 9, '24,11,34,21', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 10, '36,11,46,21', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 11, '48,11,58,21', $ctitre);
-	echo lien_change_var ($clean_link, 'set_couleur', 12, '60,11,70,21', $ctitre);
+	echo lien_change_var ($clean_link, 'set_couleur', 6, '0,0,10,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_couleur', 1, '12,0,22,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_couleur', 2, '24,0,34,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_couleur', 3, '36,0,46,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_couleur', 4, '48,0,58,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_couleur', 5, '60,0,70,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\"");
 	echo "\n</map>";
 
 	echo "\n<map name='map_layout'>";
-	echo lien_change_var ($clean_link, 'set_disp', 1, '1,0,18,15', _T('lien_afficher_texte_seul'));
-	echo lien_change_var ($clean_link, 'set_disp', 2, '19,0,40,15', _T('lien_afficher_texte_icones'));
-	echo lien_change_var ($clean_link, 'set_disp', 3, '41,0,59,15', _T('lien_afficher_icones_seuls'));
+	echo lien_change_var ($clean_link, 'set_disp', 1, '1,0,18,15', _T('lien_afficher_texte_seul'), "onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_disp', 2, '19,0,40,15', _T('lien_afficher_texte_icones'), "onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\"");
+	echo lien_change_var ($clean_link, 'set_disp', 3, '41,0,59,15', _T('lien_afficher_icones_seuls'), "onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\"");
 	echo "\n</map>";
 
+
+
 	// Icones principales
+	
+	echo "<div id='haut-page'>";
 
 	echo "<div class='bandeau-principal' align='center'>\n";
-	echo "<div class='bandeau-icones' style='width: ".$largeur."px'>\n";
-	echo "<table class='gauche'><tr>\n";
-
-	icone_bandeau_principal (_T('icone_a_suivre'), "index.php3", "asuivre-48.gif", "asuivre", $rubrique);
-	icone_bandeau_principal (_T('icone_edition_site'), "naviguer.php3", "documents-48$spip_lang_rtl.gif", "documents", $rubrique);
-	icone_bandeau_principal (_T('icone_discussions'), "forum.php3", "messagerie-48.gif", "redacteurs", $rubrique);
-	if ($connect_statut == "0minirezo") {
-		bandeau_barre_verticale();
-		if ($connect_toutes_rubriques) 
-			icone_bandeau_principal (_T('icone_suivi_actualite'), "controle_forum.php3", "suivi-48.gif", "suivi", $rubrique);
-		else if (lire_meta("activer_statistiques") != 'non') 
-			icone_bandeau_principal (_T('icone_statistiques'), "statistiques_visites.php3", "statistiques-48.gif", "suivi", $rubrique);
+	echo "<div class='bandeau-icones' >\n";
+	echo "<table width='$largeur' cellpadding='0' cellspacing='0' border='0' align='center'><tr>\n";
+
+	icone_bandeau_principal (_T('icone_a_suivre'), "index.php3", "asuivre-48.png", "asuivre", $rubrique, "", "asuivre", $sous_rubrique);
+	icone_bandeau_principal (_T('icone_edition_site'), "naviguer.php3", "documents-48$spip_lang_rtl.png", "documents", $rubrique, "", "rubriques", $sous_rubrique);
+	icone_bandeau_principal (_T('titre_forum'), "forum.php3", "messagerie-48.png", "redacteurs", $rubrique, "", "forum-interne", $sous_rubrique);
+	icone_bandeau_principal (_T('icone_auteurs'), "auteurs.php3", "redacteurs-48.png", "auteurs", $rubrique, "", "redacteurs", $sous_rubrique);
+	if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques AND lire_meta("activer_statistiques") != 'non') {
+		//bandeau_barre_verticale();
+		icone_bandeau_principal (_T('icone_statistiques_visites'), "statistiques_visites.php3", "statistiques-48.png", "suivi", $rubrique, "", "statistiques", $sous_rubrique);
 	}
 	if ($connect_statut == '0minirezo' and $connect_toutes_rubriques) {
-		icone_bandeau_principal (_T('icone_admin_site'), "configuration.php3", "administration-48.gif", "administration", $rubrique);
+		icone_bandeau_principal (_T('icone_configuration_site'), "configuration.php3", "administration-48.png", "administration", $rubrique, "", "configuration", $sous_rubrique);
 	}
 
-	echo "</tr></table>\n";
-	echo "<table class='droite'><tr>\n";
+	echo "<td> &nbsp; </td>";
 
-	icone_bandeau_principal (_T('icone_aide_ligne'), "javascript:window.open('aide_index.php3?var_lang=$spip_lang', 'aide_spip', 'scrollbars=yes,resizable=yes,width=740,height=580');", "aide-48$spip_lang_rtl.gif", "vide", "", "aide_index.php3?var_lang=$spip_lang");
-	icone_bandeau_principal (_T('icone_visiter_site'), "$adresse_site", "visiter-48$spip_lang_rtl.gif");
 
-	echo "</tr></table>\n";
 
-	// Merci le W3C pour l'alignement vertical / Thank you W3C idiots for vertical alignment
-	if ($spip_display == 1) $h = 8;
-	else if ($spip_display == 3) $h = 20;
-	else $h = 34;
-	echo "<div class='milieu' style='margin-top: ".$h."px'>";
-	echo "<img src='img_pack/choix-layout$spip_lang_rtl".($spip_lang=='he'?'_he':'').".gif' alt='abc' vspace=3 border=0 usemap='#map_layout'>";
-	echo "</div>\n";
 
-	echo "<div class='fin'></div>\n";
+	icone_bandeau_principal (_T('icone_aide_ligne'), "javascript:window.open('aide_index.php3?var_lang=$spip_lang', 'aide_spip', 'scrollbars=yes,resizable=yes,width=740,height=580');", "aide-48$spip_lang_rtl.png", "vide", "", "aide_index.php3?var_lang=$spip_lang", "aide-en-ligne", $sous_rubrique);
+	icone_bandeau_principal (_T('icone_visiter_site'), "$adresse_site", "visiter-48$spip_lang_rtl.png", "visiter","", "visiter", $sous_rubrique);
 
-	echo "</div>\n";
-	echo "</div>\n";
+	echo "</tr></table>\n";
 
 
+	echo "</div>\n";
+	
+	echo "<div style='text-align: $spip_lang_left; width: ".$largeur."px; position: relative; z-index: 2000;'>";
+	
 	// Icones secondaires
 	$activer_messagerie = lire_meta("activer_messagerie");
 	$connect_activer_messagerie = $GLOBALS["connect_activer_messagerie"];
+	
+	if ($rubrique == "asuivre"){
+		$class = "visible_au_chargement";
+	} else {
+		$class = "invisible_au_chargement";
+	}
+	$decal = largeur_icone_bandeau_principal(_T('icone_a_suivre'));
 
-	echo "<div class='bandeau-secondaire' align='center'>\n";
-	echo "<div class='bandeau-icones' style='width: ".$largeur."px'>\n";
-	echo "<table class='gauche'><tr>\n";
 
-	if ($rubrique == "asuivre"){
-		icone_bandeau_secondaire (_T('icone_a_suivre'), "index.php3", "asuivre-24.gif", "asuivre", $sous_rubrique);
-		icone_bandeau_secondaire (_T('icone_informations_personnelles'), "auteurs_edit.php3?id_auteur=$connect_id_auteur", "fiche-perso-24.gif", "perso", $sous_rubrique);
-		icone_bandeau_secondaire (_T('icone_site_entier'), "articles_tous.php3", "tout-site-24.gif", "tout-site", $sous_rubrique);
-		if ($options == "avancees"){
-			icone_bandeau_secondaire (_T('icone_suivi_activite'), "synchro.php3", "synchro-24.gif", "synchro", $sous_rubrique);
-		}
+	if ($rubrique == "documents"){
+		$class = "visible_au_chargement";
+	} else {
+		$class = "invisible_au_chargement";
 	}
-	else if ($rubrique == "documents"){
-		icone_bandeau_secondaire (_T('icone_rubriques'), "naviguer.php3", "rubrique-24.gif", "rubriques", $sous_rubrique);
+	if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) {
+		echo "<div class='$class' id='bandeaudocuments' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n";
+		//icone_bandeau_secondaire (_T('icone_rubriques'), "naviguer.php3", "rubrique-24.gif", "rubriques", $sous_rubrique);
 
 		$nombre_articles = spip_num_rows(spip_query("SELECT art.id_article FROM spip_articles AS art, spip_auteurs_articles AS lien WHERE lien.id_auteur = '$connect_id_auteur' AND art.id_article = lien.id_article LIMIT 0,1"));
 		if ($nombre_articles > 0) {
@@ -1456,8 +1848,6 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr
 			icone_bandeau_secondaire (_T('icone_breves'), "breves.php3", "breve-24.gif", "breves", $sous_rubrique);
 		}
 
-		icone_bandeau_secondaire (_T('icone_auteurs'), "auteurs.php3", "redacteurs-24.gif", "redacteurs", $sous_rubrique);
-
 		if ($options == "avancees"){
 			$articles_mots = lire_meta('articles_mots');
 			if ($articles_mots != "non") {
@@ -1472,173 +1862,483 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr
 				icone_bandeau_secondaire (_T('icone_doc_rubrique'), "documents_liste.php3", "doc-24.gif", "documents", $sous_rubrique);
 			}
 		}
+		echo "</tr></table></div></div>";
 	}
-	else if ($rubrique == "redacteurs") {
-		icone_bandeau_secondaire (_T('titre_forum'), "forum.php3", "forum-interne-24.gif", "forum-interne", $sous_rubrique);
-		if ($connect_statut == "0minirezo" AND lire_meta('forum_prive_admin') == 'oui')
-			icone_bandeau_secondaire (_T('icone_forum_administrateur'), "forum_admin.php3", "forum-admin-24.gif", "forum-admin", $sous_rubrique);
-		
-		if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non") {
-			bandeau_barre_verticale();
-			icone_bandeau_secondaire (_T('icone_agenda'), "calendrier_jour.php3", "agenda-24.gif", "calendrier", $sous_rubrique);
-			icone_bandeau_secondaire (_T('icone_messagerie_personnelle'), "messagerie.php3", "messagerie-24.gif", "messagerie", $sous_rubrique);
+
+	$decal = $decal + largeur_icone_bandeau_principal(_T('icone_edition_site'));
+
+
+	
+	
+	if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) {
+		if ($rubrique == "redacteurs") {
+			$class = "visible_au_chargement";
+		} else {
+			$class = "invisible_au_chargement";
 		}
+
+			echo "<div class='$class' id='bandeauredacteurs' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n";
+			if ($connect_toutes_rubriques) {
+				icone_bandeau_secondaire (_T('icone_suivi_forums'), "controle_forum.php3", "suivi-forum-24.gif", "forum-controle", $sous_rubrique);
+				icone_bandeau_secondaire (_T('icone_suivi_pettions'), "controle_petition.php3", "petition-24.gif", "suivi-petition", $sous_rubrique);
+			}
+			echo "</tr></table></div></div>";
+	
 	}
-	else if ($rubrique == "suivi") {
-		if ($connect_toutes_rubriques) {
-			icone_bandeau_secondaire (_T('icone_suivi_forums'), "controle_forum.php3", "suivi-forum-24.gif", "forum-controle", $sous_rubrique);
-			icone_bandeau_secondaire (_T('icone_suivi_pettions'), "controle_petition.php3", "petition-24.gif", "suivi-petition", $sous_rubrique);
-		}
-		if (lire_meta("activer_statistiques") != 'non') {
-			if ($connect_toutes_rubriques) bandeau_barre_verticale();
-			icone_bandeau_secondaire (_T('icone_statistiques_visites'), "statistiques_visites.php3", "statistiques-24.gif", "statistiques", $sous_rubrique);
-			icone_bandeau_secondaire (_T('icone_repartition_visites'), "statistiques.php3", "rubrique-24.gif", "repartition", $sous_rubrique);
+	
+	$decal = $decal + largeur_icone_bandeau_principal(_T('icone_discussions'));
+	
+	
+	
+	
+	$decal = $decal + largeur_icone_bandeau_principal(_T('icone_auteurs'));
+
+	// decalage pour barre verticale
+	//$decal = $decal + 11;
+
+	if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques AND lire_meta("activer_statistiques") != 'non') {
+		if ($rubrique == "suivi") {
+			$class = "visible_au_chargement";
+		} else {
+			$class = "invisible_au_chargement";
 		}
+		echo "<div class='$class' id='bandeausuivi' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n";
+		if ($connect_toutes_rubriques) bandeau_barre_verticale();
+
+		icone_bandeau_secondaire (_T('icone_repartition_visites'), "statistiques.php3", "rubrique-24.gif", "repartition", $sous_rubrique);
+		icone_bandeau_secondaire (_T('titre_liens_entrants'), "statistiques_referers.php3", "referers-24.gif", "referers", $sous_rubrique);
+
+		echo "</tr></table></div></div>";
+
+		$decal = $decal + largeur_icone_bandeau_principal(_T('icone_suivi_actualite'));
+	
 	}
-	else if ($rubrique == "administration") {
-		icone_bandeau_secondaire (_T('icone_configuration_site'), "configuration.php3", "administration-24.gif", "configuration", $sous_rubrique);
-		icone_bandeau_secondaire (_T('icone_gestion_langues'), "config-lang.php3", "langues-24.gif", "langues", $sous_rubrique);
 
-		bandeau_barre_verticale();
-		if ($options == "avancees") {
-			icone_bandeau_secondaire (_T('icone_maintenance_site'), "admin_tech.php3", "base-24.gif", "base", $sous_rubrique);
-			icone_bandeau_secondaire (_T('onglet_vider_cache'), "admin_vider.php3", "cache-24.gif", "cache", $sous_rubrique);
-		}
-		else {
-			icone_bandeau_secondaire (_T('icone_sauver_site'), "admin_tech.php3", "base-24.gif", "base", $sous_rubrique);
+
+	if ($connect_statut == '0minirezo' and $connect_toutes_rubriques) {
+		if ($rubrique == "administration") {
+			$class = "visible_au_chargement";
+		} else {
+			$class = "invisible_au_chargement";
 		}
-	}
+			echo "<div class='$class' id='bandeauadministration' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n";
+			//icone_bandeau_secondaire (_T('icone_configuration_site'), "configuration.php3", "administration-24.gif", "configuration", $sous_rubrique);
+			icone_bandeau_secondaire (_T('icone_gestion_langues'), "config-lang.php3", "langues-24.gif", "langues", $sous_rubrique);
+	
+			bandeau_barre_verticale();
+			if ($options == "avancees") {
+				icone_bandeau_secondaire (_T('icone_maintenance_site'), "admin_tech.php3", "base-24.gif", "base", $sous_rubrique);
+				icone_bandeau_secondaire (_T('onglet_vider_cache'), "admin_vider.php3", "cache-24.gif", "cache", $sous_rubrique);
+			}
+			else {
+				icone_bandeau_secondaire (_T('icone_sauver_site'), "admin_tech.php3", "base-24.gif", "base", $sous_rubrique);
+			}
+			echo "</tr></table></div></div>";
+
+
 
+	}	
 	
+	echo "</div>";
+	echo "</div>\n";
 
-	if ($options == "avancees" AND !($spip_display != 3 AND $rubrique == "documents" AND $spip_ecran == "etroit")) {
-		global $recherche;
-		if ($recherche == '' AND $spip_display != 2) {
-			$recherche_aff = _T('info_rechercher');
-			$onfocus = " onfocus=\"if(!antifocus){this.value='';antifocus=true;}\"";
-		} else
-			$recherche_aff = $recherche;
-		bandeau_barre_verticale();
-		echo "<td>";
-		echo "<form method='get' style='margin: 0px;' action='recherche.php3'>";
-		if ($spip_display == "2")
-			echo "<font face='Verdana,Arial,Sans,sans-serif' size=1 color='#505050'><b>"._T('info_rechercher_02')."</b></font><br>";
-		echo '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="spip_recherche" style="width: 70px" accesskey="r"'.$onfocus.'>';
-		echo "</form>";
-		echo "</td>";
+	// Bandeau
+	if ($rubrique == "administration") {
+		$style = "background: url(img_pack/rayures-danger.png); background-color: $couleur_foncee";
+		echo "<style>a.icone26 { color: white; }</style>";
 	}
+	else {
+		$style = "background-color: $couleur_claire";
+	}
+	echo "\n<div style=\"height: 27px; width: 100%; border-bottom: solid 1px white;$style\">";
+	echo "<table align='center' cellpadding='0' background='' width='$largeur'><tr width='$largeur'>";
 
-	echo "</tr></table>\n";
 
-	if ($auth_can_disconnect) {
-		echo "<table class='droite'><tr>\n";
-		icone_bandeau_secondaire (_T('icone_deconnecter'), "../spip_cookie.php3?logout=$connect_login", "deconnecter-24$spip_lang_rtl.gif", "", $sous_rubrique, "deconnect");
-		echo "</tr></table>\n";
-	}
 
-	echo "<div class='fin'></div>\n";
 
-	echo "</div>\n";
-	echo "</div>\n";
+	echo "<td valign='middle'>";
+		echo "<a href='articles_tous.php3' class='icone26' onMouseOver=\"changestyle('bandeautoutsite','visibility','visible');\"><img src='img_pack/tout-site.gif' border='0'></a>";
 
+		$id_rubrique = $GLOBALS['id_rubrique'];
+		if ($id_rubrique > 0) echo "<a href='brouteur.php3?id_rubrique=$id_rubrique' class='icone26' onMouseOver=\"changestyle('bandeaunavrapide','visibility','visible');\"><img src='img_pack/naviguer-site.gif' alt='' width='26' height='20' border='0'></a>";
+		else echo "<a href='brouteur.php3' class='icone26' onMouseOver=\"changestyle('bandeaunavrapide','visibility','visible');\" ><img src='img_pack/naviguer-site.gif' alt='' width='26' height='20' border='0'></a>";
 
-	// Bandeau
-	echo "\n<table cellpadding='0' bgcolor='$couleur_foncee' style='border-bottom: solid 1px white; border-top: solid 1px #666666;' width='100%'><tr width='100%'><td width='100%'>";
-	echo "<table align='center' cellpadding='0' background='' width='$largeur'><tr width='$largeur'>";
+		echo "<a href='recherche.php3' class='icone26' onMouseOver=\"changestyle('bandeaurecherche','visibility','visible');\" ><img src='img_pack/loupe.gif' alt='' width='26' height='20' border='0'></a>";
 
-	echo "<td>";
-	echo "<font size=1 face='Verdana,Arial,Sans,sans-serif'>";
-		if ($options == "avancees") {
+		echo"<img src='img_pack/rien.gif' width='10' />";
+
+		echo "<a href='calendrier.php3' class='icone26' onMouseOver=\"changestyle('bandeauagenda','visibility','visible');\"><img src='img_pack/cal-rv.gif' alt='' width='26' height='20' border='0'></a>";
+		echo "<a href='messagerie.php3' class='icone26' onMouseOver=\"changestyle('bandeaumessagerie','visibility','visible');\"><img src='img_pack/cal-messagerie.gif' alt='' width='26' height='20' border='0'></a>";
+		echo "<a href='synchro.php3' class='icone26' onMouseOver=\"changestyle('bandeausynchro','visibility','visible');\"><img src='img_pack/cal-suivi.gif' alt='' width='26' height='20' border='0'></a>";
+		
+
+
+		echo"<img src='img_pack/rien.gif' width='10' />";
+
+		// Redacteur connecte
+		echo "<a href='auteurs_edit.php3?id_auteur=$connect_id_auteur' class='icone26' onMouseOver=\"changestyle('bandeauinfoperso','visibility','visible');\"><img src='img_pack/fiche-perso.gif' border='0' onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\">";
+		echo $GLOBALS["connect_nom"];
+		echo "</a>";
+	
+	echo "</td>";
+	
+	echo "<td> &nbsp; </td>";
+	echo "<td class='bandeau_couleur' style='text-align: $spip_lang_right;' valign='middle'>";
+
+
+			// Choix display
+		//	echo"<img src='img_pack/rien.gif' width='10' />";
+			if ($options != "avancees") {
+				$lien = $clean_link;
+				$lien->addVar('set_options', 'avancees');
+				$simple = "<b>"._T('icone_interface_simple')."</b>/"._T('icone_interface_complet');
+			} else {
+				$lien = $clean_link;
+				$lien->addVar('set_options', 'basiques');
+				$simple = _T('icone_interface_simple')."/<b>"._T('icone_interface_complet')."</b>";
+			}
+			echo "<a href='". $lien->getUrl() ."' class='icone26' onMouseOver=\"changestyle('bandeaudisplay','visibility', 'visible');\"><img src='img_pack/interface-display.gif' alt='' width='26' height='20' border='0'></a>";
+
+			echo "<img src='img_pack/rien.gif' width='10' height='1' />";
+			echo "<img src='img_pack/choix-layout$spip_lang_rtl".($spip_lang=='he'?'_he':'').".png' alt='abc' align='middle' width='59' height='15' usemap='#map_layout' border='0' />";
+
+
+			echo "<img src='img_pack/rien.gif' width='10' height='1' />";
+			// grand ecran
 			$lien = $clean_link;
-			$lien->addVar('set_options', 'basiques');
-			echo "<span class='fondgris'
-				onMouseOver=\"changeclass(this,'fondgrison2')\"
-				onMouseOut=\"changeclass(this,'fondgris')\"><a
-				href='". $lien->getUrl() ."' class='icone'><font color='black'>"._T('icone_interface_simple')."</font></a></span>";
-			echo " <span class = 'fondo'><b>"._T('info_interface_complete')."</b></span>";
+			if ($spip_ecran == "large") {
+				$lien->addVar('set_ecran', 'etroit');
+				echo "<a href='". $lien->getUrl() ."' class='icone26' onMouseOver=\"changestyle('bandeauecran','visibility', 'visible');\" title=\""._T('info_petit_ecran')."\"><img src='img_pack/set-ecran-etroit.gif' alt=\""._T('info_petit_ecran')."\" width='26' height='20' border='0'></a>";
+				$ecran = "<div>"._T('info_petit_ecran')."/<b>"._T('info_grand_ecran')."</b></div>";
+			}
+			else {
+				$lien->addVar('set_ecran', 'large');
+				echo "<a href='". $lien->getUrl() ."' class='icone26' onMouseOver=\"changestyle('bandeauecran','visibility', 'visible');\" title=\""._T('info_grand_ecran')."\"><img src='img_pack/set-ecran.gif' alt=\""._T('info_grand_ecran')."\" width='26' height='20' border='0'></a>";
+				$ecran = "<div><b>"._T('info_petit_ecran')."</b>/"._T('info_grand_ecran')."</div>";
+			}
+
+
+			// choix de la couleur
+			echo "<img src='img_pack/rien.gif' width='10' height='1' />";
+			echo "<img src='img_pack/barre-couleurs.gif' onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\" alt='' width='70' height='10' border='0' usemap='#map_couleur'>";
+
+	
+			echo "<img src='img_pack/rien.gif' width='120' height='1' />";
+
 
+			if ($auth_can_disconnect) {	
+				echo "<a href='../spip_cookie.php3?logout=$connect_login' class='icone26' onMouseOver=\"changestyle('bandeaudeconnecter','visibility', 'visible');\"><img src='img_pack/deconnecter-24$spip_lang_rtl.gif' border='0'></a>";
+			}
+		echo "</td>";
+	
+	
+	echo "</tr></table>";
+	
+	echo "<table width='$largeur' cellpadding='0' cellspacing='0'' align='center'><tr><td>";
+	echo "<div style='position: relative; z-index: 1000;'>";
+	
+	
+		echo "<div id='bandeautoutsite' class='bandeau_couleur_sous' style='$spip_lang_left: 0px; width: 170px;'>";
+		echo _T('icone_site_entier');
+		
+		$result_racine = spip_query("SELECT * FROM spip_rubriques WHERE id_parent=0 ORDER BY titre");
+		$i = spip_num_rows($result_racine);
+		if ($i > 0) {
+			echo "<div>&nbsp;</div>";
+			echo "<div class='bandeau_rubriques' style='z-index: 1;'>";
+			while ($row = spip_fetch_array($result_racine)) {
+				$id_rubrique = $row["id_rubrique"];
+				$titre_rubrique = supprimer_numero(typo($row["titre"]));
+				
+				bandeau_rubrique ($id_rubrique, $titre_rubrique, $i);
+				
+				$i = $i - 1;
+			}
+			echo "</div>";
 		}
-		else {
-			$lien = $clean_link;
-			$lien->addVar('set_options', 'avancees');
-			echo "<span class='fondgrison2'><b>"._T('info_interface_simple')."</b></span> <span class='fondgris'
-				onMouseOver=\"changeclass(this,'fondgrison2')\"
-				onMouseOut=\"changeclass(this,'fondgris')\"><a
-				href='". $lien->getUrl() ."' class='icone'><font color='black'>"._T('icone_interface_complet')."</font></a></span>";
+		
+		echo "</div>";
+	
+	
+	
+	
+		echo "<div id='bandeaunavrapide' class='bandeau_couleur_sous' style='$spip_lang_left: 30px; width: 300px;'>";
+		echo _T('icone_brouteur');
+
+		
+
+		$vos_articles = spip_query("SELECT articles.id_article, articles.titre, articles.statut FROM spip_articles AS articles, spip_auteurs_articles AS lien WHERE articles.id_article=lien.id_article ".
+			"AND lien.id_auteur=$connect_id_auteur AND articles.statut='prepa' ORDER BY articles.date DESC LIMIT 0,5");
+		if (spip_num_rows($vos_articles) > 0) {
+			echo "<div>&nbsp;</div>";
+			echo "<div class='bandeau_rubriques' style='z-index: 1;'>";
+			bandeau_titre_boite2(_T('info_en_cours_validation'), "article-24.gif");
+			echo "<div class='plan-articles'>";
+			while($row = spip_fetch_array($vos_articles)) {
+				$id_article = $row['id_article'];
+				$titre = typo($row['titre']);
+				$statut = $row['statut'];
+	
+				echo "<a class='$statut' style='font-size: 10px;' href='articles.php3?id_article=$id_article'>$titre</a>";
+			}
+			echo "</div>";
+			echo "</div>";
+		}
+	
+		$vos_articles = spip_query("SELECT articles.id_article, articles.titre, articles.statut FROM spip_articles AS articles WHERE articles.statut='prop' ".
+			" ORDER BY articles.date DESC LIMIT 0,5");
+		if (spip_num_rows($vos_articles) > 0) {
+			echo "<div>&nbsp;</div>";
+			echo "<div class='bandeau_rubriques' style='z-index: 1;'>";
+			bandeau_titre_boite2(_T('info_articles_proposes'), "article-24.gif");
+			echo "<div class='plan-articles'>";
+			while($row = spip_fetch_array($vos_articles)) {
+				$id_article = $row['id_article'];
+				$titre = typo($row['titre']);
+				$statut = $row['statut'];
+	
+				echo "<a class='$statut' style='font-size: 10px;' href='articles.php3?id_article=$id_article'>$titre</a>";
+			}
+			echo "</div>";
+			echo "</div>";
+		}
+			
+		$vos_articles = spip_query("SELECT * FROM spip_breves WHERE statut='prop' ".
+			" ORDER BY date_heure DESC LIMIT 0,5");
+		if (spip_num_rows($vos_articles) > 0) {
+			echo "<div>&nbsp;</div>";
+			echo "<div class='bandeau_rubriques' style='z-index: 1;'>";
+			bandeau_titre_boite2(_T('info_breves_valider'), "breve-24.gif", "$couleur_foncee", "white");
+			echo "<div class='plan-articles'>";
+			while($row = spip_fetch_array($vos_articles)) {
+				$id_breve = $row['id_breve'];
+				$titre = typo($row['titre']);
+				$statut = $row['statut'];
+	
+				echo "<a class='$statut' style='font-size: 10px;' href='breves_voir.php3?id_breve=$id_breve'>$titre</a>";
+			}
+			echo "</div>";
+			echo "</div>";
+		}
+	
+
+		$query = "SELECT id_rubrique FROM spip_rubriques LIMIT 0,1";
+		$result = spip_query($query);
+	
+		if (spip_num_rows($result) > 0) {
+			$id_rubrique = $GLOBALS['id_rubrique'];
+			if ($id_rubrique > 0) $dans_rub = "&id_rubrique=$id_rubrique";
+		
+			echo "<table><tr>";
+			
+			echo "<td>";
+			icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php3?new=oui$dans_rub", "article-24.gif","creer.gif");
+			echo "</td>";
+			echo "<td>&nbsp;</td>";
+			echo "<td>";
+			$activer_breves = lire_meta("activer_breves");
+			if ($activer_breves != "non") {
+				icone_horizontale(_T('icone_nouvelle_breve'), "breves_edit.php3?new=oui$dans_rub", "breve-24.gif","creer.gif");
+			}
+			echo "</td>";
+			echo "</tr></table>";
 		}
 
-	echo "</font>";
-	echo "</td>";
 
-	if ($options == 'avancees') {
-		echo "<td>   </td>";
-		echo "<td>";
-		global $id_rubrique;
-		if ($id_rubrique > 0) echo "<a href='brouteur.php3?id_rubrique=$id_rubrique' title='"._T('icone_brouteur')."'><img src='img_pack/naviguer-site.gif' alt='nav' width='26' height='20' border='0'></a> ";
-		else echo "<a href='brouteur.php3' title='"._T('icone_brouteur')."'><img src='img_pack/naviguer-site.gif' alt='nav' width='26' height='20' border='0'></a> ";
-		if ($activer_messagerie == "oui" AND $connect_activer_messagerie != "non") echo "<a href='calendrier.php3' title='"._T('icone_agenda')."'><img src='img_pack/cal-mois.gif' alt='jour' width='26' height='20' border='0'></a>";
+		echo "</div>";
+	
+		echo "<div id='bandeaurecherche' class='bandeau_couleur_sous' style='width: 100px; $spip_lang_left: 60px;'>";
+		global $recherche;
+				$recherche_aff = _T('info_rechercher');
+				$onfocus = "onfocus=this.value='';";
+			echo "<form method='get' style='margin: 0px;' action='recherche.php3'>";
+			echo '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="spip_recherche" accesskey="r" '.$onfocus.'>';
+			echo "</form>";
+		echo "</div>";
+	
+		echo "<div id='bandeauagenda' class='bandeau_couleur_sous' style='width: 420px; $spip_lang_left: 100px;'>";
+		echo _T('icone_agenda');
+
+
+		debut_cadre_relief();
+		
+		icone_horizontale("NOUVEAU RENDEZ-VOUS PERSONNEL","message_edit.php3?new=oui&type=pb", "pense-bete.gif", "rv.gif");
+		icone_horizontale("NOUVEAU RENDEZ-VOUS","message_edit.php3?new=oui&type=normal", "message.gif", "rv.gif");
 		
+		if ($connect_statut == "0minirezo") {
+			icone_horizontale("NOUVEAU RENDEZ-VOUS G&Eacute;N&Eacute;RAL","message_edit.php3?new=oui&type=affich", "annonce.gif", "rv.gif");
+		}
+		fin_cadre_relief();
+
+
+			include_ecrire("inc_agenda.php3");
+			
+			echo "<table style='border= 1px solid #cccccc; background-color: #dddddd; padding: 5px; margin-top: 5px;'><tr>";
+			
+			echo "<td valign='top' width='200'>";
+			echo "<div>&nbsp;</div>";
+			echo "<div style='color: black;'>";
+				afficher_taches();
+			echo "</div>";
+
+				$today = getdate(time());
+				$jour_today = $today["mday"];
+				$mois_today = $today["mon"];
+				$annee_today = $today["year"];
+				$date = date("Y-m-d", mktime(0,0,0,$mois_today, 1, $annee_today));
+				$mois = mois($date);
+				$annee = annee($date);
+				$jour = jour($date);
+		
+				// rendez-vous personnels dans le mois
+				$result_messages = spip_query("SELECT messages.id_message FROM spip_messages AS messages, spip_auteurs_messages AS lien ".
+						"WHERE ((lien.id_auteur='$connect_id_auteur' AND lien.id_message=messages.id_message) OR messages.type='affich') ".
+						"AND messages.rv='oui' AND messages.date_heure >='$annee-$mois-1' AND date_heure < DATE_ADD('$annee-$mois-1', INTERVAL 1 MONTH) ".
+						"AND messages.statut='publie' LIMIT 0,1");
+				if (spip_num_rows($result_messages)) {
+					echo "<div>";
+					agenda ($mois_today, $annee_today, $jour_today, $mois_today, $annee_today);
+					echo "</div>";
+				}
+			echo "</td>";
+			echo "<td valign='top' width='10'> &nbsp;";
+			echo "</td>";
+			echo "<td valign='top' width='200'>";
+				echo "<div style='color: white;'>";
+				// rendez-vous personnels dans le mois
+				calendrier_jour($jour_today,$mois_today,$annee_today, "col");
+				echo "</div>";
+			echo "</td>";
+			echo "</tr></table>";
+		
+
+		echo "</div>";
+
+		echo "<div id='bandeaumessagerie' class='bandeau_couleur_sous' style='$spip_lang_left: 130px;'>";
+		echo _T('icone_messagerie_personnelle');
+
+		debut_cadre_relief();
+
+		icone_horizontale(_T('lien_nouvea_pense_bete'),"message_edit.php3?new=oui&type=pb", "pense-bete.gif");
+		icone_horizontale(_T('lien_nouveau_message'),"message_edit.php3?new=oui&type=normal", "message.gif");
+		
+		if ($connect_statut == "0minirezo") {
+			icone_horizontale(_T('lien_nouvelle_annonce'),"message_edit.php3?new=oui&type=affich", "annonce.gif");
+		}
+
+		fin_cadre_relief();
+
+		echo "</div>";
+	
+		echo "<div id='bandeausynchro' class='bandeau_couleur_sous' style='$spip_lang_left: 160px;'>";
+		echo _T('icone_suivi_activite');
+		echo "</div>";
+	
+		echo "<div id='bandeauinfoperso' class='bandeau_couleur_sous' style='width: 200px; $spip_lang_left: 200px;'>";
+		echo _T('icone_informations_personnelles');
+
+			//
+			// choix de la langue
+			//
+			if ($GLOBALS['all_langs']) {
+				echo "<div>&nbsp;</div>";
+				echo menu_langues('var_lang_ecrire');
+			}
+
+
+		echo "</div>";
+	
+	
+		echo "<div id='bandeaudisplay' class='bandeau_couleur_sous' style='$spip_lang_right: 310px; text-align: $spip_lang_right;'>";
+			echo $simple;
+		echo "</div>";
+	
+		echo "<div id='bandeauecran' class='bandeau_couleur_sous' style='width: 200px; $spip_lang_right: 237px; text-align: $spip_lang_right;'>";
+			echo $ecran;
+		echo "</div>";
+	
+		echo "<div id='bandeauinterface' class='bandeau_couleur_sous' style='$spip_lang_right: 150px; text-align: $spip_lang_right;'>";
+			echo _T('titre_changer_couleur_interface');
+		echo "</div>";
+
+	
+		echo "<div class='bandeau_couleur_sous' id='bandeaudeconnecter' style='$spip_lang_right: 0px;'>";
+		echo _T('icone_deconnecter').aide("deconnect");
+		echo "</div>";
+	
+	echo "</div>";
+	echo "</td></tr></table>";
+	
+	echo "</div>";
+	echo "</div>";
+
+	// Ouverture de la partie "principale" de la page
+	// Petite verif pour ne pas fermer le formulaire de recherche pendant qu'on l'edite	
+	echo "<center onMouseOver=\"if (findObj('bandeaurecherche').style.visibility == 'visible') { ouvrir_recherche = true; } else { ouvrir_recherche = false; } changestyle('bandeauvide', 'visibility', 'hidden'); if (ouvrir_recherche == true) { changestyle('bandeaurecherche','visibility','visible'); }\">";
+
+
 		if ($activer_messagerie != 'non' AND $connect_activer_messagerie != 'non') {
-			echo "</td><td> <font face='arial,helvetica,sans-serif' size=1><b>";
 			$result_messages = spip_query("SELECT * FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE lien.id_auteur=$connect_id_auteur AND vu='non' AND statut='publie' AND type='normal' AND lien.id_message=messages.id_message");
 			$total_messages = @spip_num_rows($result_messages);
 			if ($total_messages == 1) {
 				while($row = @spip_fetch_array($result_messages)) {
 					$ze_message=$row['id_message'];
-					echo "<a href='message.php3?id_message=$ze_message'><font color='$couleur_claire'><b>"._T('info_nouveau_message')."</b></font></a>";
+					echo "<div class='messages'><a href='message.php3?id_message=$ze_message'><font color='$couleur_foncee'>"._T('info_nouveau_message')."</font></a></div>";
 				}
 			}
-			if ($total_messages > 1) echo "<a href='messagerie.php3'><font color='$couleur_claire'>"._T('info_nouveaux_messages', array('total_messages' => $total_messages))."</font></a>";
-			echo "</b></font>";
+			if ($total_messages > 1) echo "<div class='messages'><a href='messagerie.php3'><font color='$couleur_foncee'>"._T('info_nouveaux_messages', array('total_messages' => $total_messages))."</font></a></div>";
 		}
-		echo "</td>";
-	}
 
-	// grand ecran
-	echo "<td style='text-align:center;'>";
-	$lien = $clean_link;
 
-	if ($spip_ecran == "large") {
-		$lien->addVar('set_ecran', 'etroit');
-		echo "<a href='". $lien->getUrl() ."'><img src='img_pack/set-ecran.gif' title='"._T('info_petit_ecran')."' alt='"._T('info_petit_ecran')."' width='23' height='19' border='0'></a>";
-	}
-	else {
-		$lien->addVar('set_ecran', 'large');
-		echo "<a href='". $lien->getUrl() ."'><img src='img_pack/set-ecran.gif' title='"._T('info_grand_ecran')."' alt='"._T('info_grand_ecran')."' width='23' height='19' border='0'></a>";
-	}
-	echo "</td>";
+	// Afficher les auteurs recemment connectes
+	
+	global $changer_config;
+	global $activer_messagerie;
+	global $activer_imessage;
+	global $connect_activer_messagerie;
+	global $connect_activer_imessage;
+
+		if ($changer_config!="oui"){
+			$activer_messagerie=lire_meta("activer_messagerie");
+			$activer_imessage=lire_meta("activer_imessage");
+		}
+	
+			if ($activer_imessage != "non" AND ($connect_activer_imessage != "non" OR $connect_statut == "0minirezo")) {
+				$query2 = "SELECT id_auteur, nom FROM spip_auteurs WHERE id_auteur!=$connect_id_auteur AND imessage!='non' AND en_ligne>DATE_SUB(NOW(),INTERVAL 15 MINUTE)";
+				$result_auteurs = spip_query($query2);
+				$nb_connectes = spip_num_rows($result_auteurs);
+			}
+	
+			$flag_cadre = (($nb_connectes > 0) OR $rubrique == "messagerie");
+			if ($flag_cadre) echo "<div class='messages' style='color: #666666;'>";
+
+			
+			if ($nb_connectes > 0) {
+				if ($nb_connectes > 0) {
+					echo "<b>"._T('info_en_ligne')."</b>";
+					while ($row = spip_fetch_array($result_auteurs)) {
+						$id_auteur = $row["id_auteur"];
+						$nom_auteur = typo($row["nom"]);
+						echo " &nbsp; ".bouton_imessage($id_auteur,$row)."&nbsp;<a href='auteurs_edit.php3?id_auteur=$id_auteur' style='color: #666666;'>$nom_auteur</a>";
+					}
+				}
+			}
+			if ($flag_cadre) echo "</div>";
 
-	//
-	// choix de la langue
-	//
-	if ($GLOBALS['all_langs']) {
-		echo "<td>   </td>";
 
-		echo "<td align='center'>";
-		echo menu_langues('var_lang_ecrire');
-		echo "</td>";
 
-	}
 
-	// choix de la couleur
-	echo "<td style='text-align:center;'>";
-	echo "<img src='img_pack/barre-couleurs.gif' alt=\"".entites_html(_T('titre_changer_couleur_interface'))."\" width='70' height='21' border='0' usemap='#map_couleur'>";
-	echo "</td>";
-	echo "</tr></table>";
-	echo "</td></tr></table>";
 
-	echo "<center>";
 }
 
 
 function gros_titre($titre, $ze_logo=''){
 	global $couleur_foncee;
 	
-	echo "<div>";
+	echo "<div class='verdana2' style='font-size: 18px; color: $couleur_foncee; font-weight: bold;'>";
 	if (strlen($ze_logo) > 3) echo "<img src='img_pack/$ze_logo' alt='' border=0 align='middle'> &nbsp; ";
-	echo "<span style='border-bottom: 1px dashed $couleur_foncee;'><font size=5 face='Verdana,Arial,Sans,sans-serif' color='$couleur_foncee' ".$GLOBALS['dir_lang']."><b>";
 	echo typo($titre);
-	echo "</b></font></span></div>\n";
+	echo "</div>\n";
 }
 
 
@@ -1664,12 +2364,10 @@ function fin_grand_cadre(){
 // Cadre formulaires
 
 function debut_cadre_formulaire(){
-	echo "\n<div style='width: 100%; border-top: 1px solid #aaaaaa; border-left: 1px solid #aaaaaa; border-right: 1px solid white; border-bottom: 1px solid white; margin: 0px; padding: 0px;'>";
-	echo "\n<div class='verdana3' style='border: 1px dashed #666666; margin: 0px; padding: 10px; background-color:#e4e4e4;'>";
+	echo "\n<div class='cadre-formulaire'>";
 }
 
 function fin_cadre_formulaire(){
-	echo "</div>";
 	echo "</div>\n";
 }
 
@@ -1710,57 +2408,6 @@ function debut_gauche($rubrique = "asuivre") {
 	echo "<br><table width='$largeur_ecran' cellpadding=0 cellspacing=0 border=0>
 		<tr><td width='$largeur' valign='top' class='serif' $rspan>\n";
 
-	// Afficher les auteurs recemment connectes
-	
-	global $changer_config;
-	global $activer_messagerie;
-	global $activer_imessage;
-	global $connect_activer_messagerie;
-	global $connect_activer_imessage;
-
-	if (!$flag_3_colonnes) {
-		if ($changer_config!="oui"){
-			$activer_messagerie=lire_meta("activer_messagerie");
-			$activer_imessage=lire_meta("activer_imessage");
-		}
-	
-		if ($activer_messagerie!="non" AND $connect_activer_messagerie!="non"){
-			if ($activer_imessage != "non" AND ($connect_activer_imessage != "non" OR $connect_statut == "0minirezo")) {
-				$query2 = "SELECT id_auteur, nom FROM spip_auteurs WHERE id_auteur!=$connect_id_auteur AND imessage!='non' AND messagerie!='non' AND en_ligne>DATE_SUB(NOW(),INTERVAL 5 MINUTE)";
-				$result_auteurs = spip_query($query2);
-				$nb_connectes = spip_num_rows($result_auteurs);
-			}
-	
-			$flag_cadre = (($nb_connectes > 0) OR $rubrique == "messagerie");
-			if ($flag_cadre) debut_cadre_relief("messagerie-24.gif");
-			if ($rubrique == "messagerie") {
-				echo "<a href='message_edit.php3?new=oui&type=normal'><img src='img_pack/m_envoi$spip_lang_rtl.gif' alt='' width='14' height='7' border='0'>";
-				echo "<font color='#169249' face='Verdana,Arial,Sans,sans-serif' size=1><b>&nbsp;"._T('lien_nouveau_message')."</b></font></a>";
-				echo "\n<br><a href='message_edit.php3?new=oui&type=pb'><img src='img_pack/m_envoi_bleu$spip_lang_rtl.gif' alt='' width='14' height='7' border='0'>";
-				echo "<font color='#044476' face='Verdana,Arial,Sans,sans-serif' size=1><b>&nbsp;"._T('lien_nouvea_pense_bete')."</b></font></a>";
-				if ($connect_statut == "0minirezo") {
-					echo "\n<br><a href='message_edit.php3?new=oui&type=affich'><img src='img_pack/m_envoi_jaune$spip_lang_rtl.gif' alt='' width='14' height='7' border='0'>";
-					echo "<font color='#ff9900' face='Verdana,Arial,Sans,sans-serif' size=1><b>&nbsp;"._T('lien_nouvelle_annonce')."</b></font></a>";
-				}
-			}
-			
-			if ($nb_connectes > 0) {
-				echo "<div class='verdana2'>";
-				if ($nb_connectes > 0) {
-					if ($options == "avancees" AND $rubrique == "messagerie") echo "<p>";
-					echo "<b>"._T('info_en_ligne')."</b>";
-					while ($row = spip_fetch_array($result_auteurs)) {
-						$id_auteur = $row["id_auteur"];
-						$nom_auteur = typo($row["nom"]);
-						if ($options == "avancees") echo "<br>".bouton_imessage($id_auteur,$row)." $nom_auteur";
-						else  echo "<br> $nom_auteur";
-					}
-				}
-				echo "</div>";
-			}
-			if ($flag_cadre) fin_cadre_relief();
-		}
-	}	
 }
 
 
@@ -1799,37 +2446,6 @@ function creer_colonne_droite($rubrique=""){
 		echo "<td width=$espacement rowspan=2>&nbsp;</td>";
 		echo "<td width=$largeur rowspan=2 align='$lang_left' valign='top'><p />";
 
-		if ($changer_config!="oui") {
-			$activer_messagerie=lire_meta("activer_messagerie");
-			$activer_imessage=lire_meta("activer_imessage");
-		}
-
-		if ($activer_messagerie!="non" AND $connect_activer_messagerie!="non") {
-			if ($activer_imessage != "non" AND ($connect_activer_imessage != "non" OR $connect_statut == "0minirezo")) {
-				$query2 = "SELECT id_auteur, nom FROM spip_auteurs WHERE id_auteur!=$connect_id_auteur AND imessage!='non' AND messagerie!='non' AND en_ligne>DATE_SUB(NOW(),INTERVAL 5 MINUTE)";
-				$result_auteurs = spip_query($query2);
-				$nb_connectes = spip_num_rows($result_auteurs);
-			}
-
-			$flag_cadre = ($nb_connectes > 0);
-			if ($flag_cadre) debut_cadre_relief("messagerie-24.gif");
-
-			if ($flag_cadre) {
-				echo "<font face='Verdana,Arial,Sans,sans-serif' size=2>";
-				if ($nb_connectes > 0) {
-					if ($options == "avancees" AND $rubrique == "messagerie") echo "<p>";
-					echo "<b>"._T('info_nombre_en_ligne')."</b>";
-					while ($row = spip_fetch_array($result_auteurs)) {
-						$id_auteur = $row["id_auteur"];
-						$nom_auteur = typo($row["nom"]);
-						if ($options == "avancees") echo "<br>".bouton_imessage($id_auteur,$row)." $nom_auteur";
-						else  echo "<br> $nom_auteur";
-					}
-				}
-				echo "</font>";
-			}
-			if ($flag_cadre) fin_cadre_relief();
-		}
 	}
 
 }
diff --git a/ecrire/inc_sites.php3 b/ecrire/inc_sites.php3
index 75db4ac3ebbc3550dae015accbff438f7bfd4c5b..a529de1d20d4ec9352697b903d2b2ccc47edc816 100644
--- a/ecrire/inc_sites.php3
+++ b/ecrire/inc_sites.php3
@@ -276,7 +276,7 @@ function syndic_a_jour($now_id_syndic, $statut = 'off') {
 
 
 function afficher_sites($titre_table, $requete) {
-	global $couleur_claire;
+	global $couleur_claire, $couleur_foncee;
 	global $connect_id_auteur;
 
 	$activer_messagerie = lire_meta("activer_messagerie");
@@ -285,10 +285,11 @@ function afficher_sites($titre_table, $requete) {
 	$tranches = afficher_tranches_requete($requete, 3);
 
 	if ($tranches) {
-		debut_cadre_relief("site-24.gif");
-
+//		debut_cadre_relief("site-24.gif");
+		if ($titre_table) echo "<div style='height: 12px;'></div>";
+		echo "<div class='liste'>";
+		bandeau_titre_boite2($titre_table, "site-24.gif", $couleur_claire, "black");
 		echo "<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=0 BORDER=0>";
-		bandeau_titre_boite($titre_table, true);
 
 		echo $tranches;
 
@@ -300,9 +301,7 @@ function afficher_sites($titre_table, $requete) {
 		
 		$compteur_liste = 0;
 		while ($row = spip_fetch_array($result)) {
-			$ifond = $ifond ^ 1;
-			$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;
-
+			$vals = '';
 			$id_syndic=$row["id_syndic"];
 			$id_rubrique=$row["id_rubrique"];
 			$nom_site=typo($row["nom_site"]);
@@ -316,9 +315,9 @@ function afficher_sites($titre_table, $requete) {
 			
 			$tous_id[] = $id_syndic;
 
-			echo "<tr bgcolor='$couleur'>";
+			//echo "<tr bgcolor='$couleur'>";
 
-			echo "<td class='arial2'>";
+			//echo "<td class='arial2'>";
 			$link = new Link("sites.php3?id_syndic=$id_syndic");
 			$redirect = new Link;
 			$link->addVar('redirect', $redirect->getUrl());
@@ -327,21 +326,21 @@ function afficher_sites($titre_table, $requete) {
 				if (acces_restreint_rubrique($id_rubrique))
 					$puce = 'puce-verte-anim.gif';
 				else
-					$puce='puce-verte.gif';
+					$puce='puce-verte-breve.gif';
 				$title = _T('info_site_reference');
 				break;
 			case 'prop':
 				if (acces_restreint_rubrique($id_rubrique))
-					$puce = 'puce-blanche-anim.gif';
+					$puce = 'puce-orange-anim.gif';
 				else
-					$puce='puce-blanche.gif';
+					$puce='puce-orange-breve.gif';
 				$title = _T('info_site_attente');
 				break;
 			case 'refuse':
 				if (acces_restreint_rubrique($id_rubrique))
 					$puce = 'puce-poubelle-anim.gif';
 				else
-					$puce='puce-poubelle.gif';
+					$puce='puce-poubelle-breve.gif';
 				$title = _T('info_site_refuse');
 				break;
 			}
@@ -350,37 +349,52 @@ function afficher_sites($titre_table, $requete) {
 				$title = _T('info_panne_site_syndique');
 			}
 
-			echo "<a href=\"".$link->getUrl()."\" title=\"$title\">";
-			echo "<img src='img_pack/$puce' width='7' height='7' border='0'>&nbsp;&nbsp;";
-			if ($moderation == 'oui')
-				echo "<i>".typo($nom_site)."</i>";
+			$s = "<a href=\"".$link->getUrl()."\" title=\"$title\">";
+			$s .= "<img src='img_pack/$puce' width='7' height='7' border='0'>&nbsp;&nbsp;";
+			
+			$s .= typo($nom_site);
+			/*if ($moderation == 'oui')
+				$s .= "<i>".typo($nom_site)."</i>";
 			else
-				echo typo($nom_site);
-
-			echo "</a> &nbsp;&nbsp; <font size='1'>[<a href='$url_site'>"._T('lien_visite_site')."</a>]</font>";
-			echo "</td>";
+				$s .= typo($nom_site);
+			*/
+			$s .= "</a> &nbsp;&nbsp; <font size='1'>[<a href='$url_site'>"._T('lien_visite_site')."</a>]</font>";
+			$vals[] = $s;
+			
+			//echo "</td>";
 
-			echo "<td class='arial1' align='right'> &nbsp;";
+			$s = "";
+			//echo "<td class='arial1' align='right'> &nbsp;";
 			if ($syndication == "off") {
-				echo "<font color='red'>"._T('info_probleme_grave')." </font>";
+				$s .= "<font color='red'>"._T('info_probleme_grave')." </font>";
 			}
 			if ($syndication == "oui" or $syndication == "off"){
-				echo "<font color='red'>"._T('info_syndication')."</font>";
+				$s .= "<font color='red'>"._T('info_syndication')."</font>";
 			}
-			echo "</td>";					
-			echo "<td class='arial1'>";
+				$vals[] = $s;
+			//echo "</td>";					
+			//echo "<td class='arial1'>";
+			$s = "";
 			if ($syndication == "oui" OR $syndication == "off") {
 				$result_art = spip_query("SELECT COUNT(*) FROM spip_syndic_articles WHERE id_syndic='$id_syndic'");
 				list($total_art) = spip_fetch_row($result_art);
-				echo " $total_art "._T('info_syndication_articles');
+				$s .= " $total_art "._T('info_syndication_articles');
 			} else {
-				echo "&nbsp;";
+				$s .= "&nbsp;";
 			}
-			echo "</td>";					
-			echo "</tr></n>";
+			$vals[] = $s;
+			//echo "</td>";					
+			//echo "</tr></n>";
+			$table[] = $vals;
 		}
+		spip_free_result($result);
+		
+		$largeurs = array('','','');
+		$styles = array('arial11', 'arial1', 'arial1');
+		afficher_liste($largeurs, $table, $styles);
 		echo "</TABLE>";
-		fin_cadre_relief();
+		//fin_cadre_relief();
+		echo "</div>\n";
 	}
 	return $tous_id;
 }
diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3
index 1ff1a82eae8210c6a516ea2017772a0d87942b6c..42427d6e233ba63d3b236e5846d3baea96cfcdd1 100644
--- a/ecrire/inc_version.php3
+++ b/ecrire/inc_version.php3
@@ -176,7 +176,7 @@ if ($flag_ecrire) {
 $spip_version = 1.732;
 
 // version de spip
-$spip_version_affichee = "1.7.2";
+$spip_version_affichee = "1.8 alpha 1 CVS";
 
 // version de spip / tag cvs
 if (ereg('Name: v(.*) ','$Name$', $regs)) $spip_version_affichee = $regs[1];
diff --git a/ecrire/index.php3 b/ecrire/index.php3
index d4be2a1530564e3b985dc0d1273882bb74b9ab76..8cd1b24fc0c6d8147df41f336eeea8edac855dc2 100644
--- a/ecrire/index.php3
+++ b/ecrire/index.php3
@@ -10,78 +10,18 @@ debut_gauche();
 
 
 
-function enfant($collection){
-	global $les_enfants, $couleur_foncee, $lang_dir;
-	$query2 = "SELECT * FROM spip_rubriques WHERE id_parent=\"$collection\" ORDER BY titre";
-	$result2 = spip_query($query2);
-
-	while($row=spip_fetch_array($result2)){
-		$id_rubrique=$row['id_rubrique'];
-		$id_parent=$row['id_parent'];
-		$titre=$row['titre'];
-
-		$bouton_layer = bouton_block_invisible("enfants$id_rubrique");
-		$les_sous_enfants = sous_enfant($id_rubrique);
-
-		changer_typo($row['lang']);
-		$descriptif=propre($row['descriptif']);
-
-		$les_enfants.= "<P>";
-		if ($id_parent == "0") $les_enfants .= debut_cadre_relief("secteur-24.gif", true);
-		else  $les_enfants .= debut_cadre_relief("rubrique-24.gif", true);
-		if (strlen($les_sous_enfants) > 0){
-			$les_enfants .= $bouton_layer;
-		}
-		$les_enfants .= "<FONT FACE=\"Verdana,Arial,Sans,sans-serif\">";
-
-		if (acces_restreint_rubrique($id_rubrique))
-			$les_enfants .= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('image_administrer_rubrique')."'> ";
-
-		$les_enfants.= "<span dir='$lang_dir'><B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B></span>";
-		if (strlen($descriptif)>1) {
-			$les_enfants .= "<br><FONT SIZE=1><span dir='$lang_dir'>$descriptif</span></FONT>";
-		}
-
-		$les_enfants.= "</FONT>";
-
-		$les_enfants .= $les_sous_enfants;
-		$les_enfants .= fin_cadre_relief(true);
-	}
-}
-
-function sous_enfant($collection2){
-	global $lang_dir, $spip_lang_dir;
-	$query3 = "SELECT * FROM spip_rubriques WHERE id_parent=\"$collection2\" ORDER BY titre";
-	$result3 = spip_query($query3);
-
-	if (spip_num_rows($result3) > 0){
-		$retour = debut_block_invisible("enfants$collection2")."\n<ul style='list-style-image: url(img_pack/rubrique-12.gif)'>\n<FONT SIZE=1 face='arial,helvetica,sans-serif'>";
-		while($row=spip_fetch_array($result3)){
-			$id_rubrique2=$row['id_rubrique'];
-			$id_parent2=$row['id_parent'];
-			$titre2=$row['titre'];
-			changer_typo($row['lang']);
-
-			$retour.="<LI><A HREF='naviguer.php3?coll=$id_rubrique2'><span dir='$lang_dir'>".typo($titre2)."</span></A>\n";
-		}
-		$retour .= "</FONT></ul>\n\n".fin_block()."\n\n";
-	}
-	
-	return $retour;
-}
-
-
 //
 // Infos personnelles : nom, utilisation de la messagerie
 //
 
 
 echo "<p>";
-debut_cadre_relief("fiche-perso-24.gif");
+if ($bonjour == "oui" OR $spip_ecran == "large") $titre_cadre = bouton_block_visible("info_perso");
+else $titre_cadre = bouton_block_invisible("info_perso");
+$titre_cadre .= majuscules(typo($connect_nom));
+
+debut_cadre_relief("fiche-perso-24.gif", false, '', $titre_cadre);
 echo "<font face='Verdana,Arial,Sans,sans-serif' size='2'>";
-if ($bonjour == "oui" OR $spip_ecran == "large") echo bouton_block_visible("info_perso");
-else echo bouton_block_invisible("info_perso");
-echo "<font size='1' color='black'><b>".majuscules(typo($connect_nom))."</b></font>";
 
 if ($bonjour == "oui" OR $spip_ecran == "large") echo debut_block_visible("info_perso");
 else echo debut_block_invisible("info_perso");
@@ -113,7 +53,7 @@ fin_cadre_relief();
 // Annonces
 //
 include_ecrire("inc_agenda.php3");
-afficher_taches();
+afficher_annonces();
 
 
 //
@@ -349,8 +289,8 @@ if (!$relief AND lire_meta('activer_syndic') != 'non' AND $connect_statut == '0m
 
 if ($relief) {
 	echo "<p>";
-	debut_cadre_enfonce();
-	echo "<font color='$couleur_foncee' face='arial,helvetica,sans-serif'><b>"._T('texte_en_cours_validation')."</b></font><p>";
+	debut_cadre_couleur();
+	echo "<div class='verdana2' style='color: black;'><b>"._T('texte_en_cours_validation')."</b></div><p>";
 
 	//
 	// Les articles a valider
@@ -401,30 +341,11 @@ if ($relief) {
 		}
 	}
 
-	fin_cadre_enfonce();
+	fin_cadre_couleur();
 }
 
 
 if ($options == 'avancees') {
-	enfant(0);
-
-	$les_enfants2=substr($les_enfants,round(strlen($les_enfants)/2),strlen($les_enfants));
-	if (strpos($les_enfants2,"<P>")){
-		$les_enfants2=substr($les_enfants2,strpos($les_enfants2,"<P>"),strlen($les_enfants2));
-		$les_enfants1=substr($les_enfants,0,strlen($les_enfants)-strlen($les_enfants2));
-	}else{
-		$les_enfants1=$les_enfants;
-		$les_enfants2="";
-	}
-
-	// Afficher les sous-rubriques
-	echo "<p><table cellpadding=0 cellspacing=0 border=0 width='100%'>";
-	echo "<tr><td valign='top' width=50%>$les_enfants1</td>";
-	echo "<td width=20><img src='img_pack/rien.gif' width=20></td>";
-	echo "<td valign='top' width=50%>$les_enfants2 &nbsp;";
-	if (strlen($les_enfants2) > 0) echo "<p>";
-	echo "</td></tr>";
-	echo "</table>";
 
 	//
 	// Vos articles publies
diff --git a/ecrire/lang/spip_fr.php3 b/ecrire/lang/spip_fr.php3
index b9dece151e0a2a017ed43530b495db4a0ab5000d..2c171322522c7018038a84f2b4c47fc97eafd862 100644
--- a/ecrire/lang/spip_fr.php3
+++ b/ecrire/lang/spip_fr.php3
@@ -443,7 +443,7 @@ Merci de votre participation
 'icone_breves' => 'Br&egrave;ves',
 'icone_brouteur' => 'Navigation rapide',
 'icone_calendrier' => 'Calendrier',
-'icone_configuration_site' => 'Configuration du site',
+'icone_configuration_site' => 'Configuration',
 'icone_configurer_site' => 'Configurer votre site',
 'icone_creation_groupe_mots' => 'Cr&eacute;er un nouveau groupe de mots',
 'icone_creation_mots_cles' => 'Cr&eacute;er un nouveau mot-cl&eacute;',
@@ -491,7 +491,7 @@ Merci de votre participation
 'icone_site_entier' => 'Tout le site',
 'icone_sites_references' => 'Sites r&eacute;f&eacute;renc&eacute;s',
 'icone_statistiques' => 'Statistiques du site',
-'icone_statistiques_visites' => 'Statistiques des visites',
+'icone_statistiques_visites' => 'Statistiques',
 'icone_suivi_activite' => 'Suivre la vie du site',
 'icone_suivi_actualite' => '&Eacute;volution du&nbsp;site',
 'icone_suivi_forum' => 'Suivi du forum public&nbsp;: @nb_forums@&nbsp;contribution(s)',
@@ -814,7 +814,6 @@ exige d\'avoir un acc&egrave;s FTP au site Web.',
 'info_nom_utilisateurs_connectes' => 'Votre nom appara&icirc;t dans la liste des utilisateurs connect&eacute;s.',
 'info_nombre_articles' => '@nb_articles@ articles,',
 'info_nombre_breves' => '@nb_breves@ br&egrave;ves,',
-'info_nombre_en_ligne' => 'Actuellement en ligne&nbsp;:',
 'info_nombre_partcipants' => 'PARTICIPANTS A LA DISCUSSION :',
 'info_nombre_rubriques' => '@nb_rubriques@ rubriques,',
 'info_nombre_sites' => '@nb_sites@ sites,',
diff --git a/ecrire/message.php3 b/ecrire/message.php3
index d9e86a799ead8a75553972f666ac24cee6479e7a..c87cc5c5c1588dd83b2d9f0de5924108fa3e8077 100644
--- a/ecrire/message.php3
+++ b/ecrire/message.php3
@@ -83,15 +83,36 @@ if ($changer_rv) {
 }
 
 if ($jour) {
-			if (($heures_fin * 60) + $minutes_fin < ($heures_debut * 60) + $minutes_debut) {
-				$minutes_fin = $minutes_debut;
-				$heures_fin = $heures_debut + 1;
-			}
-			if ($heures_fin >=24){
-				$heures_fin = 23;
-				$minutes_fin = 59;	
-			}
-	spip_query("UPDATE spip_messages SET date_heure='$annee-$mois-$jour $heures:$minutes:00',  date_fin='$annee-$mois-$jour $heures_fin:$minutes_fin:00' WHERE id_message='$id_message'");
+			// Convertir dates a calendrier correct (exemple: 31 fevrier devient debut mars, 24h12 devient 00h12 du lendemain)
+			$date = date("Y-m-d H:i:s", mktime($heures,$minutes,0,$mois, $jour, $annee));
+			
+			$jour = journum($date);
+			$mois = mois($date);
+			$annee = annee($date);
+			$heures = heures($date);
+			$minutes = minutes($date);
+			
+			// Verifier que la date de fin est bien posterieure au debut
+			$unix_debut = date("U", mktime($heures,$minutes,0,$mois, $jour, $annee));
+			$unix_fin = date("U", mktime($heures_fin,$minutes_fin,0,$mois_fin, $jour_fin, $annee_fin));
+			if ($unix_fin <= $unix_debut) {
+				$jour_fin = $jour;
+				$mois_fin = $mois;
+				$annee_fin = $annee;
+				$heures_fin = $heures + 1;
+				$minutes_fin = $minutes;
+			}		
+
+			$date_fin = date("Y-m-d H:i:s", mktime($heures_fin,$minutes_fin,0,$mois_fin, $jour_fin, $annee_fin));
+			
+			$jour_fin = journum($date_fin);
+			$mois_fin = mois($date_fin);
+			$annee_fin = annee($date_fin);
+			$heures_fin = heures($date_fin);
+			$minutes_fin = minutes($date_fin);
+			
+
+	spip_query("UPDATE spip_messages SET date_heure='$annee-$mois-$jour $heures:$minutes:00',  date_fin='$annee_fin-$mois_fin-$jour_fin $heures_fin:$minutes_fin:00' WHERE id_message='$id_message'");
 }
 
 if ($change_statut) {
@@ -419,7 +440,16 @@ while($row = spip_fetch_array($result_message)) {
 	//
 
 	if ($rv == "oui") {
-		echo "<p><center class='verdana2'>"._T('titre_rendez_vous')." ".majuscules(nom_jour($date_heure))." <b>".majuscules(affdate($date_heure))."</b><br><b>".heures($date_heure)." "._T('date_mot_heures')." ".minutes($date_heure)."</b>  &nbsp; <img src='puce$spip_lang_rtl.gif' border='0'> &nbsp;  ".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</center>";
+
+		if (jour($date_heure) == jour($date_fin) AND mois($date_heure) == mois($date_fin) AND annee($date_heure) == annee($date_fin)) {		
+			echo "<p><center class='verdana2'>"._T('titre_rendez_vous')." ".majuscules(nom_jour($date_heure))." <b>".majuscules(affdate($date_heure))."</b><br><b>".heures($date_heure)." "._T('date_mot_heures')." ".minutes($date_heure)."</b>";
+			echo " &nbsp; <img src='puce$spip_lang_rtl.gif' border='0'> &nbsp;  ".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</center>";
+		} else {
+			echo "<p><center class='verdana2'>"._T('titre_rendez_vous')."<br> ".majuscules(nom_jour($date_heure))." <b>".majuscules(affdate($date_heure))."</b>, <b>".heures($date_heure)." "._T('date_mot_heures')." ".minutes($date_heure)."</b>";
+			echo "<center class='verdana2'><img src='puce$spip_lang_rtl.gif' border='0'> ".majuscules(nom_jour($date_fin))." ".majuscules(affdate($date_fin)).", <b>".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</b>";
+			//echo " &nbsp; <img src='puce$spip_lang_rtl.gif' border='0'> &nbsp;  ".heures($date_fin)." "._T('date_mot_heures')." ".minutes($date_fin)."</center>";
+		
+		}
 	}
 
 
diff --git a/ecrire/message_edit.php3 b/ecrire/message_edit.php3
index 24edf85167622337fb551e110c0cc919f4e5527f..3fbefd4f8771c6a8c4503a4e550b8209fc621cca 100644
--- a/ecrire/message_edit.php3
+++ b/ecrire/message_edit.php3
@@ -62,7 +62,7 @@ if ($new == "oui") {
 	$id_message = spip_insert_id();
 	
 	if ($rv) {
-		spip_query("UPDATE spip_messages SET rv='oui', date_heure='$rv 12:00:00' WHERE id_message = $id_message");
+		spip_query("UPDATE spip_messages SET rv='oui', date_heure='$rv 12:00:00', date_fin: '$rv 13:00:00' WHERE id_message = $id_message");
 	}
 
 	if ($type != "affich"){
@@ -91,11 +91,21 @@ if ($row = spip_fetch_array($result)) {
 	$expediteur = $row["id_auteur"];
 		if (!($expediteur == $connect_id_auteur OR ($type == 'affich' AND $connect_statut == '0minirezo'))) die();
 
+	echo "<div class='arial2'>";
 
 	echo "<FORM ACTION='message.php3?id_message=$id_message' METHOD='post'>";
-	if ($type == 'normal') $le_type = _T('bouton_envoi_message_02');
-	if ($type == 'pb') $le_type = _T('bouton_pense_bete');
-	if ($type == 'affich') $le_type = _T('bouton_annonce');
+	if ($type == 'normal') {
+		$le_type = _T('bouton_envoi_message_02');
+		$logo = "message";
+	}
+	if ($type == 'pb') {
+		$le_type = _T('bouton_pense_bete');
+		$logo = "pense-bete";
+	}
+	if ($type == 'affich') {
+		$le_type = _T('bouton_annonce');
+		$logo = "annonce";
+	}
 
 	echo "<font face='Verdana,Arial,Sans,sans-serif' size=2 color='green'><b>$le_type</b></font><p>";
 	
@@ -118,23 +128,79 @@ if ($row = spip_fetch_array($result)) {
 	// Fixer rendez-vous?
 	//
 
-		debut_boite_info();
-		echo "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH=100% BACKGROUND=''><TR><TD BGCOLOR='$couleur_foncee' colspan=2>";
-		echo "<span class='serif2' color='#FFFFFF'><B>"._T('titre_rendez_vous')."</B></span>";
-		echo "</td></tr></table>";
+		
+		echo "<p />";
+		
+		if ($rv == "oui") $fonction = "rv.gif";
+		else $fonction = "";
+
+		debut_cadre_trait_couleur("$logo.gif", false, $fonction, _T('titre_rendez_vous'));
 		echo "<input type='hidden' name='id_message' value='$id_message'>";
 		echo "<input type='hidden' name='changer_rv' value='$id_message'>";
 		if ($rv != "oui") {
-			echo "<INPUT TYPE='radio' NAME='rv' VALUE='oui' id='rv_on'>";
+			echo "<INPUT TYPE='radio' NAME='rv' VALUE='oui' id='rv_on' onClick=\"changeVisible(this.checked, 'heure-rv', 'block', 'none');\">";
 			echo " <label for='rv_on'>"._T('item_afficher_calendrier')."</label> ";
-			echo " <br><INPUT TYPE='radio' NAME='rv' VALUE='non' CHECKED id='rv_off'>";
+
+
+			echo "<div id='heure-rv' style='display: block; padding-top: 4px; padding-left: 24px;'>";
+			echo "<SELECT NAME='jour' SIZE=1 CLASS='fondl'>";
+			afficher_jour(jour($date_heure));
+			echo "</SELECT> ";
+			echo "<SELECT NAME='mois' SIZE=1 CLASS='fondl'>";
+			afficher_mois(mois($date_heure));
+			echo "</SELECT> ";
+			echo "<SELECT NAME='annee' SIZE=1 CLASS='fondl'>";
+			afficher_annee(annee($date_heure));
+			echo "</SELECT>\n";
+			
+			$heures_debut = heures($date_heure);
+			$minutes_debut = minutes($date_heure);
+			echo " &nbsp; <INPUT TYPE='text' CLASS='fondl' NAME='heures' VALUE=\"".$heures_debut."\" SIZE='3'>&nbsp;".majuscules(_T('date_mot_heures'))."&nbsp;";
+			echo "<INPUT TYPE='text' CLASS='fondl' NAME='minutes' VALUE=\"$minutes_debut\" SIZE='3'> ";
+			
+			
+			$heures_fin = heures($date_fin);
+			$minutes_fin = minutes($date_fin);
+
+			if ($date_fin == "0000-00-00 00:00:00") {
+				$date_fin = $date_heure;
+				$heures_fin = $heures_debut + 1;
+			}
+			
+			if ($heures_fin >=24){
+				$heures_fin = 23;
+				$minutes_fin = 59;	
+			}
+
+
+			
+			echo " <br> <img src='puce$spip_lang_rtl.gif' border='0'> &nbsp; ";
+			
+			echo "<SELECT NAME='jour_fin' SIZE=1 CLASS='fondl'>";
+			afficher_jour(jour($date_fin));
+			echo "</SELECT> ";
+			echo "<SELECT NAME='mois_fin' SIZE=1 CLASS='fondl'>";
+			afficher_mois(mois($date_fin));
+			echo "</SELECT> ";
+			echo "<SELECT NAME='annee_fin' SIZE=1 CLASS='fondl'>";
+			afficher_annee(annee($date_fin));
+			echo "</SELECT>\n";
+			
+			echo " &nbsp; <INPUT TYPE='text' CLASS='fondl' NAME='heures_fin' VALUE=\"".$heures_fin."\" SIZE='3'>&nbsp;".majuscules(_T('date_mot_heures'))."&nbsp;";
+			echo "<INPUT TYPE='text' CLASS='fondl' NAME='minutes_fin' VALUE=\"".$minutes_fin."\" SIZE='3'> ";
+
+			echo "</div>";
+
+
+			echo " <br><INPUT TYPE='radio' NAME='rv' VALUE='non' CHECKED id='rv_off' onClick=\"changeVisible(this.checked, 'heure-rv', 'none', 'block');\">";
 			echo " <B><label for='rv_off'>"._T('item_non_afficher_calendrier')."</label></B> ";
 		}
 		else {
-			echo "<INPUT TYPE='radio' NAME='rv' VALUE='oui' CHECKED id='rv_on'>";
+			echo "<INPUT TYPE='radio' NAME='rv' VALUE='oui' CHECKED id='rv_on' onClick=\"changeVisible(this.checked, 'heure-rv', 'block', 'none');\">";
 			echo " <b><label for='rv_on'>"._T('item_afficher_calendrier')."</label></b> ";
 
-			echo "<div style='text-align: center; padding: 4px;'><SELECT NAME='jour' SIZE=1 CLASS='fondl'>";
+			echo "<div id='heure-rv' style='display: block; padding-top: 4px; padding-left: 24px;'>";
+			echo "<SELECT NAME='jour' SIZE=1 CLASS='fondl'>";
 			afficher_jour(jour($date_heure));
 			echo "</SELECT> ";
 			echo "<SELECT NAME='mois' SIZE=1 CLASS='fondl'>";
@@ -146,31 +212,39 @@ if ($row = spip_fetch_array($result)) {
 			
 			$heures_debut = heures($date_heure);
 			$minutes_debut = minutes($date_heure);
-			echo "<br><INPUT TYPE='text' CLASS='fondl' NAME='heures' VALUE=\"".$heures_debut."\" SIZE='3'>&nbsp;".majuscules(_T('date_mot_heures'))."&nbsp;";
+			echo " &nbsp; <INPUT TYPE='text' CLASS='fondl' NAME='heures' VALUE=\"".$heures_debut."\" SIZE='3'>&nbsp;".majuscules(_T('date_mot_heures'))."&nbsp;";
 			echo "<INPUT TYPE='text' CLASS='fondl' NAME='minutes' VALUE=\"$minutes_debut\" SIZE='3'> ";
 			
 			$heures_fin = heures($date_fin);
 			$minutes_fin = minutes($date_fin);
 			
-			if (($heures_fin * 60) + $minutes_fin < ($heures_debut * 60) + $minutes_debut) {
-				$minutes_fin = $minutes_debut;
-				$heures_fin = $heures_debut + 1;
-			}
 			if ($heures_fin >=24){
 				$heures_fin = 23;
 				$minutes_fin = 59;	
 			}
 			
-			echo " &nbsp; <img src='puce$spip_lang_rtl.gif' border='0'> &nbsp; <INPUT TYPE='text' CLASS='fondl' NAME='heures_fin' VALUE=\"".$heures_fin."\" SIZE='3'>&nbsp;".majuscules(_T('date_mot_heures'))."&nbsp;";
+			echo " <br> <img src='puce$spip_lang_rtl.gif' border='0'> &nbsp; ";
+			
+			echo "<SELECT NAME='jour_fin' SIZE=1 CLASS='fondl'>";
+			afficher_jour(jour($date_fin));
+			echo "</SELECT> ";
+			echo "<SELECT NAME='mois_fin' SIZE=1 CLASS='fondl'>";
+			afficher_mois(mois($date_fin));
+			echo "</SELECT> ";
+			echo "<SELECT NAME='annee_fin' SIZE=1 CLASS='fondl'>";
+			afficher_annee(annee($date_fin));
+			echo "</SELECT>\n";
+			
+			echo " &nbsp; <INPUT TYPE='text' CLASS='fondl' NAME='heures_fin' VALUE=\"".$heures_fin."\" SIZE='3'>&nbsp;".majuscules(_T('date_mot_heures'))."&nbsp;";
 			echo "<INPUT TYPE='text' CLASS='fondl' NAME='minutes_fin' VALUE=\"".$minutes_fin."\" SIZE='3'> ";
 
 			echo "</div>";
 
-			echo " <p><INPUT TYPE='radio' NAME='rv' VALUE='non' id='rv_off'>";
+			echo " <p><INPUT TYPE='radio' NAME='rv' VALUE='non' id='rv_off' onClick=\"changeVisible(this.checked, 'heure-rv', 'none', 'block');\">";
 			echo " <label for='rv_off'>"._T('item_non_afficher_calendrier')."</label> ";
 		}
 
-		fin_boite_info();
+		fin_cadre_trait_couleur();
 
 	echo "<p><B>"._T('info_texte_message_02')."</B><BR>";
 	echo "<TEXTAREA NAME='texte' ROWS='20' CLASS='formo' COLS='40' wrap=soft>";
@@ -179,6 +253,7 @@ if ($row = spip_fetch_array($result)) {
 
 	echo "<P ALIGN='right'><INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
 	echo "</FORM>";
+	echo "</div>";
 }
 
 fin_page();
diff --git a/ecrire/messagerie.php3 b/ecrire/messagerie.php3
index f147936b5aa47ef023adcca169465bab3dd2185b..f437bcd55550fc04708f4b6389de53f75deb709a 100644
--- a/ecrire/messagerie.php3
+++ b/ecrire/messagerie.php3
@@ -65,133 +65,6 @@ afficher_ical($connect_id_auteur);
 debut_droite("messagerie");
 
 
-function afficher_messages($titre_table, $query_message, $afficher_auteurs = true, $important = false, $boite_importante = true, $obligatoire = false) {
-	global $messages_vus;
-	global $connect_id_auteur;
-	global $couleur_claire;
-	global $spip_lang_rtl;
-
-	// Interdire l'affichage de message en double
-	if ($messages_vus) {
-		$query_message .= ' AND messages.id_message NOT IN ('.join(',', $messages_vus).')';
-	}
-
-
-	if ($afficher_auteurs) $cols = 3;
-	else $cols = 2;
-	$query_message .= ' ORDER BY date_heure DESC';
-	$tranches = afficher_tranches_requete($query_message, $cols);
-
-	if ($tranches OR $obligatoire) {
-		if ($important) debut_cadre_relief();
-
-		echo "<div>&nbsp;</div>";
-		echo "<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD WIDTH=100% BACKGROUND=''>";
-		echo "<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=0 BORDER=0>";
-
-		bandeau_titre_boite($titre_table, $afficher_auteurs, $boite_importante);
-
-		echo $tranches;
-
-		$result_message = spip_query($query_message);
-		$num_rows = spip_num_rows($result_message);
-
-		while($row = spip_fetch_array($result_message)) {
-			$vals = '';
-
-			$id_message = $row['id_message'];
-			$date = $row["date_heure"];
-			$titre = $row["titre"];
-			$type = $row["type"];
-			$statut = $row["statut"];
-			$page = $row["page"];
-			$rv = $row["rv"];
-			$vu = $row["vu"];
-			$messages_vus[$id_message] = $id_message;
-
-			//
-			// Titre
-			//
-
-			$s = "<A HREF='message.php3?id_message=$id_message'>";
-
-			switch ($type) {
-			case 'pb' :
-				$puce = "m_envoi_bleu$spip_lang_rtl.gif";
-				break;
-			case 'memo' :
-				$puce = "m_envoi_jaune$spip_lang_rtl.gif";
-				break;
-			case 'affich' :
-				$puce = "m_envoi_jaune$spip_lang_rtl.gif";
-				break;
-			case 'normal':
-			default:
-				$puce = "m_envoi$spip_lang_rtl.gif";
-				break;
-			}
-				
-			$s .= "<img src='img_pack/$puce' width='14' height='7' border='0'>";
-			$s .= "&nbsp;&nbsp;".typo($titre)."</A>";
-			$vals[] = $s;
-
-			//
-			// Auteurs
-
-			if ($afficher_auteurs) {
-				$query_auteurs = "SELECT auteurs.nom FROM spip_auteurs AS auteurs, spip_auteurs_messages AS lien WHERE lien.id_message=$id_message AND lien.id_auteur!=$connect_id_auteur AND lien.id_auteur=auteurs.id_auteur";
-				$result_auteurs = spip_query($query_auteurs);
-				$auteurs = '';
-				while ($row_auteurs = spip_fetch_array($result_auteurs)) {
-					$auteurs[] = typo($row_auteurs['nom']);
-				}
-
-				if ($auteurs AND $type == 'normal') {
-					$s = "<FONT FACE='Arial,Sans,sans-serif' SIZE=1>";
-					$s .= join(', ', $auteurs);
-					$s .= "</FONT>";
-				}
-				else $s = "&nbsp;";
-				$vals[] = $s;
-			}
-			
-			//
-			// Date
-			//
-			
-			$s = affdate($date);
-			if ($rv == 'oui') {
-				$jour=journum($date);
-				$mois=mois($date);
-				$annee=annee($date);
-
-				$s = "<a href='calendrier_jour.php3?jour=$jour&mois=$mois&annee=$annee'>$s</a>";
-			} else {
-				$s = "<font color='#999999'>$s</font>";
-			}
-			
-			$vals[] = $s;
-
-			$table[] = $vals;
-		}
-
-		if ($afficher_auteurs) {
-			$largeurs = array('', 130, 90);
-			$styles = array('arial2', 'arial1', 'arial1');
-		}
-		else {
-			$largeurs = array('', 90);
-			$styles = array('arial2', 'arial1');
-		}
-		afficher_liste($largeurs, $table, $styles);
-
-		echo "</TABLE></TD></TR></TABLE>";
-		spip_free_result($result_message);
-		if ($important) fin_cadre_relief();
-	}
-}
-
-
 
 
 $messages_vus = '';
@@ -219,12 +92,17 @@ afficher_messages(_T('info_message_en_redaction'), $query_message, true, false,
 
 $query = "SELECT auteurs.id_auteur, auteurs.nom, COUNT(*) AS total FROM spip_auteurs AS auteurs,  spip_auteurs_messages AS lien2, spip_messages AS messages, spip_auteurs_messages AS lien ".
 	"WHERE (lien.id_auteur = $connect_id_auteur AND lien.id_message = messages.id_message) ".
-	"AND (lien2.id_auteur = lien2.id_auteur AND lien2.id_message = messages.id_message AND lien2.id_auteur != $connect_id_auteur AND auteurs.id_auteur = lien2.id_auteur) GROUP BY auteurs.id_auteur ORDER BY total DESC LIMIT 0,20";
+	"AND (lien2.id_auteur = lien2.id_auteur AND lien2.id_message = messages.id_message AND lien2.id_auteur != $connect_id_auteur AND auteurs.id_auteur = lien2.id_auteur) GROUP BY auteurs.id_auteur ORDER BY total DESC LIMIT 0,10";
 
 $result = spip_query($query);
 if (spip_num_rows($result) > 0) {
-	echo "<div>&nbsp;</div>";
-	echo "<div style='padding: 3px; background-color: $couleur_foncee; color: white;'><b class='verdana2'>"._T('info_principaux_correspondants')."</b></div>";
+
+	echo "<div style='height: 12px;'></div>";
+	echo "<div class='liste'>";
+
+	bandeau_titre_boite2(_T('info_principaux_correspondants'), "redacteurs-24.gif", "#333333", "white");
+
+	//echo "<div style='padding: 3px; background-color: $couleur_foncee; color: white;'><b class='verdana2'>"._T('info_principaux_correspondants')."</b></div>";
 	echo "<table width='100%' cellpadding='0' cellspacing='0'>";
 	echo "<tr><td valign='top' width='50%'>";
 	while($row = spip_fetch_array($result)) {
@@ -239,10 +117,11 @@ if (spip_num_rows($result) > 0) {
 		$id_auteur = $row['id_auteur'];
 		$nom = typo($row["nom"]);
 		$total = $row["total"];
-		echo "<div class='arial1' style=' padding: 2px; padding-left: 10px; background-color: $bgcolor;'>".bouton_imessage($id_auteur, $row)." $nom ($total)</div>";
-		if ($count == 10) echo "</td><td valign='top' width='50%'>";
+		echo "<div class='tr_liste' onMouseOver=\"changeclass(this,'tr_liste_over');\" onMouseOut=\"changeclass(this,'tr_liste');\" style=' padding: 2px; padding-left: 10px; border-bottom: 1px solid #cccccc;'><div class='verdana1'>".bouton_imessage($id_auteur, $row)." <a href='auteurs_edit.php3?id_auteur=$id_auteur'>$nom</a> ($total)</div></div>";
+		if ($count == ceil(spip_num_rows($result)/2)) echo "</td><td valign='top' width='50%' style='background-color: #eeeeee;'>";
 	}
 	echo "</td></tr></table>";
+	echo "</div>";
 }
 
 
diff --git a/ecrire/mots_edit.php3 b/ecrire/mots_edit.php3
index dc90d41f91ae39211e5d90cac50693454d060e62..3ac7ff168f2f02a12625f0bccc41f7f6ee474d65 100644
--- a/ecrire/mots_edit.php3
+++ b/ecrire/mots_edit.php3
@@ -185,7 +185,7 @@ if ($id_mot) {
 
 	afficher_articles(_T('info_articles_lies_mot'),
 	", spip_mots_articles AS lien WHERE lien.id_mot='$id_mot'
-	AND lien.id_article=articles.id_article AND articles.statut IN ($aff_articles) ORDER BY articles.date DESC");
+	AND lien.id_article=articles.id_article AND articles.statut IN ($aff_articles) ORDER BY articles.date DESC", true);
 
 	afficher_breves(_T('info_breves_liees_mot'),
 	"SELECT breves.* FROM spip_breves AS breves, spip_mots_breves AS lien WHERE lien.id_mot='$id_mot'
diff --git a/ecrire/mots_tous.php3 b/ecrire/mots_tous.php3
index 04ea61e96759d4babc71d21fde9640644ccf8c0d..86a6eac90ba8c2dac6778d0b4fac1182298645ac 100644
--- a/ecrire/mots_tous.php3
+++ b/ecrire/mots_tous.php3
@@ -190,15 +190,9 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
 	$acces_forum = $row_groupes['6forum'];
 
 	// Afficher le titre du groupe
-	debut_cadre_enfonce("groupe-mot-24.gif");
-	echo "<p><table border=0 cellspacing=0 cellpadding=3 width=\"100%\">";
-	echo "<tr><td bgcolor='$couleur_foncee' colspan=2><font face='Verdana,Arial,Sans,sans-serif' size=3 color='#ffffff'><b>$titre_groupe</b>";
-	echo "</font></td>";
-	echo "<td bgcolor='$couleur_foncee' align='right'><font face='Verdana,Arial,Sans,sans-serif' size=1>";
-	echo "</font></td></tr>";
-
+	debut_cadre_enfonce("groupe-mot-24.gif", false, '', $titre_groupe);
 	// Affichage des options du groupe (types d'éléments, permissions...)
-	echo "<tr><td colspan=3><font face='Verdana,Arial,Sans,sans-serif' size=1>";
+	echo "<font face='Verdana,Arial,Sans,sans-serif' size=1>";
 	if ($articles == "oui") echo "> "._T('info_articles_2')." &nbsp;&nbsp;";
 	if ($breves == "oui") echo "> "._T('info_breves_02')." &nbsp;&nbsp;";
 	if ($rubriques == "oui") echo "> "._T('info_rubriques')." &nbsp;&nbsp;";
@@ -213,18 +207,23 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
 	if ($acces_comite == "oui") echo "> "._T('info_redacteurs')." &nbsp;&nbsp;";
 	if ($acces_forum == "oui") echo "> "._T('info_visiteurs_02')." &nbsp;&nbsp;";
 
-	echo "</font></td></tr></table>";
+	echo "</font>";
 
 	//
 	// Afficher les mots-cles du groupe
 	//
 	$query = "SELECT * FROM spip_mots WHERE id_groupe = '$id_groupe' ORDER BY titre";
 	$result = spip_query($query);
-
+	$table = '';
+	
 	if (spip_num_rows($result) > 0) {
-		debut_cadre_relief("mot-cle-24.gif");
+//		debut_cadre_relief("mot-cle-24.gif");
+		echo "<div class='liste'>";
 		echo "<table border=0 cellspacing=0 cellpadding=3 width=\"100%\">";
 		while ($row = spip_fetch_array($result)) {
+		
+			$vals = '';
+			
 			$id_mot = $row['id_mot'];
 			$titre_mot = $row['titre'];
 			$type_mot = $row['type'];
@@ -239,20 +238,12 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
 				$couleur = $ifond ? "#FFFFFF" : $couleur_claire;
 				$ifond = $ifond ^ 1;
 
-				echo "<TR BGCOLOR='$couleur'>";
-				echo "<TD>";
 				if ($connect_statut == "0minirezo" OR $nb_articles[$id_mot] > 0)
-					echo "<A HREF='mots_edit.php3?id_mot=$id_mot&redirect=mots_tous.php3'><img src='img_pack/petite-cle.gif' alt='' width='23' height='12' border='0'></A>";
+					$s = "<a href='mots_edit.php3?id_mot=$id_mot&redirect=mots_tous.php3' class='liste-mot'>".typo($titre_mot)."</a>";
 				else
-					echo "<img src='img_pack/petite-cle.gif' alt='' width='23' height='12' border='0'>";
-				echo "</TD>";
-				echo "<TD class='serif2'>";
-				if ($connect_statut == "0minirezo" OR $nb_articles[$id_mot] > 0)
-					echo "<A HREF='mots_edit.php3?id_mot=$id_mot&redirect=mots_tous.php3'>".typo($titre_mot)."</A>";
-				else
-					echo typo($titre_mot);
-				echo "</TD>";
-				echo "<TD ALIGN='right' class='verdana2'>";
+					$s = typo($titre_mot);
+
+				$vals[] = $s;
 
 				$texte_lie = array();
 
@@ -276,22 +267,34 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
 				else if ($nb_rubriques[$id_mot] > 1)
 					$texte_lie[] = $nb_rubriques[$id_mot]." "._T('info_rubriques_02');
 
-				echo $texte_lie = join($texte_lie,", ");
+				$texte_lie = join($texte_lie,", ");
+				
+				$vals[] = $texte_lie;
+
 
 				if ($connect_statut=="0minirezo") {
-					echo " &nbsp;&nbsp;&nbsp;&nbsp; ";
-					echo "<FONT SIZE=1>[<A HREF='mots_tous.php3?conf_mot=$id_mot'>"._T('info_supprimer_mot')."</A>]</FONT>";
-				} else
-					echo "&nbsp;";
+					$vals[] = "<a href='mots_tous.php3?conf_mot=$id_mot'>"._T('info_supprimer_mot')."&nbsp;<img src='img_pack/croix-rouge.gif' alt='X' width='7' height='7' border='0' align='middle'></a>";
+				} 
+
+				$table[] = $vals;
 
-				echo "</TD>";
-				echo "</TR>\n";
+				
 			}
+				
+		}
+		if ($connect_statut=="0minirezo") {
+			$largeurs = array('', 100, 100);
+			$styles = array('arial11', 'arial1', 'arial1');
 		}
+		else {
+			$largeurs = array('', 100);
+			$styles = array('arial11', 'arial1');
+		}
+		afficher_liste($largeurs, $table, $styles);
 
 		echo "</table>";
-		fin_cadre_relief();
-	
+//		fin_cadre_relief();
+		echo "</div>";
 		$supprimer_groupe = false;
 	} 
 	else
@@ -310,8 +313,10 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
 			echo "</td>";
 			echo "<td> &nbsp; </td>"; // Histoire de forcer "supprimer" un peu plus vers la gauche
 		}
-		echo "<td align='right'>";
+		echo "<td>";
+		echo "<div align='$spip_lang_right'>";
 		icone(_T('icone_creation_mots_cles'), "mots_edit.php3?new=oui&redirect=mots_tous.php3&id_groupe=$id_groupe", "mot-cle-24.gif", "creer.gif");
+		echo "</div>";
 		echo "</td></tr></table>";
 	}	
 
diff --git a/ecrire/naviguer.php3 b/ecrire/naviguer.php3
index a074205d292b53917e271d3291e69e87b5fef49c..ae30e97f19fe9b21be86aacd863cfed27b5b7a0f 100644
--- a/ecrire/naviguer.php3
+++ b/ecrire/naviguer.php3
@@ -25,45 +25,46 @@ function enfant($collection){
 		changer_typo($row['lang']);
 		$descriptif=propre($row['descriptif']);
 
-		$les_enfants.= "<P>";
+		$les_enfants.= "<div class='enfants'>";
 		if ($id_parent == "0") $les_enfants .= debut_cadre_relief("secteur-24.gif", true);
 		else  $les_enfants .= debut_cadre_relief("rubrique-24.gif", true);
 		if (strlen($les_sous_enfants) > 0){
 			$les_enfants .= $bouton_layer;
 		}
-		$les_enfants .= "<FONT FACE=\"Verdana,Arial,Sans,sans-serif\">";
+		//$les_enfants .= "<FONT FACE=\"Verdana,Arial,Sans,sans-serif\">";
 
 		if (acces_restreint_rubrique($id_rubrique))
 			$les_enfants .= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('image_administrer_rubrique')."'> ";
 
 		$les_enfants.= "<span dir='$lang_dir'><B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B></span>";
 		if (strlen($descriptif)>1) {
-			$les_enfants .= "<br><FONT SIZE=1><span dir='$lang_dir'>$descriptif</span></FONT>";
+			$les_enfants .= "<div class='verdana1'>$descriptif</span></div>";
 		}
 
-		$les_enfants.= "</FONT>";
+		//$les_enfants.= "</FONT>";
 
 		$les_enfants .= $les_sous_enfants;
 		$les_enfants .= fin_cadre_relief(true);
+		$les_enfants .= "</div>";
 	}
 }
 
 function sous_enfant($collection2){
-	global $lang_dir, $spip_lang_dir;
+	global $lang_dir, $spip_lang_dir, $spip_lang_left;
 	$query3 = "SELECT * FROM spip_rubriques WHERE id_parent=\"$collection2\" ORDER BY titre";
 	$result3 = spip_query($query3);
 
 	if (spip_num_rows($result3) > 0){
-		$retour = debut_block_invisible("enfants$collection2")."\n<ul style='list-style-image: url(img_pack/rubrique-12.gif)'>\n<FONT SIZE=1 face='arial,helvetica,sans-serif'>";
+		$retour = debut_block_invisible("enfants$collection2")."\n<ul style='margin: 0px; padding: 0px; padding-top: 3px;'>\n";
 		while($row=spip_fetch_array($result3)){
 			$id_rubrique2=$row['id_rubrique'];
 			$id_parent2=$row['id_parent'];
 			$titre2=$row['titre'];
 			changer_typo($row['lang']);
 
-			$retour.="<LI><A HREF='naviguer.php3?coll=$id_rubrique2'><span dir='$lang_dir'>".typo($titre2)."</span></A>\n";
+			$retour.="<div class='arial11' style='background: url(img_pack/rubrique-12.gif) left center no-repeat; padding: 2px; padding-$spip_lang_left: 18px; margin-$spip_lang_left: 3px;'><A HREF='naviguer.php3?coll=$id_rubrique2'><span dir='$lang_dir'>".typo($titre2)."</span></a></div>\n";
 		}
-		$retour .= "</FONT></ul>\n\n".fin_block()."\n\n";
+		$retour .= "</ul>\n\n".fin_block()."\n\n";
 	}
 	
 	return $retour;
@@ -435,8 +436,8 @@ enfant($coll);
 
 
 $les_enfants2=substr($les_enfants,round(strlen($les_enfants)/2),strlen($les_enfants));
-if (strpos($les_enfants2,"<P>")){
-	$les_enfants2=substr($les_enfants2,strpos($les_enfants2,"<P>"),strlen($les_enfants2));
+if (strpos($les_enfants2,"<div class='enfants'>")){
+	$les_enfants2=substr($les_enfants2,strpos($les_enfants2,"<div class='enfants'>"),strlen($les_enfants2));
 	$les_enfants1=substr($les_enfants,0,strlen($les_enfants)-strlen($les_enfants2));
 }else{
 	$les_enfants1=$les_enfants;
@@ -445,7 +446,7 @@ if (strpos($les_enfants2,"<P>")){
 
 
 // Afficher les sous-rubriques
-echo "<p><table cellpadding=0 cellspacing=0 border=0 width='100%'>";
+echo "<table cellpadding=0 cellspacing=0 border=0 width='100%'>";
 echo "<tr><td valign='top' width=50% rowspan=2>$les_enfants1</td>";
 echo "<td width=20 rowspan=2><img src='img_pack/rien.gif' width=20></td>";
 echo "<td valign='top' width=50%>$les_enfants2 &nbsp;";
@@ -459,7 +460,7 @@ if ($flag_editable) {
 	echo "<p>";
 }
 echo "</div></td></tr>";
-echo "</table>";
+echo "</table><p />";
 
 
 //echo "<div align='$spip_lang_left'>";
@@ -475,11 +476,83 @@ afficher_articles(_T('info_en_cours_validation'),
 	"AND lien.id_auteur=\"$connect_id_auteur\" AND articles.statut=\"prepa\" ORDER BY articles.date DESC");
 
 
-//////////  Les articles a valider
-/////////////////////////
 
-afficher_articles(_T('info_articles_a_valider'),
-	"WHERE statut=\"prop\" AND id_rubrique='$coll' ORDER BY date DESC");
+//
+// Verifier les boucles a mettre en relief
+//
+
+$relief = false;
+
+if (!$relief) {
+	$query = "SELECT id_article FROM spip_articles AS articles WHERE id_rubrique='$coll' AND statut='prop'$vos_articles LIMIT 0,1";
+	$result = spip_query($query);
+	$relief = (spip_num_rows($result) > 0);
+}
+
+if (!$relief) {
+	$query = "SELECT id_breve FROM spip_breves WHERE id_rubrique='$coll' AND (statut='prepa' OR statut='prop') LIMIT 0,1";
+	$result = spip_query($query);
+	$relief = (spip_num_rows($result) > 0);
+}
+
+if (!$relief AND lire_meta('activer_syndic') != 'non') {
+	$query = "SELECT id_syndic FROM spip_syndic WHERE id_rubrique='$coll' AND statut='prop' LIMIT 0,1";
+	$result = spip_query($query);
+	$relief = (spip_num_rows($result) > 0);
+}
+
+if (!$relief AND lire_meta('activer_syndic') != 'non' AND $connect_statut == '0minirezo' AND $connect_toutes_rubriques) {
+	$query = "SELECT id_syndic FROM spip_syndic WHERE id_rubrique='$coll' AND syndication='off' LIMIT 0,1";
+	$result = spip_query($query);
+	$relief = (spip_num_rows($result) > 0);
+}
+
+
+if ($relief) {
+	echo "<p>";
+	debut_cadre_couleur();
+	echo "<div class='verdana2' style='color: black;'><b>"._T('texte_en_cours_validation')."</b></div><p>";
+
+	//
+	// Les articles a valider
+	//
+	afficher_articles(_T('info_articles_proposes'),
+		"WHERE id_rubrique='$coll' AND statut='prop'$vos_articles ORDER BY date DESC");
+
+	//
+	// Les breves a valider
+	//
+	$query = "SELECT * FROM spip_breves WHERE id_rubrique='$coll' AND (statut='prepa' OR statut='prop') ORDER BY date_heure DESC";
+	afficher_breves(_T('info_breves_valider'), $query, true);
+
+	//
+	// Les sites references a valider
+	//
+	if (lire_meta('activer_syndic') != 'non') {
+		include_ecrire("inc_sites.php3");
+		afficher_sites(_T('info_site_valider'), "SELECT * FROM spip_syndic WHERE id_rubrique='$coll' AND statut='prop' ORDER BY nom_site");
+	}
+
+	//
+	// Les sites a probleme
+	//
+	if (lire_meta('activer_syndic') != 'non' AND $connect_statut == '0minirezo' AND $connect_toutes_rubriques) {
+		include_ecrire("inc_sites.php3");
+		afficher_sites(_T('avis_sites_syndiques_probleme'),
+			"SELECT * FROM spip_syndic WHERE id_rubrique='$coll' AND syndication='off' AND statut='publie' ORDER BY nom_site");
+	}
+
+	// Les articles syndiques en attente de validation
+	if ($connect_statut == '0minirezo' AND $connect_toutes_rubriques) {
+		$result = spip_query ("SELECT COUNT(*) AS compte FROM spip_syndic_articles WHERE id_rubrique='$coll' AND statut='dispo'");
+		if (($row = spip_fetch_array($result)) AND $row['compte'])
+			echo "<br><small><a href='sites_tous.php3'>".$row['compte']." "._T('info_liens_syndiques_1')."</a> "._T('info_liens_syndiques_2')."</small>";
+	}
+
+	fin_cadre_couleur();
+}
+
+
 
 
 //////////  Les articles en cours de redaction
@@ -495,7 +568,7 @@ if ($connect_statut == "0minirezo" AND $options == 'avancees') {
 /////////////////////////
 
 afficher_articles(_T('info_tous_articles_presents'),
-	"WHERE statut=\"publie\" AND id_rubrique='$coll' ORDER BY date DESC");
+	"WHERE statut=\"publie\" AND id_rubrique='$coll' ORDER BY date DESC", true);
 
 if ($coll > 0){
 	echo "<div align='right'>";
@@ -505,7 +578,7 @@ if ($coll > 0){
 
 //// Les breves
 
-afficher_breves(_T('icone_ecrire_nouvel_article'), "SELECT * FROM spip_breves WHERE id_rubrique='$coll' ORDER BY date_heure DESC");
+afficher_breves(_T('icone_ecrire_nouvel_article'), "SELECT * FROM spip_breves WHERE id_rubrique='$coll' AND statut != 'prop' AND statut != 'prepa' ORDER BY date_heure DESC");
 
 $activer_breves=lire_meta("activer_breves");
 
@@ -521,7 +594,7 @@ if ($id_parent == "0" AND $coll != "0" AND $activer_breves!="non"){
 
 if (lire_meta("activer_sites") == 'oui') {
 	include_ecrire("inc_sites.php3");
-	afficher_sites(_T('titre_sites_references_rubrique'), "SELECT * FROM spip_syndic WHERE id_rubrique='$coll' AND statut!='refuse' ORDER BY nom_site");
+	afficher_sites(_T('titre_sites_references_rubrique'), "SELECT * FROM spip_syndic WHERE id_rubrique='$coll' AND statut!='refuse' AND statut != 'prop' AND syndication != 'off' ORDER BY nom_site");
 
 	$proposer_sites=lire_meta("proposer_sites");
 	if ($coll > 0 AND ($flag_editable OR $proposer_sites > 0)) {
diff --git a/ecrire/puce.gif b/ecrire/puce.gif
index c156b51af5334f7eb91f22ddfb39894ab28ee007..c005a6c5a6de60bdc72928e0b09e54fd82faa656 100644
Binary files a/ecrire/puce.gif and b/ecrire/puce.gif differ
diff --git a/ecrire/puce_rtl.gif b/ecrire/puce_rtl.gif
index 19d3d25cc5462d951911f26fee28c155581f4c4c..ab5e910fa86d97823a44848d938a7daeae3ba736 100644
Binary files a/ecrire/puce_rtl.gif and b/ecrire/puce_rtl.gif differ
diff --git a/ecrire/recherche.php3 b/ecrire/recherche.php3
index 0312ea4488c0b4c53ffaf2e03cc2064220e422f2..d694a6dade09ed858e08208dbe35e892981a8dfe 100644
--- a/ecrire/recherche.php3
+++ b/ecrire/recherche.php3
@@ -8,98 +8,108 @@ debut_page(_T('titre_page_recherche', array('recherche' => $recherche)));
 
 debut_gauche();
 
+		global $recherche;
+				$recherche_aff = _T('info_rechercher');
+				$onfocus = "onfocus=this.value='';";
+			echo "<form method='get' style='margin: 0px;' action='recherche.php3'>";
+			echo '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="spip_recherche" accesskey="r" '.$onfocus.'>';
+			echo "</form>";
 
 
-debut_droite();
-
-echo "<FONT FACE='Verdana,Arial,Sans,sans-serif'><B>"._T('info_resultat_recherche')."</B><BR>";
-echo "<FONT SIZE=5 COLOR='$couleur_foncee'><B>".typo($recherche)."</B></FONT><p>";
-
-$recherche = addslashes($recherche);
-
-$query_articles = "SELECT * FROM spip_articles WHERE";
-$query_breves = "SELECT * FROM spip_breves WHERE ";
-$query_rubriques = "SELECT * FROM spip_rubriques WHERE ";
-$query_sites = "SELECT * FROM spip_syndic WHERE ";
-
-if (ereg("^[0-9]+$", $recherche)) {
-	$query_articles .= " (id_article = $recherche) OR ";
-	$query_breves .= " (id_breve = $recherche) OR ";
-	$query_rubriques .= " (id_rubrique = $recherche) OR ";
-	$query_sites .= " (id_syndic = $recherche) OR ";
-}
 
-// Eviter les symboles '%', caracteres SQL speciaux
-$recherche = str_replace("%","\%",$recherche);
-$rech2 = split("[[:space:]]+", $recherche);
-if ($rech2)
-	$where = " (titre LIKE '%".join("%' AND titre LIKE '%", $rech2)."%') ";
-else
-	$where = " 1=2";
-
-$query_articles .= " $where ORDER BY date_modif DESC";
-$query_breves .= " $where ORDER BY maj DESC LIMIT 0,10";
-$query_rubriques .= " $where ORDER BY maj DESC LIMIT 0,10";
-
-$query_sites .= " $where ORDER BY maj DESC LIMIT 0,10";
-$query_sites  = ereg_replace("titre LIKE", "nom_site LIKE", $query_sites);
-
-$activer_moteur = (lire_meta('activer_moteur') == 'oui');
-if ($activer_moteur) {	// texte integral
-	include_ecrire ('inc_index.php3');
-	list($hash_recherche,) = requete_hash ($recherche);
-	$query_articles_int = requete_txt_integral('article', $hash_recherche);
-	$query_breves_int = requete_txt_integral('breve', $hash_recherche);
-	$query_rubriques_int = requete_txt_integral('rubrique', $hash_recherche);
-	$query_sites_int = requete_txt_integral('syndic', $hash_recherche);
-	$query_auteurs_int = requete_txt_integral('auteur', $hash_recherche);
-}
+debut_droite();
 
-if ($query_articles)
-	$nba = afficher_articles (_T('info_articles_trouves'), $query_articles);
-if ($activer_moteur) {
-	if ($nba) {
-		$doublons = join($nba, ",");
-		$query_articles_int = ereg_replace ("WHERE", "WHERE objet.id_article NOT IN ($doublons) AND", $query_articles_int);
+if (strlen($recherche) > 0) {
+
+	echo "<FONT FACE='Verdana,Arial,Sans,sans-serif'><B>"._T('info_resultat_recherche')."</B><BR>";
+	echo "<FONT SIZE=5 COLOR='$couleur_foncee'><B>".typo($recherche)."</B></FONT><p>";
+
+	$recherche = addslashes($recherche);
+	
+	$query_articles = "SELECT * FROM spip_articles WHERE";
+	$query_breves = "SELECT * FROM spip_breves WHERE ";
+	$query_rubriques = "SELECT * FROM spip_rubriques WHERE ";
+	$query_sites = "SELECT * FROM spip_syndic WHERE ";
+	
+	if (ereg("^[0-9]+$", $recherche)) {
+		$query_articles .= " (id_article = $recherche) OR ";
+		$query_breves .= " (id_breve = $recherche) OR ";
+		$query_rubriques .= " (id_rubrique = $recherche) OR ";
+		$query_sites .= " (id_syndic = $recherche) OR ";
 	}
-	$nba1 = afficher_articles (_T('info_articles_trouves_dans_texte'), $query_articles_int);
-}
-
-if ($query_breves)
-	$nbb = afficher_breves (_T('info_breves_touvees'), $query_breves);
-if ($activer_moteur) {
-	if ($nbb) {
-		$doublons = join($nbb, ",");
-		$query_breves_int = ereg_replace ("WHERE", "WHERE objet.id_breve NOT IN ($doublons) AND", $query_breves_int);
+	
+	// Eviter les symboles '%', caracteres SQL speciaux
+	$recherche = str_replace("%","\%",$recherche);
+	$rech2 = split("[[:space:]]+", $recherche);
+	if ($rech2)
+		$where = " (titre LIKE '%".join("%' AND titre LIKE '%", $rech2)."%') ";
+	else
+		$where = " 1=2";
+	
+	$query_articles .= " $where ORDER BY date_modif DESC";
+	$query_breves .= " $where ORDER BY maj DESC LIMIT 0,10";
+	$query_rubriques .= " $where ORDER BY maj DESC LIMIT 0,10";
+	
+	$query_sites .= " $where ORDER BY maj DESC LIMIT 0,10";
+	$query_sites  = ereg_replace("titre LIKE", "nom_site LIKE", $query_sites);
+	
+	$activer_moteur = (lire_meta('activer_moteur') == 'oui');
+	if ($activer_moteur) {	// texte integral
+		include_ecrire ('inc_index.php3');
+		list($hash_recherche,) = requete_hash ($recherche);
+		$query_articles_int = requete_txt_integral('article', $hash_recherche);
+		$query_breves_int = requete_txt_integral('breve', $hash_recherche);
+		$query_rubriques_int = requete_txt_integral('rubrique', $hash_recherche);
+		$query_sites_int = requete_txt_integral('syndic', $hash_recherche);
+		$query_auteurs_int = requete_txt_integral('auteur', $hash_recherche);
 	}
-	$nbb1 = afficher_breves (_T('info_breves_touvees_dans_texte'), $query_breves_int);
-}
-
-if ($query_rubriques)
-	$nbr = afficher_rubriques (_T('info_rubriques_trouvees'), $query_rubriques);
-if ($activer_moteur) {
-	if ($nbr) {
-		$doublons = join($nbr, ",");
-		$query_rubriques_int = ereg_replace ("WHERE", "WHERE objet.id_rubrique NOT IN ($doublons) AND", $query_rubriques_int);
+	
+	if ($query_articles)
+		$nba = afficher_articles (_T('info_articles_trouves'), $query_articles);
+	if ($activer_moteur) {
+		if ($nba) {
+			$doublons = join($nba, ",");
+			$query_articles_int = ereg_replace ("WHERE", "WHERE objet.id_article NOT IN ($doublons) AND", $query_articles_int);
+		}
+		$nba1 = afficher_articles (_T('info_articles_trouves_dans_texte'), $query_articles_int);
 	}
-	$nbr1 = afficher_rubriques (_T('info_rubriques_trouvees_dans_texte'), $query_rubriques_int);
-}
-
-if ($activer_moteur)
-	$nbt = afficher_auteurs (_T('info_auteurs_trouves'), $query_auteurs_int);
-
-if ($query_sites)
-	$nbs = afficher_sites (_T('info_sites_trouves'), $query_sites);
-if ($activer_moteur) {
-	if ($nbs) {
-		$doublons = join($nbs, ",");
-		$query_sites_int = ereg_replace ("WHERE", "WHERE objet.id_syndic NOT IN ($doublons) AND", $query_sites_int);
+	
+	if ($query_breves)
+		$nbb = afficher_breves (_T('info_breves_touvees'), $query_breves, true);
+	if ($activer_moteur) {
+		if ($nbb) {
+			$doublons = join($nbb, ",");
+			$query_breves_int = ereg_replace ("WHERE", "WHERE objet.id_breve NOT IN ($doublons) AND", $query_breves_int);
+		}
+		$nbb1 = afficher_breves (_T('info_breves_touvees_dans_texte'), $query_breves_int, true);
+	}
+	
+	if ($query_rubriques)
+		$nbr = afficher_rubriques (_T('info_rubriques_trouvees'), $query_rubriques);
+	if ($activer_moteur) {
+		if ($nbr) {
+			$doublons = join($nbr, ",");
+			$query_rubriques_int = ereg_replace ("WHERE", "WHERE objet.id_rubrique NOT IN ($doublons) AND", $query_rubriques_int);
+		}
+		$nbr1 = afficher_rubriques (_T('info_rubriques_trouvees_dans_texte'), $query_rubriques_int);
+	}
+	
+	if ($activer_moteur)
+		$nbt = afficher_auteurs (_T('info_auteurs_trouves'), $query_auteurs_int);
+	
+	if ($query_sites)
+		$nbs = afficher_sites (_T('info_sites_trouves'), $query_sites);
+	if ($activer_moteur) {
+		if ($nbs) {
+			$doublons = join($nbs, ",");
+			$query_sites_int = ereg_replace ("WHERE", "WHERE objet.id_syndic NOT IN ($doublons) AND", $query_sites_int);
+		}
+		$nbs1 = afficher_sites (_T('info_sites_trouves_dans_texte'), $query_sites_int);
+	}
+	
+	if (!$nba AND !$nba1 AND !$nbb AND !$nbb1 AND !$nbr AND !$nbr1 AND !$nbt AND !$nbs AND !$nbs1) {
+		echo "<FONT FACE='Verdana,Arial,Sans,sans-serif'>"._T('avis_aucun_resultat')."</FONT><P>";
 	}
-	$nbs1 = afficher_sites (_T('info_sites_trouves_dans_texte'), $query_sites_int);
-}
-
-if (!$nba AND !$nba1 AND !$nbb AND !$nbb1 AND !$nbr AND !$nbr1 AND !$nbt AND !$nbs AND !$nbs1) {
-	echo "<FONT FACE='Verdana,Arial,Sans,sans-serif'>"._T('avis_aucun_resultat')."</FONT><P>";
 }
 
 echo "<p>";
diff --git a/ecrire/spip_style.php3 b/ecrire/spip_style.php3
index 1ad538ad63074a6fc1b6a589bbcc7c69ed098293..19e6c5b306e63af195a580469631aa5a3f628c54 100644
--- a/ecrire/spip_style.php3
+++ b/ecrire/spip_style.php3
@@ -6,7 +6,10 @@
 	list (,$couleur_claire,$couleur_foncee,$left,$right) = $regs;
 	$ltr = ($left == 'left');
 	$rtl = ($right == 'left');
-
+	
+	if ($left == 'left') $_rtl = "";
+	else $_rtl = "_rtl";
+	
 	// En-tetes
 	$lastmodified = @filemtime("spip_style.php3");
 	$headers_only = http_last_modified($lastmodified, time() + 24 * 3600);
@@ -26,6 +29,14 @@
  */
 body { 
 	font-family: Verdana,Arial,Sans,sans-serif; 
+	border: 0px;
+	scrollbar-face-color: white; 				
+	scrollbar-shadow-color: white; 				
+	scrollbar-highlight-color: white;
+	scrollbar-3dlight-color: <?php echo $couleur_claire; ?>;
+	scrollbar-darkshadow-color: white; 		
+	scrollbar-track-color: <?php echo $couleur_foncee; ?>;
+	scrollbar-arrow-color: <?php echo $couleur_foncee; ?>;
 }
 td {
 	text-align: <?php echo $left; ?>;
@@ -33,8 +44,25 @@ td {
 /*
  * Formulaires
  */
-.forml { width: 100%; padding: 2px; background-color: #E4E4E4; background-position: center bottom; float: none; color: #000000; }
-.formo { width: 100%; padding: 2px; background-color: <?php echo $couleur_claire; ?>; background-position: center bottom; float: none; }
+.forml { 
+	width: 100%; 
+	display: block;
+	padding: 3px; 
+	background-color: #e4e4e4; 
+	border: 1px solid <?php echo $couleur_claire; ?>; 
+	background-position: center bottom; 
+	float: none;
+	behavior: url("win_width.htc");
+ }
+.formo { 
+	width: 100%; 
+	display: block;
+	padding: 3px; 
+	background-color: white; 
+	border: 1px solid <?php echo $couleur_claire; ?>; 
+	background-position: center bottom; float: none; 
+	behavior: url("win_width.htc");
+}
 .fondl { background-color: <?php echo $couleur_claire; ?>; background-position: center bottom; float: none; color: #000000; }
 .fondo { background-color: <?php echo $couleur_foncee; ?>; background-position: center bottom; float: none; color: #FFFFFF; }
 .fondf { background-color: #FFFFFF; border-style: solid ; border-width: 1; border-color: #E86519; color: #E86519; }
@@ -45,38 +73,32 @@ td {
  */
 
 .bandeau-principal {
-	display: block;
 	margin: 0px;
 	padding: 0px;
-	padding-top: 0px;
-	background: url(img_pack/rayures-fines.gif);
-	border-bottom: 1px solid #333333;
+	background-color: white;
+	border-bottom: 1px solid black;
 }
-.bandeau-secondaire {
-	display: block;
+
+.bandeau-icones {
 	margin: 0px;
 	padding: 0px;
-	background-color: #f1f1f1;
-	border-bottom: 1px solid black;
-	border-top: 1px solid #aaaaaa;
+	padding-bottom: 2px; 
+	padding-top: 4px;
 }
-.bandeau-icones {
-	display: block;
-	margin: auto;
+
+.bandeau_sec .gauche {
+	margin-top: 0px;
 	padding: 2px;
+	padding-top: 0px;
+	background-color: white;
+	border-bottom: 1px solid black;
+	border-left: 1px solid black;
+	border-right: 1px solid black;
+	-moz-border-radius-bottomleft: 5px;
+	-moz-border-radius-bottomright: 5px;
+	z-index: 100;
 }
-.bandeau-icones .gauche {
-	float: <?php echo $left; ?>;
-}
-.bandeau-icones .droite {
-	float: <?php echo $right; ?>;
-}
-.bandeau-icones .milieu {
-	text-align: center;
-}
-.bandeau-icones .fin {
-	clear: both;
-}
+
 .bandeau-icones .separateur {
 	vertical-align: center;
 	height: 100%;
@@ -86,10 +108,97 @@ td {
 	background: url(img_pack/tirets-separation.gif);
 	background-position: 5px 0px;
 }
+.bandeau_couleur {
+	padding-right: 4px;
+	padding-left: 4px;
+	font-family: verdana, helvetica, arial, sans;
+	font-size: 11px;
+	color: black;
+	text-align: center;
+	font-weight: bold;
+}
+
+.bandeau_couleur_sous {
+	position: absolute; 
+	visibility: hidden;
+	top: 0px; 
+	background-color: <?php echo $couleur_claire; ?>; 
+	color: black;
+	padding: 5px;
+	padding-top: 2px;
+	font-family: verdana, helvetica, arial, sans;
+	font-size: 11px;
+	border-bottom: 1px solid white;
+	border-right; 1px solid white;
+	-moz-border-radius-bottomleft: 5px;
+	-moz-border-radius-bottomright: 5px;
+}
+
+
+div.bandeau_rubriques {
+	background-color: #eeeeee; 
+	border: 1px solid #555555;
+}
+a.bandeau_rub {
+	display: block;
+	font-size: 10px;
+	padding: 2px;
+	padding-<?php echo $right; ?>: 13px;
+	padding-<?php echo $left; ?>: 16px;
+	color: #666666;
+	text-decoration: none;
+	border-bottom: 1px solid #cccccc;
+	background-repeat: no-repeat;
+	background-position: <?php echo $ltr ? "1%" : "99%"; ?>;
+}
+a.bandeau_rub:hover {
+	background-color: white;
+	text-decoration: none;
+	color: #333333;
+	background-repeat: no-repeat;
+	background-position: <?php echo $ltr ? "1%" : "99%"; ?>;
+}
+div.bandeau_rub {
+	position: absolute;
+	top: 4px;
+	<?php echo $left; ?>: 120px;
+	background-color: #eeeeee;
+	padding: 0px;
+	border: 1px solid #555555;
+	visibility: hidden;
+	width: 170px;
+}
+
+div.messages {
+	padding: 5px;
+	border-bottom: 1px solid <? echo $couleur_foncee; ?>;
+	font-size: 10px;
+	font-weight: bold;
+}
 
 
 /* Icones de fonctions */
 
+a.icone26 {
+	font-family: verdana, helvetica, arial, sans;
+	font-size: 11px;
+	font-weight: bold;
+	color: black;
+	text-decoration: none;
+}
+a.icone26:hover {
+	text-decoration: none;
+}
+a.icone26 img {
+	padding: 1px;
+	margin-right: 2px;
+	vertical-align: middle;
+}
+a.icone26:hover img {
+	background: url(img_pack/fond-gris-anim.gif);
+}
+
+
 .icone36, icone36-danger {
 	border: none;
 	padding: 0px;
@@ -105,19 +214,17 @@ td {
 .icone36 a img {
 	margin: 0px; 
 	display: inline;
-	padding: 3px;
+	padding: 4px;
 	background-color: #eeeeee;
-	border: 1px solid #cccccc;
-	filter: alpha(opacity=100);
+	border: 2px solid <?php echo $couleur_foncee; ?>;
 	-moz-border-radius: 5px;
 }
 .icone36 a:hover img {
 	margin: 0px; 
 	display: inline;
-	padding: 3px;
+	padding: 4px;
 	background-color: white;
-	border: 1px solid #666666;
-	filter: alpha(opacity=100);
+	border: 2px solid #666666;
 	-moz-border-radius: 5px;
 }
 .icone36-danger a img {
@@ -126,7 +233,6 @@ td {
 	padding: 3px;
 	background-color: white;
 	border: 2px solid #ff9999;
-	filter: alpha(opacity=100);
 	-moz-border-radius: 5px;
 }
 .icone36-danger a:hover img {
@@ -135,7 +241,6 @@ td {
 	padding: 3px;
 	background-color: white;
 	border: 2px solid red;
-	filter: alpha(opacity=100);
 	-moz-border-radius: 5px;
 }
 .icone36-danger a span {
@@ -149,7 +254,9 @@ td {
 	font-family: Verdana, Arial, Sans, sans-serif;
 	font-weight: bold;
 	font-size: 10px;
-	color: #666666; display: block; margin: 2px;
+	color: <?php echo $couleur_foncee; ?>; 
+	display: block; 
+	margin: 2px;
 	width: 100%
 }
 .icone36 a:hover span {
@@ -187,29 +294,54 @@ td {
 .cellule36 a, .cellule48 a {
 	display: block; text-align: center;
 }
-.cellule36 a img, .cellule48 a img {
+
+
+.cellule48 a img {
+	behavior: url("win_png.htc");
+	display: inline;
+	margin: 4px;
+	padding: 0px;
+	border: 0px;
+	background-color: <?php echo $couleur_claire; ?>;
+}
+
+.cellule48 a.selection img {
+	display: inline;
+	margin: 4px;
+	padding: 0px;
+	border: 0px;
+	background-color: #999999;
+}
+.cellule48 a:hover img {
+	display: inline;
+	margin: 4px;
+	padding: 0px;
+	border: 0px;
+	background: url(img_pack/fond-gris-anim.gif);
+}
+
+
+.cellule36 a img {
 	margin: 0px; 
 	display: inline;
 	padding: 4px;
 	border: 0px;
-	filter: alpha(opacity=70);
 }
-.cellule36 a.selection img, .cellule48 a.selection img {
+.cellule36 a.selection img{
 	margin: 0px; 
 	display: inline;
 	padding: 3px;
 	background-color: white;
 	border: 1px solid #aaaaaa;
-	filter: alpha(opacity=100);
 	-moz-border-radius: 5px;
 }
-.cellule36 a:hover img, .cellule48 a:hover img {
+.cellule36 a:hover img {
 	margin: 0px; 
 	display: inline;
 	padding: 3px;
 	background-color: #dddddd;
+	background: url(img_pack/fond-gris-anim.gif);
 	border: 1px solid #999999;
-	filter: alpha(opacity=100);
 	-moz-border-radius: 5px;
 }
 .cellule36 a span, .cellule48 a span {
@@ -306,7 +438,6 @@ a.cellule-h div.cell-i {
 	border: 0px;
 	margin: 0px;
 	margin-<?php echo $right; ?>: 3px;
-	filter: alpha(opacity=50);
 }
 a.cellule-h:hover div.cell-i {
 	padding: 0px;
@@ -331,12 +462,6 @@ a.cellule-h img {
 	background-repeat: no-repeat;
 	background-position: center center;
 }
-a.cellule-h img {
-	filter: alpha(opacity=40);
-}
-a.cellule-h:hover img {
-	filter: alpha(opacity=100);
-}
 
 a.cellule-h a.aide img {
 	width: 12px; height: 12px;
@@ -409,6 +534,45 @@ a.cellule-h-texte:hover {
 	height: 24px;
 }
 
+div.onglet {
+	font-family: Arial, Sans, sans-serif; 
+	font-size: 11px;
+	font-weight: bold; 
+	border: 1px solid <?php echo $couleur_foncee; ?>;
+	margin-right: 3px;
+	padding: 5px;
+	background-color: white;
+}
+div.onglet a {
+	color: <?php echo $couleur_foncee; ?>;
+}
+
+div.onglet_on {
+	font-family: Arial, Sans, sans-serif; 
+	font-size: 11px;
+	font-weight: bold; 
+	border: 1px solid <?php echo $couleur_foncee; ?>;
+	margin-right: 3px;
+	padding: 5px;
+	background-color: <?php echo $couleur_claire; ?>;
+}
+div.onglet_on a, div.onglet_on a:hover {
+	color: <?php echo $couleur_foncee; ?>;
+	text-decoration: none;
+}
+
+div.onglet_off {
+	font-family: Arial, Sans, sans-serif; 
+	font-size: 11px;
+	font-weight: bold; 
+	border: 1px solid <?php echo $couleur_foncee; ?>;
+	margin-right: 3px;
+	padding: 5px;
+	background-color: <?php echo $couleur_foncee; ?>;
+	color: white;
+}
+
+
 
 .reliefblanc { background-image: url(img_pack/barre-blanc.gif); }
 .reliefgris { background-image: url(img_pack/barre-noir.gif); }
@@ -421,6 +585,7 @@ a.cellule-h-texte:hover {
 /* Raccourcis pour les polices (utile pour les tableaux) */
 .arial0 { font-family: Arial, Sans, sans-serif; font-size: 9px; }
 .arial1 { font-family: Arial, Sans, sans-serif; font-size: 10px; }
+.arial11 { font-family: Arial, Sans, sans-serif; font-size: 11px; }
 .arial2 { font-family: Arial, Sans, sans-serif; font-size: 12px; }
 .verdana1 { font-family: Verdana, Arial, Sans, sans-serif; font-size: 10px; }
 .verdana2 { font-family: Verdana, Arial, Sans, sans-serif; font-size: 11px; }
@@ -430,7 +595,7 @@ a.cellule-h-texte:hover {
 
 /* Liens hypertexte */
 a { text-decoration: none; }
-a:hover { text-decoration: underline; }
+a:hover { text-decoration: none; }
 a.icone { text-decoration: none; }
 a.icone:hover { text-decoration: none; }
 
@@ -438,19 +603,24 @@ a.icone:hover { text-decoration: none; }
  * Barre de raccourcis
  */
 
+table.spip_barre {
+	border-<? echo $right; ?>: 1px solid <? echo $couleur_claire; ?>;
+}
+
+table.spip_barre td {
+	text-align: <? echo $left; ?>;
+	border-top: 1px solid <? echo $couleur_claire; ?>;
+	border-<? echo $left; ?>: 1px solid <? echo $couleur_claire; ?>;
+}
+
 a.spip_barre img {
-	padding: 4px;
-	margin: 1px;
-	border: 1px solid #aaaaaa;
-	background-color: #e4e4e4;
-	-moz-border-radius: 5px;
+	padding: 3px;
+	margin: 0px;
+	background-color: #eeeeee;
+	border-<? echo $right; ?>: 1px solid <? echo $couleur_claire; ?>;
 }
 a.spip_barre:hover img {
-	padding: 4px;
-	margin: 1px;
-	border: 1px solid #999999;
 	background-color: white;
-	-moz-border-radius: 5px;
 }
 
 td.icone table {
@@ -485,86 +655,106 @@ td.icone a img {
 }
 
 
-
-
 /*
- * Cadre blanc arrondi
- */
+* Cadre couleur foncee
+*/
 
-.cadre {
-	padding: 0px;
-	margin: 0px;
-	border: 0px;
-	width: 100%;
-}
-/* Haut-gauche, etc. */
-.r-hg 	{
-	width: 5px; height: 24px; background: url('img_pack/rond-hg-24.gif') no-repeat right bottom;
-}
-.r-h {
-	height: 24px; background: url('img_pack/rond-h-24.gif') repeat-x bottom;
-	text-align: <?php echo $left; ?>;
+.cadre-padding {
+	font-family: verdana, arial, helvetica, sans;
+	font-size: 12px;
+	padding: 6px;
 }
-.r-hd {
-	width: 5px; height: 24px; background: url('img_pack/rond-hd-24.gif') no-repeat left bottom;
+
+.cadre-titre {
+	font-family: verdana, arial, helvetica, sans;
+	font-weight: bold;
+	font-size: 12px;
+	padding: 3px;
 }
-.r-g {
-	width: 5px; background: url('img_pack/rond-g.gif') repeat-y right;
+
+.cadre-fonce {
+	background-color: <?php echo $couleur_foncee; ?>;
+	-moz-border-radius: 8px;
 }
-.r-d {
-	width: 5px; background: url('img_pack/rond-d.gif') repeat-y left;
+
+.cadre-gris-fonce {
+	background-color: #666666;
+	-moz-border-radius: 8px;
 }
-.r-bg {
-	width: 5px; height: 5px; background: url('img_pack/rond-bg.gif') no-repeat right top;
+
+.cadre-gris-clair {
+	border: 1px solid #aaaaaa;
+	background-color: #cccccc;
+	-moz-border-radius: 8px;
 }
-.r-b {
-	height: 5px; background: url('img_pack/rond-b.gif') repeat-x top;
+
+.cadre-couleur {
+	background-color: <? echo $couleur_claire; ?>;
+	-moz-border-radius: 8px;
 }
-.r-bd {
-	width: 5px; height: 5px; background: url('img_pack/rond-bd.gif') no-repeat left top;
+
+.cadre-trait-couleur {
+	background-color: white;
+	border: 2px solid <? echo $couleur_foncee; ?>;
+	-moz-border-radius: 8px;
 }
-.r-c {
-	background: white; padding: 2px;
-	text-align: <?php echo $left; ?>;
+.cadre-trait-couleur div.cadre-titre {
+	background: <? echo $couleur_foncee; ?>;
+	border-bottom: 2px solid <? echo $couleur_foncee; ?>;
+	color: white;	
 }
 
+.cadre-r {
+	background-color: white;
+	border: 1px solid #666666;
+	-moz-border-radius: 8px;
+}
 
-/*
- * Cadre gris enfonce
- */
 
-/* Haut-gauche, etc. */
-.e-hg {
-	width: 5px; height: 24px; background: url('img_pack/cadre-hg.gif') no-repeat right bottom;
+.cadre-r div.cadre-titre {
+	background: #aaaaaa;
+	border-bottom: 1px solid #666666;
+	color: black;	
 }
-.e-h {
-	height: 24px; background: url('img_pack/cadre-h.gif') repeat-x bottom;
-	text-align: <?php echo $left; ?>;
-}
-.e-hd {
-	width: 5px; height: 24px; background: url('img_pack/cadre-hd.gif') no-repeat left bottom;
-}
-.e-g {
-	width: 5px; background: url('img_pack/cadre-g.gif') repeat-y right;
-}
-.e-d {
-	width: 5px; background: url('img_pack/cadre-d.gif') repeat-y left;
+
+.cadre-e {
+	background-color: #dddddd;
+	border-top: 1px solid #aaaaaa;
+	border-left: 1px solid #aaaaaa;
+	border-bottom: 1px solid white;
+	border-right: 1px solid white;
+	-moz-border-radius: 8px;
 }
-.e-bg {
-	width: 5px; height: 5px; background: url('img_pack/cadre-bg.gif') no-repeat right top;
+
+.cadre-e div.cadre-titre {
+	background: <? echo $couleur_claire; ?>;
+	border-bottom: 1px solid #666666;
+	color: black;	
 }
-.e-b {
-	height: 5px; background: url('img_pack/cadre-b.gif') repeat-x top;
+
+.cadre-e-noir {
+	border: 1px solid #666666;
+	-moz-border-radius: 8px;
 }
-.e-bd {
-	width: 5px; height: 5px; background: url('img_pack/cadre-bd.gif') no-repeat left top;
+
+.cadre-info{
+	background-color: white;
+	border: 2px solid <?php echo $couleur_foncee; ?>;
+	padding: 5px;
+	-moz-border-radius: 8px;
 }
-.e-c {
-	background: #e0e0e0; padding: 2px;
-	text-align: <?php echo $left; ?>;
+
+
+.cadre-formulaire {
+/*	border: 1px solid <?php echo $couleur_foncee; ?>;
+	background-color: #dddddd;*/
+	color: #444444;
+	font-family: verdana, arial, helvetica, sans;
+	font-size: 11px;
 }
 
 
+
 /*
  * Styles pour "Tout le site"
  */
@@ -580,43 +770,45 @@ td.icone a img {
 	border-<?php echo $left; ?>: 1px dotted #404040;
 }
  
+.plan-articles {
+	border-bottom: 1px solid #cccccc;
+	border-left: 1px solid #cccccc;
+	border-right: 1px solid #cccccc;
+}
 .plan-articles a {
 	display: block;
 	padding: 2px;
-	margin-<?php echo $left; ?>: 2px;
+/*	margin-<?php echo $left; ?>: 2px; */
 	padding-<?php echo $left; ?>: 18px;
-	background: <?php echo $ltr ? "1%" : "99%"; ?> no-repeat;
+	border-top: 1px solid #cccccc;
+	 background: <?php echo $ltr ? "1%" : "99%"; ?> no-repeat;
 	background-color: #e0e0e0;
-	border-top: 1px solid white;
+	/* border-top: 1px solid white;
 	border-left: 1px solid white;
 	border-right: 1px solid #aaaaaa;
-	border-bottom: 1px solid #aaaaaa;
+	border-bottom: 1px solid #aaaaaa; */
 	font-family: Verdana, Arial, Sans, sans-serif;
 	font-size: 11px;
 	text-decoration: none;
 }
 .plan-articles a:hover {
 	background-color: white; 
-	border-bottom: 1px solid white; 
-	border-right: 1px solid white; 
-	border-left: 1px solid #aaaaaa; 
-	border-top: 1px solid #aaaaaa;
 	text-decoration: none;
 }
 .plan-articles .publie {
-	background-image: url(img_pack/puce-verte-breve.gif);
+	background-image: url(img_pack/puce-verte.gif);
 }
 .plan-articles .prepa {
-	background-image: url(img_pack/puce-blanche-breve.gif);
+	background-image: url(img_pack/puce-blanche.gif);
 }
 .plan-articles .prop {
-	background-image: url(img_pack/puce-orange-breve.gif);
+	background-image: url(img_pack/puce-orange.gif);
 }
 .plan-articles .refuse {
-	background-image: url(img_pack/puce-rouge-breve.gif);
+	background-image: url(img_pack/puce-rouge.gif);
 }
 .plan-articles .poubelle {
-	background-image: url(img_pack/puce-poubelle-breve.gif);
+	background-image: url(img_pack/puce-poubelle.gif);
 }
 
 a.foncee, a.foncee:hover, a.claire, a.claire:hover, span.creer, span.lang_base {
@@ -659,23 +851,116 @@ span.creer {
 	margin-top: 4px;
 }
 
+div.liste {
+	border: 1px solid #444444;
+	margin-top: 3px; 
+	margin-bottom: 3px;
+}
+
+a.liste-mot {
+	background: url(img_pack/petite-cle.gif) <?php echo $left; ?> center no-repeat; 
+	padding-<?php echo $left; ?>: 30px;
+}
+
+.tr_liste {
+	background-color: #eeeeee;
+}
+.tr_liste_over {
+	background-color: white;
+}
+
+.tr_liste td, .tr_liste_over td {
+	border-bottom: 1px solid #cccccc;
+}
+
+.tr_liste td div.liste_clip {
+	height: 12px;
+	overflow: hidden;
+}
+
+
+div.brouteur_rubrique {
+	display: block;
+	padding: 3px;
+	padding-<?php echo $right; ?>: 10px;
+	border-top: 0px solid <?php echo $couleur_foncee; ?>;
+	border-bottom: 1px solid <?php echo $couleur_foncee; ?>;
+	border-left: 1px solid <?php echo $couleur_foncee; ?>;
+	border-right: 1px solid <?php echo $couleur_foncee; ?>;
+	background: url(img_pack/triangle-droite<?php echo $_rtl; ?>.gif) <?php echo $right; ?> center no-repeat;
+	background-color: white;
+}
+
+div.brouteur_rubrique_on {
+	display: block;
+	padding: 3px;
+	padding-<?php echo $right; ?>: 10px;
+	border-top: 0px solid <?php echo $couleur_foncee; ?>;
+	border-bottom: 1px solid <?php echo $couleur_foncee; ?>;
+	border-left: 1px solid <?php echo $couleur_foncee; ?>;
+	border-right: 1px solid <?php echo $couleur_foncee; ?>;
+	background: url(img_pack/triangle-droite<?php echo $_rtl; ?>.gif) <?php echo $right; ?> center no-repeat;
+	background-color: #e0e0e0;
+}
+
+xdiv.brouteur_rubrique:hover {
+	background-color: #e0e0e0;
+}
+
+div.brouteur_rubrique div, div.brouteur_rubrique_on div  {
+	padding-top: 5px; 
+	padding-bottom: 5px; 
+	padding-<?php echo $left; ?>: 28px; 
+	background-repeat: no-repeat;
+	background-position: center <?php echo $left; ?>;
+	font-weight: bold;
+	font-family: Arial,Sans,sans-serif;
+	font-size: 12px;
+}
+
+div.brouteur_rubrique div a {
+	color: <?php echo $couleur_foncee; ?>;
+}
+
+div.brouteur_rubrique_on div a {
+	color: black;
+}
+
+.iframe-bouteur {
+	background-color: #eeeeee; 
+	border: 0px;
+	z-index: 1;
+}
 
 
 /*
  * Styles generes par les raccourcis de mis en page
  */
 
+p.spip {
+	line-height: 140%;
+}
+
 a.spip_in  {background-color:#eeeeee;}
 a.spip_note {background-color:#eeeeee;}
 a.spip_out {}
 a.spip_url {}
 a.spip_glossaire:hover {text-decoration: underline overline;}
 
-.spip_recherche {padding: 2px; width : 100px; font-size: 10px;}
+.spip_recherche {
+	padding: 3px; 
+	width : 100%; 
+	font-size: 10px;
+	border: 1px solid white;
+	background-color: <?php echo $couleur_foncee; ?>;
+	color: white;
+}
 .spip_cadre {
 	width : 100%;
 	background-color: #eeeeee;
 	padding: 5px;
+	border: 1px solid #666666;
+	behavior: url("win_width.htc");
 }
 blockquote.spip {
 	margin-<?php echo $left; ?>: 40px;
diff --git a/ecrire/spip_style_invisible.css b/ecrire/spip_style_invisible.css
new file mode 100644
index 0000000000000000000000000000000000000000..832041fb87565b4f421bf3aaeeb286293ddd4196
--- /dev/null
+++ b/ecrire/spip_style_invisible.css
@@ -0,0 +1,9 @@
+.invisible_au_chargement {
+	visibility: hidden;
+}
+.visible_au_chargement {
+	visibility: hidden;
+}
+.display_au_chargement {
+	display: none;
+}
\ No newline at end of file
diff --git a/ecrire/spip_style_visible.css b/ecrire/spip_style_visible.css
new file mode 100644
index 0000000000000000000000000000000000000000..7fccd481168232ab29ee535fb23225857b8e4ec5
--- /dev/null
+++ b/ecrire/spip_style_visible.css
@@ -0,0 +1,9 @@
+.invisible_au_chargement {
+	visibility: hidden;
+}
+.visible_au_chargement {
+	visibility: visible;
+}
+.display_au_chargement {
+	display: block;
+}
\ No newline at end of file
diff --git a/ecrire/statistiques.php3 b/ecrire/statistiques.php3
index cde9346c07f007dded5ec38bc761547e0d42593b..6ef15ff65feee013858c4a200d42a12ec30784f5 100644
--- a/ecrire/statistiques.php3
+++ b/ecrire/statistiques.php3
@@ -6,27 +6,25 @@ include ("inc.php3");
 debut_page(_T('titre_page_statistiques'), "suivi", "repartition");
 
 echo "<br><br>";
-gros_titre(_T('titre_statistiques'));
+gros_titre(_T('icone_repartition_visites'));
 if (lire_meta('multi_articles') == 'oui' OR lire_meta('multi_rubriques') == 'oui')
 	barre_onglets("repartition", "rubriques");
 
 if ($GLOBALS["critere"] == "debut") {
 	$critere = "visites";
-	gros_titre(_T('onglet_repartition_debut'));	
+//	gros_titre(_T('onglet_repartition_debut'));	
 }
 else {
 	$critere = "popularite";
-	gros_titre(_T('onglet_repartition_actuelle'));	
+//	gros_titre(_T('onglet_repartition_actuelle'));	
 }
 
+if ($critere == "popularite") barre_onglets("stat_depuis", "popularite");
+else barre_onglets("stat_depuis", "debut");
 
 
-debut_gauche();
-
-if ($critere == "popularite") icone_horizontale(_T('icone_repartition_debut'), "statistiques.php3?critere=debut", "rubrique-24.gif","");
-else icone_horizontale(_T('icone_repartition_actuelle'), "statistiques.php3", "rubrique-24.gif","");
-
 
+debut_gauche();
 
 debut_droite();
 
diff --git a/ecrire/statistiques_lang.php3 b/ecrire/statistiques_lang.php3
index a64407b9875ea3a0c40ff797b5af10c52f8a9ffb..a62cce43733da10ce964d42ede4e2957107686f3 100644
--- a/ecrire/statistiques_lang.php3
+++ b/ecrire/statistiques_lang.php3
@@ -11,19 +11,19 @@ barre_onglets("repartition", "langues");
 
 if ($GLOBALS["critere"] == "debut") {
 	$critere = "visites";
-	gros_titre(_T('onglet_repartition_debut'));	
+//	gros_titre(_T('onglet_repartition_debut'));	
 }
 else {
 	$critere = "popularite";
-	gros_titre(_T('onglet_repartition_actuelle'));	
+//	gros_titre(_T('onglet_repartition_actuelle'));	
 }
 
+if ($critere == "popularite") barre_onglets("rep_depuis", "popularite");
+else barre_onglets("rep_depuis", "debut");
 
 
-debut_gauche();
 
-if ($critere == "popularite") icone_horizontale(_T('icone_repartition_debut'), "statistiques_lang.php3?critere=debut", "langues-24.gif","");
-else icone_horizontale(_T('icone_repartition_actuelle'), "statistiques_lang.php3", "langues-24.gif","");
+debut_gauche();
 
 
 
diff --git a/ecrire/statistiques_referers.php3 b/ecrire/statistiques_referers.php3
index 4ede42654b526506d8d7a360c618c6b9173afbe8..37a58ad36aaac58c93d94d176472bbfb7a76e0d4 100644
--- a/ecrire/statistiques_referers.php3
+++ b/ecrire/statistiques_referers.php3
@@ -30,9 +30,9 @@ if ($titre) $pourarticle = " "._T('info_pour')." &laquo; $titre &raquo;";
 debut_page(_T('titre_page_statistiques_referers'), "suivi", "statistiques");
 echo "<br><br><br>";
 
-	//gros_titre(_T('titre_liens_entrants'));
+	gros_titre(_T('titre_liens_entrants'));
 
-barre_onglets("statistiques", "referers");
+//barre_onglets("statistiques", "referers");
 
 debut_gauche();
 debut_boite_info();
diff --git a/ecrire/statistiques_visites.php3 b/ecrire/statistiques_visites.php3
index 0b9ca391165cdce40d091ae6118f84bdf9dac55a..43c9c986944498352bfd1c3ab4836508bbb34a02 100644
--- a/ecrire/statistiques_visites.php3
+++ b/ecrire/statistiques_visites.php3
@@ -45,7 +45,7 @@ else {
 	debut_page(_T('titre_page_statistiques_visites').$pourarticle, "suivi", "statistiques");
 	echo "<br><br>";
 	gros_titre(_T('titre_evolution_visite')."<html>".aide("confstat")."</html>");
-	barre_onglets("statistiques", "evolution");
+//	barre_onglets("statistiques", "evolution");
 	if ($titre) gros_titre($titre);
 
 	debut_gauche();
diff --git a/ecrire/synchro.php3 b/ecrire/synchro.php3
index c9499341a9e1c46e68944fe674478ea1e879f441..18da325910f7d2eba06102276630638343d52bc3 100644
--- a/ecrire/synchro.php3
+++ b/ecrire/synchro.php3
@@ -40,22 +40,14 @@ debut_droite();
 ///
 
 if ($suivi_edito == "oui" AND strlen($adresse_suivi) > 3 AND strlen($adresse_suivi_inscription) > 3) {
-	echo debut_cadre_relief("racine-site-24.gif");
+	debut_cadre_enfonce("racine-site-24.gif", false, "", _T('ical_titre_mailing'));
 	$lien = propre("[->$adresse_suivi_inscription]");
 
-	echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-	echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
-	echo _T('ical_titre_mailing')."</FONT></B></TD></TR>";
 
-	echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
 	echo _T('info_config_suivi_explication');
-	echo "<p align='center'>$lien</p>\n";
-	echo "</TD></TR>";
-	echo "</TABLE>";
+	echo "<p align='center'><b>$lien</b></p>\n";
 
-	fin_cadre_relief();
-
-	echo "<p>&nbsp;<p>";
+	fin_cadre_enfonce();
 }
 
 
@@ -63,13 +55,8 @@ if ($suivi_edito == "oui" AND strlen($adresse_suivi) > 3 AND strlen($adresse_sui
 /// Suivi par agenda iCal (taches + rendez-vous)
 ///
 
-echo debut_cadre_relief("agenda-24.gif");
-
-echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
-echo _T('icone_calendrier')."</FONT></B></TD></TR>";
+debut_cadre_relief("agenda-24.gif", false, "", _T('icone_calendrier'));
 
-echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
 echo _T('calendrier_synchro');
 
 echo '<p>'._T('ical_info_calendrier').'</p>';
@@ -79,31 +66,24 @@ function afficher_liens_calendrier($lien, $icone, $texte) {
 	global $adresse_site;
 	echo debut_cadre_enfonce($icone);
 	echo $texte;
-	echo "<div>&nbsp;</div>";
-	echo "<div style='float: left; width: 200px;'>";
+	echo "<table style='width: 100%;><tr'><td style='width: 200px;'>";
 		icone_horizontale (_T('ical_methode_http'), "$adresse_site/$lien", "calendrier-24.gif");
-	echo "</div>";
-
-	echo "<div style='float: right; width: 200px;'>";
+	echo "</td>";
+	echo "<td> &nbsp; </td>";
+	echo "<td style='width: 200px;'>";
 		$webcal = ereg_replace("https?://", "webcal://", $adresse_site);
 		icone_horizontale (_T('ical_methode_webcal'), "$webcal/$lien", "calendrier-24.gif");
-	echo "</div>";
-	echo "<div style='clear:both;'></div>\n";
+	echo "</td></tr></table>";
 	echo fin_cadre_enfonce();
 }
 
-afficher_liens_calendrier('ical.php3','site-24.gif', _T('ical_texte_public'));
+afficher_liens_calendrier('ical.php3','', _T('ical_texte_public'));
 
-echo '<br />';
 
 afficher_liens_calendrier("spip_cal.php3?id=$connect_id_auteur&cle=".afficher_low_sec($connect_id_auteur,'ical'),'cadenas-24.gif',  _T('ical_texte_prive'));
 
-echo "</TD></TR>";
-echo "</TABLE>";
 
-echo fin_cadre_relief();
-
-echo "<p>&nbsp;<p>";
+fin_cadre_relief();
 
 
 
@@ -111,18 +91,13 @@ echo "<p>&nbsp;<p>";
 /// Suivi par RSS
 ///
 
-echo debut_cadre_relief("site-24.gif");
-
-echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
-echo _T('ical_titre_rss')."</B></TD></TR>";
+debut_cadre_relief("site-24.gif", false, "", _T('ical_titre_rss'));
 
-echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
 echo _T('ical_texte_rss');
 
 echo "<p>"._T("ical_texte_rss_articles")."</p>";
 
-echo propre('<ul><cadre>'.$adresse_site.'/backend.php3</cadre></ul>');
+echo propre("<ul><cadre>".$adresse_site."/backend.php3</cadre></ul>");
 
 echo "<p>"._T("ical_texte_rss_articles2")."</p>";
 
@@ -152,37 +127,21 @@ echo "<p>"._T("ical_texte_rss_articles2")."</p>";
 		
 	}
 
+fin_cadre_relief();
 
 
 
-
-echo "</TD></TR>";
-echo "</TABLE>";
-
-echo fin_cadre_relief();
-
-echo "<p>&nbsp;<p>";
-
-
 ///
 /// Suivi par Javascript
 ///
 
-echo debut_cadre_relief("doc-24.gif");
-
-echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">";
-echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND='img_pack/rien.gif' class='verdana3' style='color:white;'><B>";
-echo _T('ical_titre_js')."</FONT></B></TD></TR>";
+debut_cadre_relief("doc-24.gif", false, "", _T('ical_titre_js'));
 
-echo "<TR><TD BACKGROUND='img_pack/rien.gif' class='serif'>";
-echo _T('ical_texte_js').'<p>';
+echo _T('ical_texte_js').'<p />';
 
 echo propre('<cadre><script type="text/javascript" src="'.$adresse_site.'/distrib.php3"></script></cadre>');
 
-echo "</TD></TR>";
-echo "</TABLE>";
-
-echo fin_cadre_relief();
+fin_cadre_relief();
 
 
 
diff --git a/ecrire/win_png.htc b/ecrire/win_png.htc
new file mode 100644
index 0000000000000000000000000000000000000000..cfe6d36e1eb4060688e5070911aef5cd90d06fd7
--- /dev/null
+++ b/ecrire/win_png.htc
@@ -0,0 +1,47 @@
+<public:component>
+<public:attach event="onpropertychange" onevent="propertyChanged()" />
+<script>
+
+var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
+var realSrc;
+var blankSrc = "img_pack/rien.gif";
+
+if (supported) fixImage();
+
+function propertyChanged() {
+   if (!supported) return;
+   
+   var pName = event.propertyName;
+   if (pName != "src") return;
+   // if not set to blank
+   if ( ! new RegExp(blankSrc).test(src))
+      fixImage();
+};
+
+function fixImage() {
+   // get src
+   var src = element.src;
+
+   // check for real change
+   if (src == realSrc) {
+      element.src = blankSrc;
+      return;
+   }
+
+   if ( ! new RegExp(blankSrc).test(src)) {
+      // backup old src
+      realSrc = src;
+   }
+   
+   // test for png
+   if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
+      // set blank image
+      element.src = blankSrc;
+      // set filter
+      element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
+                                     src + "',sizingMethod='scale')";
+   }
+}
+
+</script>
+</public:component>
\ No newline at end of file
diff --git a/ecrire/win_width.htc b/ecrire/win_width.htc
new file mode 100644
index 0000000000000000000000000000000000000000..ef52df85e96033647596f4633631acff728ac9e4
--- /dev/null
+++ b/ecrire/win_width.htc
@@ -0,0 +1,17 @@
+<public:component>
+<PUBLIC:PROPERTY NAME="retrait">
+<script language="JScript">
+
+function fixWidth(){
+	if (element.className == "spip_cadre") retrait = 24; 
+	else retrait = 16; 
+
+	style.width = element.offsetWidth - retrait;
+}
+
+var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
+if (supported) fixWidth();
+
+</script>
+</public:component>
+