/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/* include script for Fancybox with jQuery:*/
;
(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
    });

    $("a[rel=example_group]").fancybox({
        'transitionIn'		: 'none',
        'transitionOut'		: 'none',
        'titlePosition' 	: 'over',
        'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
        }
    });

    $("a.pdffile").fancybox({
        'width'				: '75%',
        'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
        'transitionOut'		: 'none',
        'type'				: 'iframe'
    });


})(jQuery);


