var carousel =
{

	init: function()
	{
		$('#homepage-image-set-one').jcarousel({ wrap:'circular', scroll:1, auto:6 });
		$('#feature-image-set-one').jcarousel({ wrap:'circular', scroll:1 });
		
		$('#feature-image-set-1').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-2').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-3').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-4').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-5').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-6').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-7').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-8').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-9').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-10').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-11').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-12').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-13').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-14').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-15').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-16').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-17').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-18').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-19').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-20').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-21').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-22').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-23').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-24').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-25').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-26').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-27').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-28').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-29').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-30').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-31').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-32').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-33').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-34').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-35').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-36').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-37').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-38').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-39').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-40').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-41').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-42').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-43').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set-44').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-one').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-two').jcarousel({ wrap:'circular', scroll:1 });
		$('#feature-image-set').jcarousel({	wrap:'circular', scroll:1 });
		
		$('#post-image-set-1').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-2').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-3').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-4').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-5').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-6').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-7').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-8').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-9').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-10').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-11').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-12').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-13').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-14').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-15').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-16').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-17').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-18').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-19').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-20').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-21').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-22').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-23').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-24').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-25').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-26').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-27').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-28').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-29').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-30').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-31').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-32').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-33').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-34').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-35').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-36').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-37').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-38').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-39').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-40').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-41').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-42').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-43').jcarousel({ wrap:'circular', scroll:1 });
		$('#post-image-set-44').jcarousel({ wrap:'circular', scroll:1 });
	}

}
Navigation = 
{
	
	init: function()
	{
		$('.primary > a').click(function(e){
			Navigation.removePrimarySticky();
			Navigation.removeSecondarySticky();
			Navigation.removeTertiarySticky();
			$(this).addClass('sticky');
			$(this).siblings('ul').toggleClass('hidden');
			Navigation.setNavState();
		});
		$('#solutions-primary').click(function(e){e.preventDefault();});
		$('.prevent').click(function(e){e.preventDefault();});
		
		$('.secondary > a').click(function(e){
			Navigation.removeSecondarySticky();
			Navigation.removeTertiarySticky();
			$(this).addClass('sticky');
			$(this).siblings('ul').toggleClass('hidden');
		});
		
		$('.tertiary > a').click(function(e){
			
			Navigation.removeTertiarySticky();
			$(this).addClass('sticky');
		});
	},
	
	removePrimarySticky:function()
	{
		$('.primary').children('a').removeClass('sticky');
		$('.primary').children('ul').addClass('hidden');
	},
	
	removeSecondarySticky:function()
	{
		$('.secondary').children('a').removeClass('sticky');
		$('.secondary').children('ul').addClass('hidden');
	},
	
	removeTertiarySticky:function()
	{$('.tertiary').children('a').removeClass('sticky');},
	
	setNavState: function()
	{}}
$(document).ready(function() {
	//Navigation.init();
	carousel.init();
	
});
