$(document).ready(function(){
	
	
	//funcion mostrar / ocultar
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 
	//Switch the "Open" and "Close" state per click
	$(".trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});
	//Slide up and down on click
	$(".trigger").click(function(){
		$(this).prev(".toggle_container").slideToggle("slow");
	});
	//funcion mostrar / ocultar
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container2").hide(); 
	//Switch the "Open" and "Close" state per click
	$(".trigger2").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});
	//Slide up and down on click
	$(".trigger2").click(function(){
		$(this).next(".toggle_container2").slideToggle("slow");
		initialize_map_canvas(); 
	});
	//cebra para deportes
	$("div.deportes div#deporte ul:odd").addClass("alt"); 
	
	//igualar columnas
	function equalHeight(group) {  
		tallest = 0;  
		group.each(function() {  
			thisHeight = $(this).height();  
			if(thisHeight > tallest) {  
			tallest = thisHeight;  
			}  
		});  
		group.height(tallest);  
		} 
	$(document).ready(function() {  
		equalHeight($(".igualar"));
		equalHeight($(".igualar_dalgo"));
		equalHeight($(".igualar_ultimos"));
		equalHeight($(".igualar_destacados"));
		equalHeight($(".igualar_titulo_pelicula"));
		equalHeight($(".igualar_directorio"));
		equalHeight($(".igualar_protagonista"));
	}); 
});

