// northernjs

//clear form fields
	function clearings(cForm){
		if(cForm.defaultValue == cForm.value){
		 cForm.value = "";
		 }
	}
	
	
$(document).ready(function(){

	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$(".trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$(".trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow");
	});
	
	 $('span.emailJQ').each(
      function(){
           var replacement = $(this).html().replace(/ at /, "@").replace(/ dot /g, ".");
           $(this).html('<a href="mailto:'+replacement+'">'+replacement+'</a>');
       }
   ); 

});