
function Transition1(table_cell){
    $('#casos_exito > div > div:first').show();
    setInterval(function(){
        var current = $('#casos_exito > div > div:visible');
        current.fadeOut(1000, function(){
            $(this).hide();
        });
        var next = current.next();
        if( next.length==0 )
            next = $('#casos_exito > div > div:first');
        next.fadeIn(1000);
    },5000);
}


function Transition2(table_cell){
    $('#partners > div > div:first').show();
    setInterval(function(){
        var current = $('#partners > div > div:visible')
        current.fadeOut(1000, function(){
            $(this).hide();
        });
        var next = current.next();
        if( next.length==0 )
            next = $('#partners > div > div:first');
        next.fadeIn(1000);
    },5000);
}

$(document).ready(function(){
    Verticales('', 'imagenes/b2b_?.png', 'imagenes/rollover/b2b_?.png')
    BindMenu('mn_compania', 'op_compania')
    BindMenu('mn_soluciones', 'op_soluciones')
    BindMenu('mn_referencias', 'op_referencias')
    BindMenu('mn_recursos', 'op_recursos')
    BindMenu('mn_contacto', 'op_contacto')
	BindMenu('mn_marketplace', 'op_market')
	BindMenu('mn_precios', 'op_precios')
    Transition1();
    setTimeout('Transition2()', 2500);
});
