     var webBrainWin;
     var home
   
     if (location.href.lastIndexOf("#") != -1) {
        home = location.href.substring(0,location.href.lastIndexOf("#"))
     }

     home = location.href.substring(0,location.href.lastIndexOf("/") + 1)

     // if running locally, protocol is file: and a server may not open the default index.html
     // add that file name to home base url.
     //if ( (home.indexOf("file:", 0) != -1) && (home.substring(home.length-4, home.length+1) != "html")     ) {
     //   home = home.concat("index.html")
     //}
     
     home = home.concat("index.html")        
     

     function LaunchWebBrain(srname) {
          if (!webBrainWin || webBrainWin.closed){
             webBrainWin=window.open(srname,"","width=450, height=500, toolbar, status, scrollbars, resizable");
          }else{
             webBrainWin.focus()
          }
     } // end LaunchWebBrain

//  creates a table row.
function insertrow(srcname, description, saddress) {

     var stemp = "";
     
     if (description == ""){
        description = 'desc?';
     }
     
     if (srcname == ""){   // resource name?
        srcname = saddress;
     }
     
     stemp += '<tr class="TableSubHeadingColor" align="left" valign="top">'
     stemp += '<td><a href=' + '"' + saddress + '" TARGET="_blank">' + '<font size="-2">' + srcname + '</font></a></td>'
     stemp += '<td><font size="-2">' + description + '</font></td>'
     stemp += '</tr>'
     
     document.write(stemp);

   
} // end 
   
   // create a table cell object......
   function Cell(url_ref, image_source, text_label){
      this.href= url_ref;
      this.image= image_source;
      this.label = text_label;
   } // end Cell constructor
   
   
   // write to current document the InlineNavBarTable Row.  This must
   // be embedded in a html table.
   function InlineNavBar(nav){
      var nhref
      var nimage
      var ntitle
      var stemp

      stemp = '<table class="linktable" width="100%" align="center" cellspacing="0" cellpadding="2" border="1" class="TableHeadingColor"><tr align="center">'
      
      // add each cell's markup into the string.
      for (x in nav) {
         nhref  = nav[x].href;
         nimage = nav[x].image;
         ntitle = nav[x].label;
         
         stemp += '<td>&nbsp;&nbsp;<a href="' + nhref + '">';
         
         // if using image add it.
         if (nimage != "") {
            stemp += '<img src="' + nimage + '"' + ' title="' + ntitle + '" border="0" align="absMIDDLE" width="14"></a>';
         }else{
            stemp += ntitle + '</a>';
         }

         stemp += '</td>'
         
      } // end for
      
      // close off the table row...
      stemp += '</tr></table>'

      document.write(stemp);

   } // end of InlineNavBar


