$(document).ready(function(){
	toggleBoxes();
});

// Toggle Boxes - toggle opn/closed a div with class .disclosure content
function toggleBoxes(){
	prepDisclosureBoxes(); // get interface ready
	
	$('a.toggle').click(function(){
		$(this).parent().next().slideToggle("slow");
		$(this).toggleClass('active');
		return false;
	});
}

// Close all disclosure boxes by default (progressive enhancement)
// Wrap all disclosure titles with an anchor tag trigger interaction
function prepDisclosureBoxes(){
	$('.more-feature-text div').css({'display':'none'});
	$('.more-feature-text strong').wrapInner('<a href="#" class="toggle" title="click to open"></a>');
}
