/*
                              Javascript for
                            TrentCSA.ca - Benefits
--------------------------------------------------------------------------------
*/


$(function() {

	// Accordion
	$("#Accordion").accordion({
		collapsible: true,
		header: "h2",
		autoHeight: false,
		active: false
	});

	// Dialog				
	$("#dialog-message").dialog({
		modal: true,
		autoOpen: false,
		width: 460,
		resizable: false,
		minHeight: 250,
		buttons: {
			Ok: function() {
				$(this).dialog('close');
			}
		}
	});
 
 
	 // (or within <strong>thirty days</strong> of losing alternative coverage)
	$("#Benefits-Buttons-OptIn").click(function(){
		$("#dialog-message").html("<p>Students looking to <strong>opt back into the plan</strong>(who currently have opt out status) need to complete the opt in form, <strong>available in the Benefits Office</strong>, in the month of September (or within <strong>thirty days</strong> of losing alternative coverage).</p>");
		$("#dialog-message").dialog('open');
		return false;
	});

/*
	$("#Benefits-Buttons-AddDependents").click(function(){
		$("#dialog-message").html("<p>Dependents can be added in the month of September, or within thirty days of losing alternative coverage or adding a family member. Please contact your Benefits Administrator.</p>");
		$("#dialog-message").dialog('open');
		return false;
	});

	$("#Benefits-Buttons-OptOut").click(function(){
		$("#dialog-message").html("<p>Students are eligible to opt out between September 1st and September 30th only. This is a firm deadline that cannot be extended.</p>");
		$("#dialog-message").dialog('open');
		return false;
	});

*/
	
});

