$(document).ready(function() {
 $('#fotoscycle,#textcycle').cycle({
  fx: 'fade',
  timeout: 6000,
  pause: false,
  pager: '#noticias-pgs',
  pagerAnchorBuilder: function(idx, slide) {
    return '#noticias-pgs a:eq(' + idx + ')';
  }
 }).cycle('resume');
 $.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {
    $(pager).find('img').attr('src','/static/images/option.png');
    $(pager).find('a').removeClass('active')
         .filter('a:eq('+currSlideIndex+')').find('img').attr('src','/static/images/selected.png');
};
});

