jQuery.noConflict();

// Put all your code in your document ready area
jQuery(document).ready(function($){

    // set up captions
    $('#main-content img, #sidebar-content img').each( function() {
        var caption = $(this).attr('title');
        if (caption) {
            if ( $(this).hasClass('left') ) {
                var floatDir = 'left';
                $(this).removeClass('left');
            }
            else if ($(this).hasClass('right')) {
                var floatDir = 'right';
                $(this).removeClass('right');
            }
            var width = $(this).width();
            $(this).wrap('<div style="width: ' + width + 'px;" class="' + floatDir + '"></div>');
            $(this).after('<p class="caption">' + caption + '</p>');
        }
    });

});


