function navegador() {
var browsName = navigator.appName;
if (browsName == "Netscape") {
	if((parseInt(navigator.appVersion)>4)) alert ("\nPara establecer Gibeller.com como página de inicio:\n\n Arrastre la dirección Gibeller.com del navegador\nhasta el botón de Home\n");
	else alert ("\nPara establecer Gibeller.com como página de inicio:\n\n Abra el menú Edit y seleccione la pestaña Preferences\n En la casilla location introduzca la siguiente dirección\n http://www.gibeller.com y pulse OK");
} else if (browsName == "Opera") alert ("\nPara establecer Gibeller.com como página de inicio:\n\n Abra el menú Navegación y seleccione la pestaña Configurar página principal...\n En la casilla de abajo introduzca la siguiente dirección\n http://www.gibeller.com y pulse OK");
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.gibeller.com');
}

function favoritos() {
var browsName = navigator.appName;
if (browsName == "Netscape") alert ("\nPresione Crtl+D para agregar Gibeller.com a sus Favoritos\n");
window.external.AddFavorite('http://www.gibeller.com','Gibeller S.A.');
}

function validar(opcion)
{
if (opcion==1)
{
	if (!document.profesionales.correo.value)
	{
		alert('Si deseas suscribirte al boletín debes rellenar al menos tu E-Mail.\n');
	}
	else
	{
		document.profesionales.action="mailto:marketing@gibeller.net?subject=Suscripción al boletín Arquitectos-Gibeller";
		document.profesionales.submit();
	}
}
if (opcion==2)
{
	if (!document.profesionales.correo2.value)
	{
		alert('Si deseas cancelar tu suscripción debes rellenar al menos tu E-Mail.\n');
	}
	else
	{
		document.profesionales.action="mailto:marketing@gibeller.net?subject=Cancelar la suscripción al boletín Arquitectos-Gibeller";
		document.profesionales.submit();
	}
}
if (opcion==3)
{
	if (!document.profesionales.correo.value)
	{
		alert('Si deseas suscribirte al boletín debes rellenar al menos tu E-Mail.\n');
	}
	else
	{
		document.profesionales.action="mailto:marketing@gibeller.net?subject=Suscripción al boletín Interioristas-Gibeller";
		document.profesionales.submit();
	}
}
if (opcion==4)
{
	if (!document.profesionales.correo2.value)
	{
		alert('Si deseas cancelar tu suscripción debes rellenar al menos tu E-Mail.\n');
	}
	else
	{
		document.profesionales.action="mailto:marketing@gibeller.net?subject=Cancelar la suscripción al boletín Interioristas-Gibeller";
		document.profesionales.submit();
	}
}
if (opcion==5)
{
		document.profesionales.action="mailto:marketing@gibeller.net?subject=Solicitud espontánea";
		document.profesionales.submit();
}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //Swap de imágenes
  MM_swapImgRestore();
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //Restore de imágenes
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

  var zwin=""; var nav=navigator.appName.indexOf("Netscape"); var vers=parseInt(navigator.appVersion);
  
  function zoom(pname,ident,titulo) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=480;
        var zh=558;
		var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom.jsp?imagen="+pname+"&seccion="+ident+"&descripcion="+titulo,"zi",c);
        zwin.document.close();
      }
    }
  }
  
    function zoom2(pname,ident,titulo) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=576;
        var zh=535;
        var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom2.jsp?imagen="+pname+"&seccion="+ident+"&descripcion="+titulo,"zi",c);
        zwin.document.close();
      }
    }
  }
  
    function zoom3(pname,ident,titulo) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=426;
        var zh=535;
        var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom3.jsp?imagen="+pname+"&seccion="+ident+"&descripcion="+titulo,"zi",c);
        zwin.document.close();
      }
    }
  }
  
    function zoom4(pname,ident,titulo) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=496;
        var zh=541;
        var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom4.jsp?imagen="+pname+"&seccion="+ident+"&descripcion="+titulo,"zi",c);
        zwin.document.close();
      }
    }
  }
  
    function zoom5(pname,ident,titulo) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=502;
        var zh=470;
        var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom5.jsp?imagen="+pname+"&seccion="+ident+"&descripcion="+titulo,"zi",c);
        zwin.document.close();
      }
    }
  }

    function zoom6(ident) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=502;
        var zh=470;
        var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom6.jsp?ident="+ident,"zi",c);
        zwin.document.close();
      }
    }
  }

    function zoom7(ident) {
    if ( (nav != -1 && vers >= 3) || (vers >= 4) ) {
      if (zwin == "" || zwin.closed == 1) {
        var zw=600;
        var zh=550;
        var c='WIDTH='+ zw + ',HEIGHT='+ zh +',left=200,top=100,toolbar=no,scrollbars=no,resizable=no';
        zwin=window.open("zoom7.jsp?ident="+ident,"zi",c);
        zwin.document.close();
      }
    }
  }

function styleAbbr() {
  var oldBodyText, newBodyText, reg
  if (isIE) {
    oldBodyText = document.body.innerHTML;
    reg = /<ABBR([^>]*)>([^<]*)<\/ABBR>/g;
    newBodyText = oldBodyText.replace(reg, '<ABBR $1><SPAN class=\"abbr\" $1>$2<\/SPAN><\/ABBR>');
    document.body.innerHTML = newBodyText;
  }
}
 
window.onload = function(){
  styleAbbr()
};
 
isIE = (document.all) ? true:false;