function initAccordion() {
	$('#accordion p').hide();
	$('#accordion p:first').show();
  
	$('#accordion a.hd').click (
		function() {	
			var checkElement = $(this).next();
			if((checkElement.is('p')) && (checkElement.is(':visible'))) {
				return false;
			}
	  
			if((checkElement.is('p')) && (!checkElement.is(':visible'))) {
				$('#accordion a').removeClass('open');
				$('#accordion p:visible').slideUp('normal');
				$(this).addClass('open');
				checkElement.slideDown('normal');
				return false;
			}
		}
	);
}

function initProviders() {
		//set initial state of the nav
		$('.p-hd').addClass('closed');
		$('#providers ol').hide();
		
		$('.p-hd').click( function() {
			
			var nextElement = $(this).next();
	      		if((nextElement.is('ol')) && (nextElement.is(':visible'))) {
				//reset
				$('.p-hd').removeClass('open');
				$('.p-hd').addClass('closed');
				$('#providers ol:visible').slideUp('normal');
					
        			return false;
	      		} else if((nextElement.is('ol')) && (!nextElement.is(':visible'))) {
				//reset
				$('.p-hd').removeClass('open');
				$('.p-hd').addClass('closed');
				$('#providers ol:visible').slideUp('normal');
				
				//open item
				$(this).removeClass('closed');
				$(this).addClass('open');
        			nextElement.slideDown('normal');
        			return false;
	        	}
			
		} );
		
};
/*
function validateForm()
{
	if ($('#full-name').val() == "") 
	{
		alert("Please fill in your full name and try again.");
		$('#full-name').focus();
		return false;
	}
	if ($('#email').val() == "")
	{
		alert("Please enter your email address and try again.");
		$('#email').focus();
		return false;
	}
	if ($('#email').val() != $('#confirm-email').val())
	{
		alert("Please make sure your email matches your confirmation and try again.");
		$('#email').focus();
		return false;
	}

	return true;
}*/

	

