jQuery(document).ready(function() {
$("a#video").fancybox({
   'hideOnContentClick': false,
   'zoomSpeedIn':  100,
   'zoomSpeedOut': 50,
   'frameWidth': 640,
   'frameHeight': 480,
   'overlayShow': true,
   'overlayOpacity': 0.75
   
}); 
	
$(".playlist").fancybox({ 
			'padding':2,
			'overlayColor': '#000',
			'overlayOpacity':0.9,
			'hideOnContentClick': false,
			'scrolling':'no',
			'callbackOnClose': function() {
       $("#fancy_content").empty();
       } 
			});

$("a[rel=image_set]").fancybox({
'padding':0,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'speedIn': 200,
	'speedOut': 200,
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});
$("#ired").fancybox({
'padding':0,
	'overlayOpacity':0.8,
	'overlayColor': '#800517',
		'speedIn': 200,
	'speedOut': 200,
		'width'				: '90%',
		'height'			: '90%',
        'autoScale'     	: false,
		'type'				: 'iframe'
	});
$("#iblue").fancybox({
'padding':0,
	'overlayOpacity':0.8,
	'overlayColor': '#000022',
		'speedIn': 200,
	'speedOut': 200,
		'width'				: '90%',
		'height'			: '90%',
        'autoScale'     	: false,
		'type'				: 'iframe'
	});		
	

	$("a#example1").fancybox({
'padding':0,
'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
		'titleShow'     : false,
	});

$("#youtube").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'title'			: this.title,
			'width'			: 560,
			'height'		: 340,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			    'wmode'				: 'transparent',
				'allowfullscreen'	: 'true',
			}
		});

		return false;
	});	
$("a#flv").fancybox({ 
'padding':0,
'overlayOpacity':0.6,
						'hideOnContentClick': false,
			'callbackOnClose': function() {
       $("#fancy_content").empty();
       } 
			});
$(".movie").fancybox({ 
'padding':7,
'height': 350,
'frameHeight': 600,
 'overlayOpacity':0.9,
						'hideOnContentClick': false,
'scrolling':'no',
			'callbackOnClose': function() {
       $("#fancy_content").empty();
       } 
			});
$("a#flow").fancybox({ 
'padding':0,
			'overlayOpacity':0.9,
			'hideOnContentClick': false,
			'scrolling':'no',
			'callbackOnClose': function() {
       $("#fancy_content").empty();
       } 
			});
$("a#youtube1").fancybox({ 
'padding':0,
			'frameWidth': 600, 'frameHeight': 344, 'overlayOpacity':0.6,
			'hideOnContentClick': false,
			'callbackOnClose': function() {
       $("#fancy_content").empty();
       } 
			});	
$('.swf').fancybox({
		'padding'			: 0,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'autoScale'     	: false,
		'type'				: 'swf',
		'width'				: 600,
		'height'			: 365,
		'scrolling'   		: 'no',
		'swf'			: {
			    'wmode'				: 'transparent',
				'allowfullscreen'	: 'true'
			}
		
	});




});
