$(function() {
    $('.slideshow').cycle({
        prev:   '.prev-pic',
        next:   '.next-pic',
        speed: 500,
        timeout: 0
    });
});
$(function() {
    $('.slideshow2').cycle({
        prev:   '#prev',
        next:   '.next-pic2',
        speed: 500,
        timeout: 0
    });
});
$(function() {
    $('.slideshow3').cycle({
        prev:   '#prev',
        next:   '.next-pic3',
        speed: 500,
        timeout: 0
    });
});
/* Word Its */
$(function() {
	var randomnumber = Math.floor(Math.random()*10)

	$('#word-show').cycle({ 
	    speed: 500,
	    timeout: 0,
	    next: '.next-pic',
	    pager:  '#word-nav',
	    startingSlide: randomnumber,
	    
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#word-nav li:eq(' + (idx) + ') a';
        }
        	    
	});
	
});	
/* Threadless Loves */
$(function() {
	var randomnumber = Math.floor(Math.random()*9)

	$('#loves-show').cycle({ 
	    speed: 500,
	    timeout: 0,
	    next: '.next-pic',
	    pager:  '#loves-nav',
	    startingSlide: randomnumber,
	    
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#loves-nav li:eq(' + (idx) + ') a';
        }
        	    
	});
	
});	
/* Thought : Portfolio */
$(function() {
	$('#port-show').cycle({ 
	    speed: 500,
	    timeout: 0,
	    prev: '.prev-pic',
	    next: '.next-pic',
	    pager:  '#port-nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#port-nav li:eq(' + (idx) + ') a';
        }
        	    
	});
	
});
