jQuery.noConflict();

// Run on DOM ready
jQuery(function() {

	// PREPARE INTERFACE ELEMENTS (for animation on full content load)
	// Logo
	jQuery('#logo').hide();
	// Navigation bar
	jQuery('#nav').hide();
	// Navigation notch
	jQuery('#nav_notch img').css('margin-left','-7px');
	// Slides
	jQuery('.fadein_slide').css('opacity',0);
	
});

// Run on full content load
jQuery(window).load(
	function() {

		// ANIMATE INTERFACE ELEMENTS
		// Logo
		jQuery('#logo').fadeIn(1000);
		// Navigation bar
		jQuery('#nav').fadeIn(1000);
		// Navigation notch
		jQuery('#nav_notch img').animate(
			{ opacity: 1 }, 7000 // Force delay
		).animate(
			{ marginLeft: '0' }, 500
		);
		// Slides
		for (var i = 0; i <= 8; i++) {
			jQuery('#fadein_slide_' + i).animate(
				{ opacity: 0 }, 500 + (500 * i) // Force delay
			).animate(
				{ opacity: 1 }, 1500
			);
		}
		
		// Zoom image
		setTimeout('zoom_feature()',6000);

	}
);

// Zoom in featured image
function zoom_feature() {
	jQuery('.nozoom').fadeOut();
	jQuery('#zoom_slide').parent().animate(
		{
			width: '720px',
			height: '480px',
			left: '0',
			top: '0'
		}, 1000
	);
	jQuery('#zoom_slide').animate(
		{
			width: '100%',
			height: '100%'
		}, 1000
	);
	return false;
}

