// JavaScript Document

$(function() {
    $('#slideshow').cycle({
        fx:     'fadeZoom',
        speed:  1000,
        timeout: 0,
		
	easing: '',
	
		delay: 0, 
		after:   onAfter,
		pause: 1,
		next:   '#next2', 
        prev:   '#prev2', 
        pager:  '#nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav li:eq(' + (idx) + ') a';
        }
    });
});
function onAfter() { 
    $('#extra2').html("") 
        .append(this.title); 
}

$(function() {
    $('#pauseButton').click(function() {
    $('#slideshow').cycle('pause');
    });
});

$(function() {
    $('#resumeButton').click(function() {
    $('#slideshow').cycle('resume');
    });
});

