$(function() { $('#CustomerStoriesFeatured').cycle({ fx: 'fade', speed: 1000, timeout: 7000, pager: '#SliderNav', pagerAnchorBuilder: function(idx, slide) { return ''; } }); $('#goto1').click(function() { $('#CustomerStoriesFeatured').cycle(0); return false; }); $('#goto2').click(function() { $('#CustomerStoriesFeatured').cycle(1); return false; }); $('#goto3').click(function() { $('#CustomerStoriesFeatured').cycle(2); return false; }); $('#goto4').click(function() { $('#CustomerStoriesFeatured').cycle(3); return false; }); $('#goto5').click(function() { $('#CustomerStoriesFeatured').cycle(4); return false; }); $('#CustomerStoriesHomeList').load('/customer-stories/homelistpaginatedgeneric', function() { Cufon.replace('#BodyText .customerstoriesdesc h4',{hover: true, fontFamily: 'Avenir Heavy'}); $('#CustomerStoriesListPaginated').cycle({ fx: 'scrollHorz', speed: 'slow', prev: '#csprev', next: '#csnext', timeout: 0, pager: '#customerstoriesnav', pagerAnchorBuilder: function(idx, slide) { return ''; } }); $('#slidergoto1').click(function() { $('#CustomerStoriesListPaginated').cycle(0); return false; }); $('#slidergoto2').click(function() { $('#CustomerStoriesListPaginated').cycle(1); return false; }); $('#slidergoto3').click(function() { $('#CustomerStoriesListPaginated').cycle(2); return false; }); $('#slidergoto4').click(function() { $('#CustomerStoriesListPaginated').cycle(3); return false; }); $('#slidergoto5').click(function() { $('#CustomerStoriesListPaginated').cycle(4); return false; }); $('#slidergoto6').click(function() { $('#CustomerStoriesListPaginated').cycle(5); return false; }); $('#slidergoto7').click(function() { $('#CustomerStoriesListPaginated').cycle(6); return false; }); $('#slidergoto8').click(function() { $('#CustomerStoriesListPaginated').cycle(7); return false; }); $('#slidergoto9').click(function() { $('#CustomerStoriesListPaginated').cycle(8); return false; }); $('#slidergoto10').click(function() { $('#CustomerStoriesListPaginated').cycle(9); return false; }); }); }); $.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) { $(pager).find('li').removeClass('activeLI') .filter('li:eq('+currSlideIndex+')').addClass('activeLI'); }; Cufon.replace('#BodyText h2',{hover: true, fontFamily: 'Avenir Roman'}); Cufon.replace('#BodyText h3',{hover: true, fontFamily: 'Avenir Heavy'}); Cufon.replace('#BodyText #CustomerStoriesFeatured .quote h3',{hover: true, fontFamily: 'Avenir Roman'}); Cufon.replace('#BodyText #CustomerStoriesStats p',{hover: true, fontFamily: 'Avenir Roman'}); Cufon.replace('#BodyText .customerstoriesdesc h4',{hover: true, fontFamily: 'Avenir Heavy'}); Cufon.replace('#BodyText .customerstoriesdesc p',{hover: true, fontFamily: 'Avenir Roman'}); Cufon.replace('#BodyText .quote p',{hover: true, fontFamily: 'Avenir Roman'}); Cufon.replace('#BodyText .featuredbutton',{hover: true, fontFamily: 'Avenir Heavy'}); Cufon.replace('#BodyText .quote h4',{hover: true, fontFamily: 'Avenir Roman'}); $(document).ready(function() { });