$(document).ready(function() {

	$.fn.delay = function(time, callback){
    	jQuery.fx.step.delay = function(){};
    	return this.animate({delay:1}, time, callback);
	}
	
																		// draggable menu
	$('#paper').draggable({ cursor: 'pointer', scroll: false });
	
																		//fancybox	
	$(".fe").click(function() {
		$.fancybox({
			'href'			: 'content/santafe.html',
			'titleShow'     : false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
            'overlayOpacity': '0.7',
            'overlayColor'	: '#000000',
            'speedIn'		: 500,
            'speedOut'		: 300,
            'type'          : 'iframe',
            'width'			: 900,
            'height'		: 400
		});
    });
        
    $(".reviews").click(function() {
		$.fancybox({
			'href'			: 'content/reviews.html',
			'titleShow'     : false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
            'overlayOpacity': '0.7',
            'overlayColor'	: '#000000',
            'speedIn'		: 500,
            'speedOut'		: 300,
            'type'          : 'iframe',
            'width'			: 900,
            'height'		: 400
		});
    });
    
    $(".photo").click(function() {
		$.fancybox([
			'images/gallery/one.jpg',
			'images/gallery/two.jpg',
			'images/gallery/three.jpg',
			'images/gallery/four.jpg',
			'images/gallery/five.jpg',
			'images/gallery/six.jpg',
			'images/gallery/seven.jpg',
			'images/gallery/eight.jpg',
			'images/gallery/nine.jpg',
			'images/gallery/ten.jpg',
			'images/gallery/eleven.jpg',
			'images/gallery/twelve.jpg',
			'images/gallery/thirteen.jpg',
			'images/gallery/fourteen.jpg',
			'images/gallery/fifteen.jpg',
			'images/gallery/sixteen.jpg'
		], {
			'titleShow'     : false,
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'easingIn'      : 'easeOutQuint',
			'easingOut'     : 'easeInBack',
			'overlayOpacity': '0.7',
            'overlayColor'	: '#000000',
			'type'          : 'image',
			'cyclic'		: true,
			'speedIn'		: 500,
            'speedOut'		: 300,
            'changeFade'	: 0
		});
	});
		
});

