/**
 * Additional common jQuery functions we might use.
 */


(function($) {
  $.fn.extend({
    /**
     * Set visibility of current selection based on
     * the value of mode we pass in.
     */
    visible : function(mode)
    {
      if (mode)
        $(this).show();
      else
        $(this).hide();
      return this;
    },

    toggleVisible : function() {
      if ($(this).is(":hidden"))
        $(this).show();
      else
        $(this).hide();
    }
  }); // $.fn.extend

})(jQuery);

 // When the page is ready
   $(document).ready(function(){
     $("#sub-body ul li ul li").not("li:last-child")
       .append(" / ");
   });
   
   
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);

function printPage()
{
  if (pr)
  {
    window.print();
  }
  else if (da && !mac)
  {
    vbPrintPage();
  }
  else
  {
    alert("Sorry, your browser doesn't support this feature. You need choose File and then Print from your browser's menu bar");
    return false;
  }
}