$(function(){ "use strict"; $('#slider1').sliderPro({ width: '100%', autoHeight:true, smallsize:640, responsive:true, slideDistance:0, heightAnimationDuration:0, arrows: true, buttons: true, autoplay: true, loop: true, forceSize: 'fullWidth', }); if ($.cookie('trcAccess') != 'on') { $('.top_lead .top_lead_txt_btn').hide(); $.cookie('trcAccess', 'on', {expires: 60, path:'/membership/'}); } else { $('.top_lead .top_lead_txt_btn').show(); $('.top_lead .top_lead_txt').hide(); $.cookie('trcAccess', 'on', {expires: 60, path:'/membership/'}); } $(".top_lead .top_lead_txt_btn").click(function(){ $(this).toggleClass("active").next().fadeToggle(); }); });