function equalHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}
$(document).ready(function() {
    equalHeight($(".columnas"));
});

//BLURMOTION
$(document).ready(function(){
if ($('.animate_blurmotion').length) {	
	var obj = $(".animate_blurmotion");
	var animeframe = 0;
	var myOpacity;
	
	function animation(){
		setTimeout(function(){
			if(animeframe == 0) {
				myOpacity = 0.6;
				animeframe = 1;
			}
			else if(animeframe  == 1) {
		 		myOpacity = 1;
				animeframe  = 0;
			}
			obj.animate({ opacity:myOpacity}, 700);
			animation();
			}, 700);
		}
	{animation();}  
}
});
//CARRUCEL
//if ($("#mycarousel").length) {

//Slide Carrusel - Portada
function mycarousel_initCallback(carousel){
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
$(document).ready(function(){
if ($('#mycarousel').length) {						   
    $('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'both',
		scroll: 1,
		size: 5,
        initCallback: mycarousel_initCallback
    });
}
});


//}
