Drupal.behaviors.apachesolr=function(context){$('.apachesolr-hidden-facet',context).hide();$('<a href="#" class="apachesolr-showhide"></a>').html('<img src="/images/icons/bullet_add.png" align="middle" height="32" width="32" alt="More"> More').click(function(){if($(this).parent().find('.apachesolr-hidden-facet:visible').length==0){$(this).parent().find('.apachesolr-hidden-facet').show();$(this).html('<img src="/images/icons/bullet_delete.png" align="middle"  height="32" width="32" alt="Less"> Less')}else{$(this).parent().find('.apachesolr-hidden-facet').hide();$(this).html('<img src="/images/icons/bullet_add.png" align="middle" height="32" width="32" alt="More"> More')};return false}).insertAfter($(Drupal.settings.apachesolr_show_more_blocks,context));if(Drupal.settings.apachesolr_facetstyle=='checkboxes'){$('.apachesolr-facet',context).each(Drupal.apachesolr.addCheckbox);$('.apachesolr-unclick',context).each(Drupal.apachesolr.makeCheckbox)}};Drupal.apachesolr={};Drupal.apachesolr.addCheckbox=function(){if(!$(this).hasClass('facet-checkbox-processed')){var href=$(this).attr('href');$(this).before($('<input type="checkbox" />').attr('class','facet-checkbox').click(function(){window.location.href=href}));$(this).addClass('facet-checkbox-processed')}};Drupal.apachesolr.makeCheckbox=function(){var checkbox=$('<input type="checkbox" />').attr('class','facet-checkbox').attr('checked',true),href=$(this).attr('href');checkbox.click(function(){window.location.href=href});$(this).before(checkbox).hide()};


