$('.slider').orbit({ animation: 'fade', // fade, horizontal-slide, vertical-slide, horizontal-push animationSpeed: 800, // how fast animtions are timer: true, // true or false to have the timer resetTimerOnClick: false, // true resets the timer instead of pausing slideshow progress advanceSpeed: 17000, // if timer is enabled, time between transitions pauseOnHover: true, // if you hover pauses the slider startClockOnMouseOut: true, // if clock should start on MouseOut startClockOnMouseOutAfter: 100, // how long after MouseOut should the timer start again directionalNav: false, // manual advancing directional navs captions: false, // do you want captions? captionAnimation: 'fade', // fade, slideOpen, none captionAnimationSpeed: 800, // if so how quickly should they animate in bullets: true, // true or false to activate the bullet navigation bulletThumbs: false, // thumbnails for the bullets bulletThumbLocation: '', // location from this file where thumbs will be afterSlideChange: function(){}, // empty function fluid: "10x3.164983164983165" // or set a aspect ratio for content slides (ex: '4x3') }); $('.truncate').jTruncate({ length: 200, minTrail: 0, moreText: "[see all]", lessText: "[hide extra]", ellipsisText: "...", moreAni: "fast", lessAni: 100 }); $(window).scroll(function(){ if($(this).scrollTop() > 400){ $(".call_to_action").addClass("fixed"); } else{ $(".call_to_action").removeClass("fixed"); } }); $(".various").fancybox({ maxWidth : 800, maxHeight : 600, fitToView : false, autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none', padding : 0 }); $(".various2").fancybox({ maxWidth : 800, maxHeight : 590, fitToView : false, autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none', padding : 0 }); $(".various3").fancybox({ maxWidth : 500, maxHeight : 450, fitToView : true, autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none', padding : 0 }); $(".various4").fancybox({ maxWidth : 550, maxHeight : 500, fitToView : true, autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none', padding : 0 }); $("#login").click(function() { $("#loginmodel").reveal(); }); $('.flexslider').flexslider({ animation: "slide", controlsContainer: ".flex-container", start: function(slider) { $('.total-slides').text(slider.count); }, after: function(slider) { $('.current-slide').text(slider.currentSlide); }, useCSS: true, smoothHeight: false, slideshowSpeed: 4000, pauseOnHover: true });