
$(function(){
					 
	// Check to see if a particular question was requested on the query string.
	var qid = $.jqURL.get('qid');
	if (qid) {
		var section = Number(qid.charAt(0));
		var question = Number(qid.substr(1));
	}
	
	/* 
	 * Apply the FAQ plug-in to jQuery object <dl>
	 * Parameter 1: (optional): the index [integer] of a <dt> to open on load
	 */
	for (i=1; i<=5; i++) {
		if (section && section==i) {
			// Open to the requested section/question.
			$('#faq'+i).faq(question-1);
			$.scrollTo($('#faq'+i).find('dt:eq('+(question)+')'), 300);
		} else {
			$('#faq'+i).faq();
		}
	}

});
