$(function() {

    $('a[rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel

});
