$(document).ready(function() {
// Safety Guide
	// Agreement Form
	$('form#safety-guide, form.agreement').submit(function() {
		var hasError = false;
		
		if($('#accept:checked').val() == null) {
			$('.highlight').css({ 'background-color':'#ffcece','border-color':'#ff0000' });
			$('form#safety-guide, form.agreement').before('<p class="alert">Please indicate that you have read and understand this Guide Introduction</p>');
			hasError = true;
		}
		
		if(hasError) {
			return false;
		} else {
			return true;
		}
	});
	
	// TOC Page
	$('#toc h3 + .module, #toc h3 + .super-sub').hide();
	$('#toc h3').click(function(){
		$(this).next('.module, .super-sub').slideToggle('slow');
	});
// END Safety Guide

// Search Results
	$('table#searchResults tr:odd').addClass('alt');

});
