﻿$(document).ready(function() {

  var numberOfRightSpots = $(".RightSpot").length;
  // Only ajust height if only one contact spot.
  if (numberOfRightSpots == 1) {
    // Get height of transportindex box
    var transportBox = $(".TransportBoxContent");
    var contactSpot = $(".ContactSpotInner");

    var transportBoxHeight = transportBox.height();
    var contactSpotHeight = contactSpot.height();
    
    if (transportBoxHeight < contactSpotHeight) {
      transportBox.height(contactSpotHeight);
    }
    else {
      contactSpot.height(transportBoxHeight);
    }
  }
})
