$(document).ready(function() {
	// Sean Foushee: added the following lines to convert the checkboxes to pretty checkboxes by:
	// 1. adding the checklist class to the block element (div) that contains all checkboxes and...
	// 2. dynamically add the anchor tags to the block elements (p) containing each individual checkbox
	$("div.rememberme").addClass("checklist");
	$("div.checklist p").append('<a class="checkbox-select" href="#">Select</a><a class="checkbox-deselect" href="#">Cancel</a>');
	
	// code from here on is the same as Aaron Weyenberg
	$(".checklist .checkbox-select").click(
		function(event) {
			event.preventDefault();
			$(this).parent().addClass("selected");
			$(this).parent().find(":checkbox").attr("checked","checked");
		}
	);
	
	$(".checklist .checkbox-deselect").click(
		function(event) {
			event.preventDefault();
			$(this).parent().removeClass("selected");
			$(this).parent().find(":checkbox").removeAttr("checked");
		}
	);
});
