jQuery.noConflict();
jQuery(document).ready(function() { 
    redimensionar_noticias();//compara eventos con noticias y ajusta el tamaņo
    redimensionar_partners();
    redimensionar_servicios();
    redimensionar_casos();
    redimensionar_partners_home();
    

});

function redimensionar_noticias() {
	var a, b, x, y;
	a = jQuery("#Mod32 div.bottom-content");
	b = jQuery("#Mod31 div.bottom-content");
	if(navigator.userAgent.search("Firefox")>0) x = a.outerHeight()+20;		
	else x = a.outerHeight()+40;		
	y = b.height();
	if(x > y) b.height(x);
	else if(x < y) {
		if(navigator.userAgent.search("Firefox")>0) a.height(y-38);
		else a.height(y-25);
		}
	
	
}

function redimensionar_partners() {
	var a, b, el;
	a = 0;
	jQuery("#center div.partners").each(function(){
		b= jQuery(this).height();
		if (a < b) {
			a = b;
			if(el) el.height(a);
			el = jQuery(this);
		}
		else jQuery(this).height(a);
	});
 }
 
function redimensionar_partners_home() {
	var a, b, el;
	a = 0;
	jQuery("#left-bot3 div.bottom div.bottom-content").each(function(){
		b= jQuery(this).height();
		if (a < b) {
			a = b;
			if(el) el.height(a);
			el = jQuery(this);
		}
		else jQuery(this).height(a);
	});
 }
 
function redimensionar_casos() {
	var a, b, el;
	a = 0;
	jQuery("div.casos div.article-content").each(function(){
		b= jQuery(this).height();
		if (a < b) {
			a = b;
			if(el) el.height(a);
			el = jQuery(this);
		}
		else jQuery(this).height(a);
	});
 }
 
 function redimensionar_servicios() {
	var a, b, x, y;
	a = jQuery("#left-bot2 div.bottom-content");
	b = jQuery("#right-bot2 div.bottom-content");
	x = a.height();		
	y = b.height();
	if(x > y) b.height(x);
	else if(x < y) a.height(y);
 }
 
 function canvia(num){
	jQuery(".show").removeClass().addClass("hide");
	jQuery("#fase"+num).removeClass().addClass("show");
	
 }
