/*FUNCTIONS*/
function equalHeight(group) {var tallest=0;group.each(function() {var thisHeight = $(this).height();if(thisHeight > tallest) {tallest=thisHeight;}});group.height(tallest);}

/*START*/
$(function(){
    $(".sf-menu").superfish({});

    equalHeight($(".size"));

    $('#capacitacionImg').hover(function(){ // Change the input image's source when we "roll on"
        $(this).attr({ src : '../images/UIS-capacitacionrollover.png'});
      },
      function(){ // Change the input image's source back to the default on "roll off"
        $(this).attr({ src : '../images/UIS-capacitacion.png'});
      });
    $('#desarrolloImg').hover(function(){ // Change the input image's source back to the default on "roll off"
        $(this).attr({ src : '../images/UIS-inovacion-desarrollorollover.png'});
      },
      function(){ // Change the input image's source back to the default on "roll off"
        $(this).attr({ src : '../images/UIS-inovacion-desarrollo.png'});
      });
    $('#comiteImg').hover(function(){ // Change the input image's source when we "roll on"
        $(this).attr({ src : '../images/UIS-comite-etica-investigacionrollover.png'});
      },
      function(){ // Change the input image's source back to the default on "roll off"
        $(this).attr({ src : '../images/UIS-comite-etica-investigacion.png'});
      });
    $('#sitiosImg').hover(function(){ // Change the input image's source when we "roll on"
        $(this).attr({ src : '../images/UIS-sitios-clinicosrollover.png'});
      },
      function(){ // Change the input image's source back to the default on "roll off"
        $(this).attr({ src : '../images/UIS-sitios-clinicos.png'});
      });
  });

