Код:
<script type="text/javascript">
var news1= new Array ("<center><img src='...' ></center>", "<center><font size='1'><p>_________<p>...<p>_________</a></center>")
var news2= new Array ("<center><img src='...' ></center>", "<center><font size='1'><p>_________<p>...<p>_________</font></center>")
var news3= new Array ("<center><img src='...' ></center>", "<center><font size='1'><p>_________<p>...<p>_________</font></center>")
var news4= new Array ("<center></center>", "<center><font size='1'></font><br><br></center>")
var block1="<div class=container style=padding:5px><h2><center>"+news1[0]+"</center></h2>"+news1[1]+"</div><br><br>"
var block2="<div class=container style=padding:5px><h2><center>"+news2[0]+"</center></h2>"+news2[1]+"</div><br><br>"
var block3="<div class=container style=padding:5px><h2><center>"+news3[0]+"</center></h2>"+news3[1]+"</div><br><br>"
var block4="<div class=container style=padding:5px><h2><center>"+news4[0]+"</center></h2>"+news4[1]+"</div><br><br>"
var arr=document.getElementsByTagName("div")
i=0
str=document.URL
while(arr[i] ){
if((str.substring(str.lastIndexOf('/')+1)=="" || str.substring(str.lastIndexOf('/')+1)=="index.php") && arr[i].className=="main"){
name=arr[i].innerHTML
name=name.substring(0)
arr[i].innerHTML="<table border=0><tr><td width=20% valign=top>"+block1+""+block2+""+block3+""+block4+" </td><td width=80%>"+name+"</td></tr></table>"
}
i++
}
</script>