/*--------------------------------------------------------------------
 * JQuery Plugin: "SameHeight"
 * By: Ignacio Lago (http://www.ignaciolago.es)
 *
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 *
 * Description: Compares the heights or widths of the provided elements
      and sets their min-height to the tallest height.
 * Dependencies: jQuery library
 * Usage Example: $(element).sameHeight();
 *
 * Version: 1.0, 22.12.2009
 * Based on "EqualHeights" Version: 2.0, 08.01.2008
--------------------------------------------------------------------*/

$.fn.sameHeight = function(px) {
   var currentTallest = 0;
   $(this).each(function(i){
      if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
   });
   // for ie6, set height since min-height isn't supported
   if ($.browser.msie && $.browser.version == 6.0) { $(this).css({'height': currentTallest}); }
   $(this).css({'min-height': currentTallest});
   return this;
};


function nivelaCajas()
{
   $(".cajanoticia").sameHeight();
   $(".cajaextra").sameHeight();
};
