P2.front = function() {
  return {
    rotator: function(selector, height) {
      selector = selector || '#hot-news';
      //height   = height || '390px';
      $(selector).find('.innerfade').cycle({
        height: height,
        pager: selector + ' ul.hot-links',
        pagerEvent: 'mouseover',
        before: function(from, to) {
          $(selector + ' ul.hot-links li:eq(' + $(from).parent().children().index(from) + ')').removeClass('active');
          $(selector + ' ul.hot-links li:eq(' + $(to).parent().children().index(to) + ')').addClass('active');
        },
        pagerAnchorBuilder: function(idx, slide) { return selector + ' ul.hot-links li:eq(' + idx + ')'; }
      });
      return this;
    },
    page: function() {
      P2.page();
      $(function() {
        P2.scroller().
        front.rotator();
        });
      return this;
    }
  };
}();
