
$(document).ready(function(){
//    $("a[rel]").overlay({

//        expose: '#41494e',
//        top: '2%',
//        onBeforeLoad: function() {

//            // grab wrapper element inside content 
//            var wrap = this.getOverlay().find(".contentWrap");
//            $(wrap).html('');
//            // load the page specified in the trigger 
//            wrap.load(this.getTrigger().attr("href"));
//        }
//    });

    // agregar al maletin
    $('.rb_AgregarMaletin').click(function(){
        $.get(this.href, function(data){
            // defined in global.js
            loadMaletin();
            //$('.rb_AgregarMaletin').hide('slow');
            return false;
            });
           var a = this.href;
           document.getElementById('divImagen' + a.split("=")[2]).style.display = 'none';
           document.getElementById('divTexto' + a.split("=")[2]).style.display = 'none';
           return false;
    });
});
