var myNavBar1 = new NavBar(300);
var tempMenu;

// Set Nav Bar Colors
// bgcolor, hdrtxtcolor, hdrbgcolor, hdhitxtcolor, hdhibgcolor, mnutxtcolor, mnubgcolor, mnuhitxtcolor, mnuhibgcolor

myNavBar1.setColors("#000000", "#FFFFFF", "#A95D38", "#000000", "#D88C40", "#000000", "#EAAE86", "#000000", "#FFCDAB");

// Set Nav Bar Border Widths
/* border, padding, seperator */

myNavBar1.setSizes(2, 3, 1);

// Set Font Options
// hdrFamily, hdrStyle, hdrWeight, hdrSize, itmFamily, itmStyle, itmWeight, itmSize

myNavBar1.setFonts("MS Sans Serif, Arial, Helvetica, sans-serif", "none", "none", "6pt", "MS Sans Serif, Arial, Helvetica, sans-serif", "none", "none", "6pt");

tempMenu = new NavBarMenu(70, 0);
tempMenu.addItem(new NavBarMenuItem("<center>Company Information</center>", ""));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> About Us","/english/corporate/about_us.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> About Normerica","/english/normerica/about_us.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Contact Us","/english/corporate/contact_us.php"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> News &amp; Events","/english/corporate/news_events.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Employment","/english/corporate/career.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Testimonials","/english/corporate/testimonials.html"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(70, 0);
tempMenu.addItem(new NavBarMenuItem("<center>Post and Beam</center>", ""));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> About Post &amp; Beam","/english/corporate/about_post_beam.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Residential Projects", "/english/projects/residential/index.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Commercial Projects", "/english/projects/commercial/index.html"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(70, 0);
tempMenu.addItem(new NavBarMenuItem("<center>Design Portfolio</center>", ""));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Gallery of Post &amp; Beam Layouts", "/english/projects/residential/designportfolio/index.html"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(70, 0);
tempMenu.addItem(new NavBarMenuItem("<center>Project Management</center>", ""));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> The Building System", "/english/projects/residential/thebuildingsystem/index.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Time Line", "/english/projects/residential/mydreamhome/index.html"));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> FAQ","/english/normerica/faq.html"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(70, 0);
tempMenu.addItem(new NavBarMenuItem("<center>Slate Products</center>", ""));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Brazilian Slate", "/english/products/slates/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;<img src='/images/subfolder.gif' width='6' height='7'> Flooring", "/english/products/slates/flooring.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;<img src='/images/subfolder.gif' width='6' height='7'> Roofing", "/english/products/slates/roofing.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;<img src='/images/subfolder.gif' width='6' height='7'> Countertops", "/english/products/slates/countertops.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;<img src='/images/subfolder.gif' width='6' height='7'> Other Uses", "/english/products/slates/other.html"));
myNavBar1.addMenu(tempMenu);

tempMenu = new NavBarMenu(70, 0);
tempMenu.addItem(new NavBarMenuItem("<center>Property for Sale</center>", ""));
tempMenu.addItem(new NavBarMenuItem("<img src='/images/bullet.gif' width='7' height='7'> Land and Homes", "/english/products/forsale/index.html"));
myNavBar1.addMenu(tempMenu);


window.onload = init;    // Set up page onload event.

var fullWidth;
function init() {
  var img;	

  // Get width of window, need to account for scrollbar width in Netscape.

 /*  Include if you want full-width navbar
  
	fullWidth = getWindowWidth()
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(fullWidth);

 */

  myNavBar1.create();
  myNavBar1.setzIndex(1);		

  img = getImage("placeholder");
  myNavBar1.moveTo(getImagePageLeft(img), getImagePageTop(img));

  if ( top.do_scroll ) {
    init_scroller();
  }

}

function updatePosition() {

  var viewTop, viewBottom;
  var dy;

  viewTop = getPageScrollY();
  viewBottom = viewTop + getWindowHeight();

  if (myNavBar1.bottom < viewTop)
    myNavBar1.moveTo(0, viewTop - myNavBar1.height);
  if (myNavBar1.top > viewBottom)
    myNavBar1.moveTo(0, viewBottom);

  dy = Math.round(Math.abs(viewTop - myNavBar1.y) / 2);
  if (viewTop < myNavBar1.y)
    dy = -dy;

  myNavBar1.moveBy(0, dy);
  setTimeout('updatePosition()', 25);
}