﻿  var category_b = new Array();
  var category_b_maxHeight;
  $(window).ready(function () {
            for(var xd=0;xd<$('div.featuredBlock div.fb1').length;xd++)
			{
			   category_b[xd] = $('div.featuredBlock div.fb1'+':eq('+xd+')').height();
			   
			   //alert($('div.featuredBlock div.fb1'+':eq('+xd+')').height());
			   
			}

			//alert(ctas[0]+', '+ctas[1]+', '+ctas[2]+', '+ctas[3]);
			if(category_b[1] >= category_b[0] && category_b[1] >= category_b[2])
			{
			   category_b_maxHeight = category_b[1];
			}
			else
			{
			    if(category_b[2] >= category_b[0])
			    {
			       category_b_maxHeight = category_b[2];
			    }
			    else
			    {
			        category_b_maxHeight = category_b[0];
			   }
			}

			//alert(category_b_maxHeight);

			$('div.featuredBlock div.fb1:eq(0)').css('height',category_b_maxHeight + 5 +'px');
			$('div.featuredBlock div.fb1:eq(1)').css('height',category_b_maxHeight+'px');
			$('div.featuredBlock div.fb1:eq(2)').css('height',category_b_maxHeight+'px');
			
			if($('#ctl00_ContentPlaceHolder1_contentContainer').length > 0)  
			{
			    var ht1 = $('#ctl00_ContentPlaceHolder1_contentContainer').css('height').substr(0,$('#ctl00_ContentPlaceHolder1_contentContainer').css('height').length-2);
			    //alert(parseInt(ht)+parseInt(cta_maxHeight));
			    if(category_b_maxHeight < 85)
			    {
			       //$('#ctl00_ContentPlaceHolder1_contentContainer').css('height', 850 + 'px');
			    }
			    else
			    {
			        $('#ctl00_ContentPlaceHolder1_contentContainer').css('height', parseInt(ht1)+ parseInt(category_b_maxHeight) - 85 +'px');
			    }
            }
	});
