// This is a script to allow pclsidebar to work
// if on the internet nweb must equal zero!
var nweb = 1;
var NavApp = navigator.appName;
var NavIsIE =  (NavApp == "Microsoft Internet Explorer");
  if (NavIsIE)
  {
    if (navigator.onLine) nweb = 0;
  }
  else
  {
    nweb = 0;
  }
// This is as close as I can get it so far - but I must remember to have IE off line when developing!
// And this must be pointing correctly for local use! Script will find the absolute address above this level
var htm_location = "Inputs/";

function change_page(local,web)
{
  location_href = web;
  if (nweb) local_href(local);
  location.href = location_href;
  defaultStatus = "Pure Chocolate Library";
}

function local_href(local)
{
  location_href = htm_location + local;
  current_href = location.href;
  i = current_href.indexOf('Inputs');
  parent_href = current_href.substring(0,i);
  location_href = parent_href + location_href;
}