//  var samplevar = new ItemStyle(height/width, gap, 'html_character_to_next_menu',
//                            numberofpixelsfromrightsidehtmlcharacter, padding, 'linkfadeintime#COLOR', 'activefadeintime#COLOR',
//                             'StyleSheetRest', 'StyleSheetActive', 'BorderStyleRest', 'BorderStyleActive',
//                              TranslucencyRest, TranslucencyActive, 'CurserTypeRest', 'CurserTypeActive');

//var hBar = new ItemStyle(23, 10, '&gt;', -15, 2, '10#000000', '10#990033', 'lowText', 'highText', 'itemBorder', 'itemBorder', 100, 100, 'hand', 'default');var hBar = new ItemStyle(23, 10, '&gt;', -15, 2, '10#000000', '10#FF9933', 'lowText', 'highText', 'itemBorder', 'itemBorder', 100, 100, 'hand', 'default');
var hBar = new ItemStyle(17, 5, '&gt;', -10, 0, '10#FFFFFF', '15#000000', 'highText', 'lowText', 'itemBorder', 'activeBorder', 100, 100, 'hand', 'default');
var subM = new ItemStyle(17, 3, '&gt;', -15, 0, '10#FFFFFF', '15#000000', 'highText', 'lowText', 'itemBorder', 'activeBorder', 100, 100, 'hand', 'default');
//var subM = new ItemStyle(20, 3, '&gt;', -15, 2, '10#000000', '10#990033', 'lowText', 'highText', 'itemBorder', 'itemBorder', 100, 100, 'hand', 'default');


var pMenu = new PopupMenu('pMenu'); with (pMenu) {
//StartMenu variables: root?, true?, pixels from left side,pixels from top, box width

startMenu('root', true, 0, 237, 113, hBar);
addItem('&nbsp;HOME PAGE', 'http://www.bremertonsymphony.org','');
addItem('&nbsp;07-08&nbsp;SEASON', 'mSeason', 'sm:', hBar);
addItem('&nbsp;TICKETS', 'http://www.bremertonsymphony.org/tickets.html', '');
addItem('&nbsp;BSYO (YOUTH<BR>&nbsp;ORCHESTRA)', 'http://www.bremertonsymphony.org/BSYO', '', hBar, 30);
addItem('&nbsp;ABOUT US', 'mAbout', 'sm:', hBar);
addItem('&nbsp;NEWS+REVIEWS', 'http://www.bremertonsymphony.org/news.html', '', hBar);
addItem('&nbsp;KIDS &<BR>&nbsp;EDUCATION', 'mKids', 'sm:', hBar, 30);
addItem('&nbsp;SPONSORS', 'mSponsor', 'sm:', hBar);
addItem('&nbsp;INFO FOR<BR>&nbsp;MUSICIANS', 'http://www.bremertonsymphony.org/musicianinfo.html','',hBar, 30);
addItem('&nbsp;BSA/BSYO GEAR', 'http://www.bremertonsymphony.org/symphonyleague.html', '', hBar);

   startMenu('mSeason', true, 109, 7, 115, subM);
   addItem('&nbsp;Concerts', 'http://www.bremertonsymphony.org/season.html', '');
   addItem('&nbsp;Director&#146;s Notes', 'http://www.bremertonsymphony.org/directorsnotes.html', '');
      
 //  startMenu('mTickets', true, 105, 7, 150, subM);
 //  addItem('&nbsp;Get Tickets', 'http://www.bremertonsymphony.org/tickets.html', '');
 
   startMenu('mAbout', true, 109, 7, 100, subM);
   addItem('&nbsp;People', 'mPeople', 'sm:', subM);
   addItem('&nbsp;History', 'http://www.bremertonsymphony.org/history.html', '');
   addItem('&nbsp;Contact Us', 'http://www.bremertonsymphony.org/contact.html', '');
   addItem('&nbsp;Directions', 'http://www.bremertonsymphony.org/directions.html', '');
   addItem('&nbsp;Etiquette', 'http://www.bremertonsymphony.org/etiquette.html', '');

//   startMenu('mMusicians', true, 105, 7, 135, subM);
//   addItem('&nbsp;Conductors', 'http://www.bremertonsymphony.org/conductors.html', '');
//   addItem('&nbsp;Orchestra', 'http://www.bremertonsymphony.org/orchestra.html', '');
//   addItem('&nbsp;Chorale', 'http://www.bremertonsymphony.org/chorale.html', '');
//    addItem('&nbsp;Teaching Resources', 'http://www.bremertonsymphony.org/teaching.html', '');

   startMenu('mSponsor', true, 109, 7, 135, subM);
   addItem('&nbsp;Be A Sponsor', 'http://www.bremertonsymphony.org/beasponsor.html', '');
   addItem('&nbsp;Meet The Sponsors', 'http://www.bremertonsymphony.org/sponsors.html', '');
   addItem('&nbsp;Our Advertisers', 'http://www.bremertonsymphony.org/advertisers.html', '');
   
   startMenu('mKids', true, 109, 7, 140, subM);
   addItem('&nbsp;The KidZone', 'http://www.bremertonsymphony.org/kidzone.html', '');
   addItem('&nbsp;Education Programs', 'http://www.bremertonsymphony.org/education.html', '');
   addItem('&nbsp;Teaching Resources', 'http://www.bremertonsymphony.org/teaching.html', '');

        startMenu('mPeople', true, 85, 7, 140, subM);
        addItem('&nbsp;Conductors', 'http://www.bremertonsymphony.org/conductors.html', '');
        addItem('&nbsp;Orchestra', 'http://www.bremertonsymphony.org/orchestra.html', '');
        addItem('&nbsp;Chorale', 'http://www.bremertonsymphony.org/chorale.html', '');
        addItem('&nbsp;Staff &amp; Board', 'http://www.bremertonsymphony.org/staff-board.html', '');
        addItem('&nbsp;Symphony League', 'http://www.bremertonsymphony.org/symphonyleague.html', '');
        addItem('&nbsp;Teaching Resources', 'http://www.bremertonsymphony.org/teaching.html', '');
        addItem('&nbsp;President&#146;s Message', 'http://www.bremertonsymphony.org/president.html', '');
          addItem('&nbsp;Employment', 'http://www.bremertonsymphony.org/employment.html', '');

//showDelay = 2;
menu.root[0].oncreate = function() { pMenu.doVis('root', true) }
}

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)');
}

page.elmPos=function(e,p) {
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 else if (e && e.focus && e.href && this.MS && /Mac/.test(navigator.platform)) {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' + 'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};

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 = 1001 + dir;
  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;
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};

