
 var link = ''; 
 jQuery(document).ready(function() {
	jQuery("a.overlay-flash").fancybox({
		'width' : '550px',
		'height' : '550px',
		'autoScale' : true,
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		//'type' : 'iframe',
		'padding' : 10,
		'zoomOpacity' : true,
		'zoomSpeedIn' : 500,
		'zoomSpeedOut' : 200,
		'overlayOpacity' : 0.75,
		'hideOnContentClick' : true
	});
});

	jQuery(document).ready(function() {
		 $("a.websites").fancybox({
		'width' : $(window).width() - 90,
		'height' : $(window).height() - 50,
		'autoScale' : false,
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'type' : 'iframe',
		'padding' : 0,
		'zoomOpacity' : true,
		'zoomSpeedIn' : 500,
		'zoomSpeedOut' : 500,
		'overlayOpacity' : 0.85,
		'hideOnContentClick' : false
	});
	});
	
	jQuery(document).ready(function() {
		 $("a.websitesss").fancybox({
		'width' : $(window).width() - 300,
		'height' : $(window).height() - 200,
		'autoScale' : false,
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'type' : 'iframe',
		'padding' : 0,
		'zoomOpacity' : true,
		'zoomSpeedIn' : 500,
		'zoomSpeedOut' : 500,
		'overlayOpacity' : 0.85,
		'hideOnContentClick' : false
	});
	});
	
	jQuery(document).ready(function() {
		 $("a.websites_social").fancybox({
		'width' : '100%',
		'height' : '100%',
		'autoScale' : false,
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'type' : 'inline',
		'padding' : '0',
		'zoomOpacity' : true,
		'zoomSpeedIn' : 500,
		'zoomSpeedOut' : 500,
		'overlayOpacity' : 0.9,
		'hideOnContentClick' : false
	});
	});
	
	jQuery(document).ready(function() {
		 $("a.websitesaa55").fancybox({
		'width' : '95%',
		'height' : '100%',
		'autoScale' : false,
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'type' : 'iframe',
		'padding' : 0,
		'zoomOpacity' : true,
		'zoomSpeedIn' : 500,
		'zoomSpeedOut' : 500,
		'overlayOpacity' : 0.75,
		'hideOnContentClick' : false
	});
	});

	jQuery(document).ready(function() {
		 $("a.webs").fancybox({
			'width' : '80%',
			'height' : '100%',
			'autoScale' : false,
			'transitionIn' : 'elastic',
			'transitionOut' : 'elastic',
			'type' : 'iframe',
			'title': 'Select a state to view the Active Adult Communities in it.',
//			'titlePosition' : 'over',
			'padding' : 15,
			'zoomOpacity' : true,
			'zoomSpeedIn' : 500,
			'zoomSpeedOut' : 500,
			'overlayOpacity' : 0.75,
			'hideOnContentClick' : false,
			'onClosed': function() {
				link = localStorage.getItem("link");
				if(link != null){
					localStorage.clear();
					parent.location = link;
				}
			}
		});
	});
	
	jQuery(document).ready(function() {

	/* This is basic - uses default settings */
	
	jQuery("a#single_image").fancybox();
	
	/* Using custom settings */
	
	jQuery("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	jQuery("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
});

