jQuery.noConflict();

/* Create or extend Tecumseh object */
jQuery(document).ready(function($) {
	Tecumseh = $.extend(typeof Tecumseh == "object" ? Tecumseh : {}, {
		slideshow: function(id, speed, pause, steps) {
			$('#' + id + ' .slide-show').cycle({
				fx: 'scrollRight',
				easing: 'easeInOutQuad',
				speed: speed,
				timeout: pause,
				next: '#' + id + ' .next-slide-pager',
				prev: '#' + id + ' .previous-slide-pager',
				pause: pause,
                autostop: (steps == 0 ? 0 : 1),
                autostopCount: steps + 1				
			});
		}
	});

    $(window).resize(function() {
        $('.slide').each(function() {
            $(this).css('width', $(window).width() + 'px');
            this.cycleW = $(window).width();
        });
    });
});
