﻿// Javascript file for plans

$(document).ready(function() {
    // Entry point once document ready....
});


// -----------------------------------------------------------------
// Toggles the display of availability issues for a plan
// -----------------------------------------------------------------
function toggleAvailabilityIssues(planID)
{
   $("#divAvailabilityIssue_" + planID).slideToggle();
}

// -----------------------------------------------------------------
// Toggles the plan panels between open and closed
// -----------------------------------------------------------------
function SlideToggle() 
{
    //hide the all of the elements with class plan_body
	$(".item-body").hide();
	
	//toggle the componenet with class plan_body
	$(".item-openclose").click(function() 
	{
		$(this).parents(".list-item").children(".item-body").slideToggle(250);
	});
	
	$(".item-openclose:first").parents(".list-item").children(".item-body").slideToggle(250);
}