/*
 *  jQuery Innerfade
 *  This plugin is used on the homepage.
*/


/* Application Showcase */
jQuery.noConflict();
    jQuery(document).ready(function(){
        jQuery('#slider').innerfade({
                animationtype: 'fade',
                speed: '3000',
                timeout: 9000,
                type: 'sequence',
                containerheight: 'auto'
        });
});

/* Client Testimonials */
jQuery.noConflict();
    jQuery(document).ready(function(){
        jQuery('#slider2').innerfade({
                animationtype: 'fade',
                speed: '3000',
                timeout: 5000,
                type: 'sequence',
                containerheight: 'auto'
        });
});

/* Screenshots */
jQuery.noConflict();
    jQuery(document).ready(function(){
        jQuery('.boxgrid.captionfull').hover(function(){ //On hover...
            jQuery(".cover", this).fadeIn("fast");
        },
        function() { //On hover out...
            jQuery(".cover", this).fadeOut("fast");
        });

});

/* Table Style */
jQuery.noConflict();
    jQuery(document).ready(function(){
        jQuery("#table-a tr:odd").addClass("alt");
    });

/* Lightbox */
jQuery.noConflict();
    jQuery(document).ready(function(){
        jQuery('.boxgrid a').lightBox({
                                        imageLoading:           '/plugin_assets/redmine_saas/images/lightbox-ico-loading.gif',
                                        imageBtnPrev:           '/plugin_assets/redmine_saas/images/lightbox-btn-prev.gif',
                                        imageBtnNext:           '/plugin_assets/redmine_saas/images/lightbox-btn-next.gif',
                                        imageBtnClose:          '/plugin_assets/redmine_saas/images/lightbox-btn-close.gif',
                                        imageBlank:             '/plugin_assets/redmine_saas/images/lightbox-blank.gif'

                                      });
    });
