﻿/*
checkout1 1.0.0 - JQuery rotating banner. Standard rotating banner with click next/prev button functionality.

Requires cycle.lite jquery plugin.

Copyright (c) Aydus (www.aydus.com)

Date: 7/24/2010

ChangeLog:
*/

(function($) {

    $.fn.rbanner = function(options) {

    var settings = {
        timeout: 4000,
        pause: false,
        fx: 'fase'
    };

    // Extend options.
    options = options || {};
    $.extend(settings, options);

    // $this = element from plugin selector
    $this = this;

    this.each(function() {
    
        // Setup cycle plugin.
        $('.Banners', this).cycle({
            timeout: settings.timeout,    
            pause: settings.pause,
            fx: settings.fx,
            next: '.RBannerWrapper .Navigation .Next',
            prev: '.RBannerWrapper .Navigation .Prev'
        });
        // Show banners after load (to avoid page flicker).
        $('.Banners', this).show();

    });

    return this;
};

})(jQuery);
