$(document).ready(function(){

// RUN SLIDESHOW

$('#slideshow').cycle({ 
    speed:3000, // speed of the transition (any valid fx speed value)
	timeout:7000 // milliseconds between slide transitions (0 to disable auto advance) 
}); 

// WHAT HAPPENS WHEN YOU CLICK A LITTLE BUTTON AT BOT OF SLIDESHOW

$('#goto1a,#goto1b,#goto1c,#goto1d,#goto1e').click(function() {
    $('#slideshow').cycle(0);
    return false;
});

$('#goto2a,#goto2b,#goto2c,#goto2d,#goto2e').click(function() {
    $('#slideshow').cycle(1);
    return false;
});

$('#goto3a,#goto3b,#goto3c,#goto3d,#goto3e').click(function() {
    $('#slideshow').cycle(2);
    return false;
});

$('#goto4a,#goto4b,#goto4c,#goto4d,#goto4e').click(function() {
    $('#slideshow').cycle(3);
    return false;
});

$('#goto5a,#goto5b,#goto5c,#goto5d,#goto5e').click(function() {
    $('#slideshow').cycle(4);
    return false;
});


// --------------------------------------------------------------------
}); // end JQ document ready
