/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2009 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 212 2009-09-03 05:33:44Z emartin24 $
 *
 */

$(document).ready(function () {
	$("#permit-modal-content").modal({
		opacity:90,
		overlayCss: {backgroundColor:"#000"},
		closeClass: "modalClose",
		closeHTML: "<a href='#'>Enter</a>",
		onClose: function (dialog) {
		dialog.data.fadeOut('slow', function () {
			dialog.container.hide('slow', function () {
				dialog.overlay.slideUp('slow', function () {
					$.modal.close();
					$("#flashcontent").css("display", "block");
					$("#flashcontent2").css("display", "block");
					$.get("/top/permit.html", function(data) {
						alert(data);
					});
				});
			});
		});
	}});
});