 $(document).ready(function(){

    $('#slider').jqFancyTransitions({
        effect: '', // wave, zipper, curtain
        width: 250, // width of panel
        height: 130, // height of panel
        strips: 20, // number of strips
        delay: 10000, // delay between images in ms
        stripDelay: 40, // delay beetwen strips in ms
        titleOpacity: 0.7, // opacity of title
        titleSpeed: 1000, // speed of title appereance in ms
        position: 'alternate', // top, bottom, alternate, curtain
        direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate
        navigation: false, // prev and next navigation buttons
        links: true // show images as links
        });
    
        /* This is basic - uses default settings */
        $("a.single_image").fancybox();
        /* Using custom settings */
        $("a.inline").fancybox({
              'hideOnContentClick': false,
                  'autoDimensions': true,
                  'autoScale'           : true,
                'overlayColor'  : '#333',
                'type'              : 'inline'
          });
          $("a.iframe").fancybox({
                'width'                 : 740,
                'height'                : 430,
                'autoScale'           : false,
                'transitionIn'      : 'fade',
                'transitionOut'     : 'elastic',
                'type'                  : 'iframe'
            });
        /* Apply fancybox to multiple items */
        $("a.group").fancybox({
            'transitionIn'  :   'elastic',
            'transitionOut' :   'elastic',
              'speedIn'         :   600,
              'speedOut'          : 200,
              'overlayShow'   : false
          });

});
