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


$(function() {
    $("a[rel='galeria']").colorbox({
        slideshow:true,
        slideshowAuto:true,
        current: "imagen {current} de {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: 900, // Overide the default CSS width
        height: 216, // Overide the default CSS width
        createPagination: true,
        createArrows: false
    });
});

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);
    }
}

