

$(document).ready(function(){
$('.slideshow').cycle({
		fx: 'fade',
    speed: 5000
	});
	$("a[rel=residence1]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence2]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'     : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence3]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence4]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence5]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence6]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence7]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence8]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence9]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence10]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence11]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});
	
	$("a[rel=residence12]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});		

	$("a[rel=residence13]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' +  title + ' - Image ' + (currentIndex + 1) + ' / ' + currentArray.length  + '</span>';
		}
	});	

});

