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


$(function() {
    $("a.gallery, a[rel='gallery']").colorbox({
        slideshow:true,
        slideshowAuto:true,
        current: "{current} / {total}",
        slideshowStart: "iniciar presentación",
        slideshowStop: "detener presentación"
    });
    $('#conte-texto').jScrollPane({
        showArrows:true, 
        scrollbarWidth: 15, 
        arrowSize: 16
    });
    
    $('#col1').slideshow({
        timeout: 4500,
        fadetime: 2500,
        type: 'sequence'
    });
    $('#col2').slideshow({
        timeout: 5000,
        fadetime: 2500,
        type: 'sequence'
    });
    $('#col3').slideshow({
        timeout: 5500,
        fadetime: 2500,
        type: 'sequence'
    });
    jQuery('#mycarousel').jcarousel({
        scroll: 1
    });
});

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