isamap = new Object();
isamap[0] = "_df";
isamap[1] = "_ov";

var muestra=0;
var tempoff;




if (document.images) { // ensure browser can do JavaScript rollovers.
	isimages = new Object();

	isimages.menuacc0_df = new Image();
	isimages.menuacc0_df.src = "../../../../imagenes/boton_novedad.jpg";
	isimages.menuacc0_ov = new Image();
	isimages.menuacc0_ov.src = "../../../../imagenes/boton_novedad_s.jpg";

	isimages.menuacc8_df = new Image();
	isimages.menuacc8_df.src = "../../../../imagenes/boton_volver.jpg";
	isimages.menuacc8_ov = new Image();
	isimages.menuacc8_ov.src = "../../../../imagenes/boton_volver2.jpg";
}




function cambiar_imagen(id, act)
{
	if(document.images) document.images[id].src = eval( "isimages." + id + isamap[act] + ".src");
}


function MM_showHideLayers() { //v2.0
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
  } }
}

function turnOff(){
MM_showHideLayers('document.layers[\'informacion\']','document.all[\'informacion\']','hide','document.layers[\'productos\']','document.all[\'productos\']','hide','document.layers[\'formacion\']','document.all[\'formacion\']','hide','document.layers[\'destacados\']','document.all[\'destacados\']','hide','document.layers[\'servicios\']','document.all[\'servicios\']','hide','document.layers[\'promociones\']','document.all[\'promociones\']','hide');
}

function conteo(){
tempoff = setInterval("turnOff()", 300);
}

function activo(valor){
if (valor==0){
	muestra = 0;
	conteo();
}else{
	muestra = 1;
	clearInterval(tempoff);
}
}

function cshow(esto){
turnOff();
cuno = 'document.layers[\'' + esto + '\']';
cdos = 'document.all[\'' + esto + '\']';
MM_showHideLayers(cuno,cdos,'show');
activo(1);
}

function activa(cual){
	cambia = eval("document.images." + cual);
	cambia.src = "../../../imagenes/pestana_encimanew.gif";
}

function desactiva(cual){
	cambia = eval("document.images." + cual);
	cambia.src = "../../../imagenes/pestana_1bisnew.gif";
}

function ventananueva(nombre,name,propiedades)
{
        v=window.open(nombre,name,propiedades);
}

function abreFoto(ruta)
{
   i1 = new Image;
   i1.src = ruta;
   html = '<html><head><title>Imagen</title></head>';
   html += '<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>';
   html += '<center><img src="'+ruta+'" border=0 name="Foto" ';
   html += 'onLoad="window.resizeTo(document.Foto.width+12,document.Foto.height+31)">';
   html += '</center></body></html>';
   popupImage = window.open('','_blank','scrollbars=0,resizable=1');
   popupImage.document.open();
   popupImage.document.write(html);
   popupImage.document.close();
}

function abreFoto_Fija(ruta)
{
   i1 = new Image;
   i1.src = ruta;
   html = '<html><head><title>Imagen</title></head>';
   html += '<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>';
   html += '<center><img src="'+ruta+'" border=0 name="Foto" ';
   html += 'onLoad="window.resizeTo(800,600)">';
   html += '</center></body></html>';
   popupImage = window.open('','_blank','scrollbars=yes');
   popupImage.document.open();
   popupImage.document.write(html);
   popupImage.document.close();
}

function pie_pagina()
{
  html = '<h2>';
  html += '<a href="mailto:info@alabarda.net" >info@alabarda.net</a>';
  html += '<br>&copy; ACMH Alabarda 2005 - Web Optimizada a 800x600';
  html += '</h2>';
  document.write(html);
}
