// --------------------------------
// !BOOTSTRAP
// --------------------------------
jQuery(document).ready(function() {
	
// -------------------------------------------------------
// CUSTOMIZE VALUES BELOW AS NECESSARY
	
	var loadIndicatorConfig = {
		"containerId": "#load-indicator",
		"content": {
			"imageSrc": "/images/load-indicator.gif",
			"text": "Loading..."
		}	
	};
	
	var mouseTooltipConfig = {
		"containerId": "#mouse-tooltip",
		"content": {
			"start": {
				"label": "End",
				"offsetX": 0,
				"offsetY": 20
			},
			"end": {
				"label": "End",
				"offsetX": 0,
				"offsetY": 20
			},
			"prev": {
				"label": "Previous",
				"offsetX": 0,
				"offsetY": 20
			},
			"next": {
				"label": "Next",
				"offsetX": 0,
				"offsetY": 20
			}
		}
	};

	var bgGalleryConfig = {
		"autoplayInterval": 5000,
		"transitionLength": 500,
		"imageContainerId": "#bg-img-container",
		"mouseAreaId": "#bg-gallery-mouse-area", // the background image container cannot be used due to its position property
		"targetImageDimensionRatio": 1600/1200,
		"navigationContainerId": "#bg-gallery-navigation",
		"captionContainerId": "#bg-gallery-caption"
	};

	var contentConfig = {
		"containerId": "#content",
		"descriptionContainerId": "#description",
		"listContainerId": "#list"
	};

	var identityContainerId = "#identity";
	var mainNavigationContainerId = "#main-nav";
	var mouseTrapClass = ".mouse-trap";


// SHOULD NOT HAVE TO CUSTOMIZE ANYTHING BELOW THIS POINT
// -------------------------------------------------------



	var config = {
		"identityContainerId": identityContainerId,
		"mainNavigationContainerId": mainNavigationContainerId,
		"mouseTrapClass": mouseTrapClass,
		"mouseTooltip": mouseTooltipConfig,
		"loadIndicator": loadIndicatorConfig,
		"content": contentConfig,
		"bgGallery": bgGalleryConfig
	};

	$.log("BOOTSTRAP");
	
	var page = jQuery("body").GYROPage(config);
	

});

// --------------------------------
// !UTILITIES
// --------------------------------

// Log output to console (firebug/safari inspector/etc.)
jQuery.log = function(message) {
  if(window.console) {
     window.console.log(message);
  }
};




