// JavaScript Document
//Listing
$(document).ready(function () {

    $(".listing-01 li:first-child").addClass('first-child');
    $(".listing-03 li:first-child").addClass('first-child');
    $('.listing-04 li:nth-child(3n)').addClass('third-child');


    $(".brand-listing-image .cboxElement, .floorplan_continer a ").hover(
  function () {
      $(this).append($("<span class='test'>zoom</span>"));
  },
  function () {
      $(this).find("span:last").remove();
  }
);
    $('.brands_logos img').parent().parent('div').addClass('with_logo')

    $('.brands_logos').each(function () {
        $(this).width($(this).find('img').width());
    });

    equalHeight($(".dining_content"));

});



function equalHeight(group) {
    var tallest = 0;
    group.each(function () {
        var thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

