{"version":3,"sources":["jquery.cycle2.min.js","fastclick.js","foundation.js","foundation.reveal.js","foundation.equalizer.js","news-feed.js","speedbump.js","functions.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACz0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5tBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5hBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"main.js","sourcesContent":["/*!\r\n* jQuery Cycle2; version: 2.1.6 build: 20141007\r\n* http://jquery.malsup.com/cycle2/\r\n* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL\r\n*/\r\n!function(a){\"use strict\";function b(a){return(a||\"\").toLowerCase()}var c=\"2.1.6\";a.fn.cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(!h.data(\"cycle.opts\")){(h.data(\"cycle-log\")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i(\"--c2 init--\"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+\":\",g,\"(\"+typeof g+\")\"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data(\"cycle.opts\",e),h.data(\"cycle.API\",e.API),e.API.trigger(\"cycle-bootstrap\",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.cycle.log(\"requeuing slideshow (dom not ready)\"),a(function(){a(d.s,d.c).cycle(c)}),this)},a.fn.cycle.API={opts:function(){return this._container.data(\"cycle.opts\")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger(\"cycle-pre-initialize\",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger(\"cycle-post-initialize\",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),\"static\"==c.container.css(\"position\")&&c.container.css(\"position\",\"relative\"),a(c.slides[c.currSlide]).css({opacity:1,display:\"block\",visibility:\"visible\"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)})),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger(\"cycle-initialized\",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass(\"cycle-paused\"),c.API.trigger(\"cycle-paused\",[c]).log(\"cycle-paused\"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass(\"cycle-paused\"),0===b.slides.filter(\":animated\").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger(\"cycle-resumed\",[b,b._remainingTimeout]).log(\"cycle-resumed\"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;\"string\"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data(\"cycle.opts\",b),e.API.trigger(\"cycle-slide-added\",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.cycle.transitions[e.manualFx]),d||(d=a.fn.cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.cycle.transitions.fade,e.API.log('Transition \"'+e.fx+'\" not found. Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger(\"cycle-before\",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data(\"cycle.opts\")&&(g.after&&g.after(f,d,e,b),h.API.trigger(\"cycle-after\",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log(\"terminating; loop=0\"),d.timeout=0,e?setTimeout(function(){d.API.trigger(\"cycle-finished\",[d])},e):d.API.trigger(\"cycle-finished\",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log(\"terminating automatic transitions\"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(\":animated\").length&&(a.slides.stop(!1,!0),a.API.trigger(\"cycle-transition-stopped\",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log(\"[\"+(f.slideCount-1)+\"]\",e+\":\",d,\"(\"+typeof d+\")\"),g[e]=d);g=a.extend({},a.fn.cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data(\"cycle.opts\");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css(\"zIndex\",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger(\"cycle-update-view-before\",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(\":not(.\"+c.slideActiveClass+\")\").css(\"visibility\",\"hidden\"),0===c.updateView&&setTimeout(function(){c.API.trigger(\"cycle-update-view\",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger(\"cycle-update-view\",[c,d,e,a]),a&&c.API.trigger(\"cycle-update-view-after\",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return\"string\"==typeof d?/^\\s*[\\>|\\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css(\"zIndex\",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css(\"zIndex\",g--);for(f=0;f=0;f--)a(e.slides[f]).css(\"zIndex\",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css(\"zIndex\",g--)}a(c).css(\"zIndex\",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log(\"[cycle2] \"+Array.prototype.join.call(arguments,\" \"))},a.fn.cycle.version=function(){return\"Cycle2: \"+c},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:\"visible\",display:\"block\"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:\"visible\",display:\"block\"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:\"visible\",display:\"block\"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css(\"overflow\",\"hidden\").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:\"visible\",display:\"block\"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:\".cycle-slideshow[data-cycle-auto-init!=false]\",delay:0,easing:null,fx:\"fade\",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:\"cycle-slide-active\",slideClass:\"cycle-slide\",slideCss:{position:\"absolute\",top:0,left:0},slides:\"> img\",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */\r\nfunction(a){\"use strict\";function b(b,d){var e,f,g,h=d.autoHeight;if(\"container\"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if(\"calc\"===h||\"number\"==a.type(h)&&h>=0){if(g=\"calc\"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr(\"id name rel\").find(\"[id],[name],[rel]\").removeAttr(\"id name rel\"),e.css({position:\"static\",visibility:\"hidden\",display:\"block\"}).prependTo(d.container).addClass(\"cycle-sentinel cycle-slide\").removeClass(\"cycle-slide-active\"),e.find(\"*\").css(\"visibility\",\"hidden\"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off(\"resize orientationchange\",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off(\"cycle-slide-added cycle-slide-removed\",b),f.container.off(\"cycle-destroyed\",e),f.container.off(\"cycle-before\",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on(\"cycle-initialized\",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;(\"string\"===j||\"number\"===j)&&(f.container.on(\"cycle-slide-added cycle-slide-removed\",b),f.container.on(\"cycle-destroyed\",e),\"container\"==i?f.container.on(\"cycle-before\",d):\"string\"===j&&/\\d+\\:\\d+/.test(i)&&(h=i.match(/(\\d+)\\:(\\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),\"number\"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on(\"resize orientationchange\",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery),/*! caption plugin for Cycle2; version: 20130306 */\r\nfunction(a){\"use strict\";a.extend(a.fn.cycle.defaults,{caption:\"> .cycle-caption\",captionTemplate:\"{{slideNum}} / {{slideCount}}\",overlay:\"> .cycle-overlay\",overlayTemplate:\"
{{title}}
{{desc}}
\",captionModule:\"caption\"}),a(document).on(\"cycle-update-view\",function(b,c,d,e){if(\"caption\"===c.captionModule){a.each([\"caption\",\"overlay\"],function(){var a=this,b=d[a+\"Template\"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on(\"cycle-destroyed\",function(b,c){var d;a.each([\"caption\",\"overlay\"],function(){var a=this,b=c[a+\"Template\"];c[a]&&b&&(d=c.API.getComponent(\"caption\"),d.empty())})})}(jQuery),/*! command plugin for Cycle2; version: 20140415 */\r\nfunction(a){\"use strict\";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return\"number\"==a.type(c)?this.cycle(\"goto\",c):\"string\"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data(\"cycle.opts\"),void 0===f?void b.log('slideshow must be initialized before sending commands; \"'+d+'\" ignored'):(d=\"goto\"==d?\"jump\":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log(\"unknown command: \",d))}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger(\"cycle-next\",[a]).log(\"cycle-next\"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger(\"cycle-prev\",[a]).log(\"cycle-prev\"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger(\"cycle-destroyed\",[b]).log(\"cycle-destroyed\"),b.container.removeData(),c(b.container[0],\"parsedAttrs\",!1),b.retainStylesOnDestroy||(b.container.removeAttr(\"style\"),b.slides.removeAttr(\"style\"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,\"parsedAttrs\",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log(\"goto: invalid slide index: \"+e);if(e==d.currSlide)return void d.API.log(\"goto: skipping, already on slide\",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log(\"goto: \",e,\" (zero-index)\"),c=d.currSlide .cycle-pager\",pagerActiveClass:\"cycle-pager-active\",pagerEvent:\"click.cycle\",pagerEventBubble:void 0,pagerTemplate:\"\"}),a(document).on(\"cycle-bootstrap\",function(a,c,d){d.buildPagerLink=b}),a(document).on(\"cycle-slide-added\",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on(\"cycle-slide-removed\",function(b,c,d){if(c.pager){var e=c.API.getComponent(\"pager\");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on(\"cycle-update-view\",function(b,c){var d;c.pager&&(d=c.API.getComponent(\"pager\"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on(\"cycle-destroyed\",function(a,b){var c=b.API.getComponent(\"pager\");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery),/*! prevnext plugin for Cycle2; version: 20140408 */\r\nfunction(a){\"use strict\";a.extend(a.fn.cycle.defaults,{next:\"> .cycle-next\",nextEvent:\"click.cycle\",disabledClass:\"disabled\",prev:\"> .cycle-prev\",prevEvent:\"click.cycle\",swipe:!1}),a(document).on(\"cycle-initialized\",function(a,b){if(b.API.getComponent(\"next\").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent(\"prev\").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}),b.swipe){var c=b.swipeVert?\"swipeUp.cycle\":\"swipeLeft.cycle swipeleft.cycle\",d=b.swipeVert?\"swipeDown.cycle\":\"swipeRight.cycle swiperight.cycle\";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on(\"cycle-update-view\",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent(\"next\"),e=b.API.getComponent(\"prev\"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop(\"disabled\",!0):d.removeClass(c).prop(\"disabled\",!1),b.currSlide===f?e.addClass(c).prop(\"disabled\",!0):e.removeClass(c).prop(\"disabled\",!1)}}),a(document).on(\"cycle-destroyed\",function(a,b){b.API.getComponent(\"prev\").off(b.nextEvent),b.API.getComponent(\"next\").off(b.prevEvent),b.container.off(\"swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle\")})}(jQuery),/*! progressive loader plugin for Cycle2; version: 20130315 */\r\nfunction(a){\"use strict\";a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on(\"cycle-pre-initialize\",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if(\"array\"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if(\"string\"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log(\"error parsing progressive slides\",k)}else d=d.split(new RegExp(e.data(\"cycle-split\")||\"\\n\")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one(\"cycle-slide-added\",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one(\"cycle-slide-added\",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one(\"cycle-slide-added\",function(a,b){g.apply(b.API),b.container.removeClass(\"cycle-loading\")}),a.container.addClass(\"cycle-loading\"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one(\"cycle-slide-added\",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass(\"cycle-loading\")}),a.container.addClass(\"cycle-loading\"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery),/*! tmpl plugin for Cycle2; version: 20121227 */\r\nfunction(a){\"use strict\";a.extend(a.fn.cycle.defaults,{tmplRegex:\"{{((.)?.*?)}}\"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,\"g\"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(\".\");for(d=0;d1)for(h=g,f=0;f= 0;\r\n\r\n\t/**\r\n\t * Android requires exceptions.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;\r\n\r\n\r\n\t/**\r\n\t * iOS requires exceptions.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;\r\n\r\n\r\n\t/**\r\n\t * iOS 4 requires an exception for select elements.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsIOS4 = deviceIsIOS && (/OS 4_\\d(_\\d)?/).test(navigator.userAgent);\r\n\r\n\r\n\t/**\r\n\t * iOS 6.0-7.* requires the target element to be manually derived\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\\d/).test(navigator.userAgent);\r\n\r\n\t/**\r\n\t * BlackBerry requires exceptions.\r\n\t *\r\n\t * @type boolean\r\n\t */\r\n\tvar deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;\r\n\r\n\t/**\r\n\t * Determine whether a given element requires a native click.\r\n\t *\r\n\t * @param {EventTarget|Element} target Target DOM element\r\n\t * @returns {boolean} Returns true if the element needs a native click\r\n\t */\r\n\tFastClick.prototype.needsClick = function(target) {\r\n\t\tswitch (target.nodeName.toLowerCase()) {\r\n\r\n\t\t// Don't send a synthetic click to disabled inputs (issue #62)\r\n\t\tcase 'button':\r\n\t\tcase 'select':\r\n\t\tcase 'textarea':\r\n\t\t\tif (target.disabled) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\tcase 'input':\r\n\r\n\t\t\t// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)\r\n\t\t\tif ((deviceIsIOS && target.type === 'file') || target.disabled) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\tcase 'label':\r\n\t\tcase 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames\r\n\t\tcase 'video':\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn (/\\bneedsclick\\b/).test(target.className);\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Determine whether a given element requires a call to focus to simulate click into element.\r\n\t *\r\n\t * @param {EventTarget|Element} target Target DOM element\r\n\t * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.\r\n\t */\r\n\tFastClick.prototype.needsFocus = function(target) {\r\n\t\tswitch (target.nodeName.toLowerCase()) {\r\n\t\tcase 'textarea':\r\n\t\t\treturn true;\r\n\t\tcase 'select':\r\n\t\t\treturn !deviceIsAndroid;\r\n\t\tcase 'input':\r\n\t\t\tswitch (target.type) {\r\n\t\t\tcase 'button':\r\n\t\t\tcase 'checkbox':\r\n\t\t\tcase 'file':\r\n\t\t\tcase 'image':\r\n\t\t\tcase 'radio':\r\n\t\t\tcase 'submit':\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// No point in attempting to focus disabled inputs\r\n\t\t\treturn !target.disabled && !target.readOnly;\r\n\t\tdefault:\r\n\t\t\treturn (/\\bneedsfocus\\b/).test(target.className);\r\n\t\t}\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Send a click event to the specified element.\r\n\t *\r\n\t * @param {EventTarget|Element} targetElement\r\n\t * @param {Event} event\r\n\t */\r\n\tFastClick.prototype.sendClick = function(targetElement, event) {\r\n\t\tvar clickEvent, touch;\r\n\r\n\t\t// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)\r\n\t\tif (document.activeElement && document.activeElement !== targetElement) {\r\n\t\t\tdocument.activeElement.blur();\r\n\t\t}\r\n\r\n\t\ttouch = event.changedTouches[0];\r\n\r\n\t\t// Synthesise a click event, with an extra attribute so it can be tracked\r\n\t\tclickEvent = document.createEvent('MouseEvents');\r\n\t\tclickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);\r\n\t\tclickEvent.forwardedTouchEvent = true;\r\n\t\ttargetElement.dispatchEvent(clickEvent);\r\n\t};\r\n\r\n\tFastClick.prototype.determineEventType = function(targetElement) {\r\n\r\n\t\t//Issue #159: Android Chrome Select Box does not open with a synthetic click event\r\n\t\tif (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {\r\n\t\t\treturn 'mousedown';\r\n\t\t}\r\n\r\n\t\treturn 'click';\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * @param {EventTarget|Element} targetElement\r\n\t */\r\n\tFastClick.prototype.focus = function(targetElement) {\r\n\t\tvar length;\r\n\r\n\t\t// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.\r\n\t\tif (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {\r\n\t\t\tlength = targetElement.value.length;\r\n\t\t\ttargetElement.setSelectionRange(length, length);\r\n\t\t} else {\r\n\t\t\ttargetElement.focus();\r\n\t\t}\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.\r\n\t *\r\n\t * @param {EventTarget|Element} targetElement\r\n\t */\r\n\tFastClick.prototype.updateScrollParent = function(targetElement) {\r\n\t\tvar scrollParent, parentElement;\r\n\r\n\t\tscrollParent = targetElement.fastClickScrollParent;\r\n\r\n\t\t// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the\r\n\t\t// target element was moved to another parent.\r\n\t\tif (!scrollParent || !scrollParent.contains(targetElement)) {\r\n\t\t\tparentElement = targetElement;\r\n\t\t\tdo {\r\n\t\t\t\tif (parentElement.scrollHeight > parentElement.offsetHeight) {\r\n\t\t\t\t\tscrollParent = parentElement;\r\n\t\t\t\t\ttargetElement.fastClickScrollParent = parentElement;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tparentElement = parentElement.parentElement;\r\n\t\t\t} while (parentElement);\r\n\t\t}\r\n\r\n\t\t// Always update the scroll top tracker if possible.\r\n\t\tif (scrollParent) {\r\n\t\t\tscrollParent.fastClickLastScrollTop = scrollParent.scrollTop;\r\n\t\t}\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * @param {EventTarget} targetElement\r\n\t * @returns {Element|EventTarget}\r\n\t */\r\n\tFastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {\r\n\r\n\t\t// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.\r\n\t\tif (eventTarget.nodeType === Node.TEXT_NODE) {\r\n\t\t\treturn eventTarget.parentNode;\r\n\t\t}\r\n\r\n\t\treturn eventTarget;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On touch start, record the position and scroll offset.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onTouchStart = function(event) {\r\n\t\tvar targetElement, touch, selection;\r\n\r\n\t\t// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).\r\n\t\tif (event.targetTouches.length > 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\ttargetElement = this.getTargetElementFromEventTarget(event.target);\r\n\t\ttouch = event.targetTouches[0];\r\n\r\n\t\tif (deviceIsIOS) {\r\n\r\n\t\t\t// Only trusted events will deselect text on iOS (issue #49)\r\n\t\t\tselection = window.getSelection();\r\n\t\t\tif (selection.rangeCount && !selection.isCollapsed) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tif (!deviceIsIOS4) {\r\n\r\n\t\t\t\t// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):\r\n\t\t\t\t// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched\r\n\t\t\t\t// with the same identifier as the touch event that previously triggered the click that triggered the alert.\r\n\t\t\t\t// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an\r\n\t\t\t\t// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.\r\n\t\t\t\t// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,\r\n\t\t\t\t// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,\r\n\t\t\t\t// random integers, it's safe to to continue if the identifier is 0 here.\r\n\t\t\t\tif (touch.identifier && touch.identifier === this.lastTouchIdentifier) {\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.lastTouchIdentifier = touch.identifier;\r\n\r\n\t\t\t\t// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:\r\n\t\t\t\t// 1) the user does a fling scroll on the scrollable layer\r\n\t\t\t\t// 2) the user stops the fling scroll with another tap\r\n\t\t\t\t// then the event.target of the last 'touchend' event will be the element that was under the user's finger\r\n\t\t\t\t// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check\r\n\t\t\t\t// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).\r\n\t\t\t\tthis.updateScrollParent(targetElement);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.trackingClick = true;\r\n\t\tthis.trackingClickStart = event.timeStamp;\r\n\t\tthis.targetElement = targetElement;\r\n\r\n\t\tthis.touchStartX = touch.pageX;\r\n\t\tthis.touchStartY = touch.pageY;\r\n\r\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\r\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\r\n\t\t\tevent.preventDefault();\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.touchHasMoved = function(event) {\r\n\t\tvar touch = event.changedTouches[0], boundary = this.touchBoundary;\r\n\r\n\t\tif (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Update the last position.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onTouchMove = function(event) {\r\n\t\tif (!this.trackingClick) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// If the touch has moved, cancel the click tracking\r\n\t\tif (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {\r\n\t\t\tthis.trackingClick = false;\r\n\t\t\tthis.targetElement = null;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Attempt to find the labelled control for the given label element.\r\n\t *\r\n\t * @param {EventTarget|HTMLLabelElement} labelElement\r\n\t * @returns {Element|null}\r\n\t */\r\n\tFastClick.prototype.findControl = function(labelElement) {\r\n\r\n\t\t// Fast path for newer browsers supporting the HTML5 control attribute\r\n\t\tif (labelElement.control !== undefined) {\r\n\t\t\treturn labelElement.control;\r\n\t\t}\r\n\r\n\t\t// All browsers under test that support touch events also support the HTML5 htmlFor attribute\r\n\t\tif (labelElement.htmlFor) {\r\n\t\t\treturn document.getElementById(labelElement.htmlFor);\r\n\t\t}\r\n\r\n\t\t// If no for attribute exists, attempt to retrieve the first labellable descendant element\r\n\t\t// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label\r\n\t\treturn labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On touch end, determine whether to send a click event at once.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onTouchEnd = function(event) {\r\n\t\tvar forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;\r\n\r\n\t\tif (!this.trackingClick) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\r\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\r\n\t\t\tthis.cancelNextClick = true;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Reset to prevent wrong click cancel on input (issue #156).\r\n\t\tthis.cancelNextClick = false;\r\n\r\n\t\tthis.lastClickTime = event.timeStamp;\r\n\r\n\t\ttrackingClickStart = this.trackingClickStart;\r\n\t\tthis.trackingClick = false;\r\n\t\tthis.trackingClickStart = 0;\r\n\r\n\t\t// On some iOS devices, the targetElement supplied with the event is invalid if the layer\r\n\t\t// is performing a transition or scroll, and has to be re-detected manually. Note that\r\n\t\t// for this to function correctly, it must be called *after* the event target is checked!\r\n\t\t// See issue #57; also filed as rdar://13048589 .\r\n\t\tif (deviceIsIOSWithBadTarget) {\r\n\t\t\ttouch = event.changedTouches[0];\r\n\r\n\t\t\t// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null\r\n\t\t\ttargetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;\r\n\t\t\ttargetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;\r\n\t\t}\r\n\r\n\t\ttargetTagName = targetElement.tagName.toLowerCase();\r\n\t\tif (targetTagName === 'label') {\r\n\t\t\tforElement = this.findControl(targetElement);\r\n\t\t\tif (forElement) {\r\n\t\t\t\tthis.focus(targetElement);\r\n\t\t\t\tif (deviceIsAndroid) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttargetElement = forElement;\r\n\t\t\t}\r\n\t\t} else if (this.needsFocus(targetElement)) {\r\n\r\n\t\t\t// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.\r\n\t\t\t// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).\r\n\t\t\tif ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {\r\n\t\t\t\tthis.targetElement = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.focus(targetElement);\r\n\t\t\tthis.sendClick(targetElement, event);\r\n\r\n\t\t\t// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.\r\n\t\t\t// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)\r\n\t\t\tif (!deviceIsIOS || targetTagName !== 'select') {\r\n\t\t\t\tthis.targetElement = null;\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (deviceIsIOS && !deviceIsIOS4) {\r\n\r\n\t\t\t// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled\r\n\t\t\t// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).\r\n\t\t\tscrollParent = targetElement.fastClickScrollParent;\r\n\t\t\tif (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Prevent the actual click from going though - unless the target node is marked as requiring\r\n\t\t// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.\r\n\t\tif (!this.needsClick(targetElement)) {\r\n\t\t\tevent.preventDefault();\r\n\t\t\tthis.sendClick(targetElement, event);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On touch cancel, stop tracking the click.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tFastClick.prototype.onTouchCancel = function() {\r\n\t\tthis.trackingClick = false;\r\n\t\tthis.targetElement = null;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Determine mouse events which should be permitted.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onMouse = function(event) {\r\n\r\n\t\t// If a target element was never set (because a touch event was never fired) allow the event\r\n\t\tif (!this.targetElement) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (event.forwardedTouchEvent) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Programmatically generated events targeting a specific element should be permitted\r\n\t\tif (!event.cancelable) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Derive and check the target element to see whether the mouse event needs to be permitted;\r\n\t\t// unless explicitly enabled, prevent non-touch click events from triggering actions,\r\n\t\t// to prevent ghost/doubleclicks.\r\n\t\tif (!this.needsClick(this.targetElement) || this.cancelNextClick) {\r\n\r\n\t\t\t// Prevent any user-added listeners declared on FastClick element from being fired.\r\n\t\t\tif (event.stopImmediatePropagation) {\r\n\t\t\t\tevent.stopImmediatePropagation();\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\r\n\t\t\t\tevent.propagationStopped = true;\r\n\t\t\t}\r\n\r\n\t\t\t// Cancel the event\r\n\t\t\tevent.stopPropagation();\r\n\t\t\tevent.preventDefault();\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// If the mouse event is permitted, return true for the action to go through.\r\n\t\treturn true;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * On actual clicks, determine whether this is a touch-generated click, a click action occurring\r\n\t * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or\r\n\t * an actual click which should be permitted.\r\n\t *\r\n\t * @param {Event} event\r\n\t * @returns {boolean}\r\n\t */\r\n\tFastClick.prototype.onClick = function(event) {\r\n\t\tvar permitted;\r\n\r\n\t\t// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.\r\n\t\tif (this.trackingClick) {\r\n\t\t\tthis.targetElement = null;\r\n\t\t\tthis.trackingClick = false;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.\r\n\t\tif (event.target.type === 'submit' && event.detail === 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tpermitted = this.onMouse(event);\r\n\r\n\t\t// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.\r\n\t\tif (!permitted) {\r\n\t\t\tthis.targetElement = null;\r\n\t\t}\r\n\r\n\t\t// If clicks are permitted, return true for the action to go through.\r\n\t\treturn permitted;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Remove all FastClick's event listeners.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tFastClick.prototype.destroy = function() {\r\n\t\tvar layer = this.layer;\r\n\r\n\t\tif (deviceIsAndroid) {\r\n\t\t\tlayer.removeEventListener('mouseover', this.onMouse, true);\r\n\t\t\tlayer.removeEventListener('mousedown', this.onMouse, true);\r\n\t\t\tlayer.removeEventListener('mouseup', this.onMouse, true);\r\n\t\t}\r\n\r\n\t\tlayer.removeEventListener('click', this.onClick, true);\r\n\t\tlayer.removeEventListener('touchstart', this.onTouchStart, false);\r\n\t\tlayer.removeEventListener('touchmove', this.onTouchMove, false);\r\n\t\tlayer.removeEventListener('touchend', this.onTouchEnd, false);\r\n\t\tlayer.removeEventListener('touchcancel', this.onTouchCancel, false);\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Check whether FastClick is needed.\r\n\t *\r\n\t * @param {Element} layer The layer to listen on\r\n\t */\r\n\tFastClick.notNeeded = function(layer) {\r\n\t\tvar metaViewport;\r\n\t\tvar chromeVersion;\r\n\t\tvar blackberryVersion;\r\n\t\tvar firefoxVersion;\r\n\r\n\t\t// Devices that don't support touch don't need FastClick\r\n\t\tif (typeof window.ontouchstart === 'undefined') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Chrome version - zero for other browsers\r\n\t\tchromeVersion = +(/Chrome\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\r\n\r\n\t\tif (chromeVersion) {\r\n\r\n\t\t\tif (deviceIsAndroid) {\r\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\r\n\r\n\t\t\t\tif (metaViewport) {\r\n\t\t\t\t\t// Chrome on Android with user-scalable=\"no\" doesn't need FastClick (issue #89)\r\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Chrome 32 and above with width=device-width or less don't need FastClick\r\n\t\t\t\t\tif (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t// Chrome desktop doesn't need FastClick (issue #15)\r\n\t\t\t} else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (deviceIsBlackBerry10) {\r\n\t\t\tblackberryVersion = navigator.userAgent.match(/Version\\/([0-9]*)\\.([0-9]*)/);\r\n\r\n\t\t\t// BlackBerry 10.3+ does not require Fastclick library.\r\n\t\t\t// https://github.com/ftlabs/fastclick/issues/251\r\n\t\t\tif (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {\r\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\r\n\r\n\t\t\t\tif (metaViewport) {\r\n\t\t\t\t\t// user-scalable=no eliminates click delay.\r\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// width=device-width (or less than device-width) eliminates click delay.\r\n\t\t\t\t\tif (document.documentElement.scrollWidth <= window.outerWidth) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)\r\n\t\tif (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Firefox version - zero for other browsers\r\n\t\tfirefoxVersion = +(/Firefox\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\r\n\r\n\t\tif (firefoxVersion >= 27) {\r\n\t\t\t// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896\r\n\r\n\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\r\n\t\t\tif (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version\r\n\t\t// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx\r\n\t\tif (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\r\n\t/**\r\n\t * Factory method for creating a FastClick object\r\n\t *\r\n\t * @param {Element} layer The layer to listen on\r\n\t * @param {Object} [options={}] The options to override the defaults\r\n\t */\r\n\tFastClick.attach = function(layer, options) {\r\n\t\treturn new FastClick(layer, options);\r\n\t};\r\n\r\n\r\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\r\n\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine(function() {\r\n\t\t\treturn FastClick;\r\n\t\t});\r\n\t} else if (typeof module !== 'undefined' && module.exports) {\r\n\t\tmodule.exports = FastClick.attach;\r\n\t\tmodule.exports.FastClick = FastClick;\r\n\t} else {\r\n\t\twindow.FastClick = FastClick;\r\n\t}\r\n}());\r\n","/*\r\n * Foundation Responsive Library\r\n * http://foundation.zurb.com\r\n * Copyright 2015, ZURB\r\n * Free to use under the MIT license.\r\n * http://www.opensource.org/licenses/mit-license.php\r\n*/\r\n\r\n(function ($, window, document, undefined) {\r\n 'use strict';\r\n\r\n var header_helpers = function (class_array) {\r\n var head = $('head');\r\n head.prepend($.map(class_array, function (class_name) {\r\n if (head.has('.' + class_name).length === 0) {\r\n return '';\r\n }\r\n }));\r\n };\r\n\r\n header_helpers([\r\n 'foundation-mq-small',\r\n 'foundation-mq-small-only',\r\n 'foundation-mq-medium',\r\n 'foundation-mq-medium-only',\r\n 'foundation-mq-large',\r\n 'foundation-mq-large-only',\r\n 'foundation-mq-xlarge',\r\n 'foundation-mq-xlarge-only',\r\n 'foundation-mq-xxlarge',\r\n 'foundation-data-attribute-namespace']);\r\n\r\n // Enable FastClick if present\r\n\r\n $(function () {\r\n if (typeof FastClick !== 'undefined') {\r\n // Don't attach to body if undefined\r\n if (typeof document.body !== 'undefined') {\r\n FastClick.attach(document.body);\r\n }\r\n }\r\n });\r\n\r\n // private Fast Selector wrapper,\r\n // returns jQuery object. Only use where\r\n // getElementById is not available.\r\n var S = function (selector, context) {\r\n if (typeof selector === 'string') {\r\n if (context) {\r\n var cont;\r\n if (context.jquery) {\r\n cont = context[0];\r\n if (!cont) {\r\n return context;\r\n }\r\n } else {\r\n cont = context;\r\n }\r\n return $(cont.querySelectorAll(selector));\r\n }\r\n\r\n return $(document.querySelectorAll(selector));\r\n }\r\n\r\n return $(selector, context);\r\n };\r\n\r\n // Namespace functions.\r\n\r\n var attr_name = function (init) {\r\n var arr = [];\r\n if (!init) {\r\n arr.push('data');\r\n }\r\n if (this.namespace.length > 0) {\r\n arr.push(this.namespace);\r\n }\r\n arr.push(this.name);\r\n\r\n return arr.join('-');\r\n };\r\n\r\n var add_namespace = function (str) {\r\n var parts = str.split('-'),\r\n i = parts.length,\r\n arr = [];\r\n\r\n while (i--) {\r\n if (i !== 0) {\r\n arr.push(parts[i]);\r\n } else {\r\n if (this.namespace.length > 0) {\r\n arr.push(this.namespace, parts[i]);\r\n } else {\r\n arr.push(parts[i]);\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse().join('-');\r\n };\r\n\r\n // Event binding and data-options updating.\r\n\r\n var bindings = function (method, options) {\r\n var self = this,\r\n bind = function(){\r\n var $this = S(this),\r\n should_bind_events = !S(self).data(self.attr_name(true) + '-init');\r\n $this.data(self.attr_name(true) + '-init', $.extend({}, self.settings, (options || method), self.data_options($this)));\r\n\r\n if (should_bind_events) {\r\n self.events(this);\r\n }\r\n };\r\n\r\n if (S(this.scope).is('[' + this.attr_name() +']')) {\r\n bind.call(this.scope);\r\n } else {\r\n S('[' + this.attr_name() +']', this.scope).each(bind);\r\n }\r\n // # Patch to fix #5043 to move this *after* the if/else clause in order for Backbone and similar frameworks to have improved control over event binding and data-options updating.\r\n if (typeof method === 'string') {\r\n return this[method].call(this, options);\r\n }\r\n\r\n };\r\n\r\n var single_image_loaded = function (image, callback) {\r\n function loaded () {\r\n callback(image[0]);\r\n }\r\n\r\n function bindLoad () {\r\n this.one('load', loaded);\r\n\r\n if (/MSIE (\\d+\\.\\d+);/.test(navigator.userAgent)) {\r\n var src = this.attr( 'src' ),\r\n param = src.match( /\\?/ ) ? '&' : '?';\r\n\r\n param += 'random=' + (new Date()).getTime();\r\n this.attr('src', src + param);\r\n }\r\n }\r\n\r\n if (!image.attr('src')) {\r\n loaded();\r\n return;\r\n }\r\n\r\n if (image[0].complete || image[0].readyState === 4) {\r\n loaded();\r\n } else {\r\n bindLoad.call(image);\r\n }\r\n };\r\n\r\n /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */\r\n\r\n window.matchMedia || (window.matchMedia = function() {\r\n \"use strict\";\r\n\r\n // For browsers that support matchMedium api such as IE 9 and webkit\r\n var styleMedia = (window.styleMedia || window.media);\r\n\r\n // For those that don't support matchMedium\r\n if (!styleMedia) {\r\n var style = document.createElement('style'),\r\n script = document.getElementsByTagName('script')[0],\r\n info = null;\r\n\r\n style.type = 'text/css';\r\n style.id = 'matchmediajs-test';\r\n\r\n script.parentNode.insertBefore(style, script);\r\n\r\n // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers\r\n info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle;\r\n\r\n styleMedia = {\r\n matchMedium: function(media) {\r\n var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }';\r\n\r\n // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = text;\r\n } else {\r\n style.textContent = text;\r\n }\r\n\r\n // Test if media query is true or false\r\n return info.width === '1px';\r\n }\r\n };\r\n }\r\n\r\n return function(media) {\r\n return {\r\n matches: styleMedia.matchMedium(media || 'all'),\r\n media: media || 'all'\r\n };\r\n };\r\n }());\r\n\r\n /*\r\n * jquery.requestAnimationFrame\r\n * https://github.com/gnarf37/jquery-requestAnimationFrame\r\n * Requires jQuery 1.8+\r\n *\r\n * Copyright (c) 2012 Corey Frang\r\n * Licensed under the MIT license.\r\n */\r\n\r\n (function(jQuery) {\r\n\r\n\r\n // requestAnimationFrame polyfill adapted from Erik Möller\r\n // fixes from Paul Irish and Tino Zijdel\r\n // http://paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating\r\n\r\n var animating,\r\n lastTime = 0,\r\n vendors = ['webkit', 'moz'],\r\n requestAnimationFrame = window.requestAnimationFrame,\r\n cancelAnimationFrame = window.cancelAnimationFrame,\r\n jqueryFxAvailable = 'undefined' !== typeof jQuery.fx;\r\n\r\n for (; lastTime < vendors.length && !requestAnimationFrame; lastTime++) {\r\n requestAnimationFrame = window[ vendors[lastTime] + 'RequestAnimationFrame' ];\r\n cancelAnimationFrame = cancelAnimationFrame ||\r\n window[ vendors[lastTime] + 'CancelAnimationFrame' ] ||\r\n window[ vendors[lastTime] + 'CancelRequestAnimationFrame' ];\r\n }\r\n\r\n function raf() {\r\n if (animating) {\r\n requestAnimationFrame(raf);\r\n\r\n if (jqueryFxAvailable) {\r\n jQuery.fx.tick();\r\n }\r\n }\r\n }\r\n\r\n if (requestAnimationFrame) {\r\n // use rAF\r\n window.requestAnimationFrame = requestAnimationFrame;\r\n window.cancelAnimationFrame = cancelAnimationFrame;\r\n\r\n if (jqueryFxAvailable) {\r\n jQuery.fx.timer = function (timer) {\r\n if (timer() && jQuery.timers.push(timer) && !animating) {\r\n animating = true;\r\n raf();\r\n }\r\n };\r\n\r\n jQuery.fx.stop = function () {\r\n animating = false;\r\n };\r\n }\r\n } else {\r\n // polyfill\r\n window.requestAnimationFrame = function (callback) {\r\n var currTime = new Date().getTime(),\r\n timeToCall = Math.max(0, 16 - (currTime - lastTime)),\r\n id = window.setTimeout(function () {\r\n callback(currTime + timeToCall);\r\n }, timeToCall);\r\n lastTime = currTime + timeToCall;\r\n return id;\r\n };\r\n\r\n window.cancelAnimationFrame = function (id) {\r\n clearTimeout(id);\r\n };\r\n\r\n }\r\n\r\n }( $ ));\r\n\r\n function removeQuotes (string) {\r\n if (typeof string === 'string' || string instanceof String) {\r\n string = string.replace(/^['\\\\/\"]+|(;\\s?})+|['\\\\/\"]+$/g, '');\r\n }\r\n\r\n return string;\r\n }\r\n\r\n function MediaQuery(selector) {\r\n this.selector = selector;\r\n this.query = '';\r\n }\r\n\r\n MediaQuery.prototype.toString = function () {\r\n return this.query || (this.query = S(this.selector).css('font-family').replace(/^[\\/\\\\'\"]+|(;\\s?})+|[\\/\\\\'\"]+$/g, ''));\r\n };\r\n\r\n window.Foundation = {\r\n name : 'Foundation',\r\n\r\n version : '{{VERSION}}',\r\n\r\n media_queries : {\r\n 'small' : new MediaQuery('.foundation-mq-small'),\r\n 'small-only' : new MediaQuery('.foundation-mq-small-only'),\r\n 'medium' : new MediaQuery('.foundation-mq-medium'),\r\n 'medium-only' : new MediaQuery('.foundation-mq-medium-only'),\r\n 'large' : new MediaQuery('.foundation-mq-large'),\r\n 'large-only' : new MediaQuery('.foundation-mq-large-only'),\r\n 'xlarge' : new MediaQuery('.foundation-mq-xlarge'),\r\n 'xlarge-only' : new MediaQuery('.foundation-mq-xlarge-only'),\r\n 'xxlarge' : new MediaQuery('.foundation-mq-xxlarge')\r\n },\r\n\r\n stylesheet : $('').appendTo('head')[0].sheet,\r\n\r\n global : {\r\n namespace : undefined\r\n },\r\n\r\n init : function (scope, libraries, method, options, response) {\r\n var args = [scope, method, options, response],\r\n responses = [];\r\n\r\n // check RTL\r\n this.rtl = /rtl/i.test(S('html').attr('dir'));\r\n\r\n // set foundation global scope\r\n this.scope = scope || this.scope;\r\n\r\n this.set_namespace();\r\n\r\n if (libraries && typeof libraries === 'string' && !/reflow/i.test(libraries)) {\r\n if (this.libs.hasOwnProperty(libraries)) {\r\n responses.push(this.init_lib(libraries, args));\r\n }\r\n } else {\r\n for (var lib in this.libs) {\r\n responses.push(this.init_lib(lib, libraries));\r\n }\r\n }\r\n\r\n S(window).load(function () {\r\n S(window)\r\n .trigger('resize.fndtn.clearing')\r\n .trigger('resize.fndtn.dropdown')\r\n .trigger('resize.fndtn.equalizer')\r\n .trigger('resize.fndtn.interchange')\r\n .trigger('resize.fndtn.joyride')\r\n .trigger('resize.fndtn.magellan')\r\n .trigger('resize.fndtn.topbar')\r\n .trigger('resize.fndtn.slider');\r\n });\r\n\r\n return scope;\r\n },\r\n\r\n init_lib : function (lib, args) {\r\n if (this.libs.hasOwnProperty(lib)) {\r\n this.patch(this.libs[lib]);\r\n\r\n if (args && args.hasOwnProperty(lib)) {\r\n if (typeof this.libs[lib].settings !== 'undefined') {\r\n $.extend(true, this.libs[lib].settings, args[lib]);\r\n } else if (typeof this.libs[lib].defaults !== 'undefined') {\r\n $.extend(true, this.libs[lib].defaults, args[lib]);\r\n }\r\n return this.libs[lib].init.apply(this.libs[lib], [this.scope, args[lib]]);\r\n }\r\n\r\n args = args instanceof Array ? args : new Array(args);\r\n return this.libs[lib].init.apply(this.libs[lib], args);\r\n }\r\n\r\n return function () {};\r\n },\r\n\r\n patch : function (lib) {\r\n lib.scope = this.scope;\r\n lib.namespace = this.global.namespace;\r\n lib.rtl = this.rtl;\r\n lib['data_options'] = this.utils.data_options;\r\n lib['attr_name'] = attr_name;\r\n lib['add_namespace'] = add_namespace;\r\n lib['bindings'] = bindings;\r\n lib['S'] = this.utils.S;\r\n },\r\n\r\n inherit : function (scope, methods) {\r\n var methods_arr = methods.split(' '),\r\n i = methods_arr.length;\r\n\r\n while (i--) {\r\n if (this.utils.hasOwnProperty(methods_arr[i])) {\r\n scope[methods_arr[i]] = this.utils[methods_arr[i]];\r\n }\r\n }\r\n },\r\n\r\n set_namespace : function () {\r\n\r\n // Description:\r\n // Don't bother reading the namespace out of the meta tag\r\n // if the namespace has been set globally in javascript\r\n //\r\n // Example:\r\n // Foundation.global.namespace = 'my-namespace';\r\n // or make it an empty string:\r\n // Foundation.global.namespace = '';\r\n //\r\n //\r\n\r\n // If the namespace has not been set (is undefined), try to read it out of the meta element.\r\n // Otherwise use the globally defined namespace, even if it's empty ('')\r\n var namespace = ( this.global.namespace === undefined ) ? $('.foundation-data-attribute-namespace').css('font-family') : this.global.namespace;\r\n\r\n // Finally, if the namsepace is either undefined or false, set it to an empty string.\r\n // Otherwise use the namespace value.\r\n this.global.namespace = ( namespace === undefined || /false/i.test(namespace) ) ? '' : namespace;\r\n },\r\n\r\n libs : {},\r\n\r\n // methods that can be inherited in libraries\r\n utils : {\r\n\r\n // Description:\r\n // Fast Selector wrapper returns jQuery object. Only use where getElementById\r\n // is not available.\r\n //\r\n // Arguments:\r\n // Selector (String): CSS selector describing the element(s) to be\r\n // returned as a jQuery object.\r\n //\r\n // Scope (String): CSS selector describing the area to be searched. Default\r\n // is document.\r\n //\r\n // Returns:\r\n // Element (jQuery Object): jQuery object containing elements matching the\r\n // selector within the scope.\r\n S : S,\r\n\r\n // Description:\r\n // Executes a function a max of once every n milliseconds\r\n //\r\n // Arguments:\r\n // Func (Function): Function to be throttled.\r\n //\r\n // Delay (Integer): Function execution threshold in milliseconds.\r\n //\r\n // Returns:\r\n // Lazy_function (Function): Function with throttling applied.\r\n throttle : function (func, delay) {\r\n var timer = null;\r\n\r\n return function () {\r\n var context = this, args = arguments;\r\n\r\n if (timer == null) {\r\n timer = setTimeout(function () {\r\n func.apply(context, args);\r\n timer = null;\r\n }, delay);\r\n }\r\n };\r\n },\r\n\r\n // Description:\r\n // Executes a function when it stops being invoked for n seconds\r\n // Modified version of _.debounce() http://underscorejs.org\r\n //\r\n // Arguments:\r\n // Func (Function): Function to be debounced.\r\n //\r\n // Delay (Integer): Function execution threshold in milliseconds.\r\n //\r\n // Immediate (Bool): Whether the function should be called at the beginning\r\n // of the delay instead of the end. Default is false.\r\n //\r\n // Returns:\r\n // Lazy_function (Function): Function with debouncing applied.\r\n debounce : function (func, delay, immediate) {\r\n var timeout, result;\r\n return function () {\r\n var context = this, args = arguments;\r\n var later = function () {\r\n timeout = null;\r\n if (!immediate) {\r\n result = func.apply(context, args);\r\n }\r\n };\r\n var callNow = immediate && !timeout;\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, delay);\r\n if (callNow) {\r\n result = func.apply(context, args);\r\n }\r\n return result;\r\n };\r\n },\r\n\r\n // Description:\r\n // Parses data-options attribute\r\n //\r\n // Arguments:\r\n // El (jQuery Object): Element to be parsed.\r\n //\r\n // Returns:\r\n // Options (Javascript Object): Contents of the element's data-options\r\n // attribute.\r\n data_options : function (el, data_attr_name) {\r\n data_attr_name = data_attr_name || 'options';\r\n var opts = {}, ii, p, opts_arr,\r\n data_options = function (el) {\r\n var namespace = Foundation.global.namespace;\r\n\r\n if (namespace.length > 0) {\r\n return el.data(namespace + '-' + data_attr_name);\r\n }\r\n\r\n return el.data(data_attr_name);\r\n };\r\n\r\n var cached_options = data_options(el);\r\n\r\n if (typeof cached_options === 'object') {\r\n return cached_options;\r\n }\r\n\r\n opts_arr = (cached_options || ':').split(';');\r\n ii = opts_arr.length;\r\n\r\n function isNumber (o) {\r\n return !isNaN (o - 0) && o !== null && o !== '' && o !== false && o !== true;\r\n }\r\n\r\n function trim (str) {\r\n if (typeof str === 'string') {\r\n return $.trim(str);\r\n }\r\n return str;\r\n }\r\n\r\n while (ii--) {\r\n p = opts_arr[ii].split(':');\r\n p = [p[0], p.slice(1).join(':')];\r\n\r\n if (/true/i.test(p[1])) {\r\n p[1] = true;\r\n }\r\n if (/false/i.test(p[1])) {\r\n p[1] = false;\r\n }\r\n if (isNumber(p[1])) {\r\n if (p[1].indexOf('.') === -1) {\r\n p[1] = parseInt(p[1], 10);\r\n } else {\r\n p[1] = parseFloat(p[1]);\r\n }\r\n }\r\n\r\n if (p.length === 2 && p[0].length > 0) {\r\n opts[trim(p[0])] = trim(p[1]);\r\n }\r\n }\r\n\r\n return opts;\r\n },\r\n\r\n // Description:\r\n // Adds JS-recognizable media queries\r\n //\r\n // Arguments:\r\n // Media (String): Key string for the media query to be stored as in\r\n // Foundation.media_queries\r\n //\r\n // Class (String): Class name for the generated tag\r\n register_media : function (media, media_class) {\r\n if (Foundation.media_queries[media] === undefined) {\r\n $('head').append('');\r\n Foundation.media_queries[media] = removeQuotes($('.' + media_class).css('font-family'));\r\n }\r\n },\r\n\r\n // Description:\r\n // Add custom CSS within a JS-defined media query\r\n //\r\n // Arguments:\r\n // Rule (String): CSS rule to be appended to the document.\r\n //\r\n // Media (String): Optional media query string for the CSS rule to be\r\n // nested under.\r\n add_custom_rule : function (rule, media) {\r\n if (media === undefined && Foundation.stylesheet) {\r\n Foundation.stylesheet.insertRule(rule, Foundation.stylesheet.cssRules.length);\r\n } else {\r\n var query = Foundation.media_queries[media];\r\n\r\n if (query !== undefined) {\r\n Foundation.stylesheet.insertRule('@media ' +\r\n Foundation.media_queries[media] + '{ ' + rule + ' }', Foundation.stylesheet.cssRules.length);\r\n }\r\n }\r\n },\r\n\r\n // Description:\r\n // Performs a callback function when an image is fully loaded\r\n //\r\n // Arguments:\r\n // Image (jQuery Object): Image(s) to check if loaded.\r\n //\r\n // Callback (Function): Function to execute when image is fully loaded.\r\n image_loaded : function (images, callback) {\r\n var self = this,\r\n unloaded = images.length;\r\n\r\n function pictures_has_height(images) {\r\n var pictures_number = images.length;\r\n\r\n for (var i = pictures_number - 1; i >= 0; i--) {\r\n if(images.attr('height') === undefined) {\r\n return false;\r\n };\r\n };\r\n\r\n return true;\r\n }\r\n\r\n if (unloaded === 0 || pictures_has_height(images)) {\r\n callback(images);\r\n }\r\n\r\n images.each(function () {\r\n single_image_loaded(self.S(this), function () {\r\n unloaded -= 1;\r\n if (unloaded === 0) {\r\n callback(images);\r\n }\r\n });\r\n });\r\n },\r\n\r\n // Description:\r\n // Returns a random, alphanumeric string\r\n //\r\n // Arguments:\r\n // Length (Integer): Length of string to be generated. Defaults to random\r\n // integer.\r\n //\r\n // Returns:\r\n // Rand (String): Pseudo-random, alphanumeric string.\r\n random_str : function () {\r\n if (!this.fidx) {\r\n this.fidx = 0;\r\n }\r\n this.prefix = this.prefix || [(this.name || 'F'), (+new Date).toString(36)].join('-');\r\n\r\n return this.prefix + (this.fidx++).toString(36);\r\n },\r\n\r\n // Description:\r\n // Helper for window.matchMedia\r\n //\r\n // Arguments:\r\n // mq (String): Media query\r\n //\r\n // Returns:\r\n // (Boolean): Whether the media query passes or not\r\n match : function (mq) {\r\n return window.matchMedia(mq).matches;\r\n },\r\n\r\n // Description:\r\n // Helpers for checking Foundation default media queries with JS\r\n //\r\n // Returns:\r\n // (Boolean): Whether the media query passes or not\r\n\r\n is_small_up : function () {\r\n return this.match(Foundation.media_queries.small);\r\n },\r\n\r\n is_medium_up : function () {\r\n return this.match(Foundation.media_queries.medium);\r\n },\r\n\r\n is_large_up : function () {\r\n return this.match(Foundation.media_queries.large);\r\n },\r\n\r\n is_xlarge_up : function () {\r\n return this.match(Foundation.media_queries.xlarge);\r\n },\r\n\r\n is_xxlarge_up : function () {\r\n return this.match(Foundation.media_queries.xxlarge);\r\n },\r\n\r\n is_small_only : function () {\r\n return !this.is_medium_up() && !this.is_large_up() && !this.is_xlarge_up() && !this.is_xxlarge_up();\r\n },\r\n\r\n is_medium_only : function () {\r\n return this.is_medium_up() && !this.is_large_up() && !this.is_xlarge_up() && !this.is_xxlarge_up();\r\n },\r\n\r\n is_large_only : function () {\r\n return this.is_medium_up() && this.is_large_up() && !this.is_xlarge_up() && !this.is_xxlarge_up();\r\n },\r\n\r\n is_xlarge_only : function () {\r\n return this.is_medium_up() && this.is_large_up() && this.is_xlarge_up() && !this.is_xxlarge_up();\r\n },\r\n\r\n is_xxlarge_only : function () {\r\n return this.is_medium_up() && this.is_large_up() && this.is_xlarge_up() && this.is_xxlarge_up();\r\n }\r\n }\r\n };\r\n\r\n $.fn.foundation = function () {\r\n var args = Array.prototype.slice.call(arguments, 0);\r\n\r\n return this.each(function () {\r\n Foundation.init.apply(Foundation, [this].concat(args));\r\n return this;\r\n });\r\n };\r\n\r\n}(jQuery, window, window.document));\r\n",";(function ($, window, document, undefined) {\r\n 'use strict';\r\n\r\n var openModals = [];\r\n\r\n Foundation.libs.reveal = {\r\n name : 'reveal',\r\n\r\n version : '{{VERSION}}',\r\n\r\n locked : false,\r\n\r\n settings : {\r\n animation : 'fadeAndPop',\r\n animation_speed : 250,\r\n close_on_background_click : true,\r\n close_on_esc : true,\r\n dismiss_modal_class : 'close-reveal-modal',\r\n multiple_opened : false,\r\n bg_class : 'reveal-modal-bg',\r\n root_element : 'body',\r\n no_scroll: true,\r\n open : function(){},\r\n opened : function(){},\r\n close : function(){},\r\n closed : function(){},\r\n on_ajax_error: $.noop,\r\n bg : $('.reveal-modal-bg'),\r\n css : {\r\n open : {\r\n 'opacity' : 0,\r\n 'visibility' : 'visible',\r\n 'display' : 'block'\r\n },\r\n close : {\r\n 'opacity' : 1,\r\n 'visibility' : 'hidden',\r\n 'display' : 'none'\r\n }\r\n }\r\n },\r\n\r\n init : function (scope, method, options) {\r\n $.extend(true, this.settings, method, options);\r\n this.bindings(method, options);\r\n },\r\n\r\n events : function (scope) {\r\n var self = this,\r\n S = self.S;\r\n\r\n S(this.scope)\r\n .off('.reveal')\r\n .on('click.fndtn.reveal', '[' + this.add_namespace('data-reveal-id') + ']:not([disabled])', function (e) {\r\n e.preventDefault();\r\n\r\n if (!self.locked) {\r\n var element = S(this),\r\n ajax = element.data(self.data_attr('reveal-ajax')),\r\n replaceContentSel = element.data(self.data_attr('reveal-replace-content'));\r\n\r\n self.locked = true;\r\n\r\n if (typeof ajax === 'undefined') {\r\n self.open.call(self, element);\r\n } else {\r\n var url = ajax === true ? element.attr('href') : ajax;\r\n self.open.call(self, element, {url : url}, { replaceContentSel : replaceContentSel });\r\n }\r\n }\r\n });\r\n\r\n S(document)\r\n .on('click.fndtn.reveal', this.close_targets(), function (e) {\r\n e.preventDefault();\r\n if (!self.locked) {\r\n var settings = S('[' + self.attr_name() + '].open').data(self.attr_name(true) + '-init') || self.settings,\r\n bg_clicked = S(e.target)[0] === S('.' + settings.bg_class)[0];\r\n\r\n if (bg_clicked) {\r\n if (settings.close_on_background_click) {\r\n e.stopPropagation();\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n self.locked = true;\r\n self.close.call(self, bg_clicked ? S('[' + self.attr_name() + '].open:not(.toback)') : S(this).closest('[' + self.attr_name() + ']'));\r\n }\r\n });\r\n\r\n if (S('[' + self.attr_name() + ']', this.scope).length > 0) {\r\n S(this.scope)\r\n // .off('.reveal')\r\n .on('open.fndtn.reveal', this.settings.open)\r\n .on('opened.fndtn.reveal', this.settings.opened)\r\n .on('opened.fndtn.reveal', this.open_video)\r\n .on('close.fndtn.reveal', this.settings.close)\r\n .on('closed.fndtn.reveal', this.settings.closed)\r\n .on('closed.fndtn.reveal', this.close_video);\r\n } else {\r\n S(this.scope)\r\n // .off('.reveal')\r\n .on('open.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.open)\r\n .on('opened.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.opened)\r\n .on('opened.fndtn.reveal', '[' + self.attr_name() + ']', this.open_video)\r\n .on('close.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.close)\r\n .on('closed.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.closed)\r\n .on('closed.fndtn.reveal', '[' + self.attr_name() + ']', this.close_video);\r\n }\r\n\r\n return true;\r\n },\r\n\r\n // PATCH #3: turning on key up capture only when a reveal window is open\r\n key_up_on : function (scope) {\r\n var self = this;\r\n\r\n // PATCH #1: fixing multiple keyup event trigger from single key press\r\n self.S('body').off('keyup.fndtn.reveal').on('keyup.fndtn.reveal', function ( event ) {\r\n var open_modal = self.S('[' + self.attr_name() + '].open'),\r\n settings = open_modal.data(self.attr_name(true) + '-init') || self.settings ;\r\n // PATCH #2: making sure that the close event can be called only while unlocked,\r\n // so that multiple keyup.fndtn.reveal events don't prevent clean closing of the reveal window.\r\n if ( settings && event.which === 27 && settings.close_on_esc && !self.locked) { // 27 is the keycode for the Escape key\r\n self.close.call(self, open_modal);\r\n }\r\n });\r\n\r\n return true;\r\n },\r\n\r\n // PATCH #3: turning on key up capture only when a reveal window is open\r\n key_up_off : function (scope) {\r\n this.S('body').off('keyup.fndtn.reveal');\r\n return true;\r\n },\r\n\r\n open : function (target, ajax_settings) {\r\n var self = this,\r\n modal;\r\n\r\n if (target) {\r\n if (typeof target.selector !== 'undefined') {\r\n // Find the named node; only use the first one found, since the rest of the code assumes there's only one node\r\n modal = self.S('#' + target.data(self.data_attr('reveal-id'))).first();\r\n } else {\r\n modal = self.S(this.scope);\r\n\r\n ajax_settings = target;\r\n }\r\n } else {\r\n modal = self.S(this.scope);\r\n }\r\n\r\n var settings = modal.data(self.attr_name(true) + '-init');\r\n settings = settings || this.settings;\r\n\r\n\r\n if (modal.hasClass('open') && target !== undefined && target.attr('data-reveal-id') == modal.attr('id')) {\r\n return self.close(modal);\r\n }\r\n\r\n if (!modal.hasClass('open')) {\r\n var open_modal = self.S('[' + self.attr_name() + '].open');\r\n\r\n if (typeof modal.data('css-top') === 'undefined') {\r\n modal.data('css-top', parseInt(modal.css('top'), 10))\r\n .data('offset', this.cache_offset(modal));\r\n }\r\n\r\n modal.attr('tabindex','0').attr('aria-hidden','false');\r\n\r\n if(settings.no_scroll){//added 10/9/15, prevents annoying scroll positioning bug with position: absolute; reveals\r\n var $body = $('body');\r\n $body.on('open.fndtn.reveal', function(){\r\n $body.css('overflow', 'hidden')\r\n .off('open.fndtn.reveal');\r\n });\r\n }\r\n\r\n this.key_up_on(modal); // PATCH #3: turning on key up capture only when a reveal window is open\r\n\r\n // Prevent namespace event from triggering twice\r\n modal.on('open.fndtn.reveal', function(e) {\r\n if (e.namespace !== 'fndtn.reveal') return;\r\n });\r\n\r\n modal.on('open.fndtn.reveal').trigger('open.fndtn.reveal');\r\n\r\n\r\n if (open_modal.length < 1) {\r\n this.toggle_bg(modal, true);\r\n }\r\n\r\n if (typeof ajax_settings === 'string') {\r\n ajax_settings = {\r\n url : ajax_settings\r\n };\r\n }\r\n\r\n var openModal = function() {\r\n if(open_modal.length > 0) {\r\n if(settings.multiple_opened) {\r\n self.to_back(open_modal);\r\n } else {\r\n self.hide(open_modal, settings.css.close);\r\n }\r\n }\r\n\r\n // bl: add the open_modal that isn't already in the background to the openModals array\r\n if(settings.multiple_opened) {\r\n openModals.push(modal);\r\n }\r\n\r\n self.show(modal, settings.css.open);\r\n };\r\n\r\n if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {\r\n openModal();\r\n } else {\r\n var old_success = typeof ajax_settings.success !== 'undefined' ? ajax_settings.success : null;\r\n $.extend(ajax_settings, {\r\n success : function (data, textStatus, jqXHR) {\r\n if ( $.isFunction(old_success) ) {\r\n var result = old_success(data, textStatus, jqXHR);\r\n if (typeof result == 'string') {\r\n data = result;\r\n }\r\n }\r\n\r\n if (typeof options !== 'undefined' && typeof options.replaceContentSel !== 'undefined') {\r\n modal.find(options.replaceContentSel).html(data);\r\n } else {\r\n modal.html(data);\r\n }\r\n\r\n self.S(modal).foundation('section', 'reflow');\r\n self.S(modal).children().foundation();\r\n\r\n openModal();\r\n }\r\n });\r\n\r\n // check for if user initalized with error callback\r\n if (settings.on_ajax_error !== $.noop) {\r\n $.extend(ajax_settings, {\r\n error : settings.on_ajax_error\r\n });\r\n }\r\n\r\n $.ajax(ajax_settings);\r\n }\r\n }\r\n self.S(window).trigger('resize');\r\n },\r\n\r\n close : function (modal) {\r\n var modal = modal && modal.length ? modal : this.S(this.scope),\r\n open_modals = this.S('[' + this.attr_name() + '].open'),\r\n settings = modal.data(this.attr_name(true) + '-init') || this.settings,\r\n self = this;\r\n\r\n if (open_modals.length > 0) {\r\n\r\n modal.removeAttr('tabindex','0').attr('aria-hidden','true');\r\n\r\n if(settings.no_scroll){//added 10/9/15, prevents annoying scroll positioning bug with position: absolute; reveals\r\n var $body = $('body');\r\n $body.on('close.fndtn.reveal', function(){\r\n $body.css('overflow', 'auto')\r\n .off('close.fndtn.reveal');\r\n });\r\n }\r\n\r\n this.locked = true;\r\n this.key_up_off(modal); // PATCH #3: turning on key up capture only when a reveal window is open\r\n\r\n modal.trigger('close.fndtn.reveal');\r\n\r\n if ((settings.multiple_opened && open_modals.length === 1) || !settings.multiple_opened || modal.length > 1) {\r\n self.toggle_bg(modal, false);\r\n self.to_front(modal);\r\n }\r\n\r\n if (settings.multiple_opened) {\r\n var isCurrent = modal.is(':not(.toback)');\r\n self.hide(modal, settings.css.close, settings);\r\n if(isCurrent) {\r\n // remove the last modal since it is now closed\r\n openModals.pop();\r\n } else {\r\n // if this isn't the current modal, then find it in the array and remove it\r\n openModals = $.grep(openModals, function(elt) {\r\n var isThis = elt[0]===modal[0];\r\n if(isThis) {\r\n // since it's not currently in the front, put it in the front now that it is hidden\r\n // so that if it's re-opened, it won't be .toback\r\n self.to_front(modal);\r\n }\r\n return !isThis;\r\n });\r\n }\r\n // finally, show the next modal in the stack, if there is one\r\n if(openModals.length>0) {\r\n self.to_front(openModals[openModals.length - 1]);\r\n }\r\n } else {\r\n self.hide(open_modals, settings.css.close, settings);\r\n }\r\n }\r\n },\r\n\r\n close_targets : function () {\r\n var base = '.' + this.settings.dismiss_modal_class;\r\n\r\n if (this.settings.close_on_background_click) {\r\n return base + ', .' + this.settings.bg_class;\r\n }\r\n\r\n return base;\r\n },\r\n\r\n toggle_bg : function (modal, state) {\r\n if (this.S('.' + this.settings.bg_class).length === 0) {\r\n this.settings.bg = $('
', {'class': this.settings.bg_class})\r\n .appendTo('body').hide();\r\n }\r\n\r\n var visible = this.settings.bg.filter(':visible').length > 0;\r\n if ( state != visible ) {\r\n if ( state == undefined ? visible : !state ) {\r\n this.hide(this.settings.bg);\r\n } else {\r\n this.show(this.settings.bg);\r\n }\r\n }\r\n },\r\n\r\n show : function (el, css) {\r\n // is modal\r\n if (css) {\r\n var settings = el.data(this.attr_name(true) + '-init') || this.settings,\r\n root_element = settings.root_element,\r\n context = this;\r\n\r\n if (el.parent(root_element).length === 0) {\r\n var placeholder = el.wrap('
').parent();\r\n\r\n el.on('closed.fndtn.reveal.wrapped', function () {\r\n el.detach().appendTo(placeholder);\r\n el.unwrap().unbind('closed.fndtn.reveal.wrapped');\r\n });\r\n\r\n el.detach().appendTo(root_element);\r\n }\r\n\r\n var animData = getAnimationData(settings.animation);\r\n if (!animData.animate) {\r\n this.locked = false;\r\n }\r\n if (animData.pop) {\r\n css.top = $(window).scrollTop() - el.data('offset') + 'px';\r\n var end_css = {\r\n top: $(window).scrollTop() + el.data('css-top') + 'px',\r\n opacity: 1\r\n };\r\n\r\n return setTimeout(function () {\r\n return el\r\n .css(css)\r\n .animate(end_css, settings.animation_speed, 'linear', function () {\r\n context.locked = false;\r\n el.trigger('opened.fndtn.reveal');\r\n })\r\n .addClass('open');\r\n }, settings.animation_speed / 2);\r\n }\r\n\r\n css.top = $(window).scrollTop() + el.data('css-top') + 'px';\r\n\r\n if (animData.fade) {\r\n var end_css = {opacity: 1};\r\n\r\n return setTimeout(function () {\r\n return el\r\n .css(css)\r\n .animate(end_css, settings.animation_speed, 'linear', function () {\r\n context.locked = false;\r\n el.trigger('opened.fndtn.reveal');\r\n })\r\n .addClass('open');\r\n }, settings.animation_speed / 2);\r\n }\r\n\r\n return el.css(css).show().css({opacity : 1}).addClass('open').trigger('opened.fndtn.reveal');\r\n }\r\n\r\n var settings = this.settings;\r\n\r\n // should we animate the background?\r\n if (getAnimationData(settings.animation).fade) {\r\n return el.fadeIn(settings.animation_speed / 2);\r\n }\r\n\r\n this.locked = false;\r\n\r\n return el.show();\r\n },\r\n\r\n to_back : function(el) {\r\n el.addClass('toback');\r\n },\r\n\r\n to_front : function(el) {\r\n el.removeClass('toback');\r\n },\r\n\r\n hide : function (el, css) {\r\n // is modal\r\n if (css) {\r\n var settings = el.data(this.attr_name(true) + '-init'),\r\n context = this;\r\n settings = settings || this.settings;\r\n\r\n var animData = getAnimationData(settings.animation);\r\n if (!animData.animate) {\r\n this.locked = false;\r\n }\r\n if (animData.pop) {\r\n var end_css = {\r\n top: - $(window).scrollTop() - el.data('offset') + 'px',\r\n opacity: 0\r\n };\r\n\r\n return setTimeout(function () {\r\n return el\r\n .animate(end_css, settings.animation_speed, 'linear', function () {\r\n context.locked = false;\r\n el.css(css).trigger('closed.fndtn.reveal');\r\n })\r\n .removeClass('open');\r\n }, settings.animation_speed / 2);\r\n }\r\n\r\n if (animData.fade) {\r\n var end_css = {opacity : 0};\r\n\r\n return setTimeout(function () {\r\n return el\r\n .animate(end_css, settings.animation_speed, 'linear', function () {\r\n context.locked = false;\r\n el.css(css).trigger('closed.fndtn.reveal');\r\n })\r\n .removeClass('open');\r\n }, settings.animation_speed / 2);\r\n }\r\n\r\n return el.hide().css(css).removeClass('open').trigger('closed.fndtn.reveal');\r\n }\r\n\r\n var settings = this.settings;\r\n\r\n // should we animate the background?\r\n if (getAnimationData(settings.animation).fade) {\r\n return el.fadeOut(settings.animation_speed / 2);\r\n }\r\n\r\n return el.hide();\r\n },\r\n\r\n close_video : function (e) {\r\n var video = $('.flex-video', e.target),\r\n iframe = $('iframe', video);\r\n\r\n if (iframe.length > 0) {\r\n iframe.attr('data-src', iframe[0].src);\r\n iframe.attr('src', iframe.attr('src'));\r\n video.hide();\r\n }\r\n },\r\n\r\n open_video : function (e) {\r\n var video = $('.flex-video', e.target),\r\n iframe = video.find('iframe');\r\n\r\n if (iframe.length > 0) {\r\n var data_src = iframe.attr('data-src');\r\n if (typeof data_src === 'string') {\r\n iframe[0].src = iframe.attr('data-src');\r\n } else {\r\n var src = iframe[0].src;\r\n iframe[0].src = undefined;\r\n iframe[0].src = src;\r\n }\r\n video.show();\r\n }\r\n },\r\n\r\n data_attr : function (str) {\r\n if (this.namespace.length > 0) {\r\n return this.namespace + '-' + str;\r\n }\r\n\r\n return str;\r\n },\r\n\r\n cache_offset : function (modal) {\r\n var offset = modal.show().height() + parseInt(modal.css('top'), 10) + modal.scrollY;\r\n\r\n modal.hide();\r\n\r\n return offset;\r\n },\r\n\r\n off : function () {\r\n $(this.scope).off('.fndtn.reveal');\r\n },\r\n\r\n reflow : function () {}\r\n };\r\n\r\n /*\r\n * getAnimationData('popAndFade') // {animate: true, pop: true, fade: true}\r\n * getAnimationData('fade') // {animate: true, pop: false, fade: true}\r\n * getAnimationData('pop') // {animate: true, pop: true, fade: false}\r\n * getAnimationData('foo') // {animate: false, pop: false, fade: false}\r\n * getAnimationData(null) // {animate: false, pop: false, fade: false}\r\n */\r\n function getAnimationData(str) {\r\n var fade = /fade/i.test(str);\r\n var pop = /pop/i.test(str);\r\n return {\r\n animate : fade || pop,\r\n pop : pop,\r\n fade : fade\r\n };\r\n }\r\n}(jQuery, window, window.document));\r\n",";(function ($, window, document, undefined) {\r\n 'use strict';\r\n\r\n Foundation.libs.equalizer = {\r\n name : 'equalizer',\r\n\r\n version : '{{VERSION}}',\r\n\r\n settings : {\r\n use_tallest : true,\r\n before_height_change : $.noop,\r\n after_height_change : $.noop,\r\n equalize_on_stack : false,\r\n act_on_hidden_el: false\r\n },\r\n\r\n init : function (scope, method, options) {\r\n Foundation.inherit(this, 'image_loaded');\r\n this.bindings(method, options);\r\n this.reflow();\r\n },\r\n\r\n events : function () {\r\n this.S(window).off('.equalizer').on('resize.fndtn.equalizer', function (e) {\r\n this.reflow();\r\n }.bind(this));\r\n },\r\n\r\n equalize : function (equalizer) {\r\n var isStacked = false,\r\n group = equalizer.data('equalizer'),\r\n settings = equalizer.data(this.attr_name(true)+'-init') || this.settings,\r\n vals,\r\n firstTopOffset;\r\n\r\n if (settings.act_on_hidden_el) {\r\n vals = group ? equalizer.find('['+this.attr_name()+'-watch=\"'+group+'\"]') : equalizer.find('['+this.attr_name()+'-watch]');\r\n }\r\n else {\r\n vals = group ? equalizer.find('['+this.attr_name()+'-watch=\"'+group+'\"]:visible') : equalizer.find('['+this.attr_name()+'-watch]:visible');\r\n }\r\n \r\n if (vals.length === 0) {\r\n return;\r\n }\r\n\r\n settings.before_height_change();\r\n equalizer.trigger('before-height-change.fndth.equalizer');\r\n vals.height('inherit');\r\n\r\n if (settings.equalize_on_stack === false) {\r\n firstTopOffset = vals.first().offset().top;\r\n vals.each(function () {\r\n if ($(this).offset().top !== firstTopOffset) {\r\n isStacked = true;\r\n return false;\r\n }\r\n });\r\n if (isStacked) {\r\n return;\r\n }\r\n }\r\n\r\n var heights = vals.map(function () { return $(this).outerHeight(false) }).get();\r\n\r\n if (settings.use_tallest) {\r\n var max = Math.max.apply(null, heights);\r\n vals.css('height', max);\r\n } else {\r\n var min = Math.min.apply(null, heights);\r\n vals.css('height', min);\r\n }\r\n\r\n settings.after_height_change();\r\n equalizer.trigger('after-height-change.fndtn.equalizer');\r\n },\r\n\r\n reflow : function () {\r\n var self = this;\r\n\r\n this.S('[' + this.attr_name() + ']', this.scope).each(function () {\r\n var $eq_target = $(this),\r\n media_query = $eq_target.data('equalizer-mq'),\r\n ignore_media_query = true;\r\n\r\n if (media_query) {\r\n media_query = 'is_' + media_query.replace(/-/g, '_');\r\n if (Foundation.utils.hasOwnProperty(media_query)) {\r\n ignore_media_query = false;\r\n }\r\n }\r\n\r\n self.image_loaded(self.S('img', this), function () {\r\n if (ignore_media_query || Foundation.utils[media_query]()) {\r\n self.equalize($eq_target)\r\n } else {\r\n var vals = $eq_target.find('[' + self.attr_name() + '-watch]:visible');\r\n vals.css('height', 'auto');\r\n }\r\n });\r\n });\r\n }\r\n };\r\n})(jQuery, window, window.document);\r\n","jQuery(document).ready(function($) {\r\n\r\n var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var DAY_NAMES=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat');\r\n function LZ(x){return(x<0||x>9?\"\":\"0\")+x}\r\n function isDate(val,format){var date=getDateFromFormat(val,format);if(date==0){return false;}return true;}\r\n function compareDates(date1,dateformat1,date2,dateformat2){var d1=getDateFromFormat(date1,dateformat1);var d2=getDateFromFormat(date2,dateformat2);if(d1==0 || d2==0){return -1;}else if(d1 > d2){return 1;}return 0;}\r\n function formatDate(date,format){format=format+\"\";var result=\"\";var i_format=0;var c=\"\";var token=\"\";var y=date.getYear()+\"\";var M=date.getMonth()+1;var d=date.getDate();var E=date.getDay();var H=date.getHours();var m=date.getMinutes();var s=date.getSeconds();var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;var value=new Object();if(y.length < 4){y=\"\"+(y-0+1900);}value[\"y\"]=\"\"+y;value[\"yyyy\"]=y;value[\"yy\"]=y.substring(2,4);value[\"M\"]=M;value[\"MM\"]=LZ(M);value[\"MMM\"]=MONTH_NAMES[M-1];value[\"NNN\"]=MONTH_NAMES[M+11];value[\"d\"]=d;value[\"dd\"]=LZ(d);value[\"E\"]=DAY_NAMES[E+7];value[\"EE\"]=DAY_NAMES[E];value[\"H\"]=H;value[\"HH\"]=LZ(H);if(H==0){value[\"h\"]=12;}else if(H>12){value[\"h\"]=H-12;}else{value[\"h\"]=H;}value[\"hh\"]=LZ(value[\"h\"]);if(H>11){value[\"K\"]=H-12;}else{value[\"K\"]=H;}value[\"k\"]=H+1;value[\"KK\"]=LZ(value[\"K\"]);value[\"kk\"]=LZ(value[\"k\"]);if(H > 11){value[\"a\"]=\"PM\";}else{value[\"a\"]=\"AM\";}value[\"m\"]=m;value[\"mm\"]=LZ(m);value[\"s\"]=s;value[\"ss\"]=LZ(s);while(i_format < format.length){c=format.charAt(i_format);token=\"\";while((format.charAt(i_format)==c) &&(i_format < format.length)){token += format.charAt(i_format++);}if(value[token] != null){result=result + value[token];}else{result=result + token;}}return result;}\r\n function _isInteger(val){var digits=\"1234567890\";for(var i=0;i < val.length;i++){if(digits.indexOf(val.charAt(i))==-1){return false;}}return true;}\r\n function _getInt(str,i,minlength,maxlength){for(var x=maxlength;x>=minlength;x--){var token=str.substring(i,i+x);if(token.length < minlength){return null;}if(_isInteger(token)){return token;}}return null;}\r\n function getDateFromFormat(val,format){val=val+\"\";format=format+\"\";var i_val=0;var i_format=0;var c=\"\";var token=\"\";var token2=\"\";var x,y;var now=new Date();var year=now.getYear();var month=now.getMonth()+1;var date=1;var hh=now.getHours();var mm=now.getMinutes();var ss=now.getSeconds();var ampm=\"\";while(i_format < format.length){c=format.charAt(i_format);token=\"\";while((format.charAt(i_format)==c) &&(i_format < format.length)){token += format.charAt(i_format++);}if(token==\"yyyy\" || token==\"yy\" || token==\"y\"){if(token==\"yyyy\"){x=4;y=4;}if(token==\"yy\"){x=2;y=2;}if(token==\"y\"){x=2;y=4;}year=_getInt(val,i_val,x,y);if(year==null){return 0;}i_val += year.length;if(year.length==2){if(year > 70){year=1900+(year-0);}else{year=2000+(year-0);}}}else if(token==\"MMM\"||token==\"NNN\"){month=0;for(var i=0;i11)){month=i+1;if(month>12){month -= 12;}i_val += month_name.length;break;}}}if((month < 1)||(month>12)){return 0;}}else if(token==\"EE\"||token==\"E\"){for(var i=0;i12)){return 0;}i_val+=month.length;}else if(token==\"dd\"||token==\"d\"){date=_getInt(val,i_val,token.length,2);if(date==null||(date<1)||(date>31)){return 0;}i_val+=date.length;}else if(token==\"hh\"||token==\"h\"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}i_val+=hh.length;}else if(token==\"HH\"||token==\"H\"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}i_val+=hh.length;}else if(token==\"KK\"||token==\"K\"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}i_val+=hh.length;}else if(token==\"kk\"||token==\"k\"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}i_val+=hh.length;hh--;}else if(token==\"mm\"||token==\"m\"){mm=_getInt(val,i_val,token.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}i_val+=mm.length;}else if(token==\"ss\"||token==\"s\"){ss=_getInt(val,i_val,token.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}i_val+=ss.length;}else if(token==\"a\"){if(val.substring(i_val,i_val+2).toLowerCase()==\"am\"){ampm=\"AM\";}else if(val.substring(i_val,i_val+2).toLowerCase()==\"pm\"){ampm=\"PM\";}else{return 0;}i_val+=2;}else{if(val.substring(i_val,i_val+token.length)!=token){return 0;}else{i_val+=token.length;}}}if(i_val != val.length){return 0;}if(month==2){if( ((year%4==0)&&(year%100 != 0) ) ||(year%400==0) ){if(date > 29){return 0;}}else{if(date > 28){return 0;}}}if((month==4)||(month==6)||(month==9)||(month==11)){if(date > 30){return 0;}}if(hh<12 && ampm==\"PM\"){hh=hh-0+12;}else if(hh>11 && ampm==\"AM\"){hh-=12;}var newdate=new Date(year,month-1,date,hh,mm,ss);return newdate.getTime();}\r\n function parseDate(val){var preferEuro=(arguments.length==2)?arguments[1]:false;generalFormats=new Array('y-M-d','MMM d, y','MMM d,y','y-MMM-d','d-MMM-y','MMM d');monthFirst=new Array('M/d/y','M-d-y','M.d.y','MMM-d','M/d','M-d');dateFirst =new Array('d/M/y','d-M-y','d.M.y','d-MMM','d/M','d-M');var checkList=new Array('generalFormats',preferEuro?'dateFirst':'monthFirst',preferEuro?'monthFirst':'dateFirst');var d=null;for(var i=0;i'+value.title+''+html5date+'';\r\n $(container).append(entry);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function capitaliseFirstLetter(string) {\r\n return string.charAt(0).toUpperCase() + string.slice(1);\r\n }\r\n\r\n $(function(){\r\n // running custom RSS functions\r\n parseRSS('http://www.dtnprogressivefarmer.com/dtnag/servlet/RSSBlogFeed?blogHandle=grainmarkets&summary=true', '#news-feed');\r\n });\r\n\r\n});\r\n","jQuery(document).ready(function ($) {\r\n speedbumpMe();\r\n});\r\n\r\nfunction speedbumpMe() {\r\n // find all external links\r\n $('a:not([href=\"\"], [href^=\"http://www.farmersstate.com\"], [href^=\"https://www.farmersstate.com\"], [href^=\"http://farmersstate.com\"], [href^=\"https://farmersstate.com\"], [href*=\"secureinternetbank.com\"], [href*=\"lrsws.co\"], [href*=\".local\"], [href^=\"mailto\"], [href^=\"tel\"], [href^=\"/\"], [href^=\"#\"], [href^=\"javascript\"], [class*=\"nospeedbump\"], [id*=\"url-link\"], [id*=\"close-speedbump\"], [class*=\"close-reveal-modal\"], [class*=\"external\"])').addClass('external');\r\n $('a[href^=\"mailto\"]').addClass('mailto');\r\n\r\n // remove external class from links without href attribute\r\n $('a').each(function (e) {\r\n if ($(this).attr('href') === undefined) {\r\n $(this).removeClass('external');\r\n }\r\n });\r\n\r\n // add foundation reveal attribute to external links\r\n $('a.external').attr('data-reveal-id', 'speedbump');\r\n $('a.mailto').attr('data-reveal-id', 'speedbump2');\r\n\r\n // add the link and title to the modal window\r\n $(function () {\r\n $('a.external').click(function () {\r\n var url = $(this).attr('href');\r\n var title = $(this).attr('title');\r\n $('#url_link').attr('href', url);\r\n });\r\n $('a.mailto').click(function () {\r\n var url = $(this).attr('href');\r\n var title = $(this).attr('title');\r\n $('#url_link2').attr('href', url);\r\n });\r\n });\r\n\r\n // close speedbump when clicking acknowledgment button\r\n $('.reveal-modal .btn-cancel').click(function (e) {\r\n e.preventDefault();\r\n $('.reveal-modal').foundation('reveal', 'close');\r\n });\r\n}\r\n","jQuery(function() {\r\n FastClick.attach(document.body);\r\n});\r\n\r\njQuery(document).foundation();\r\n\r\njQuery(document).ready(function($) {\r\n // clear and restore form input values\r\n var el = $('input[type=text], input[type=email], textarea, input.header-search');\r\n\r\n el.focus(function(e) {\r\n if (e.target.value === e.target.defaultValue)\r\n e.target.value = '';\r\n });\r\n\r\n el.blur(function(e) {\r\n if (e.target.value === '')\r\n e.target.value = e.target.defaultValue;\r\n });\r\n\r\n // Main Menu and Search interaction\r\n $('.menu-open').click(function(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n $('.main-menu').addClass('active');\r\n $('body').addClass('active-menu');\r\n });\r\n\r\n $('.search .a1').click(function(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n $('.search-menu').addClass('active');\r\n $('body').addClass('active-menu');\r\n $('.search-box').focus();\r\n });\r\n\r\n $('.search-menu').click(function(e) {\r\n e.stopPropagation();\r\n });\r\n\r\n\r\n // Show main menu click event\r\n $('.search-menu .menu-close').click(function(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n $('.search-menu').removeClass('active');\r\n $('body').removeClass('active-menu');\r\n });\r\n\r\n // Close main menu click event\r\n $('.main-menu .menu-close').click(function(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n $('.main-menu').removeClass('active');\r\n $('body').removeClass('active-menu');\r\n });\r\n\r\n // Listen for click events on the document NOT in the menu, and hide menu if it's visible.\r\n $(document).click(function(event) {\r\n if(!$(event.target).closest('.main-menu').length && !$(event.target).is('.main-menu')) {\r\n if($('body').hasClass('active-menu')) {\r\n $('.main-menu').removeClass('active');\r\n $('.search-menu').removeClass('active');\r\n $('body').removeClass('active-menu');\r\n }\r\n }\r\n });\r\n\r\n // Show sub menu items in primary nav\r\n $('.nav-primary .has_children .a1').click(function(e) {\r\n e.preventDefault();\r\n if ($(this).parent().hasClass('active')) {\r\n $(this).parent().removeClass('active');\r\n } else {\r\n $('.nav-primary .has_children.active').removeClass('active');\r\n $(this).parent().addClass('active');\r\n }\r\n });\r\n\r\n $('.ob-header').click(function(e) {\r\n e.preventDefault();\r\n $('.online-banking-widget').toggleClass('active');\r\n });\r\n\r\n /* ONLINE BANKING LOGIN interface. */\r\n $('.ob-account-type-display').click(function(e) {\r\n $('.ob-account-type-selector').toggleClass('active');\r\n });\r\n\r\n $('.ob-account-type-list a').click(function (e) {\r\n var $acc = $(this);\r\n var $accName = $acc.text();\r\n $('.ob-account-type-selector').removeClass('active');\r\n $('.ob-account-type-display').text($accName);\r\n });\r\n\r\n\r\n // Content Accordions\r\n $('.accordion-heading').click(function(e){\r\n e.preventDefault();\r\n\r\n if ($(this).parent().hasClass('expanded')) {\r\n $(this).parent().removeClass('expanded');\r\n } else {\r\n $('.accordion-panel.expanded').removeClass('expanded');\r\n $(this).parent().addClass('expanded');\r\n }\r\n });\r\n\r\n // Content Tabs\r\n $('ul.tabs li').click(function(){\r\n var tab_id = $(this).attr('data-tab');\r\n\r\n if (!$(this).hasClass('active')) {\r\n $('ul.tabs li.active').removeClass('active');\r\n $('.tab-content.active').removeClass('active');\r\n $(this).addClass('active');\r\n $('#'+tab_id).addClass('active');\r\n }\r\n });\r\n});\r\n"],"sourceRoot":"/source/"}