//<![CDATA[/** * Realiza un efecto al pasar el ratón sobre las imágenes marcadas con la clase * "rollover". */function rollover (){	var ruta;	var directorio;	var imagen;	$(".rollover").hover(				function(e)		{			ruta = $(this).attr("src");			directorio = ruta.substr(0, ruta.lastIndexOf("/"));			imagen = "_" + ruta.substr(ruta.lastIndexOf("/") + 1);			$(this).attr("src", directorio + "/" + imagen);		},		function(e)		{			ruta = $(this).attr("src");			directorio = ruta.substr(0, ruta.lastIndexOf("/"));			imagen = ruta.substr(ruta.lastIndexOf("/") + 1).replace("_", "");			$(this).attr("src", directorio + "/" + imagen);		}	);}/** * Activa los pop-ups de los enlaces con rel="external", y centra el pop-up en la pantalla.  * Hace uso de la biblioteca jQuery.  * @param {int} ancho * @param {int} alto */function activarPopups(ancho, alto){	if (ancho > screen.width) { ancho = screen.width;}	if (alto > screen.height) { alto = screen.height;}	var x = (screen.width - ancho) / 2;	var y = ((screen.height - alto) / 2) - 30;	$("[@rel=external]").click(function(e) // Activamos el popup al hacer clic.  	{		window.open(this.href, "Fotografía", "width=" + ancho + ",height=" + alto + ",left=" + x + ",top=" + y + ",resizable=yes,scrollbars=yes,menubar=1");		return false;	});}/** * Activa los pop-ups de los enlaces con class="banner", a pantalla completa.  * Hace uso de la biblioteca jQuery.  */function activarBanners(){	$(".banner").click(function(e) // Activamos el popup al hacer clic.  	{		window.open(this.href, "Banner", "width=" + screen.width + ",height=" + screen.height + ",left=0,top=0,resizable=yes,menubar=yes,toolbar=yes,scrollbars=yes");		return false;	});}/** * Muestra en pantalla un botón para imprimir la pantalla */function botonImprimir(){	document.write('<form class="imprimir" method="post" onsubmit="window.print();return false;">');	document.write('<input class="button" type="submit" value="Imprimir" \/>');	document.write('<\/form>');}/** * Esconde el enlace de tipo 'mailto' para evitar spam * @param {string} usuario * @param {string} dominio */function nospam(usuario, dominio){	window.location = 'mailto:' + usuario + '@' + dominio;} /** * Devuelve el componente del navegador necesario para trabajar con AJAX */function cargarAjax(){    var xmlhttp;    try	{        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");    }     catch (e)	{        try {            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");        }         catch (e)		{            xmlhttp = false;        }    }    if (!xmlhttp && typeof XMLHttpRequest != 'undefined')	{        xmlhttp = new XMLHttpRequest();    }    return xmlhttp;}$(document).ready(	function(e)	{		rollover ();		activarPopups(850,850);		activarBanners();		//$("#contenido tbody tr:odd").css("background-color", "#eee");	});//]]>