$( document ).ready(
    function()
    {
        /* 
         * Social plugins
         */
        $( '#social a.share' ).click(
            function()
            {
                window.open(
                    $(this).attr( 'href' ),
                    $(this).attr( 'title' ),
                    'toolbar=0,status=0,width=626,height=436' );
                return false;
            });
        
        /*
         * Nivo slider
         */
        $( '#nivo-slider' ).nivoSlider(
        {
            effect                  : 'random',
            keyboardNav             : false,
            pauseOnHover            : true,
            controlNav              : true,
            controlNavThumbs        : false,
            controlNavThumbsFromRel : true,
            controlNavThumbsSearch  : '.png',
            controlNavThumbsReplace : '-75x75.png',
            animSpeed               : 500,
            pauseTime               : 4000,
            directionNav            : true,
            directionNavHide        : false,
            startSlide              : 0,
            captionOpacity          : 0,
            slices                  : 5,  // For slice animations
            boxCols                 : 10, // For box animations
            boxRows                 : 5,  // For box animations
            manualAdvance           : false
        });
        
        /*
         * Fancybox
         */
        $( "a.fancybox" ).fancybox(
            {
		        'transitionIn'	: 'fade',
		        'transitionOut'	: 'fade',
		        'speedIn'		: 600, 
		        'speedOut'		: 200,
		        'centerOnScroll': true,
		        'overlayShow'	: true,
                'overlayOpacity': '0.9',
                'overlayColor'  : '#000',
                'titleShow'     : false
	        }
        );
    });
