var linkhash = "#"
var href = ""
var title = ""
var id =""
var first="first"
var base=""
var i = 0
var basesize = 0

// first determine if we are on the web or on the disk
var url = window.location.protocol;
if (url == "file:")
{
	base="c:/documents and settings/dgrawroc/my documents/my web sites/newmenu/";
	basesize = 9;
}
else
{
	base="dwgfamily.com/";
	basesize = 0;
}
	
// now check and see if we are at the top or down in the depths
href = document.location.href;
var offset = ""
var s = href.split("/");
for (i=basesize;i<(s.length-1);i++)
{
	offset = offset + "../";
}

document.write("<ul class=" + "inside" +">")

// Home menu
//	<li><a href="index.htm" class="first">Home</a>
//  <ul>
//    <li><a href="about us.htm" title="About Us">About Us</a></li>
//    <li><a href="research.htm" title="Research">Research</a></li>
//    <li><a href="maps.htm" title="Maps">Maps</a></li>
//    <li><a href="links.htm" title="Links">Links</a></li>
//    <li><a href="search.htm" title="Search">Search</a></li>
//    <li><a href="#">Photos</a>
//    	<ul>
//      <li><a href="photo.htm" title="Photo Main">Photo Main</a></li>
//	      <li><a href="photo/us photo.htm" title="US Photo">US Photos</a></li>
//	      <li><a href="photo/uk photo.htm" title="UK Photo">UK Photos</a></li>
//	      <li><a href="photo/norway photo.htm" title="Norway Photo">Norway Photos</a></li>
//	      <li><a href="photo/travel photo.htm" title="Travel Photo">Travel Photos</a></li>
//    	</ul>
//    </li>
//  </ul> 
//  </li> 

href = "index.html"
title = "Home"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a>")

// second level menu
document.write("<ul>")

href = "about%20us.htm"
title = "About us"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "research.htm"
title = "Research"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "maps.htm"
title = "Maps"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "links.htm"
title = "Links"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of second level menu
document.write("</li></ul>")

href = "grawrock.htm"
title = "Grawrock"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a><ul>")

href = "Grawrock/grawrockresearch.htm"
title = "Research"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of Grawrock second level menu
document.write("</ul></li>")

href = "parker.htm"
title = "Parker"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a><ul>")

href = "Parker/parkerdna.htm"
title = "DNA"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of Parker second level menu
document.write("</ul></li>")

href = "cyphert.htm"
title = "Cyphert"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a><ul>")

href = "Cyphert/research.htm"
title = "Research"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "Cyphert/cyphertname.htm"
title = "Name"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "Cyphert/history.htm"
title = "History"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "Cyphert/number.htm"
title = "Number"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of cyphert second level menu
document.write("</ul></li>")

href = "blackler.htm"
title = "Blackler"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a><ul>")

href = "Blackler/2005gathering.htm"
title = "2005 Gathering"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "Blackler/blacklerdna.htm"
title = "Blackler DNA"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "Blackler/Devon%20area.htm"
title = "Devon map"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of blackler second level menu
document.write("</ul></li>")

href = "genpages/index.htm"
title = "Genealogy"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a><ul>")

href = "genpages/master_index.htm"
title = "Master Index"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "genpages/surname_index.htm"
title = "Surname Index"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "genpages/pm1.htm"
title = "Place Index"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "genpages/chart_list.htm"
title = "Charts"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of Genealogy second level menu
document.write("</ul></li>")

href = "search.htm"
title = "Search"
document.write("<li><a href=" + offset + href + " class=" + first + " title=" + title + ">" + title + "</a>")

// end of Search menu - currently there are no options so need to add the UL back in if adding sub items
document.write("</li>")

// Photo section
href = "gallery2/main.php"
title = "Photos"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a><ul>")

href = "gallery2/v/USPhoto"
title = "US Photos"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "gallery2/v/UK"
title = "UK Photos"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "gallery2/v/Norway"
title = "Norway Photos"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

href = "gallery2/v/Worldwide"
title = "Travel Photos"
document.write("<li><a href=" + offset + href + " title=" + title + ">" + title + "</a></li>")

// end of Photo second level menu
document.write("</ul></li>")

// end of first level menu
document.write("</li></ul>")


//<ul>
//
  //<li><a href="#" class="first">Grawrock</a>
    //<ul>
      //<li><a href="index.htm" title="Grawrock Main">Grawrock Main</a></li>
      //<li><a href="index.htm" title="Grawrock Main">Grawrock Main</a></li>
//    </ul>
//  </li>
//
  //<li><a href="#" class="first">Parker</a>
  //  <ul>
  //    <li><a href="index.htm" title="Parker Main">Parker Main</a></li>
  //    <li><a href="index.htm" title="Parker DNA">Parker DNA</a></li>
  //  </ul>
  //</li>
//
  //<li><a href="#" class="first">Cyphert</a>
  //  <ul>
    //  <li><a href="index.htm" title="Cyphert Main">Cyphert Main</a></li>
   // </ul>
 // </li>
  //
  //<li><a href="#" class="first">Blackler</a>
    //<ul>
      //<li><a href="index.htm" title="Blackler Main">Blackler Main</a></li>
//    </ul>
//  </li>
  //
  //<li><a href="#" class="first">Genealogy</a>
    //<ul>
      //<li><a href="index.htm" title="Genealogy Main">Genealogy Main</a></li>
   // </ul>
  //</li>
  //
//</ul>

