Prueba reemplazar estas lineas, pues tienes problemas de comillas..
Código PHP:
if(eregi($vor, $var)) {
echo "<div id='Layer10' style='position:absolute; left:209px; top:53px; width:92px; height:31px; z-index:10'> <img name="boton1" src="imagenes/boton1.gif" width="93" height="31" border="0" alt=""></div>" ;
}
else {
echo "<div id='Layer10' style='position:absolute; left:209px; top:53px; width:92px; height:31px; z-index:10'>
<a href='index' onMouseOut='MM_nbGroup('out');' onMouseOver='MM_nbGroup
('over','boton1','imagenes/boton1_a2.gif','imagenes/boton1.gif',2)' onClick='MM_nbGroup
('down','navbar2','boton1','imagenes/boton1_a2.gif',1)'><img name='boton1' src='imagenes/boton1.gif'
width='93' height='31' border='0' alt=''></a></div>";
}
?>