function init()
{
	$('.secondary_nav li a').click(secondaryNavigationTabHandler);
	$('.container, .answer').hide();
	$('.faq h4').click(function()
	{
		$(this).next(".answer").slideToggle(600);
	});	
	
	var landingPage = $.getURLParam('landing');
	if ( landingPage )
	{
		$('.secondary_nav li').removeClass('selected');
		$('#tab_'+ landingPage).parent().addClass('selected');
		switch( landingPage )
		{
			case 'information':
				$('#information_container').show();
				break;    
			case 'faq':
				$('#faq_container').show();
				break;    
			case 'attorney':
				$('#attorney_container').show();
				break;    
			case 't3':
				$('#t3_container').show();
				break;    
			case 'alternatives':
				$('#alternatives_container').show();
				break;    
			case 'matrix':
				$('#matrix_container').show();
				break;    
			default:
				$('#information_container').show();
				break;    
		}
	} else {
		$('#tab_information').parent().addClass('selected');
		$('#information_container').show();
	}
}
function secondaryNavigationTabHandler()
{
	$('.container').hide();
	$('.secondary_nav li').removeClass('selected');
	$(this).parent().addClass('selected');
	switch( this.id )
	{
		case 'tab_information':
			$('#information_container').show();
			break;    
		case 'tab_faq':
			$('#faq_container').show();
			break;    
		case 'tab_attorney':
			$('#attorney_container').show();
			break;    
		case 'tab_t3':
			$('#t3_container').show();
			break;    
		case 'tab_alternatives':
			$('#alternatives_container').show();
			break;    
		case 'tab_matrix':
			$('#matrix_container').show();
			break;
		default:
			$('#information_container').show();
			break;    
	}
}


$(document).ready(init);
