$(document).ready(function() { if ($(".carousel > article").length > 1) { slideTimer = setInterval(function() { if ($(".carousel").offset().top > $(document).scrollTop()) { currentSlide++; if (currentSlide > $(".carousel > article").length) {currentSlide = 1;} fcChangeSlide(currentSlide); } }, slideDelay*1000); } if ($("#fcTiles").length > 0) { fcLoadTiles("fcTiles"); setInterval(function() { var inTriggerArea; feedLength = 0; $("#fcTiles .fcTile").each(function(index) { if (feedLength < $(this).position().top+$(this).height()) {feedLength = $(this).position().top+$(this).height();} }); if (embedded) { if (feedLength-$(window).height() < $(window).height()+$(window).scrollTop()) { inTriggerArea = true; } else {inTriggerArea = false;} } else { if (feedLength-triggerHeight < $(window).height()+$(window).scrollTop()) { inTriggerArea = true; } else {inTriggerArea = false;} } if (inTriggerArea && $("#fcTileLocker").length < 1) {fcLoadTiles("fcTiles");} }, 2000); setInterval(function() { fcTriggerEffects(); }, 1000); $(window).resize(function() { fcRepositionTiles("fcTiles", columnWidth); }); } $(window).resize(function() { fcRepositionOverlay(); fcRepositionBlobs(); }); $(window).scroll(function() { fcRepositionOverlay(); }); $(".followUs").hide(); $(".fcLink").hide(); $(".fcScrollUp").hide(); fcRepositionBlobs(); });