diff --git a/ecrire/inc_layer.php3 b/ecrire/inc_layer.php3
index a2c85cb0b7e7f69f38ac112453c11fe7bde393b2..63706ce14f8c98bdef34c1f42b6d09c38c211255 100644
--- a/ecrire/inc_layer.php3
+++ b/ecrire/inc_layer.php3
@@ -88,7 +88,7 @@ function bouton_block_invisible($nom_block) {
 				$numero_block["$nom_block"] = $compteur_block;
 			}
 
-			$javasc .= "swap_couche(\\'".$numero_block[$nom_block]."\\', \\'$spip_lang_rtl\\',\\'" . _DIR_RESTREINT . "\\');";
+			$javasc .= "swap_couche(\\'".$numero_block[$nom_block]."\\', \\'$spip_lang_rtl\\',\\'" . _DIR_IMG_PACK . "\\');";
 		}
 		$retour = "\n<script type='text/javascript'><!--\n";
 		$retour .= "document.write('<a class=\"triangle_block\" href=\"javascript:$javasc\"><img name=\"triangle".$numero_block["$nom_block"]."\" src=\"". _DIR_IMG_PACK . "deplierhaut$spip_lang_rtl.gif\" alt=\"\" title=\"".addslashes(_T('info_deplier'))."\" width=\"10\" height=\"10\" border=\"0\"></a>');\n";
@@ -101,17 +101,31 @@ function bouton_block_invisible($nom_block) {
 
 
 function bouton_block_visible($nom_block){
+	global $numero_block;
+	global $compteur_block;
 	global $spip_lang_rtl;
-	if (test_layer()){
-		global $numero_block;
-		global $compteur_block;
 
-		if (!$numero_block["$nom_block"] > 0){
-			$compteur_block++;
-			$numero_block["$nom_block"] = $compteur_block;
+	$num_triangle = $compteur_block + 1;
+
+	if (test_layer()) {
+		$blocks = explode(",", $nom_block);
+
+		for ($index=0; $index < count($blocks); $index ++){
+			$nom_block = $blocks[$index];
+
+			if (!$numero_block["$nom_block"] > 0){
+				$compteur_block++;
+				$numero_block["$nom_block"] = $compteur_block;
+			}
+
+			$javasc .= "swap_couche(\\'".$numero_block[$nom_block]."\\', \\'$spip_lang_rtl\\',\\'" . _DIR_IMG_PACK . "\\');";
 		}
+		$retour = "\n<script type='text/javascript'><!--\n";
+		$retour .= "document.write('<a class=\"triangle_block\" href=\"javascript:$javasc\"><img name=\"triangle".$numero_block["$nom_block"]."\" src=\"". _DIR_IMG_PACK . "deplierbas.gif\" alt=\"\" title=\"".addslashes(_T('info_deplier'))."\" width=\"10\" height=\"10\" border=\"0\"></a>');\n";
+		$retour .= "//-->\n";
+		$retour .= "</script>\n";
 
-		return "<a class=\"triangle_block\" href=\"javascript:swap_couche('".$numero_block["$nom_block"]."', '$spip_lang_rtl')\"><IMG name='triangle".$numero_block["$nom_block"]."' src='"._DIR_IMG_PACK . "deplierbas.gif' alt='' title='".addslashes(_T('info_deplier'))."' width='10' height='10' border='0'></a>";
+		return $retour;
 	}
 }
 
diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index f1404b5f5c4c2b7e5e372d9916f56701969c8871..c49c54f50c5dd04f2944bd86c693f8cab0379605 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -82,7 +82,7 @@ function hr($color, $retour = false) {
 //
 // Cadres
 //
-function debut_cadre($style, $icone = "", $fonction = "", $titre = "") {
+function debut_cadrex($style, $icone = "", $fonction = "", $titre = "") {
 	global $browser_name;
 	global $spip_display, $spip_lang_left;
 	static $accesskey = 97; // a
@@ -133,7 +133,7 @@ function debut_cadre($style, $icone = "", $fonction = "", $titre = "") {
 }
 
 
-function fin_cadre($style="") {
+function fin_cadrex($style="") {
 	global $browser_name;
 	
 	// Fermture du hack MSIE	
@@ -147,6 +147,66 @@ function fin_cadre($style="") {
 }
 
 
+function debut_cadre($style, $icone = "", $fonction = "", $titre = "") {
+	global $browser_name;
+	global $spip_display, $spip_lang_left;
+	static $accesskey = 97; // a
+
+	if ($spip_display != 1 AND $spip_display != 4 AND strlen($icone) > 1) {
+		$style_gauche = " padding-$spip_lang_left: 38px;";
+		$style_cadre = " style='margin-top: 14px;'";
+	}
+	
+	if ($style == "e") {
+		$ret .= "<div class='cadre-e-noir'$style_cadre><div class='cadre-$style'>";
+	}
+	else {
+		$ret .= "<div class='cadre-$style'$style_cadre>";
+	}
+
+	//$ret = "<div class='cadre-$style' style='$style_haut'>";
+	$ret .= "<div style='position: relative;'>";
+
+	if ($spip_display != 1 AND $spip_display != 4 AND strlen($icone) > 1) {
+		$ret .= "<div style='position: absolute; top: -16px; $spip_lang_left: 10px;'>";
+		if ($fonction) {
+			$ret .= "<div " . http_style_background($icone, "no-repeat; padding: 0px; margin: 0px;'");
+			$ret .= http_img_pack($fonction, "alt=''");
+			$ret .= "</div>";
+		}
+		else $ret .=  http_img_pack("$icone", "alt=''");
+		$ret .= "</div>";
+
+		$style_cadre = " style='position: relative; top: 15px; margin-bottom: 14px;'";
+	}
+
+
+	if (strlen($titre) > 0) {
+		if ($spip_display == 4) {
+			$ret .= "<h3 class='cadre-titre'>$titre</h3>";
+		} else {
+			$ret .= "<div class='cadre-titre' style='margin: 0px;$style_gauche'>$titre</div>";
+		}
+	}
+	
+	
+	$ret .= "</div>";
+	
+	$ret .= "<div class='cadre-padding'>";
+
+
+	return $ret;
+}
+
+function fin_cadre($style) {
+
+	$ret = "</div>";
+	$ret .= "</div>";
+	if ($style == "e") $ret .= "</div>";
+	if ($style != "forum" AND $style != "thread-forum") $ret .= "<div style='height: 5px;'></div>";
+
+	return $ret;
+}
 
 
 function debut_cadre_relief($icone='', $return = false, $fonction='', $titre = ''){
diff --git a/ecrire/naviguer.php3 b/ecrire/naviguer.php3
index 1ecaa76c7c54b654f8fc8a15608756b253561808..724a3a7419abc14c38d570f69492108387e1ff12 100644
--- a/ecrire/naviguer.php3
+++ b/ecrire/naviguer.php3
@@ -54,9 +54,9 @@ function enfant($collection){
 				$fid = $logo[2];
 				$hash = calculer_action_auteur ("reduire $w $h");
 
-//				$les_enfants.= "<img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' align='right' />";
-				$les_enfants.= "<div style='position: absolute; $spip_lang_right: 0px; top: 0px; width: ".$w."px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' /></div>";
-				$les_enfants.= "<img src='" . _DIR_IMG_PACK . "rien.gif' width='$w' height='$h' align='$spip_lang_right' />";
+				$les_enfants.= "<img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' align='right' style='margin-right: -6px; margin-top: -6px;' />";
+//				$les_enfants.= "<div style='position: absolute; $spip_lang_right: 0px; top: 0px; width: ".$w."px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' /></div>";
+//				$les_enfants.= "<img src='" . _DIR_IMG_PACK . "rien.gif' width='$w' height='$h' align='$spip_lang_right' />";
 				
 			}
 		}