$slideshow = {
    context: false,
    tabs: false,
    timeout: 6000,      // time before next slide appears (in ms)
    slideSpeed: 1200,   // time it takes to slide in each slide (in ms)
    tabSpeed: 600,      // time it takes to slide in each slide (in ms) when clicking through tabs
    fx: 'scrollHorz',   // the slide effect to use
	easing: 'easeInOutCubic', 
    next: '#next',
	prev: '#prev',
    init: function() {
        // set the context to help speed up selectors/improve performance
        this.context = $('#slideshow');        
		
        // prepare slideshow and jQuery cycle tabs
        this.prepareSlideshow();
    },    
    prepareSlideshow: function() {
        // initialise the jquery cycle plugin -
        // for information on the options set below go to: 
        // http://malsup.com/jquery/cycle/options.html
        $('div.slides > ul', $slideshow.context).cycle({
			fx: $slideshow.fx,
			easing: $slideshow.easing,
            timeout: $slideshow.timeout,
            speed: $slideshow.slideSpeed,
            fastOnEvent: $slideshow.tabSpeed,
			prev: $slideshow.prev,
			next: $slideshow.next,
            pause: true
        });     
    } 
};
$(function() {
    // add a 'js' class to the body
    $('body').addClass('js');
    
    // initialise the slideshow when the DOM is ready
    $slideshow.init();
});  