$(document).ready(function() {
    $('img.jcaption').jcaption({
      //Element to wrap the image and caption in
      wrapperElement: 'span',
      //Class for wrapper element
      wrapperClass: 'caption',
      //Caption Element
      captionElement: 'p',
      //Attribute of image to use as caption source
      imageAttr: 'alt',
      //Should inline style be copied from img element to wrapper
      copyStyle: true,
      //Strip inline style from image
      removeStyle: true,
      //Strip align attribute from image
      removeAlign: true,
      //Assign the value of the image's align attribute as a class to the wrapper
      copyAlignmentToClass: true,
      //Assign a width to the wrapper that matches the image
      autoWidth: true,
      //Animate on hover over the image
      animate: true,
      //Show Animation
      show: {height: 'show'},
      showDuration: 250,
      //Hide Animation
      hide: {height: 'hide'},
      hideDuration: 100	
    });
});

