﻿/////// styles

var drop_1    = new ItemStyle(22, 0, '&gt;&gt;', -28, 0, '10#b9b9b9', '10#f1172a', 'drop', 'dropHover', 'dropBorder', 'dropBorder', null, null, 'hand', 'default');

var drop_2    = new ItemStyle(22, 0, '&gt;&gt;', -28, 0, '10#dbdbdb', '10#f1172a', 'drop', 'dropHover', 'dropBorder', 'dropBorder', null, null, 'hand', 'default');

var blank    = new ItemStyle(0, 0, '', 0, 0, '', '', '', '', '', '', null, null, 'pointer', 'default');

var aboutUsButton = new ItemStyle(27, 0, '', 0, 0, '../images/menu/aboutUs.gif', '../images/menu/aboutUs_ov.gif', '', '', '', '', null, null, 'pointer', 'default');

var aboutOurClientsButton = new ItemStyle(27, 0, '', 0, 0, '../images/menu/aboutOurClients.gif', '../images/menu/aboutOurClients_ov.gif', '', '', '', '', null, null, 'pointer', 'default');

var careersButton = new ItemStyle(27, 0, '', 0, 0, '../images/menu/careers.gif', '../images/menu/careers_ov.gif', '', '', '', '', null, null, 'pointer', 'default');

var contactUsButton = new ItemStyle(27, 0, '', 0, 0, '../images/menu/contactUs.gif', '../images/menu/contactUs_ov.gif', '', '', '', '', null, null, 'pointer', 'default');

var siteMapButton = new ItemStyle(27, 0, '', 0, 0, '../images/menu/siteMap.gif', '../images/menu/siteMap_ov.gif', '', '', '', '', null, null, 'pointer', 'default');

var homeButton = new ItemStyle(27, 0, '', 0, 0, '../images/menu/home.gif', '../images/menu/home_ov.gif', '', '', '', '', null, null, 'pointer', 'default');


/////// menu

var counterpointMenu = new PopupMenu('counterpointMenu');
with (counterpointMenu)
{
startMenu('root', false, 'window.page.elmPos("menuXY").x', 'window.page.elmPos("menuXY").y', 24, '', '', false);
addItem('', 'mAboutUs', 'sm:', aboutUsButton, 70);
addItem('', 'mAboutOurClients', 'sm:', aboutOurClientsButton, 114);
addItem('', 'mCareers', 'sm:', careersButton, 60);
addItem('', 'mContactUs', 'sm:', contactUsButton, 77);
addItem('', 'siteMap.html', '', siteMapButton, 60);
addItem('', 'welcome.html', '', homeButton, 40);

startMenu('mAboutUs', true, -3, 24, 186, drop_1, '', false);
addItem('', '#', '', '', 3);
addItem('Overview', 'overview.html', '');
addItem('Our Team Leaders', 'mTeam', 'sm:');
addItem('Operating Principles', 'mPrinciples', 'sm:');
addItem('Other Facts', 'facts.html', '');
addItem('After Hours', 'after_hours.html', '');

startMenu('mAboutOurClients', true, -6, 24, 282, drop_1, '', false);
addItem('', '#', '', '', 3);
addItem('Overview', 'clients_overview.html', '');
addItem('Case Study: The Best of Times - The Worst of Times', 'caseStudy1.html', '');
addItem('Case Study: Old Times - New Times', 'caseStudy2.html', '');
addItem('Case Study: Past Times - Fast Times', 'caseStudy3.html', '');

startMenu('mCareers', true, -6, 24, 186, drop_1, '', false);
addItem('', '#', '', '', 3);
addItem('Introduction', 'careers_introduction.html', '');
addItem('Food for Thought', 'thought.html', '');
addItem('Your Personal Growth', 'growth.html', '');
addItem('Getting Started', 'started.html', '');
addItem('Current Job Postings', 'jobs.html', '');
addItem('Application Form', 'application.html', '');

startMenu('mContactUs', true, -6, 24, 186, drop_1, '', false);
addItem('', '#', '', '', 3);
addItem('Directory', 'directory.html', '');
addItem('Location Map', 'map.html', '');

	startMenu('mTeam', true, 184, 0, 186, drop_2, '', false);
	addItem('Overview', 'team_overview.html', '');
	addItem('John Patterson', 'team_johnPatterson.html', '');
	addItem('Jake Meal', 'team_jakeMeal.html', '');
	addItem('Rod Alderson', 'team_rodAlderson.html', '');
	
	startMenu('mPrinciples', true, 184, 0, 186, drop_2, '', false);
	addItem('With Our Clients', 'clients.html', '');
	addItem('With Our Fellow Employees', 'employees.html', '');
	addItem('Philosophy', 'philosophy.html', '');
	addItem('Team Structure', 'structure.html', '');



}


/////// animation

if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 counterpointMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 counterpointMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');

}


/////// long menu scrolling

PopupMenu.prototype.scrollMenu = function(mN, amount) { with (this)
{
 var sm = menu[mN][0];
 if (sm.oldOffY+'' == 'undefined') sm.oldOffY = sm.offY;
 var eP = eval(sm.par||'self');
 if (sm.menuH < eP.page.winH())
 {
  sm.offY = sm.oldOffY;
  return position(mN);
 }
 sm.offY = (Math.min(0, Math.max(parseFloat(sm.lyr.y())-amount,
  eP.page.scrollY()+eP.page.winH()-sm.menuH))).toString();
 return position(mN);
}};

