	
	Cufon.replace('#page-body h2, #page-body h1', { fontFamily: 'Bebas', fontWeight: 400} );
	Cufon.replace('.column > h3', { fontFamily: 'Bebas', fontWeight: 400} );
	Cufon.replace('#comments h3', { fontFamily: 'Bebas', fontWeight: 400} );
	Cufon.replace('.photo-album-item h2', { fontFamily: 'champagne', fontWeight: 400, textShadow: '0px 1px rgba(0,0,0,1)'} );
	
	jQuery(document).ready(function($)
	{	
		$('ul.sf-menu').superfish({ 
			delay:       200,                           
			speed:       0,                         
			autoArrows:  true,                          
			dropShadows: false
		});

		$('#slideshow-container').cycle(
		{ 
			fx:     'fade',
			speed:   1500, 
			timeout: 5000, 
			easing: 'easeInOutExpo',
			next:   '#slideshow'
		});
		
		
		$('#featured-slideshow .slideshow')
		.before('<div id="featured-pagination"></div>') 
		.cycle(
		{ 
			fx:     'fade',
			speed:   1500, 
			timeout: 4800, 
			easing: 'easeInOutExpo',
			pager:	'#featured-pagination'
		});
		
				
		$(".teaser a").hover( function()
		{
			$(this).find(".overlay").stop(true).animate({opacity:1}, 500);
		},
		function()
		{
			$(this).find(".overlay").stop(true).animate({opacity:0}, 500);
		});		

		
		$(".photo-album-item a").hover( function()
		{
			$(this).find(".vintage").stop(true).animate({opacity:0}, 500, 'easeInQuad');
		},
		function()
		{
			$(this).find(".vintage").stop(true).animate({opacity:1}, 500);
		});
		
	});
	
	
	/* FancyBox --------------------------------- */
	jQuery(function()
	{

		jQuery.fn.getTitle = function()
		{
			var arr = jQuery("a.fancybox");
			jQuery.each(arr, function()
			{
				var title = jQuery(this).children("img").attr("title");
			jQuery(this).attr('title',title);
			});
		}

		// Supported file extensions
		//var thumbnails = 'a:has(img)[href$=".jpg"], a:has(img)[href$=".png"]';
		var thumbnails = 'a:has(img)[href$=".jpg"]';
	
		jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();

			jQuery("a.fancybox").fancybox(
			{
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'easingIn' : 'easeInOutExpo', 
				'easingOut' : 'easeInOutExpo',
				'changeFade' : 0
		});
	});
	
	
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
