$(document).ready(function() {
	
	$(".accordion h3:first").addClass("active");
	$(".accordion p:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

	$('a.imageLightBox').click(function(evento) { 
		evento.preventDefault();
		var temp = new Image;
		temp.onload = function (evento) {
			$("#laimgamp").attr("src", this.src);
			$.blockUI.defaults.css = {};
			$.blockUI({ 
				message: $("#cerrar"), 
				css: { 
					top:  ($(window).height() - $("#cerrar").height()) /2 + 'px', 
					left: ($(window).width() - $("#cerrar").width()) /2 + 'px'
				},
				overlayCSS: { backgroundColor: '#333', opacity: 0.6 }
			}); 
			$("#cerrar").show();
			$('.blockOverlay, .lax').attr('title','Click para cerrar').click($.unblockUI); 

		}
		temp.src=$(this).attr("href");
        //setTimeout($.unblockUI, 2000); 
    }); 

});
