$(document).ready(function() {
			$("a.kullanim").fancybox({
				'titlePosition'		: 'none',
				'autoScale'			: false,
				'padding'			: 0,
			
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'none',
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Bölüm ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>'; }
			});
			
			$("a[rel=gallery_portre]").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: true,
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'none',
				'type'				: '' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"># ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
				//type : iframe
			});
			
				$("a[rel=gallery_webs]").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: true,
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'none',
				'type'				: '' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"># ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
				//type : iframe
			});
			
							$("a.gallery_webs_links").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: true,
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'none',
				'type'				: 'iframe' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"># ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
				//type : iframe
			});
			
			$(".gallery_panoramalar").fancybox({
				'autoScale'			: false,
				'width'				: '100%',
				'height'			: '100%',
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
				'type'				: '' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' +  ( title ) + ' (Çıkış için) Esc Tuşu</span>';
				}
				//type : iframe
			});
			$(".gallery_360").fancybox({
				'autoScale'			: true,
				'width'				: '100%',
				'height'			: '100%',
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
				'type'				: 'iframe' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">(Çıkış için) Esc Tuşu ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
				//type : iframe
			});
			
			$("a[rel=gallery_afisgrafik]").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: true,
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'none',
				'type'				: '' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"># ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
				//type : iframe
			});
			
			$(".gallery_fotograflar").fancybox({
				'width'				: '99%',
				'height'			: '95%',
				'autoScale'			: true,
				'padding'			: 0,
				'opacity'		: true,
				'overlayShow'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'none',
				'type'				: 'iframe' ,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"># ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
				//type : iframe
			});
			
		});
