+//
+$newslines = array();
+$newslines = explode('</div>', $contents);
+$toPrint = '';
+// number of news : modify the loop max.
+for($i=0;$i<5;$i++)
+{
+$toPrint .= $newslines[$i];
+$toPrint .= '</div>';
+}
+// adding the news archive stuff and the finishing tags that are somewhere before :
+$toPrint .= $newslines[sizeof($newslines) - 2];
+$toPrint .= '</div>';
+$toPrint .= $newslines[sizeof($newslines) - 1];
+$toPrint .= '</div>';
+echo $toPrint; } ?>