/*
 * SimpleModal Confirm Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2008 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: confirm.js 170 2008-12-04 19:03:12Z emartin24 $
 *
 */

$(document).ready(function () {
	$('#Plans a.allPlans').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/Comparison Grid - Full Matrix.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.bcbsPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/Blue Cross Blue Shield.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.uhcIPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/United Health Care-Individual.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.uhcGPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/United Health Care-Group.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.medicaPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/Medica Health Plan.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.thcPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/Total Health Choice.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.fhcpPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/Florida Health Care Plan.pdf';
		});
	});
});

$(document).ready(function () {
	$('#Plans a.jmhPlan').click(function (e) {
		e.preventDefault();

		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirm("The information on this Web site is maintained by the Agency for Health Care Administration in partnership with the Florida Office of Insurance Regulation and the Executive Office of the Governor (hereinafter “the Agency”). By displaying the information contained on this Web site, the Agency does not endorse or recommend any particular carrier or plan. The information on this Web site is to be used for comparison purposes only. Consumers should carefully consider the benefits provided by each plan before selecting a particular plan. Additional information regarding a particular plan should be obtained by contacting the carrier directly.", function () {
			window.location.href = 'http://www.coverfloridahealthcare.com/docs/JMH Health Plan.pdf';
		});
	});
});



function confirm(message, callback) {
	$('#confirm').modal({
		close:false,
		position: ["20%",],
		overlayId:'confirmModalOverlay',
		containerId:'confirmModalContainer', 
		onShow: function (dialog) {
			dialog.data.find('.message').append(message);

			// if the user clicks "yes"
			dialog.data.find('.yes').click(function () {
				// call the callback
				if ($.isFunction(callback)) {
					callback.apply();
				}
				// close the dialog
				$.modal.close();
			});
		}
	});
}