	$(document).ready(function(){
		//TYPEKIT
		var switchTo5x=true;
		//SHARE BUTTONS
		stLight.options({publisher:'f5e33be6-f76b-4515-81d2-b31ec3018177'});
		
		/* CONTACT INFORMATION */
		$.each( $('.c-block'), function() {
			$(this).hide();
			$(this).prev('h2').click(function() {
				$(this).next('div').animate({
					height: 'toggle'
				})
				$(this).toggleClass('expanded')
			});
		});

	});

	function initBanner() {
		/* home page flipper */
		//$('.panel').hide();
		$('#panel-1').show();
		$('#home-panel-nav a').click(function() {
			clearInterval(slideID);
			$('#home-panel-nav a').each(function() {
				$(this).removeClass('active');
			});
			$(this).addClass('active');
			var tempVar = $(this).attr('rel');
			//alert(tempVar);
			$('div.panel').each(function() {
				if ($(this).attr('id')==tempVar) {
					$(this).show();
					
				} else {
					$(this).hide();
				}
				
			});
		});
		
		$('#home-panel-nav a[rel="panel-1"]').addClass('active');
		var slideID = setInterval(switchSlide, 8000);
		
	}
	
	var currentSlide = 1;
	function switchSlide() {
	
		$('.panel').each(function() {
			$(this).css('zIndex',1);
			$(this).hide();
		});
		
		$('#home-panel-nav a').each(function() {
			$(this).removeClass('active');
		});
		
		$('#home-panel-nav a[rel="panel-'+ currentSlide +'"]').addClass('active');
		$('#panel-' + currentSlide).css('zIndex',10);
		$('#panel-' + currentSlide).show();
		if (currentSlide==4) {
			currentSlide = 1;
		} else {
			currentSlide = currentSlide+1;
		}
	}
	
	

