var fm_current_scroll_location=0;
var fm_max_scroll_location = -680;
jQuery(document).ready(function($) {
  fm_max_scroll_location = ($('.featuredmap_module div.featured_zone').length - 1) * 680 * (-1);
  $('featuredmap_module .scroller-field').css('width',($('.rssreader-module div.featured_zone').length * 680) + 'px');
  $('.featured_left_scroll').click(function() {   
    fm_current_scroll_location-=680;
    if(fm_current_scroll_location < fm_max_scroll_location) {
      fm_current_scroll_location = 0;
    }
    $('.featuredmap_module .scroller-field').css('left', fm_current_scroll_location + 'px');
  });
  $('.featured_right_scroll').click(function() {
    fm_current_scroll_location+=680;
    if(fm_current_scroll_location > 0) {
      fm_current_scroll_location = fm_max_scroll_location;
    }
    $('.featuredmap_module .scroller-field').css('left', fm_current_scroll_location + 'px');
  });

});

