$().ready(function() {
	// FOOTER FORM SLIDER
	$('#coda-slider-1').codaSlider({
		dynamicArrows: false,
		dynamicTabs: true,
		dynamicTabsPosition: 'top',
		autoHeight: false,
		autoSlide: false,
		crossLinking: false,
		firstPanelToLoad: 1
	});
	
	// FOOTER OPEN AND CLOSE STUFF
	$('a.contact-us-trig').click(function() {
		if ($("div.contact-footer").is(":hidden")) {
			$("div.contact-footer").slideDown("slow");
			$('a.contact-us').addClass('is-up');
			if ($("div.get-started-footer").is(":hidden")) {
				//do nothing
			} else {
				$("div.get-started-footer").slideUp("slow");
				$('a.get-started').removeClass('is-up');
			}
		} else {
			$("div.contact-footer").slideUp("slow");
			$('a.contact-us').removeClass('is-up');
		}			
		
	});
	$('div.contact-footer a.close').click(function() {
		$("div.contact-footer").slideUp("slow");
		$('a.contact-us').removeClass('is-up');
		
	});
	$('a.get-started').click(function() {		
		if ($("div.get-started-footer").is(":hidden")) {			
			$("div.get-started-footer").slideDown("slow");
			$('a.get-started').addClass('is-up');
			if ($("div.contact-footer").is(":hidden")) {
				//do nothing
			} else {
				$("div.contact-footer").slideUp("slow");
				$('a.contact-us').removeClass('is-up');
			}
		} else {
			$("div.get-started-footer").slideUp("slow");
			$('a.get-started').removeClass('is-up');
		}			
		
	});
	$('div.get-started-footer a.close').click(function() {
		$("div.get-started-footer").slideUp("slow");
		$('a.get-started').removeClass('is-up');		
	});		
	$('div.get-started-footer').css('visibility', 'visible');
	$('div.get-started-footer').css('display', 'none');
});
