jQuery(document).ready(function() {
	if (typeof jQuery.fn.fancybox != "undefined") {
		jQuery("a.fancybox").fancybox({
			'titlePosition' 	: 'over'
		});
	

		
		jQuery("p.fancybox a").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over'
		});
		
		 jQuery("a.fancybox").fancybox({
			'type'				: 'iframe',
			'width'				: 600,
			'height'			 	: 480		
		});
		

		/* This is basic - uses default settings */
		jQuery(".fancybox, a[rel=lightbox]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'	: 'none',
			'titlePosition' 	: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Bild ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
		});
		
	}
});
/*	$(document).ready(function() {
		/* This is basic - uses default settings */
/*		$("a[rel=example_group]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Bild ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
		});
	});

*/
