// Add a class to top-level list items.
$(document).ready(function() {
	$('#selected-plays > li').addClass('horizontal'); 	// > indicates child of
	$('#selected-plays li:not(.horizontal)').addClass('sub-level');				
	});
	


// Add a class to links.
$(document).ready(function() {
	$('a[href^=mailto:]').addClass('mailto');
	$('a[href$=.pdf]').addClass('pdflink');
	$('a[href^=http][href*=henry]').addClass('henrylink');
	
	$('a').filter(function() {
		return this.hostname && this.hostname != location.hostname;
		}).addClass('external');
	});



// Give classes to even and odd table rows for zebra striping.
$(document).ready(function() {
	$('tr:nth-child(even)').addClass('alt');
	
	$('td:contains(Henry)').nextAll().andSelf().addClass('highlight');
	$('th').parent().addClass('table-heading');	
	});