		$(document).ready(function() {
			$("#video01").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'type'				: 'iframe'
			});
			$("#video02").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'type'				: 'iframe'
			});
			$("#video03").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 640,
				'height': 480,
				'type'				: 'iframe'
			});
			$(".solutions-vid").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 640,
				'height': 360,
				'type'				: 'iframe'
			});
			$(".mckesson-vid").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 640,
				'height': 363,
				'type'				: 'iframe'
			});
			$("#form01").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 686,
				'height': 560,
				'type'				: 'iframe'
			});
			$("#form02").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 686,
				'height': 560,
				'type'				: 'iframe'
			});
			$("#form03").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 686,
				'height': 560,
				'type'				: 'iframe'
			});
if(0) {
			$("#login").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 507,
				'height': 236,
				'type'				: 'iframe'
			});
}
			$("#login2").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 526,
				'height': 243,
				'type'				: 'iframe'
			});
			$("#login3").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 507,
				'height': 236,
				'type'				: 'iframe'
			});
			$("#quote").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 686,
				'height': 575,
				'type'				: 'iframe'
			});
			$("#info-thankyou").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 686,
				'height': 140,
				'type'				: 'iframe'
			});
			$("#mobile-crm").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'type'				: 'image'
			});
			$(".image-box").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'type'				: 'image'
			});
			$("#judy-vid").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 640,
				'height': 360,
				'type'				: 'iframe'
			});
			$("#partner-form").fancybox({
				'autoScale'			: false,
				'scrolling'			: 'no',
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'width' : 686,
				'height': 538,
				'type'				: 'iframe'
			});
			$("a[rel=image-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=increase-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=grow-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=target-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'orig': $('#target-anchor'),
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=improve-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=strengthen-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=protect-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=monitor-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=decrease-gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'cyclic' : true,
				'padding'			: 0,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$(".image-galleryBtn").fancybox({
				'autoScale'			: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'padding'			: 0,
				'type'				: 'image'
			});
		
		$("#increase-gallery").click(function() {
		$.fancybox([
			{
				'href'	: 'http://theadamgrp.com/test/pm/images/solutions_slideshows/Slideshow1_Increase1.jpg',
				'title'	: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit'
			},
			{
				'href'	: 'http://theadamgrp.com/test/pm/images/solutions_slideshows/Slideshow1_Increase2.jpg',
				'title'	: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit'
			},
			{
				'href'	: 'http://theadamgrp.com/test/pm/images/solutions_slideshows/Slideshow1_Increase3.jpg',
				'title'	: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit'
			}
			
		], {
			'autoScale'			: true,
			'padding'			: 0,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'type'              : 'image',
			'titlePosition' 	: 'over',
			'cyclic' : true,
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
		});
	});
});

