//****************************************************************************
// XLI																		 *
//****************************************************************************


// Columnas con igual altura

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
$(function()
{
	if($.jcarousel) jQuery('#mycarousel').jcarousel();
});
$(window).load(function()
{
	equalHeight($(".altura1"));
	equalHeight($(".altura2"));
});


// Overlay
$(function() {
	try
	{
		$("a.zoom[rel]").overlay();
	}
	catch (E)
	{
	}
});



$(function() { setTimeout(function() { $(".sari").show(); }, 100); });


function catalogoImgPqAGd(anch)
{
	var imgUrl = anch.getAttribute("rel");
	var aGd = document.getElementById("imgGd");
	aGd.setAttribute("href", imgUrl);
	aGd.getElementsByTagName("img")[0].src = imgUrl+"?w=500&h=379";
	return false;
}

function mostrarDescargas(toOn)
{
	var D = $(document.getElementById("ventanaDescargas"));
	if(!toOn) D.fadeOut();
	else D.css({
			left: (document.body.scrollWidth - D.width()) / 2,
			top: document.body.scrollTop - D.height()/1.5 + document.body.clientHeight/2
		})
		.fadeIn()
	;
	return false;
}


function abrirURL(url,target){
	window.open(url, target, 'width=525,height=350'); 
	return false;
}

