function slideSwitchDireita() {

    var j = jQuery.noConflict();

    var jactiveDireita = j('#slideshowDireita DIV.activeDireita');

    if ( jactiveDireita.length == 0 ) jactiveDireita = j('#slideshowDireita DIV:lastDireita');

    // use this to pull the divs in the order they appear in the markup
    var jnext =  jactiveDireita.next().length ? jactiveDireita.next()
    : j('#slideshowDireita DIV:first');

    // uncomment below to pull the divs randomly
    // var jsibs  = jactive.siblings();
    // var rndNum = Math.floor(Math.random() * jsibs.length );
    // var jnext  = j( jsibs[ rndNum ] );


    jactiveDireita.addClass('last-activeDireita');

    jnext.css({
        opacity: 0.0
    })
    .addClass('activeDireita')
    .animate({
        opacity: 1.0
    }, 1000, function() {
        jactiveDireita.removeClass('activeDireita last-activeDireita');
    });
}

j(function() {
    setInterval( "slideSwitchDireita()", 15000 );
});





function slideSwitchDireita2() {

    var j = jQuery.noConflict();

    var jactiveDireita2 = j('#slideshowDireita2 DIV.activeDireita2');

    if ( jactiveDireita2.length == 0 ) jactiveDireita2 = j('#slideshowDireita2 DIV:lastDireita2');

    // use this to pull the divs in the order they appear in the markup
    var jnext =  jactiveDireita2.next().length ? jactiveDireita2.next()
    : j('#slideshowDireita2 DIV:first');

    // uncomment below to pull the divs randomly
    // var jsibs  = jactive.siblings();
    // var rndNum = Math.floor(Math.random() * jsibs.length );
    // var jnext  = j( jsibs[ rndNum ] );


    jactiveDireita2.addClass('last-activeDireita2');

    jnext.css({
        opacity: 0.0
    })
    .addClass('activeDireita2')
    .animate({
        opacity: 1.0
    }, 1000, function() {
        jactiveDireita2.removeClass('activeDireita2 last-activeDireita2');
    });
}

j(function() {
    setInterval( "slideSwitchDireita2()", 15000 );
});


