
	//Cufon Font replacement for h2 Headings
	Cufon.replace('h2,legend'); 

	$(document).ready(function() {
	
		//Nivo Slider
		$('#slider').nivoSlider({
			effect:'fade',
			animSpeed:300, 
			pauseTime:3000,
			controlNav:false
		});


			
		//About FancyBox & NewsLetter Fancybox
		$("a#nl-inline,a#about-inline").fancybox({
			'transitionIn'		:'elastic',
			'overlayShow'		:false,
			'speedIn'			:300,
			'padding'			:0,
			'titleShow':false
		});
		
		//ContactForm FancyBox
		$("a#c-inline").fancybox({
			'transitionIn'		:'elastic',
			'overlayShow'		:false,
			'speedIn'			:300,
			'titleShow':false
		});
		
		//Screenshots FancyBox
		$("a[rel=s-thumbs]").fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'titlePosition' 	: 'over',
			'speedIn'		:	300, 
			'speedOut'		:	300, 
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
		});	
	});
