--- apachesolr_ajax.js	2010-07-06 13:40:53.000000000 -0600
+++ apachesolr_ajax.js.new	2010-09-14 16:14:46.157796683 -0600
@@ -104,3 +104,28 @@ $(function () {
     Drupal.apachesolr_ajax.request_callback(initialState);
   }
 });
+
+Drupal.apachesolr.addCheckbox = function() {
+  // Put href in context scope to be visible in the anonymous function.
+  var href = $(this).attr('href');
+  $(this).before($('<input type="checkbox" />')
+    .attr('class', 'facet-checkbox')
+    .click(function(){
+      Drupal.apachesolr_ajax.navigate(href);
+    })
+  );
+}
+
+Drupal.apachesolr.makeCheckbox = function() {
+  // Create a checked checkbox.
+  var checkbox = $('<input type="checkbox" />')
+    .attr('class', 'facet-checkbox')
+    .attr('checked', true);
+  // Put href in context scope to be visible in the anonymous function.
+  var href = $(this).attr('href');
+  checkbox.click(function(){
+    Drupal.apachesolr_ajax.navigate(href);
+  });
+  // Add the checkbox, hide the link.
+  $(this).before(checkbox).hide();
+}
\ No newline at end of file
