/* Global FancyBox and jQuery Cycle Scripts */

$(document).ready(function() {
	
	/* Cycle Wide Index */
	$(".picswide").cycle({
    	fx: 'fade',
		timeout: 6000,
		speed: 950,
		delay: 0,
		pause: 1,
		random: 1
  	});

	/* Cycle Normal Global */
	$(".pics").cycle({
    	fx: 'fade',
		timeout: 6000,
		speed: 950,
		delay: 0,
		pause: 1,
		random: 1
  	});
	
	/* Fancybox 1.3.1 New Homes Listings */
	$("a.fancynewhome").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'overlayShow': true,
		'overlayOpacity': 0.75,
		'centerOnScroll': true,
		'enableEscapeButton': true,
		'hideOnContentClick': true,
		'hideOnOverlayClick': true,
		'titleshow': true,
		'cyclic': true,
		'titlePosition': 'over',
		'transitionIn': 'none',
		'transitionOut': 'none',
		'changeSpeed': 100
	});
	/* Park Model Specs iFrame */
	$(".pmspecs").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'width': 750,
		'height': 480,
		'overlayShow': true,
		'overlayOpacity': 0.75,
		'centerOnScroll': true,
		'enableEscapeButton': true,
		'hideOnContentClick': true,
		'hideOnOverlayClick': true,
		'transitionIn': 'none',
		'transitionOut': 'none'
	});
	
	/* CanadaBuilds Specs iFrame */
	$(".cbspecs").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'width': 402,
		'height': 480,
		'overlayShow': true,
		'overlayOpacity': 0.75,
		'centerOnScroll': true,
		'enableEscapeButton': true,
		'hideOnContentClick': true,
		'hideOnOverlayClick': true,
		'transitionIn': 'none',
		'transitionOut': 'none'
	});
	
	/* Fancybox Standard Global */
	$("a.fancy").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'enableEscapeButton': true,
		'overlayShow': true,
		'centerOnScroll': true,
		'overlayOpacity': 0.75
	});
	
	/* Fancybox Hart Listings */
	$("a.fancyhart").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'frameWidth': 900,
		'frameHeight': 480,
		'enableEscapeButton': true,
		'overlayShow': true,
		'centerOnScroll': true,
		'hideOnContentClick': true,
		'overlayOpacity': 0.75
	});
	
	/* Hart Listings on NEW HOMES page */
	$("a.fancyhartnewhome").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'width': 900,
		'height': 480,
		'enableEscapeButton': true,
		'overlayShow': true,
		'centerOnScroll': true,
		'hideOnContentClick': true,
		'overlayOpacity': 0.75
		});
	
	/* Fancybox jQuery Contact Form Window */
	$("a.fancycontactform").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'frameWidth': 580,
		'frameHeight': 510,
		'enableEscapeButton': false,
		'overlayShow': true,
		'centerOnScroll': true,
		'hideOnContentClick': false,
		'hideOnOverlayClick': false,
		'overlayOpacity': 0.75
	});
	
	/* Fancybox Northlander Video Window */
	$("a.northlandervideo").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'frameWidth': 640,
		'frameHeight': 480,
		'enableEscapeButton': true,
		'overlayShow': true,
		'centerOnScroll': true,
		'hideOnContentClick': false,
		'overlayOpacity': 0.75
	});
	
	/* Fancybox Northlander ParkModel Descriptions */
	$("a.fancyparkmodel").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	75,
		'frameWidth': 402,
		'frameHeight': 480,
		'enableEscapeButton': true,
		'overlayShow': true,
		'centerOnScroll': true,
		'hideOnContentClick': true,
		'overlayOpacity': 0.75
	});
	
});