/*
*
* homeTeaser - resize all 'homeTeaser' divs to the same height based on the tallest 
*
*/
 
(function($){
	
	$.fn.homeTeaser = function() {
		 return this.each(function() {
			var homeInfoBlocks = $(this);
           	var homeTeaser = homeInfoBlocks.children('.homeTeaser');
			var maxTeaserHeight = 0;
		
			homeTeaser.each(function() {
    			
    			var thisTeaserHeight = $(this).height();
    			
    			if(thisTeaserHeight >= maxTeaserHeight)
    			{
    				maxTeaserHeight = thisTeaserHeight;
    			}
    			
    		});
    		
    		homeTeaser.each(function(i) {
    			
    			if(i == 2 || i == 5) {
    				$(this).addClass("last");
    			}
    			
    			$(this).css({ height:maxTeaserHeight + "px" });
    			
    		});

		});
	};
	

	
})(jQuery);