jQuery.preLoadImages = function(imageList,callback) {
        var pic = [], i, total, loaded = 0;
        if (typeof imageList != 'undefined') {
            if (imageList.constructor == Array ) {
                total = imageList.length; // used later
				for (i=0; i < total; i++) {
					pic[i] = new Image();
					pic[i].onload = function() {
						loaded++; // should never hit a race condition due to JS's non-threaded nature
						if (loaded == total) {
							if (jQuery.isFunction(callback)) {
								callback();
							}
						}
					};
					pic[i].src = imageList[i];
				}
            }
            else {
                pic[0] = new Image();
                pic[0].onload = function() {
                    if (jQuery.isFunction(callback)) {
                        callback();
                    }
                }
                 pic[0].src = imageList;
            }
        }
        pic = undefined;
    };


function slideSwitch() {
    var $active = $('#slideshow DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow DIV:last)');

    // use this to pull the divs in the order they appear in the markup
    var cur = $('#slideshow div:first');
    if(cur.attr('id')=='pull-me-loading'){
        cur = cur.next();
    }
    var $next =  $active.next().length ? $active.next() : cur;

    // uncomment below to pull the divs randomly
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
	//Editando de a poquitos el site...
	if(!window.slideBlock ){
		//
		setInterval( "slideSwitch()", 3000 );
	}    
});
