/* to simplify this for techwriters, if they tag an image source with {: lightbox } this js will create the appropriate/required div to perform lightbox functions */ /* REQUIRES: fancybox (fancybox.net) */ $(document).ready(function() { /* This is basic - uses default settings */ $("a#single_image").fancybox(); /* Using custom settings */ $("a#inline").fancybox({ 'hideOnContentClick': true }); /* Apply fancybox to multiple items */ $("a.group").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : false }); });