var myNavBar1 = new NavBar(0);
var tempMenu;

tempMenu = new NavBarMenu(0, 0);
tempMenu.addItem(new NavBarMenuItem("Home", "http://library.thinkquest.org/C004203/index2.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 300);
tempMenu.addItem(new NavBarMenuItem("Political", "http://library.thinkquest.org/C004203/political/main.htm"));
tempMenu.addItem(new NavBarMenuItem("Democracy Today--Its True Forms or Otherwise?", "http://library.thinkquest.org/C004203/political/political01.htm"));
tempMenu.addItem(new NavBarMenuItem("The Concept of Citizenship", "http://library.thinkquest.org/C004203/political/political02.htm"));
tempMenu.addItem(new NavBarMenuItem("Officials in all Shapes and Sizes", "http://library.thinkquest.org/C004203/political/political03.htm"));
tempMenu.addItem(new NavBarMenuItem("Laws and Penalties", "http://library.thinkquest.org/C004203/political/political04.htm"));
tempMenu.addItem(new NavBarMenuItem("Censorship", "http://library.thinkquest.org/C004203/political/political05.htm"));
tempMenu.addItem(new NavBarMenuItem("The End of an Empire", "http://library.thinkquest.org/C004203/political/political06.htm"));
tempMenu.addItem(new NavBarMenuItem("The God-King", "http://library.thinkquest.org/C004203/political/political07.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 200);
tempMenu.addItem(new NavBarMenuItem("Economic", "http://library.thinkquest.org/C004203/economic/main.htm"));
tempMenu.addItem(new NavBarMenuItem("Money in Ancient Times", "http://library.thinkquest.org/C004203/economic/economic01.htm"));
tempMenu.addItem(new NavBarMenuItem("Trade in the Mediterranean Area", "http://library.thinkquest.org/C004203/economic/economic02.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 250);
tempMenu.addItem(new NavBarMenuItem("Social", "http://library.thinkquest.org/C004203/social/main.htm"));
tempMenu.addItem(new NavBarMenuItem("Social Hierachy", "http://library.thinkquest.org/C004203/social/social01.htm"));
tempMenu.addItem(new NavBarMenuItem("Role of the Priest", "http://library.thinkquest.org/C004203/social/social02.htm"));
tempMenu.addItem(new NavBarMenuItem("Men Versus Women", "http://library.thinkquest.org/C004203/social/social03.htm"));
tempMenu.addItem(new NavBarMenuItem("When a Man Marries a Woman", "http://library.thinkquest.org/C004203/social/social04.htm"));
tempMenu.addItem(new NavBarMenuItem("Means of Living", "http://library.thinkquest.org/C004203/social/social05.htm"));
tempMenu.addItem(new NavBarMenuItem("Agriculture and Its Consequences", "http://library.thinkquest.org/C004203/social/social06.htm"));
tempMenu.addItem(new NavBarMenuItem("Education", "http://library.thinkquest.org/C004203/social/social07.htm"));
tempMenu.addItem(new NavBarMenuItem("Entertainment", "http://library.thinkquest.org/C004203/social/social08.htm"));
tempMenu.addItem(new NavBarMenuItem("The Olympic Games", "http://library.thinkquest.org/C004203/social/social09.htm"));
tempMenu.addItem(new NavBarMenuItem("Beauty Tips", "http://library.thinkquest.org/C004203/social/social10.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 200);
tempMenu.addItem(new NavBarMenuItem("Art", "http://library.thinkquest.org/C004203/art/main.htm"));
tempMenu.addItem(new NavBarMenuItem("The Start of Written Records", "http://library.thinkquest.org/C004203/art/art01.htm"));
tempMenu.addItem(new NavBarMenuItem("Languages They Spoke", "http://library.thinkquest.org/C004203/art/art02.htm"));
tempMenu.addItem(new NavBarMenuItem("The Use of Pottery", "http://library.thinkquest.org/C004203/art/art03.htm"));
tempMenu.addItem(new NavBarMenuItem("Mystery of the Ancient Pyramids in Egypt", "http://library.thinkquest.org/C004203/art/art04.htm"));
tempMenu.addItem(new NavBarMenuItem("Famous Cities of the Past", "http://library.thinkquest.org/C004203/art/art05.htm"));
tempMenu.addItem(new NavBarMenuItem("Early Paintings", "http://library.thinkquest.org/C004203/art/art06.htm"));
tempMenu.addItem(new NavBarMenuItem("Greek Philosophy", "http://library.thinkquest.org/C004203/art/art07.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 200);
tempMenu.addItem(new NavBarMenuItem("Religion", "http://library.thinkquest.org/C004203/religion/main.htm"));
tempMenu.addItem(new NavBarMenuItem("Why the Need of a God?", "http://library.thinkquest.org/C004203/religion/religion01.htm"));
tempMenu.addItem(new NavBarMenuItem("Hinduism and Buddhism in India", "http://library.thinkquest.org/C004203/religion/religion02.htm"));
tempMenu.addItem(new NavBarMenuItem("Sacrifices", "http://library.thinkquest.org/C004203/religion/religion03.htm"));
tempMenu.addItem(new NavBarMenuItem("Christianity in Rome", "http://library.thinkquest.org/C004203/religion/religion04.htm"));
tempMenu.addItem(new NavBarMenuItem("Superstitions", "http://library.thinkquest.org/C004203/religion/religion05.htm"));
tempMenu.addItem(new NavBarMenuItem("Death and Burial Customs", "http://library.thinkquest.org/C004203/religion/religion06.htm"));
tempMenu.addItem(new NavBarMenuItem("The Importance of Fertility", "http://library.thinkquest.org/C004203/religion/religion07.htm"));
tempMenu.addItem(new NavBarMenuItem("Legends and Myths", "http://library.thinkquest.org/C004203/religion/religion08.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 200);
tempMenu.addItem(new NavBarMenuItem("Science", "http://library.thinkquest.org/C004203/science/main.htm"));
tempMenu.addItem(new NavBarMenuItem("The Ancient Calender", "http://library.thinkquest.org/C004203/science/science01.htm"));
tempMenu.addItem(new NavBarMenuItem("Invention of the Wheel", "http://library.thinkquest.org/C004203/science/science02.htm"));
tempMenu.addItem(new NavBarMenuItem("Numbers and Counting", "http://library.thinkquest.org/C004203/science/science03.htm"));
tempMenu.addItem(new NavBarMenuItem("Ancient Medicine", "http://library.thinkquest.org/C004203/science/science04.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 0);
tempMenu.addItem(new NavBarMenuItem("Timeline", "http://library.thinkquest.org/C004203/timeline/main.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 0);
tempMenu.addItem(new NavBarMenuItem("Media (Search)", "http://library.thinkquest.org/C004203/media/main.htm"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 200);
tempMenu.addItem(new NavBarMenuItem("Webmaster", "http://library.thinkquest.org/C004203/webmaster/main.htm"));
tempMenu.addItem(new NavBarMenuItem("Profiles", "http://library.thinkquest.org/C004203/webmaster/profiles.htm"));
tempMenu.addItem(new NavBarMenuItem("Citations", "http://library.thinkquest.org/C004203/webmaster/citations.htm"));
tempMenu.addItem(new NavBarMenuItem("Guestbook", "http://www.mach.org/members/lcklmslm/guestbook.html"));
tempMenu.addItem(new NavBarMenuItem("Web Board", "http://www.mach.org/members/lcklmslm/wwwboard"));
tempMenu.addItem(new NavBarMenuItem("Forum Discussion", "http://pub22.ezboard.com/bancientcivilizations"));


myNavBar1.addMenu(tempMenu);

var myNavBar2 = new NavBar(500);
myNavBar2.setSizes(1, 2, 0);
myNavBar2.setColors("#000000",
  "#ffffff", "#669999", "#000000", "#66cccc",
  "#ffffff", "#339999", "#000000", "#99ffff");
myNavBar2.setFonts("Verdana", "plain", "bold", "10pt",
  "Arial", "italic", "normal", "10pt");


var fullWidth;

function init() {

  // Get width of window, need to account for scrollbar width in Netscape.

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar2.create();
  myNavBar2.hide();
  myNavBar2.moveTo(fullWidth - myNavBar2.getWidth(), 100);
  myNavBar1.setzIndex(2);
  myNavBar2.setzIndex(1);
}

function resizeGray1() {

  myNavBar1.moveTo(0, 0);
  myNavBar1.resize(fullWidth);
  myNavBar1.setzIndex(2);
  myNavBar2.setzIndex(1);
  return false;
}

function resizeGray2() {

  myNavBar1.moveTo(fullWidth - myNavBar1.getMinWidth(), 140);
  myNavBar1.resize(myNavBar1.getMinWidth());
  myNavBar1.setzIndex(1);
  myNavBar2.setzIndex(2);
  return false;
}

function resizeGray3() {

  myNavBar1.moveTo(fullWidth - myNavBar2.getWidth(), 140);
  myNavBar1.resize(myNavBar2.getWidth());
  myNavBar1.setzIndex(1);
  myNavBar2.setzIndex(2);
  return false;
}