// CUFON 
Cufon.replace('h1, h2, h3' , {color: '-linear-gradient(#333, #666)'} ); // Works without a selector engine
Cufon.replace('.footer h3', {color: '#7b7b7b', textShadow: '2px 2px #000'} );
Cufon.replace('#main-nav', {color: '#fff', textShadow: '2px 2px #000'} ); // Requires a selector engine for IE 6-7, see above
Cufon.replace('.page .promobutton span');

// FANCYBOX
$(document).ready(function() {
	$("a[rel=lightbox]").fancybox({
		'transitionIn'		: 'none',
		'overlayColor'		: '#000',
		'overlayOpacity'  : '0.8',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
	return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
});

// JQUERY CYCLE PLUGIN
var randomnumber=Math.floor(Math.random()*5);
$(document).ready(function() {
	$('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		startingSlide: randomnumber // zero-based 
	});
});
