$('document').ready(function() {


  // Fix IE6 li:hover
  $('li').hover(function() {
    $(this).addClass('sfhover');
  }, function() {
    $(this).removeClass('sfhover');
  })

  // Place sitemap into two columns
  // Count LIs
  var l = $('#sitemap>ul>li').length;
  
  // Add 'left' class to UL
  $('#sitemap>ul').addClass('left');

  // Create new columm
  var ul = $('<ul class="right"></ul>');
  $('#sitemap>ul').after(ul);
  
  // Place all LIs more than halfway down the list into the righthand column
  $.each($('#sitemap>ul>li'), function(i, item) {
    if(i >= Math.floor(l/2))
      $(ul).append(item);
  })
  
  
  

 // Text resizer
 $("#resizer").fontScaler({
  target: 				"body",
  increment: 			'variable',
  fx: 						'smooth',
  containerclass: 'fontScaler',
  store:					true
 });

 // Change default text resizer links to our icons
 $(".fontScaler").prepend('Text size:');
 $('#fs_decrease').html('<img src="resources/icon_minus.gif" alt="Decrease text size" />');
 $('#fs_increase').html('<img src="resources/icon_plus.gif" alt="Increase text size" />');
 

})
