$(function() {
	var myNum=Math.floor(Math.random()*5)+1;
	$('.saver-slideshow').before('<div id="saver_links">').cycle({
		fx: 'scrollUp',
		speed: 0,
		timeout: 6000,
		//timeout makes things pause
		delay: 1000,
		pager: '#saver_links',
		startingSlide: myNum,
		pause: 1,
		pauseOnPagerHover:1,
		// callback fn that creates a thumbnail to use as pager anchor 
	    pagerAnchorBuilder: function(idx, saver) { 
		    return '<a href="#">' + saver.name + '</a>'; 
		} 

	});		
});
