// Reverse hack
jQuery.fn.reverse = [].reverse;
var Facultades = {
    // roundedCorners: Adds four spans to the elements collection
    // to style them for rounded corners
    roundedCorners: function(collection){
        // generate html for spans
        var spans = "<span class='rc ne'></span>";
        spans += "<span class='rc nw'></span>";
        spans += "<span class='rc se'></span>";
        spans += "<span class='rc sw'></span>";
        $(collection).reverse().each(function(){
            $(this).html( $(this).html() + spans );
        });
    }
}

$(function(){
  // rounded corners
  Facultades.roundedCorners('.rounded_corners');
});
