jQuery(document).ready(function() {


	$("#youtube-paramount").click(function() {
		$.fancybox({
			'padding'		: 10,
			'autoScale'		: false,
			'titleShow'     : false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'easingIn'      : 'easeOutBack',
			'easingOut'     : 'easeInBack',
			'width'			: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			    'wmode'				: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

		return false;
	});
	
	$("#youtube-bellagio").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
    
    $("#youtube-themanor").click(function() {
    		$.fancybox({
    			'padding'		: 10,
    			'autoScale'		: false,
    			'titleShow'     : false,
    			'transitionIn'	: 'fade',
    			'transitionOut'	: 'fade',
    			'easingIn'      : 'easeOutBack',
    			'easingOut'     : 'easeInBack',
    			'width'			: 680,
    			'height'		: 495,
    			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
    			'type'			: 'swf',
    			'swf'			: {
    			    'wmode'				: 'transparent',
    				'allowfullscreen'	: 'true'
    			}
    		});
    
    		return false;
    	});

	$("#youtube-thevue").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
		
	$("#youtube-savoy").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
		
	$("#youtube-tabletalk").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
		
	$("#youtube-pureevents").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
	
	$("#youtube-baskets").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
	
	$("#youtube-s4").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
	
	$("#youtube-engine8media").click(function() {
			$.fancybox({
				'padding'		: 10,
				'autoScale'		: false,
				'titleShow'     : false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'easingIn'      : 'easeOutBack',
				'easingOut'     : 'easeInBack',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				    'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
});

$("#studio54").click(function() {
    	$.fancybox({
    		//'orig'			: $(this),
    		'padding'			: 10,
    		'href'				: '../images/byPeterandPauls-Studio-54-Postcard.jpg',
    		'transitionIn'		: 'fade',
    		'transitionOut'		: 'fade',
    		'type'              : 'image'
    	});
    });
    
$("a[rel=gallery-fancy]").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 + '</span>';
		}
	});


$("#BaseballTournament2009").click(function() {
		$.fancybox([
			'./photogalleries/2010_07.BaseballTournament/images/001.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/002.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/003.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/004.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/005.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/006.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/007.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/008.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/009.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/010.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/011.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/012.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/013.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/014.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/015.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/016.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/017.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/018.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/019.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/020.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/021.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/022.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/023.jpg',
			'./photogalleries/2010_07.BaseballTournament/images/024.jpg',

		], {
			'padding'			: 10,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'type'              : 'image',
		});
	});
	
	$("#EarthDay2009").click(function() {
			$.fancybox([
				'./photogalleries/2009_05.EarthDay/images/001.jpg',
				'./photogalleries/2009_05.EarthDay/images/002.jpg',
				'./photogalleries/2009_05.EarthDay/images/003.jpg',
				'./photogalleries/2009_05.EarthDay/images/004.jpg',
				'./photogalleries/2009_05.EarthDay/images/005.jpg',
				'./photogalleries/2009_05.EarthDay/images/006.jpg',
				'./photogalleries/2009_05.EarthDay/images/007.jpg',
				'./photogalleries/2009_05.EarthDay/images/008.jpg',
				'./photogalleries/2009_05.EarthDay/images/009.jpg',
				'./photogalleries/2009_05.EarthDay/images/010.jpg',
				'./photogalleries/2009_05.EarthDay/images/011.jpg',
				'./photogalleries/2009_05.EarthDay/images/012.jpg',
				'./photogalleries/2009_05.EarthDay/images/013.jpg',
				'./photogalleries/2009_05.EarthDay/images/014.jpg',
				'./photogalleries/2009_05.EarthDay/images/015.jpg',
				'./photogalleries/2009_05.EarthDay/images/016.jpg',
				
	
			], {
				'padding'			: 10,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'              : 'image',
			});
		});
		
		$("#EarthDay2010").click(function() {
				$.fancybox([
					'./photogalleries/2009_05.EarthDay/images/001.jpg',
					'./photogalleries/2009_05.EarthDay/images/002.jpg',
					'./photogalleries/2009_05.EarthDay/images/003.jpg',
					'./photogalleries/2009_05.EarthDay/images/004.jpg',
					'./photogalleries/2009_05.EarthDay/images/005.jpg',
					'./photogalleries/2009_05.EarthDay/images/006.jpg',
					'./photogalleries/2009_05.EarthDay/images/007.jpg',
					'./photogalleries/2009_05.EarthDay/images/008.jpg',
					'./photogalleries/2009_05.EarthDay/images/009.jpg',
					'./photogalleries/2009_05.EarthDay/images/010.jpg',
					'./photogalleries/2009_05.EarthDay/images/011.jpg',
					'./photogalleries/2009_05.EarthDay/images/012.jpg',
					'./photogalleries/2009_05.EarthDay/images/013.jpg',
					'./photogalleries/2009_05.EarthDay/images/014.jpg',
					'./photogalleries/2009_05.EarthDay/images/015.jpg',
					
		
				], {
					'padding'			: 10,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
				});
			});
			
		
		$("#HHFANightINPlaka").click(function() {
				$.fancybox([
					'./photogalleries/2009_06.HHFANightInPlaka/images/001.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/002.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/003.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/004.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/005.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/006.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/007.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/008.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/009.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/010.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/011.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/012.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/013.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/014.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/015.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/016.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/017.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/018.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/019.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/020.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/021.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/022.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/023.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/024.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/025.jpg',
					'./photogalleries/2009_06.HHFANightInPlaka/images/026.jpg',
		
				], {
					'padding'			: 10,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
				});
			});
		
		$("#CharityGolfClassic2009").click(function() {
				$.fancybox([
					'./photogalleries/2009_07.CharityGolfClassic/images/001.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/002.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/003.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/004.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/005.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/006.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/007.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/008.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/009.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/010.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/011.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/012.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/013.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/014.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/015.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/016.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/017.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/018.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/019.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/020.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/021.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/022.jpg',
					'./photogalleries/2009_07.CharityGolfClassic/images/023.jpg',
					
				], {
					'padding'			: 10,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
				});
			});
		
	$("#BigArtForLittleMinds").click(function() {
			$.fancybox([
				'./photogalleries/2009_10.BigArtForLittleMinds/images/001.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/002.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/003.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/004.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/005.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/006.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/007.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/008.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/009.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/010.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/011.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/012.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/013.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/014.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/015.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/016.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/017.jpg',
				'./photogalleries/2009_10.BigArtForLittleMinds/images/018.jpg',
				
			], {
				'padding'			: 10,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'              : 'image',
			});
		});
