// gh.js  29.9.2004

  var w3c_enable = 0;

  var sel_button;

  function set_button(b) {
    sel_button = b;
    set_sel_button();
  }

  function set_sel_button() {
    if ( parent.frame_r ) {
//    try {
        if ( !parent.frame_l.buttons_loaded ||
             !parent.frame_l.buttons_loaded == true ||
             !parent.frame_l.set_button(sel_button) )
          window.setTimeout( "set_sel_button()", 350 );
//    } catch ( error ) {}
    }
  }

  function rlink( filename )
  {
    this_href = document.URL;
    if ( ( this_href.search( /^file:/ ) < 0 ) &&
         ( this_href.search( /^http:\/\/hendess.net/ ) < 0 ) &&
         ( this_href.search( /^http:\/\/www.hendess.net/ ) < 0 ) &&
         ( this_href.search( /^http:\/\/hendess.homeip.net/ ) < 0 ) )
      return "http://www.hendess.net/" + filename;
    else
      return filename;
  }

  function hlink( local, global )
  {
    if ( global == undefined )
      global = local;
    if ( parent.frame_r )
      parent.frame_r.location.href=local;
    else
      top.location.href = rlink( global );
  }

  function home()
  {
    hlink( "home_d.htm", "index.htm" );
  }

  function home_e()
  {
    hlink( "home_e.htm", "index_e.htm" );
  }

