// JavaScript Document

// Start closure to prevent namespace conflicts
;(function($) {

// Perform initial setup tasks when DOM is ready
$(document).ready( function() {
	setupNavigationLinks();
	hompageFMA();
});

// Set up main navigation mouseover menus
function setupNavigationLinks() {
	$('.nav-menu').each(function() {
		var menu = $(this);
		
		menu.hover(function() {
			menu.addClass('hover');
		}, function() {
			menu.removeClass('hover');
		});
	});
}

function hompageFMA() {
	$('.slideshow').cycle({ 
		fx:     'fade', 
		speed:  'slow', 
		timeout: 6000, 
		pager:  '#slidenav',
		next:   '#next',  // ADDED BOTH!
		prev:   '#prev',
		pause:   1
	});	
}




// End closure
})(jQuery);



