$(function () {
  var quoteIdx = 1;

  var quotes = [
    "...an instant, well-designed and convenient tool to direct buyers to our brands in a way that respects their extremely precious time.",
    "...a cost-effective resource for designers wanting to grow in<br />distribution.",
    "...a wonderful platform, like walking through a tradeshow online. A great place to see emerging and established brands from around the world in one place.",
    "...being on MadisonBuyer.com has brought great opportunity to HVS. Buyer inquiries come from all over...The presentation is just right."
  ];
  
  var quoteLabels = [
    "Chris Cone, Executive Producer, Portland Fashion Week",
    "Macala Wright Lee, CEO, Fashionably Digital",
    "Shana Dysert, VP, Multeepurpose",
    "Bukola Are, Head Designer HVS"
  ];
  
  var quoteTimer = window.setInterval(function () {
    $('#quote').append('<div class="quoteWrapper"><img src="img/quote.png" class="quoteBlock" /><div class="quoteText">'+ quotes[quoteIdx] +'</div><div class="quoteLabel">'+ quoteLabels[quoteIdx] +'</div></div>');
    $("#quote").children(":first-child").animate({
      marginTop: "-71px"
    }, 1500, "easeInOutExpo", function () {
      $(this).remove();
    });
    quoteIdx++;
    
    if (quoteIdx == quotes.length) {
      quoteIdx = 0;
    }
  }, 7000);
});
