/*
 * 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 185 2009-02-09 21:51:12Z emartin24 $
 *
 */

$(document).ready(function () {


// hide extender div that is opened by popups

	$('a.simplemodal-close').click(function() {
		$('#modal_extender').hide();
	});

// trigger popup info panes	
	
	$('area.born').click(function (e) {
		e.preventDefault();
		$('#born').modal();
		$('#modal_extender').show();
	});	

	$('area.hsgrad_yes').click(function (e) {
		e.preventDefault();
		$('#hsgrad_yes').modal();
	});
	$('area.hsgrad_no').click(function (e) {
		e.preventDefault();
		$('#hsgrad_no').modal();
	});
	$('area.postsec_yes').click(function (e) {
		e.preventDefault();
		$('#postsec_yes').modal();
	});
	$('area.postsec_no').click(function (e) {
		e.preventDefault();
		$('#postsec_no').modal();
	});
	$('area.postsecrem_yes').click(function (e) {
		e.preventDefault();
		$('#postsecrem_yes').modal();
	});
	$('area.postsecrem_no').click(function (e) {
		e.preventDefault();
		$('#postsecrem_no').modal();
	});
	$('area.degree_yes').click(function (e) {
		e.preventDefault();
		$('#degree_yes').modal();
	});
	$('area.degree_no').click(function (e) {
		e.preventDefault();
		$('#degree_no').modal();
	});
	
});