$(function() {

// Cycle Thumbs
    $('.thumbslider').hover(function() {
      $(this).cycle({ 
      timeout: 350, // milliseconds between slide transitions (0 to disable auto advance)
      speed:  800, // speed of the transition (any valid fx speed value) 
      delay: 20,  // additional delay (in ms) for first transition (hint: can be negative)
      fx: 'scrollUp',
      //easing:  'easeInOutBack', 
      random: 1
      		   });
	}, function() {
      $(this).cycle('toggle'); 
	});




//Slideshow nos posts
    $('#slideshow')
	.before('<div id="prev">Previous</div>&#47;<div id="next">Next Image</div>')
	.cycle({
        fx:      'fade',
        timeout:  0,
        prev:    '#prev',
        next:    '#next'
    });



//Scroll to Top
    $('a.top').click(function(){
         $('html, body').animate({scrollTop: '0px'}, 200);
         return false;
    });


 });

