$(document).ready(function() {

			$("a[class=youtube]").click(function() {
				$.fancybox({
					'padding'		: 0,
					'opacity'		: true,
					'overlayShow'	: true,
					'overlayOpacity'	: 0.9,
					'overlayColor'		: '#000',
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic',
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic',
					'autoScale' : true,
					'autoDimensions' : true,
					'centerOnScroll' : true,
					'title'			: this.title,
					'width'		: 680,
					'height'		: 495,
					'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
					'type'			: 'swf',
					'swf'			: {
			   							 'wmode'		: 'transparent',
											 'allowfullscreen'	: 'true'
											}
				});
				return false;
			});			
			
			$("a[class=youtube2]").fancybox({
					'padding'		: 0,
					'opacity'		: true,
					'overlayShow'	: true,
					'overlayOpacity'	: 0.9,
					'overlayColor'		: '#000',
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic',
					'autoScale'		: true,
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic',
					'autoDimensions' : true,
					'centerOnScroll' : true,
					'width'		: 680,
					'height'		: 495,
					'type'			: 'iframe'
				});

			
			$("a#example4").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.9
			});
			
			$("a[rel=fancybox]").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',				
				'overlayColor'		: '#000',
				'scrolling'			: 'no',
				'autoScale' : true,
				'autoDimensions' : true,
				'centerOnScroll' : true,
				'hideOnOverlayClick' : false,
				'hideOnContentClick' : false,
				'overlayOpacity'	: 0.9
			});
			
			$("a[class=bso]").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',				
				'overlayColor'		: '#000',
				'scrolling'			: 'no',
				'autoScale' : true,
				'autoDimensions' : true,
				'centerOnScroll' : true,
				'hideOnOverlayClick' : false,
				'hideOnContentClick' : false,
				'overlayOpacity'	: 0.9
			});
			
			$("a[class=fancybox-image]").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'image',				
				'overlayColor'		: '#000',
				'scrolling'			: 'no',
				'autoScale' : true,
				'autoDimensions' : true,
				'centerOnScroll' : true,
				'hideOnOverlayClick' : false,
				'hideOnContentClick' : false,
				'overlayOpacity'	: 0.9
			});

			$("a[class=fancybox-news]").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',				
				'overlayColor'		: '#000',
				'scrolling'			: 'Auto',
				'autoScale' : true,
				'autoDimensions' : true,
				'centerOnScroll' : true,
				'hideOnOverlayClick' : false,
				'hideOnContentClick' : false,
				'width' : 750,
				'height' : 670,
				'overlayOpacity'	: 0.9
			});
			
			$("a[class=leermas]").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',				
				'overlayColor'		: '#000',
				'scrolling'			: 'Auto',
				'autoScale' : true,
				'autoDimensions' : true,
				'centerOnScroll' : true,
				'hideOnOverlayClick' : false,
				'hideOnContentClick' : false,
				'width' : 750,
				'height' : 670,
				'overlayOpacity'	: 0.9
			});

			$("a[class=readmore]").fancybox({
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',				
				'overlayColor'		: '#000',
				'scrolling'			: 'Auto',
				'autoScale' : true,
				'autoDimensions' : true,
				'centerOnScroll' : true,
				'hideOnOverlayClick' : false,
				'hideOnContentClick' : false,
				'width' : 750,
				'height' : 670,
				'overlayOpacity'	: 0.9
			});
		
			$("a[rel=group01]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		});
