$(document).ready(function() {
			/*
			*   Examples - images
			*/
			
			$("a[rel=herh_norm_group]").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>';
				},
				'onComplete'	:	function() {
					$("#fancybox-wrap").hover(function() {
						$("#fancybox-title").show();
					}, function() {
						$("#fancybox-title").hide();
					});
				}
			});
			
			$(".iframefancy").fancybox({
				'autoScale'			: true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".iframedo").fancybox({
				'autoScale'			: false,
				'width'				: 550,
				'height'			: 200,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".silkframe").fancybox({
				'autoScale'			: false,
				'centerOnScroll'	: true,
				'width'				: 200,
				'height'			: 500,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".pmpopup").fancybox({
				'autoScale'			: false,
				'centerOnScroll'	: true,
				'width'				: 500,
				'height'			: '70%',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".loginbox").fancybox({
				'width'				: 280,
				'height'			: 200,
				'scrolling'			: 'no',
				'titleShow'			: false,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'	: true,
				'hideOnOverlayClick' : false
			});
			
			$("a#herh_img").fancybox({
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			$("a.herh_img").fancybox({
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			
			$("#[id=herh_popup]").fancybox({
				'width'				: 580,
				'height'			: '85%',
				'titleShow'			: false,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'padding'			: 5,
				'centerOnScroll'	: true,
				'hideOnOverlayClick' : false
			});
			
			$("a[rel=mg-c_galery_group]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'overlayOpacity' 	: '0.7',
				'overlayColor' 		: '#000',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				},
				'onComplete'	:	function() {
					$("#fancybox-wrap").hover(function() {
						$("#fancybox-title").show();
					}, function() {
						$("#fancybox-title").hide();
					});
				}
			});
			
			$("#21evevideostyle").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'overlayOpacity' 	: '0.7',
				'overlayColor' 		: '#808080',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
			
			
	$("a[rel=uppio_usercenter_img]").fancybox({
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'speedIn'			: 'normal',
		'speedOut'			: 'normal',
		'changeFade'		: 'normal',
		'changeSpeed'		: 'normal',
		'overlayOpacity' 	: '0.7',
		'overlayColor' 		: '#000000',
		'showCloseButton' 	: false,
		'titleShow' 		: false,
		'titlePosition' 	: 'inside',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		},
		'onComplete'	:	function() {
			$("#fancybox-wrap").hover(function() {
			$("#fancybox-title").show();
			}, function() {
			$("#fancybox-title").hide();
			});
		}
	});
			
			$("a#example2").fancybox({
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a[rel=example_group]").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>';
				},
				'onComplete'	:	function() {
					$("#fancybox-wrap").hover(function() {
						$("#fancybox-title").show();
					}, function() {
						$("#fancybox-title").hide();
					});
				}
			});
			
			$("#various3").fancybox({
				'width'				: '50',
				'height'			: '75%',
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$("#various4").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
			
			

		});
