/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$(function() {
    $("a[rel='gallery']").colorbox({
        slideshow:true,
        slideshowAuto:true,
        current: "{current} / {total}",
        slideshowStart: "iniciar presentación",
        slideshowStop: "detener presentación"
    });
    $('#slideshow').plusSlider({
        displayTime: 4000, // The amount of time the slide waits before automatically moving on to the next one. This requires 'autoPlay: true'
        sliderType: 'fader', // Choose whether the carousel is a 'slider' or a 'fader'
        width: 905, // Overide the default CSS width
        height: 310, // Overide the default CSS width
        createPagination: true,
        createArrows: true
    });
    $('#mycarousel').jcarousel({
        wrap: 'circular'
    });

});

var cache = [];
$.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
        var cacheImage = document.createElement('img');
        cacheImage.src = arguments[i];
        cache.push(cacheImage);
    }
}
