/*********************************************************************************************************
 función invocada en el onmouseOVER de una celda de una fila de opciones en la página de datos
 *********************************************************************************************************/

function overFilaDestacados(obj)
{
	obj.style.backgroundColor='#F0E9E9';
	obj.style.cursor='pointer';
}

function outFilaDestacados(obj)
{
	obj.style.backgroundColor='#FFFFFF';	
}

function overFilaNoticias(obj)
{
	obj.style.backgroundColor='#EFF6E9';
	obj.style.cursor='pointer';
}

function outFilaNoticias(obj)
{
	obj.style.backgroundColor='#FFFFFF';	
}

function overFilaPrensa(obj)
{
	obj.style.backgroundColor='#ECE3EA';
	obj.style.cursor='pointer';
}

function outFilaPrensa(obj)
{
	obj.style.backgroundColor='#FFFFFF';	
}

function overFilaAgenda(obj)
{
	obj.style.backgroundColor='#F4F1EB';
	obj.style.cursor='pointer';
}

function outFilaAgenda(obj)
{
	obj.style.backgroundColor='#FFFFFF';	
}


function overBotonNoticias(obj)
{
	obj.style.backgroundColor='#819B69';
	obj.style.cursor='pointer';
}

function outBotonNoticias(obj)
{
	obj.style.backgroundColor='#EFF6E9';	
}

function overBotonDestacado(obj)
{
	obj.style.backgroundColor='#A52626';
	obj.style.cursor='pointer';
}

function outBotonDestacado(obj)
{
	obj.style.backgroundColor='#EBCECE';	
}

function overBotonPrensa(obj)
{
	obj.style.backgroundColor='#9A699B';
	obj.style.cursor='pointer';
}

function outBotonPrensa(obj)
{
	obj.style.backgroundColor='#ECE3EA';	
}

function overBotonAgenda(obj)
{
	obj.style.backgroundColor='#C2B59F';
	obj.style.cursor='pointer';
}

function outBotonAgenda(obj)
{
	obj.style.backgroundColor='#B47810';	
}

function overEvento(obj)
{
	obj.style.backgroundColor='#B41112';
	obj.style.cursor='pointer';
}

function outEvento(obj)
{
	obj.style.backgroundColor='#B47810';	
}

function abrir( url, ancho, alto )
{
	var posX = (screen.width - ancho) / 2;
	var posY = (screen.height - alto) / 2;
	var popUp = top.popUp;
	varAncho = ancho;
	if( popUp != null && !popUp.closed )
		popUp.close();

	popUp = window.open( url, "foto", "width=" + ancho + ",height=" + alto);	
	popUp.moveTo( posX, posY );
	popUp.focus();
	
	top.popUp = popUp;
}

var titulopordefecto = "Foto"; //Si no se especifica un título al llamar a la función colocará el que se especifique aquí
var ventana;
var cont=0;

function ver_foto(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=yes,scrollbars=no')
ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">');
ventana.document.close();
cont++;
}
function redimensionar(ancho, alto)
{
//ventana.resizeTo(ancho+8,alto+56);
ventana.resizeTo(ancho+8,alto+38);
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana. Eliminar si no se quiere centrar el popup
}