jQuery
(

	function($)
	{


        // Custom fonts

		Cufon.replace('#content.set-page1 h3')('#home-content-bottom ul li span.bold')('#navigation li a', { fontFamily: 'Praxis Com Semibold' });
        Cufon.replace('h2', { fontFamily: 'Praxis Com Light' });
        Cufon.replace('#home-content-bottom ul li span.light', { fontFamily: 'Praxis Com Light' });
        Cufon.replace('#content.set-page1 ul li', { fontFamily: 'Praxis Com Light' });
        Cufon.replace('#content.set-page1 p', { fontFamily: 'Praxis Com Light' });
		Cufon.replace('#home-content-bottom p', { fontFamily: 'Praxis Com' });
		
		
		// Gallery
		
		$('.gallery')
			
			.find('li a[rel=gallery]')
			
				.fancybox
				({  
				    overlayColor    : '#000',
				    overlayOpacity  :  0.59,
				    transitionIn	: 'elastic',
					transitionOut	: 'elastic',
					titlePosition	: 'over',
					titleFormat		: function(title, currentArray, currentIndex, currentOpts)
					{
						return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
					}
				})
				
				.end()
				
			.find('li a[rel=gallery] img')
				
				.fadeTo('fast', '0.65')
				
				.hover(
                
				    function() {
                        $(this).stop().animate({"opacity": "1.0"}, "slow")
                    },
  
                    function() {
                        $(this).stop().animate({"opacity": "0.65"}, "slow")
                    }
  
                );
				
				
        // Banners
				
		$('#banners') 
        
		    .after('<div id="banners-nav">') 

                .cycle
				({
					 
                    fx:     'wipe', 
                    speed:  'fast',
					timeout: 5000, 
                    pager:  '#banners-nav' 
					
                })
				
	}
)
