

function initializeSpotlightsScroller(selector, fx)
{
    var effects = 'scrollUp';
    if (typeof(fx) != "undefined")
    {
        effects = fx;
    }

    jQuery(document).ready(function ()
    {
        if ( jQuery(selector).length > 0 )
        {
            if (jQuery(selector + ' .fb_spotlight_page').length > 1)
            {
                jQuery(selector + ' .fb_spotlights_scroller').cycle(
                {
                    fx:      effects,
                    timeout: 6000,
                    delay:   -2000,
                    pause:   1,
                    cleartypeNoBg: true
                });
            }
        }
    });
}//end initializeSpotlightsScroller


function viewAllSpotlights(container_id)
{
    FoxOverlay.initOverlay();

    var spotlights = jQuery('#' + container_id + ' .fb_spotlight').clone(false);

    jQuery('#' + FoxOverlay.overlay_content_id).append(spotlights);
    jQuery('#' + FoxOverlay.overlay_content_id).append('<div class="fb_spotlight_overlay_close"><a href="" onclick="FoxOverlay.closeOverlay();return false;">Close</a></div>');

    FoxOverlay.showOverlay();
}//end viewAllSpotlights

