function top1(){
document.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" height=\"100%\">");
document.write("<tr>");
document.write("<!-- izquierda -->");
document.write("<td width=\"240\" bgcolor=\"#FFFFFF\"  valign=top>");
document.write("<table>");
document.write("<tr>");
document.write("<td width=\"240\" bgcolor=\"#FFFFFF\">");
document.write("<center><img src=\"imgs/logo.jpg\" width=\"150\" border=0 alt=\"\"></center>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("");
}

function menu(){
document.write("");
document.write("<!-- TABLA DE MENU -->");
document.write("<td>");
document.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"240\">");
document.write("<tr>");
document.write("<td width=\"27\"><img src=\"imgs/3000.gif\" width=\"27\" height=\"25\"></td>");
document.write("<td width=\"190\"><img src=\"imgs/3001.gif\" width=\"190\" height=\"25\"></td>");
document.write("<td width=\"30\"><img src=\"imgs/3002.gif\" width=\"30\" height=\"25\"></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=\"27\" background=\"imgs/3003.gif\"><img src=\"imgs/spacer.gif\" width=\"27\" height=\"1\"></td>");
document.write("<td width=\"190\">");
document.write("<table width=\"100%\" bgcolor=#EFEFEF  onMouseover=\"over_effect(event,\'outset\')\" onMouseout=\"over_effect(event,\'solid\')\" onMousedown=\"over_effect(event,\'inset\')\" onMouseup=\"over_effect(event,\'outset\')\" >");
document.write("<tr><td bgcolor=white>");
document.write("<img src=\"imgs/icono_huella.jpg\" width=\"30\" align=\"absmiddle\">&nbsp;<b>DeliKittessen</b></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\"><a href=\"quienes_somos.html\">&nbsp;Quienes somos</a></td></tr>");
document.write("");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\"><a href=\"staff.html\">&nbsp;Staff</a></td></tr>");
document.write("");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"fotos.html\">Fotos</a></td></tr>");
document.write("</td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"reality_show.html\">WebCam</td></tr>");
document.write("");
document.write("<tr><td bgcolor=white>");
document.write("<img src=\"imgs/icono_huella.jpg\" width=\"30\" align=\"absmiddle\">&nbsp;<b>Servicios</b></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_reiki_mascotas.html\">Reiki y Aromas</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_flores_de_bach.html\">Flores de Bach</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_masajes_gemas.html\">Masajes y Gemas</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_percepcion_animal.html\">Percepción Animal</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_primeros_auxilios.html\">Primeros Auxilios</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_alimentos_naturales.html\">Alimentos Naturales</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"terapias_distancia.html\">A Distancia</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"libros_marcela_alejandra_montes_vazquez.html\">Mis Libros</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"http://www.cristalita.com.ar\" target=_blank>Cristalita</a></td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"http://alitascloset.blogspot.com\" target=_blank>Alita´s Closet</a></td></tr>");
document.write("<tr><td bgcolor=white>");
document.write("<img src=\"imgs/icono_huella.jpg\" width=\"30\" align=\"absmiddle\">&nbsp;<b>Información</b></td></tr>");
document.write("</td></tr>");
document.write("");
document.write("</td></tr>");
document.write("<tr><td class=menulines>");
document.write("<li id=\"foldheader\">Tu mascota</li>");
document.write("<ul id=\"foldinglist\" style=\"display:none\" style=&{head};>");
document.write("<li><a href=\"mas_gatos.html\">Gatos</a></li>");
document.write("<li><a href=\"mas_perros.html\">Perros</a></li>");
document.write("<li><a href=\"mas_aves.html\">Aves</a></li>");
document.write("<li><a href=\"mas_hamsters.html\">Hamsters</a></li>");
document.write("<li><a href=\"mas_tortugas.html\">Tortugas</a></li>");
document.write("<li><a href=\"mas_conejos.html\">Conejos</a></li>");
document.write("</ul>");
document.write("");
document.write("</td></tr>");
document.write("<tr><td class=menulines>");
document.write("<li id=\"foldheader\">Biblioteca</li>");
document.write("<ul id=\"foldinglist\" style=\"display:none\" style=&{head};>");
document.write("<li><a href=\"bib_animal.html\">Día del Animal</a></li>");
document.write("<li><a href=\"bib_derechos.html\">Derechos del animal</a></li>");
document.write("<li><a href=\"bib_ley.html\">Ley Nacional 14.346</a></li>");
document.write("<li><a href=\"bib_terminos.html\">Términos veterinarios</a></li>");
document.write("<li><a href=\"bib_articulos.html\">Artículos de Interés</a></li>");
document.write("</ul>");
document.write("");
document.write("</td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"fotos_arco_iris.html\">Arco Iris</a></td></tr>");
document.write("</td></tr>");
document.write("<tr><td class=menulines>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"imgs/bullet.gif\" width=\"12\" align=\"absmiddle\">&nbsp;<a href=\"bib_enlaces.html\">Links Recomendados</a></td></tr>");
document.write("</td></tr>");
document.write("</table>");
document.write("");
document.write("</td>");
document.write("<td width=\"30\" background=\"imgs/3005.gif\"><img src=\"imgs/spacer.gif\" width=\"30\" height=\"1\"></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=\"27\"><img src=\"imgs/3006.gif\" width=\"27\" height=\"29\"></td>");
document.write("<td width=\"190\"><img src=\"imgs/3007.gif\" width=\"190\" height=\"29\"></td>");
document.write("<td width=\"30\"><img src=\"imgs/3008.gif\" width=\"30\" height=\"29\"></td>");
document.write("</tr>");
document.write("</table>");
document.write("");
document.write("</td>");
document.write("<!-- FIN TABLA DE MENU -->");
document.write("");

}

function top2() {
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("<!-- /izquierda -->");
document.write("");
document.write("<!-- derecha -->");
document.write("<td>");
document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100%\">");
document.write("<tr><td bgcolor=#FFFFFF height=\"20\"></tr></td>");
document.write("");
document.write("<tr><td><center><br>");
document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"98%\" height=\"94%\">");
document.write("<tr>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"29\" valign=\"top\"><img src=\"imgs/esq1.gif\" width=\"29\"></td>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"100%\" height=\"21\">&nbsp;</td>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"29\" valign=\"top\"><img src=\"imgs/esq2.gif\" width=\"29\"></td>");
document.write("</tr>");
document.write("<!-- CONTENIDO ESPECIFICO -->");
document.write("");
document.write("<tr>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"29\" valign=\"top\">&nbsp;</td>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"100%\" valign=\"top\">");
 

}



	var fechaArray = document.lastModified.split("/");
	var mm = fechaArray[0];
	var dd = fechaArray[1];
	var a1 = fechaArray[2].split(' ');
	var aa = a1[0];
	var modif="Ultima modificación: " + dd + "/" + mm + "/" + aa;


function bottom () {
document.write("");
document.write("</td>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"29\" valign=\"top\">&nbsp;</td>");
document.write("</tr>");
document.write("");
document.write("<!-- FIN CONTENIDO ESPECIFICO -->");
document.write("");

document.write("<tr>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"20\" valign=\"bottom\">&nbsp;</td>");
document.write("<td align=center bgcolor=\"#FFFFFF\" valign=\"bottom\" height=\"21\">&nbsp;<br><br><br><br>" + modif + "</td>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"20\" valign=\"bottom\">&nbsp;</td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"20\" valign=\"bottom\"><img src=\"imgs/esq4.gif\" width=\"29\"></td>");
document.write("<td bgcolor=\"#FFFFFF\" height=\"21\">&nbsp;<br></td>");
document.write("<td bgcolor=\"#FFFFFF\" width=\"20\" valign=\"bottom\"><img src=\"imgs/esq3.gif\" width=\"29\"></td>");
document.write("</tr>");
document.write("");
document.write("</table></center>");
document.write("</td></tr></table>");
document.write("<!-- FIN TABLA DE CONTENIDOS -->");
document.write("");
document.write("</td>");
document.write("<!-- /derecha -->");
document.write("</tr>");
document.write("</table>");

}

	//3-state Highlight menu effect script: By Dynamicdrive.com
	//For full source, Terms of service, and 100s DTHML scripts
	//Visit http://www.dynamicdrive.com

	function over_effect(e,state){
		if (document.all)
		source4=event.srcElement
		else if (document.getElementById)
		source4=e.target
		if (source4.className=="menulines")
		source4.style.borderStyle=state
		else{
		while(source4.tagName!="TABLE"){
		source4=document.getElementById? source4.parentNode : source4.parentElement
		if (source4.className=="menulines")
		source4.style.borderStyle=state
		}
		}
	}

/*
	function abrirWin(imag){
		foto1= new Image();
		foto1.src=(imag);
		w = foto1.width+20;
		h = foto1.height+20;
		
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		estilo = 'height=' + h + ',width=' + w + ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable';
		win = window.open(imag,"",estilo);
	}
*/

var cont=0;
var masX=0;
var masY=0;
var ventana;

function abrirWin(cual){

	if(cont==1){ventana.close();ventana=null}

	ventana=window.open('','ventana','resizable=yes,scrollbars=no')
	ventana.document.write('<html><head><title>');
	ventana.document.write('Delikittessen</title></head>');
	ventana.document.write('<body style="overflow:hidden"');
	ventana.document.write('marginwidth="0" marginheight="0"');
	ventana.document.write('topmargin="0" bottommargin="0"');
	ventana.document.write('leftmargin="0" rightmargin="0"'); 
	ventana.document.write('scroll="no" onUnload="opener.cont=0">');
	ventana.document.write('<img onError="self.close()" src="' + cual + '" alt="'+titulo+'" ')
	ventana.document.write('onLoad="opener.redimensionar(this.width, this.height)">')
	if(ventana&&!ventana.closed){ventana.document.close()}
	cont++
}

function redimensionar(ancho,alto){
	ventana.resizeTo((ancho+11+masX),(alto+28+masY))
	ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //centra la ventana. 
	//Eliminar si no se quiere centrar el popup
}


/** 
 *  Based on Folding Menu Tree 
 *  Dynamic Drive (www.dynamicdrive.com)
 */

var head="display:''";
img1=new Image();
img1.src="imgs/bullet.gif";
img2=new Image();
img2.src="imgs/bullet.gif";

function change(){
   if(!document.all)
      return
   if (event.srcElement.id=="foldheader") {
      var srcIndex = event.srcElement.sourceIndex
      var nested = document.all[srcIndex+1]
      if (nested.style.display=="none") {
         nested.style.display=''
         event.srcElement.style.listStyleImage="url(imgs/bullet.gif)"
      }
      else {
         nested.style.display="none"
         event.srcElement.style.listStyleImage="url(imgs/bullet.gif)"
      }
   }
}

document.onclick=change


/***************/

var nav4 = window.Event ? true : false;

function acceptNum(evt){
	// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
	var key = nav4 ? evt.which : evt.keyCode;
	return (key <= 13 || (key >= 48 && key <= 57));
}
