//call to action overlays

$(document).ready(function() {
			

			$(".iframe_c2a-contact").fancybox({
				'height': 430,
				'width': 500,
				'autoScale'		: false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'scrolling'		: 'no',
				'overlayColor'	:'#666',
				'type'			: 'iframe'
				
			});
			
			$(".iframe_c2a-demo").fancybox({
				'height': 480,
				'width': 500,
				'autoScale'		: false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'scrolling'		: 'no',
				'overlayColor'	:'#666',
				'type'			: 'iframe'
				
			});
			
						
			$("a.overlay-image").fancybox({
				'titlePosition'	: 'over'
			});


			$("a[rel=gallery1]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
				$("a[rel=gallery2]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
				
					$("a[rel=gallery3]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			

		});


