$(document).ready(function() {
  
  $('.slides').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: 500,
		timeout: 7000
	});

  $("a[rel=portfolio]").fancybox({
  	'transitionIn'		: 'none',
  	'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>';
  	}
  });

});
