

/*
Sierra ASP Top Menu Main
Last updated: 10/03/2003
Permission granted and modified by Dynamicdrive.com to include script in archive
Editor: W. Heilala wayneheilala@hotmail.com
*/

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more "blocks" of same code below

dhtmlMenu = new NavBarMenu(100, 100);
dhtmlMenu.addItem(new NavBarMenuItem("<center>About Us</center>", "aboutIRC.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Company History", "aboutIRC.html"));
dhtmlMenu.addItem(new NavBarMenuItem("IRC Staff", "staff.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Industries Served", "sectors.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 110);
dhtmlMenu.addItem(new NavBarMenuItem("<center>Services</center>", "javascript:void(0);"));
dhtmlMenu.addItem(new NavBarMenuItem("Focus Groups", "focusGroups.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Qualitative Studies", "qualitative.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Web Surveys", "surveys.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Mail Surveys", "surveys.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Phone Surveys", "surveys.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("<center>Our Clients</center>", "javascript:void(0);"));
dhtmlMenu.addItem(new NavBarMenuItem("Past Focus Group Clients", "focusGrpClients.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Clients by Study Type", "cStudies.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Clients by Business Sector", "cSectors.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(170, 130);
dhtmlMenu.addItem(new NavBarMenuItem("<center>Articles and Resources</center>", "IRCResources.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Applications", "applications.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Published Articles", "articles.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 130);
dhtmlMenu.addItem(new NavBarMenuItem("<center>Contact Us</center>", "contact.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Contact Info", "contact.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Request More Info", "requestForm.html"));
myNavBar1.addMenu(dhtmlMenu);


//set menu colors
myNavBar1.setColors("#790000", "#ffffff", "#790000", "#ffffff", "#993333", "#ffffff", "#993333", "#ffffff", "#790000")


//set menu fonts
myNavBar1.setFonts("Arial", "bold", "none", "8pt", "Arial", "bold", "none", "8pt")



//use below line to center the menu (valid values are "left", "center", and "right"
myNavBar1.setAlign("left")

var fullWidth;
var leftPos;

function initMain() {

  fullWidth = getWindowWidth();

  leftPos = (getWindowWidth() - 625)/2;

  myNavBar1.resize(625);

  myNavBar1.create();
  myNavBar1.setzIndex(50000);
  
  myNavBar1.moveTo(leftPos,92);
}

function init() {

  fullWidth = 684
  leftpos = (getWindowWidth() - 684)/2;

  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar1.setzIndex(50000);
  
  myNavBar1.moveTo(0, 86);
}

function initPage() {

  fullWidth = getWindowWidth();

  leftPos = (getWindowWidth() - 625)/2;

  myNavBar1.resize(fullWidth);

  myNavBar1.create();
  myNavBar1.setzIndex(50000);
  
  myNavBar1.moveTo(0,92);
}
