function cAccordionFAQ( blnAutoHeight )
{
	// Parameters
	this.m_blnAutoHeight = blnAutoHeight;

	// Variables
	
	// Function that runs when the page loads
	//
	this.onLoad = function()
	{
		var _this = this;
		$(document).ready(function() 
		{
			if( _this.m_blnAutoHeight )
			{
				$(".accordionFAQ").accordion({
					active: '.selected'
					, alwaysOpen: false
					, autoHeight: true
					, fillSpace: false
				});
			}
			else
			{
				// There is a bug in the jQuery.accordion control when attempting
				// to use autoHeight: false in msie, it barfs, so this is an alternative:
				$('div.accordionFAQ div.accordionFAQItem a.accordionHeaderLink').click(function() 
				{
					$(this).next().slideToggle(500);
					return false;
				}).next().hide();
			}
		});
	};
	return this;
}
