posYmenu =3;
bgcolor='#6BAD5A';
bgcolor2='#568F47';
needcenter =false;
if(!needcenter)
	posXmenu = 156;
else
	{	if (document.all)
		posXmenu = (document.body.clientWidth/2)-(600/2);
	else
		posXmenu = (window.innerWidth/2)-(600/2); 
	}
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }')
document.write('A {color:#006600; text-decoration:underline;}')
document.write('A:hover.ejsmenu {color:#FFffff; text-decoration:none;}')
document.write('A:visited.ejsmenu {color:#FFffff; text-decoration:none;}')
document.write('A.ejsmenu {color:#ffffff; text-decoration:none;}')
document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');

/*
LIENS
*/
zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[2] = new Array;
zlien[3] = new Array;
zlien[4] = new Array;
zlien[1][0] = '<A HREF="http://www.ferrerojeda.com/empresa/quienes.html" CLASS=ejsmenu>Quiénes somos</A>';
zlien[1][1] = '<A HREF="http://www.ferrerojeda.com/empresa/hist.html" CLASS=ejsmenu>Historia</A>';
zlien[1][2] = '<A HREF="http://www.ferrerojeda.com/empresa/orga.html" CLASS=ejsmenu>Organigrama</A>';
zlien[1][3] = '<A HREF="http://www.ferrerojeda.com/empresa/relaciones.html" CLASS=ejsmenu>Relaciones</A>';
zlien[1][4] = '<A HREF="http://www.ferrerojeda.com/empresa/valores.html" CLASS=ejsmenu>Valores</A>';
zlien[1][5] = '<A HREF="http://www.ferrerojeda.com/empresa/contactar.html" CLASS=ejsmenu>Contactar</A>';
zlien[2][0] = '<A HREF="http://www.ferrerojeda.com/servicios/empr.html" CLASS=ejsmenu>Seguros Empresas</A>';
zlien[2][1] = '<A HREF="http://www.ferrerojeda.com/servicios/part.html" CLASS=ejsmenu>Seguros Particulares</A>';
zlien[2][2] = '<A HREF="http://www.ferrerojeda.com/servicios/agra.html" CLASS=ejsmenu>Seguros Sector Agrario</A>';
zlien[2][3] = '<A HREF="http://www.ferrerojeda.com/servicios/sinistres.html" CLASS=ejsmenu>Gestión de Siniestros</A>';

var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { skn = document.topdeck }
else if (dom) { skn = document.getElementById("topdeck").style }
else if (iex) { skn = topdeck.style }
skn.top = posYmenu+24;

function pop(msg,pos)
{
skn.visibility = "hidden";
a=true
skn.left = posXmenu+pos;
var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#3D6532 WIDTH=160><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1>";
pass = 0
while (pass < msg.length)
	{
	content += "<TR><TD BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=20><FONT SIZE=1 FACE=\"Verdana\"><B>&nbsp;&nbsp;"+msg[pass]+"</B></FONT></TD></TR>";
	pass++;
	}
content += "</TABLE></TD></TR></TABLE>";
if (nava)
  {
    skn.document.write(content);
	  skn.document.close();
	  skn.visibility = "visible";
  }
    else if (dom)
  {
	  document.getElementById("topdeck").innerHTML = content;
	  skn.visibility = "visible";
  }
    else if (iex)
  {
	  document.all("topdeck").innerHTML = content;
	  skn.visibility = "visible";
  }
}
function kill()
{
	skn.visibility = "hidden";
}
document.onclick = kill;
document.write('<DIV ID=topgauche><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0  WIDTH=300><TR><TD><TABLE CELLPADING=0 CELLSPACING=0 BORDER=0 WIDTH=100% HEIGHT=22 ><TR>')
document.write('<TD WIDTH=100 ALIGN=center  onMouseOver="this.style.background=\'\';pop(zlien[1],5)" onMouseOut="this.style.background=\'\'"><A onClick="return(false)" onMouseOver="pop(zlien[1],100)" href=# CLASS=ejsmenu><FONT SIZE=2 FACE="Arial"><B>Ferrer&Ojeda</B></FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center  onMouseOver="this.style.background=\'\';pop(zlien[2],120)" onMouseOut="this.style.background=\'\'"><A onClick="return(false)" onMouseOver="pop(zlien[2],200)" href=# CLASS=ejsmenu><FONT SIZE=2 FACE="Arial"><B>Servicios</B></FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center  onMouseOver="this.style.background=\'\';pop(zlien[3],300)" onMouseOut="this.style.background=\'\'"><A HREF=http://www.ferrerojeda.com/clientes/index.html  onMouseOver="pop(zlien[3],300)" href=# CLASS=ejsmenu><FONT SIZE=2 FACE="Arial"><B>Clientes</B></FONT></a></TD>')
document.write('</TR></TABLE></TD></TR></TABLE></DIV>')
