jq(document).ready(function()
{
	//works for 1: jq( ".content0" ).css("visibility","visible");
	jq( "div.section" ).each
	( 
		function( intIndex )
		{
			// right away make them all visible.
			// added by brian to hide the collapsed sections while they load.
			jq(".content" + intIndex).css("visibility","visible");
			
				if ((jq( this ).attr("class")) != "section start_opened section_open")
				{
					jq('.content' + intIndex).hide();
				}
				
				if ((jq( this ).attr("class")) == "section start_opened section_open")
				{
					jq( this ).toggle
					(
						function()
						{
							jq( this ).removeClass("section_open");
							
							jq(".content" + intIndex).animate({ height: 'hide' }, 'normal');
						},
						function()
						{
							jq( this ).addClass("section_open");
							jq(".content" + intIndex).animate({ height: 'show' }, 'normal');
						}
					);
				}
				else
				{
					jq( this ).toggle
					(
						function()
						{
							jq( this ).addClass("section_open");
							jq(".content" + intIndex).animate({ height: 'show' }, 'normal');
						},
						function()
						{
							jq( this ).removeClass("section_open");
							jq(".content" + intIndex).animate({ height: 'hide' }, 'normal');
						}
					);
				}				
		} 
	);
});
