/******************************************************************************/
/* AMPLIAR_IMAGEN *************************************************************/
/******************************************************************************/
function imgGrande(obj, ancho, alto)
{
//alert (window.innerWidth)
	var hayScroll = "no";

	if (!ancho) ancho=200;
	if (!alto) alto=260;
	
//	if (parseInt(navigator.appVersion)>3) 
//	{
	//	if (navigator.appName=="Netscape") 
	//	{
			winW = window.innerWidth;
			winH = window.innerHeight;
	//	}
		if (navigator.appName.indexOf("Microsoft")!=-1) 
		{
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		}
//	}
	
	if (ancho > winW) { ancho = winW; hayScroll = "yes"; }
	if (alto  > winH) { alto  = winH; hayScroll = "yes"; }
	
	ruta=obj.src;
	nombre = ruta.substring( ruta.lastIndexOf("http://www.publicaciones-online.es/")+1, ruta.lastIndexOf(".") );
	orden = 'V' + nombre 
				+ ' = window.open( "' 
				+ ruta 
				+ '", "' 
				+ nombre 
				+ '","width=' 
				+ ancho 
				+ ',height=' 
				+ alto 
				+ ',top=' 
				+ ( screen.availHeight/2-alto/2 )
				+ ',left=' 
				+ ( screen.availWidth/2-ancho/2 ) 
				+ ',toolbar=no,location=no,status=no,menubar=no,scrollbars="' + hayScroll + '",resizable=no");' ;
	eval( orden );
}
function imagePopUp(img) 
{
	html = '<html><head><title>Image</title>' + 
		   '</head><body style="margin: 0px 0; text-align:center;">' + 
		   '<IMG SRC="' + img + '" BORDER=0 NAME=image ' + 
		   'onload="window.resizeTo(document.image.width,document.image.height)" />' + 
		   '</body></html>'; 
	
	popup = window.open ('','image','toolbar=0,location=0,directories=0,menuBar=0, scrollbars=0,resizable=1'); 
	popup.document.open(); 
	popup.document.write(html); 
	popup.document.focus(); 
	popup.document.close();
	
}; 
/******************************************************************************/
/* Fin AMPLIAR_IMAGEN *********************************************************/
/******************************************************************************/
//
//
/******************************************************************************/
/* MENU ***********************************************************************/
/******************************************************************************/
//
function miMenu( target )
{
	target.blur();
	
	var a_mostra = target.id;
	
	var listas = document.getElementsByTagName('ul');
	
	var estilo_navegador = listas[0].parentNode.attributes['class'];
	if (typeof (estilo_navegador) == 'object') 
	{
		estilo_navegador = estilo_navegador.value;
	}
	
	for (var i = 0; i < listas.length; i++)
	{ 
		var clase_padre = listas[i].parentNode.attributes['class'];
		if (typeof (clase_padre) == 'object') 
		{
			clase_padre = clase_padre.value;
		}
		
	    if ( clase_padre == "menu_sec" ) 
	    { 
	    	listas[i].style.display = "none";
	    }
	    
	    
	    clase = listas[i].getAttribute("class"); 
		
		var clase = listas[i].attributes['class'];
		if (typeof (clase) == 'object') 
		{
			clase = clase.value;
		}
	    if ( clase == a_mostra ) 
	    { 
	    	listas[i].style.display = "block";
	    }
	}
}
/******************************************************************************/
/* Fin MENU *******************************************************************/
/******************************************************************************/
//
//
/******************************************************************************/
/* MENU ***********************************************************************/
/******************************************************************************/
//
function mostrar_a_mostrar()
{
	var listas = document.getElementsByClass(a_mostrar);
	for (var i = 0; i < listas.length; i++)
	{ 
	    listas[i].style.display = "block";
	}
}
/******************************************************************************/
/* Fin MENU *******************************************************************/
/******************************************************************************/

