var hBar = new ItemStyle(135, 0, '', 0, 0, 'images/nav/About.jpg', 'images/nav/About_MO.jpg', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var hBar2 = new ItemStyle(135, 0, '', 0, 0, 'images/nav/Services.jpg', 'images/nav/Services_MO.jpg', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var hBar3 = new ItemStyle(135, 0, '', 0, 0, 'images/nav/Software.jpg', 'images/nav/Software_MO.jpg', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var hBar4 = new ItemStyle(135, 0, '', 0, 0, 'images/nav/Careers.jpg', 'images/nav/Careers_MO.jpg', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var hBar5 = new ItemStyle(137, 0, '', 0, 0, 'images/nav/Students.jpg', 'images/nav/Students_MO.jpg', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(32, 0, '&gt;', -15, 8, '#ceef16', '#99b807', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');


var pMenu = new PopupMenu('pMenu');
with (pMenu)
{


startMenu('root', false, '173', '175', 35, hBar, '', false);
with (addItem('', '', '', null, 135)) sm = 'mAbout';

startMenu('mAbout', true, 0, 35, 135, subM, '', false);
addItem('&nbsp;Overview<br />&nbsp;&amp; mission', 'about.asp', '', subM, 45);
addItem('&nbsp;Locations', 'locations.asp', '');
addItem('&nbsp;Contact us', 'contact.asp', '');




startMenu('root2', false, '308', '175', 35, hBar2, '', false);
with (addItem('', '', '', null, 135)) sm = 'mServices';

startMenu('mServices', true, 0, 35, 135, subM, '', false);
addItem('&nbsp;The Agility<br />&nbsp;difference', 'difference.asp', '', subM, 45);
addItem('&nbsp;Delivery settings', 'settings.asp', '');
addItem('&nbsp;Performance<br/ >&nbsp;management', 'performance.asp', '', subM, 45);
addItem('&nbsp;Client testimonials', 'clienttestimonials.asp', '');
addItem('&nbsp;Educational<br />&nbsp;Opportunities', 'educationalopportunities.asp', '', subM, 45);
addItem('&nbsp;LTC Client Login', 'ltc_delivery.asp', '');



startMenu('root3', false, '443', '175', 35, hBar3, '', false);
with (addItem('', '', '', null, 135)) sm = 'mSoftware';

startMenu('mSoftware', true, 0, 35, 135, subM, '', false);
addItem('&nbsp;Rehabilitation<br />&nbsp;Peformance<br />&nbsp;Manager&trade; (RPM)', 'RPM.asp', '', subM, 58);



startMenu('root4', false, '578', '175', 35, hBar4, '', false);
with (addItem('', '', '', null, 135)) sm = 'mCareers';

startMenu('mCareers', true, 0, 35, 135, subM, '', false);
addItem('&nbsp;Join the Agility<br />&nbsp;Therapy team', 'joinagility.asp', '', subM, 45);
addItem('&nbsp;Available jobs', 'mJobs',  'sm:');
addItem('&nbsp;Submit your<br />&nbsp;resume', 'resume.asp', '', subM, 45);
addItem('&nbsp;Contact an<br />&nbsp;Agility recruiter', 'recruiters.asp', '', subM, 45);
addItem('&nbsp;Therapist<br />&nbsp;testimonials', 'therapisttestimonials.asp', '', subM, 45);

startMenu('mJobs', true, 125, 10, 147, subM, '', false);
addItem('Overview', 'jobs.asp', '');
addItem('Physical therapy<br />(PT, PTA) jobs', 'jobs.asp#disc1', '', subM, 45);
addItem('Occupational therapy (OT, COTA) jobs', 'jobs.asp#disc2', '', subM, 45);
addItem('Speech language pathology (SLP, SLPA) jobs', 'jobs.asp#disc3', '', subM, 58);
addItem('Rehabilitation nursing jobs', 'jobs.asp#disc4', '', subM, 45);
addItem('Leadership jobs', 'jobs.asp#disc5', '');
addItem('Other Agility Therapy jobs', 'jobs.asp#disc6', '', subM, 45);



startMenu('root5', false, '713', '175', 35, hBar5, '', false);
with (addItem('', '', '', null, 137)) sm = 'mStudents';

startMenu('mStudents', true, 0, 35, 137, subM, '', false);
addItem('&nbsp;Student<br />&nbsp;opportunities', 'students.asp', '', subM, 45);


}




addMenuBorder(pMenu, window.subBlank,
 null, '#666666', 1, '#CCCCDD', 2);




if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');
}




function menuAnim(menuObj, menuName, dir)
{
 var mD = menuObj.menu[menuName][0];
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  clearTimeout(timer);

  if (!lyr || !lyr.ref) return;

  if (!visNow && dir>0) dir = 0-dir;

  if (dir>0) lyr.vis('visible');

  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;


  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );

  counter += dir;
  if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};



function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);

  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+
   (alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+alpha+'%; opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
};

