function sgSearchFaq() {
	var term = $('#faq-searchterm').attr('value');
	document.location.href = SG_URL_PREFIX + 'faq/search/' + term;
	return false;
}


function sgFaqCategoryJump() {
	document.location.href = $('#faqCatFilter').attr('value');
	return false;
}

function sgToggleFaq() {
	
	$('a.faq-question').click(function() {
		var ael = $('#faq-' + $(this).attr('rel'));
		ael.toggle();
		return false;
	});
	
}

function sgToggleFaqAll() {
	var answers = $('.faq-answer');
	$('#faq-toggle').click(function() {
		if ($(this).hasClass('toggled-open')) {
			$(this).removeClass('toggled-open');
			answers.hide();
		} else {
			$(this).addClass('toggled-open');
			answers.show();
		}
	});
}
