var hBar = new ItemStyle(40, 10, '', 0, 0, '15#336699', '10#6699CC', 'highText', 'highText', '', '',

 null, null, 'hand', 'default');



// The 'sub Menu' items: these have popout indicators of "Greater Than" signs ">" 15px from their

// right edge, and CSS borders. Text class also changes on mouseover.

var subM = new ItemStyle(22, 0, '>', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText',

 'itemBorder', 'itemBorder', null, null, 'hand', 'default');



// 'subBlank' is similar, but has an 'off' border the same colour as its background so it

// appears borderless when dim, and 1px spacing between items to show the hover border.

var subBlank = new ItemStyle(22, 1, '>', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText',

 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');



// The purplish 'button' style also has 1px spacing to show up the fancy border, and it has

// different colours/text and less padding. They also have translucency set -- these items

// are 80% opaque when dim and 95% when highlighted. It uses the 'crosshair' cursor for items.

var button = new ItemStyle(22, 1, '>', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText',

 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');







var pMenu = new PopupMenu('pMenu');

with (pMenu)

{





startMenu('root', false, 'window.page.elmPos("home").x', 'window.page.elmPos("home").y + 0', 17, hBar);

addItem('  <strong>Home', 'http://www.sportclix.com/index.html', '', hBar, 50);

addItem('      <strong>Community', 'mCommunity', 'sm:', hBar, 100);

addItem('  <strong>Coaches Corner', 'mCoachesCorner', 'sm:', hBar, 105);

addItem('  <strong>Packages', 'http://www.sportclix.com/packages.html', '', hBar, 70);

addItem('  <strong>Sales Associate', 'http://www.sportclix.com/salesassociate.html', '', hBar, 105);

addItem('  <strong>Media Releases', 'http://www.sportclix.com/mediareleases.html', '', hBar, 105);

addItem('  <strong>About Sportclix', 'mAboutSportclix', 'sm:', hBar, 95);

addItem('  <strong>Help', 'http://www.sportclix.com/help.html', '', hBar, 40);





// This is a vertical menu positioned 0px across and 22px down from its trigger, and is 80px wide.

// The URLs are set to # here, be sure to replace them with your path/file names or JS functions!

// Also note how the types are '', indicating these links open in the current frame/window.

// The last item here changes its text on mouseover (^ separates the two strings), links to my site,

// and has a custom ItemStyle and length specified so it's longer than the rest.







startMenu('mCommunity', true, 0, 22, 100, subM, '');

addItem('Associations', 'mAssociations', 'sm:');

addItem('Teams', 'mTeams', 'sm:');

addItem('Stars', 'mStars', 'sm:');

addItem('Tournaments', 'mTournaments', 'sm:');

addItem('Camps', 'mCamps', 'sm:');

addItem('Unique Sites', 'mUniqueSites', 'sm:');

addItem('All Sites', 'http://www.sportclix.com/allsites3.html', '');





// This menu is aligned slightly left of its trigger (-10px).

// Instead of using spaces to indent, consider 'text-indent' in the stylesheet class perhaps?

// The last item is an example of adding extra optional parameters to the addItem() command.

// It uses the subM ItemSyle (regardless of what the rest of this menu uses), is 22px long,

// has 0px spacing after it, and a lesser-than-sign popout indicator positioned 3px from the left

// edge of this item. Note that the parameters after the ItemStyle name are in the same order as

// the ItemStyle command itself, and you can have as many as you want (e.g. background colours).



startMenu('mCoachesCorner', true, 0, 22, 105, subM, '');

addItem('CC Home', 'http://www.sportclix.com/coachescorner.html', '');

addItem('Submit Articles', 'http://www.sportclix.com/submitarticle.html', '');

addItem('View Articles', 'mViewArticles', 'sm:');



startMenu('mViewArticles', true, 85, 0, 105, subM, '');

addItem('Jeff Jannsen', 'mJeffJannsen', 'sm:');

addItem('John Peter', 'mJohnPeter', 'sm:');

addItem('Allan Beaver', 'mAllanBeaver', 'sm:');



startMenu('mJeffJannsen', true, 85, 0, 105, subM, '');

addItem('Mission Posible', 'http://www.sportclix.com/missionpossible.html', '', subM, 20);

addItem('How To Build Your Confidence', 'http://www.sportclix.com/buildconfidence.htm', '', subM, 40);


startMenu('mAllanBeaver', true, 85, 0, 105, subM, '');

addItem('Interview with Jordin TooToo', 'http://www.sportclix.com/allanbeavertoto.html', '', subM, 40);




startMenu('mJohnPeter', true, 85, 0, 210, subM, '');

addItem('How The Game Eliminates Us All: <br>Why Some Players Leave Too Soon ', 'http://www.sportclix.com/eliminate.html', '', subM, 40);







///////////////       UNIQUE SITES     UNIQUE SITES     UNIQUE SITES     UNIQUE SITES     UNIQUE SITES     UNIQUE SITES     



startMenu('mUniqueSites', true, 85, 0, 90, subM, '');

addItem('Schools', 'mSchools', 'sm:');

addItem('Charities', 'mCharities', 'sm:');

addItem('Companies', 'mCompanies', 'sm:');



startMenu('mSchools', true, 70, 0, 210, subM, '');

addItem('St James Catholic High School', 'http://www.stjameschs.com', '');



startMenu('mCharities', true, 70, 0, 210, subM, '');

addItem('Guelph/Wellington Special Olympics', 'http://www.guelphwellingtonoso.com', '');


startMenu('mCompanies', true, 70, 0, 210, subM, '');
addItem('Young Drivers of Canada', 'http://www.sportclix.com/youngdrivers/index.html', '');
addItem('IBI Business Investments', 'http://www.ibinvest.com', '');
addItem('ALS Travel', 'http://www.alstravel.ca', '');
addItem('ASF Studios', 'http://www.sportclix.com/asfstudios/index.html', '');
addItem('Rolling Golf Tours', 'http://www.rollinggolftours.com', '');

///////////////       ASSOCIATIONS   ASSOCIATIONS    ASSOCIATIONS   ASSOCIATIONS    ASSOCIATIONS   ASSOCIATIONS  ASSOCIATIONS



startMenu('mAssociations', true, 85, 0, 90, subM, '');

addItem('By Location', 'mAssociationsByLocation', 'sm:');

addItem('By Sport', 'mAssociationsBySport', 'sm:');



startMenu('mAssociationsByLocation', true, 70, 0, 130, subM, '');

addItem('Essex County', 'mEssexCountyLocationOntario', 'sm:');

addItem('National', 'mNationalLocationOntario', 'sm:');

addItem('Provincial', 'mNationalLocationProvincial', 'sm:');

addItem('Windsor', 'mWindsorLocationOntario', 'sm:');

addItem('Guelph', 'mGuelphLocationOntario', 'sm:');

addItem('Waterloo', 'mWaterlooLocationOntario', 'sm:');








startMenu('mNationalLocationOntario', true, 110, 0, 70, subM, '');

addItem('CRSF', 'crsf', '', subM, 20);

startMenu('mNationalLocationProvincial', true, 110, 0, 70, subM, '');

addItem('ORSO', 'http://www.orso.on.ca', '', subM, 20);

startMenu('mWindsorLocationOntario', true, 110, 0, 70, subM, '');

addItem('Patchiefs', 'patchiefs', '', subM, 20);

startMenu('mGuelphLocationOntario', true, 110, 0, 70, subM, '');

addItem('Shayne Campbell Sports', 'http://www.shaynecampbellsports.com', '', subM, 60);
addItem('Trainers Haven', 'http://www.trainers-haven.com', '', subM, 40);
addItem('Ladies Softball', 'http://www.guelphladiessoftball.com', '', subM, 40);
addItem('District 10', 'http://www.cwossadistrict10.com', '', subM, 25);
addItem('District 4', 'http://www.cwossadistrict4.com', '', subM, 25);
addItem('Guelph Minor Lacrosse', 'http://www.guelphregalslacrosse.com', '', subM, 60);

startMenu('mWaterlooLocationOntario', true, 110, 0, 70, subM, '');

addItem('Futsal League', 'http://www.futsalsoccerleague.com', '', subM, 40);


startMenu('mEssexCountyLocationOntario', true, 110, 0, 100, subM, '');

addItem('Sun County Soccer League', '', '', subM, 40);
addItem('Essex Recreational Soccer League', 'http://www.essexrecreationalsoccer.com/', '', subM, 60);



startMenu('mAssociationsBySport', true, 70, 0, 110, subM, '');

addItem('Soccer', 'mAssociationsSportSoccer', 'sm:');

addItem('Ladies Softball', 'mAssociationsSportLadiesSoftball', 'sm:');


addItem('Minor Lacrosse', 'mAssociationsSportGuelphregalslacrosse', 'sm:');

addItem('Rope Jumping', 'mAssociationsSportRopeJumping', 'sm:');

addItem('Futsal League', 'mAssociationsSportFutsalLeague', 'sm:');

addItem('Hockey', 'mHockeySportVariousSports', 'sm:');
addItem('Various Sports', 'mVariousSports', 'sm:');




startMenu('mAssociationsSportSoccer', true, 90, 0, 100, subM, '');

addItem('Sun County Soccer League', '', '', subM, 40);
addItem('Essex Recreational Soccer League', 'http://www.essexrecreationalsoccer.com/', '', subM, 60);

startMenu('mAssociationsSportLadiesSoftball', true, 90, 0, 100, subM, '');
addItem('Guelph Ladies Softball', 'http://guelphladiessoftball.com', '', subM, 40);

startMenu('mAssociationsSportFutsalLeague', true, 90, 0, 100, subM, '');
addItem('Futsal League', 'http://www.futsalsoccerleague.com', '', subM, 20);

startMenu('mAssociationsSportGuelphregalslacrosse', true, 90, 0, 100, subM, '');
addItem('Guelph Minor Lacrosse', 'http://www.guelphregalslacrosse.com', '', subM, 40);

startMenu('mAssociationsSportRopeJumping', true, 90, 0, 100, subM, '');

addItem('CRSF', 'crsf', '', subM, 20);
addItem('ORSO', 'http://orso.on.ca', '', subM, 20);


startMenu('mHockeySportVariousSports', true, 90, 0, 100, subM, '');

addItem('Patchiefs', 'patchiefs', '', subM, 23);


startMenu('mVariousSports', true, 90, 0, 100, subM, '');

addItem('Shayne Campbell Sports', 'http://www.shaynecampbellsports.com', '', subM, 40);
addItem('Trainers Haven', 'http://www.trainers-haven.com', '', subM, 20);

addItem('District 10', 'http://www.cwossadistrict10.com', '', subM, 20);
addItem('District 4', 'http://www.cwossadistrict4.com', '', subM, 20);

///////////////         TEAMS         TEAMS         TEAMS         TEAMS         TEAMS         TEAMS         TEAMS         



startMenu('mTeams', true, 85, 0, 90, subM, '');

addItem('By Location', 'mTeamsByLocation', 'sm:');

addItem('By Sport', 'mTeamsBySport', 'sm:');



startMenu('mTeamsByLocation', true, 70, 0, 70, subM, '');

addItem('Ontario', 'mTeamsLocationOntario', 'sm:');



startMenu('mTeamsLocationOntario', true, 50, 0, 110, subM, '');

addItem('Guelph', 'mTeamsLocationOntarioGuelph', 'sm:');

addItem('Fergus', 'mTeamsLocationOntarioFergus', 'sm:');

addItem('Hamilton', 'mTeamsLocationOntarioHamilton', 'sm:');

addItem('Essex County', 'mTeamsLocationOntarioEssexCounty', 'sm:');

addItem('Toronto', 'mTeamsLocationOntarioToronto', 'sm:');

addItem('Brantford', 'mTeamsLocationOntarioBrantford', 'sm:');



startMenu('mTeamsLocationOntarioBrantford', true, 90, 0, 120, subM, '');
addItem('Brantford Golden Eagles', 'brantfordgoldeneagles', '', subM, 40);
addItem('Brantford 99ERS', 'brantford99ers', '', subM, 20);

startMenu('mTeamsLocationOntarioGuelph', true, 90, 0, 120, subM, '');

addItem('RBR Hockey', 'rbrhockey', '', subM, 20);

addItem('Guelph Royals Under 18 Boys', 'guelphroyalsu17b/index.html', '', subM, 40);

addItem('Guelph Dominators', 'guelphdominators', '', subM, 20);

addItem('CYO All Stars', 'cyomidgetgirls2', '', subM, 20);

addItem('Lions Boys Volleyball', 'lionsseniorboysvolleyball', '', subM, 20);

addItem('Lions Girls Volleyball', 'lionsgirlsvolleyball', '', subM, 20);

addItem('Lourdes Basketball', 'lourdesbball', '', subM, 20);

addItem('Lourdes Hockey', 'lourdeshockey', '', subM, 20);

addItem('Lions Sr. Hockey', 'stjamesbhockey', '', subM, 20);


startMenu('mTeamsLocationOntarioFergus', true, 90, 0, 120, subM, '');

addItem('Fergus Devils', 'fergusdevils', '', subM, 20);





startMenu('mTeamsLocationOntarioEssexCounty', true, 90, 0, 120, subM, '');

addItem('Essex County', 'essexenergizers', '', subM, 20);


startMenu('mTeamsLocationOntarioToronto', true, 90, 0, 120, subM, '');


addItem('Hearts Azzurri 89', 'heartsazzurri89', '', subM, 20);


startMenu('mTeamsLocationOntarioHamilton', true, 90, 0, 120, subM, '');

addItem('Jumpsations ', 'jumpsations', '', subM, 20);




startMenu('mTeamsBySport', true, 70, 0, 110, subM, '');

addItem('Rope Jumping', 'mTeamsSportRopeJumping', 'sm:');

addItem('Hockey', 'mTeamsSportHockey', 'sm:');

addItem('Body Building', 'mTeamsSportBodyBuilding', 'sm:');

addItem('Soccer', 'mTeamsSportSoccer', 'sm:');

addItem('Basketball', 'mTeamsSportBasketball', 'sm:');

addItem('Lacrosse', 'mTeamsSportLacrosse', 'sm:');

addItem('Volleyball', 'mTeamsSportVolleyball', 'sm:');



startMenu('mTeamsSportRopeJumping', true, 90, 0, 110, subM, '');

addItem('Essex Energizers', 'essexenergizers', '', subM, 20);

addItem('Jumpstations', '', '', subM, 20);



startMenu('mTeamsSportLacrosse', true, 90, 0, 110, subM, '');

addItem('Regals Jr. B', 'guelphregals', '', subM, 20);

startMenu('mTeamsSportVolleyball', true, 90, 0, 110, subM, '');

addItem('Lions Sr. Boys', 'lionsseniorboysvolleyball', '', subM, 20);

addItem('Lions Sr. Girls', 'lionsgirlsvolleyball', '', subM, 20);


startMenu('mTeamsSportHockey', true, 90, 0, 120, subM, '');

addItem('RBR Hockey Team', 'rbrhockey', '', subM, 20);

addItem('Guelph Dominators', 'guelphdominators', '', subM, 20);

addItem('Fergus Devils', 'fergusdevils', '', subM, 20);

addItem('Brantford Golden Eagles', 'brantfordgoldeneagles', '', subM, 40);

addItem('Brantford 99ERS', 'brantford99ers', '', subM, 20);

addItem('St.James Boys', 'stjamesbhockey', '', subM, 20);

addItem('Lourdes Boys', 'lourdeshockey', '', subM, 20);



startMenu('mTeamsSportBodyBuilding', true, 90, 0, 70, subM, '');

addItem('Paul Luis', 'paulluis', '', subM, 20);



startMenu('mTeamsSportSoccer', true, 90, 0, 100, subM, '');

addItem('Guelph Royals Under 18 Boys', 'guelphroyalsu17b', '', subM, 40);


addItem('Hearts Azzurri 89', 'heartsazzurri89', '', subM, 40);



startMenu('mTeamsSportBasketball', true, 90, 0, 100, subM, '');

addItem('St. James Girls Basketball ', 'stjamesgirls', '', subM, 40);
addItem('CYO Girls All Stars ', 'cyomidgetgirls2', '', subM, 40);
addItem('Lourdes Girls BBall ', 'lourdesbball', '', subM, 40);









///////////////       STARS    STARS    STARS    STARS    STARS    STARS    STARS    STARS    STARS    STARS    STARS    STARS    



startMenu('mStars', true, 85, 0, 90, subM, '');

addItem('By Location', 'mStarsByLocation', 'sm:');

addItem('By Sport', 'mStarsBySport', 'sm:');



startMenu('mStarsByLocation', true, 70, 0, 70, subM, '');

addItem('Ontario', 'mStarsLocationOntario', 'sm:');



startMenu('mStarsLocationOntario', true, 50, 0, 70, subM, '');

addItem('Guelph', 'mStarsLocationOntarioGuelph', 'sm:');



startMenu('mStarsLocationOntarioGuelph', true, 50, 0, 120, subM, '');

addItem('Kaleigh Rafter', 'kaleighrafter', '', subM, 20);





startMenu('mStarsBySport', true, 70, 0, 90, subM, '');

addItem('Baseball', 'mStarsSportBaseball', 'sm:');




startMenu('mStarsSportBaseball', true, 70, 0, 100, subM, '');

addItem('Kaleigh Rafter', 'kaleighrafter', '', subM, 20);









///////////// TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   TOURNAMENTS   



startMenu('mTournaments', true, 85, 0, 90, subM, '');

addItem('By Location', 'mTournamentsByLocation', 'sm:');

addItem('By Sport', 'mTournamentsBySport', 'sm:');



startMenu('mTournamentsByLocation', true, 70, 0, 70, subM, '');

addItem('Windsor', 'mTournamentsLocationWindsor', 'sm:');



startMenu('mTournamentsLocationWindsor', true, 50, 0, 70, subM, '');

addItem('Windsor', 'mTournamentsLocationWindsor', 'sm:');



startMenu('mTournamentsLocationOntarioGuelph', true, 50, 0, 165, subM, '');

addItem('2003 Junior Crusader<br>Classic Hockey Tournament', 'lourdes/', '', subM, 40);


startMenu('mTournamentsLocationWindsor', true, 50, 0, 165, subM, '');

addItem('All Ont Volleyball<br>Girls Volleyball ', 'ontariocatholicvolleyballtournament/', '', subM, 40);


startMenu('mTournamentsBySport', true, 70, 0, 90, subM, '');

addItem('Hockey', 'mTournamentsSportHockey', 'sm:');

addItem('VolleyBall', 'mTournamentsSportVolleyBall', 'sm:');

addItem('Basketball', 'mTournamentsSportBasketball', 'sm:');


startMenu('mTournamentsSportHockey', true, 70, 0, 165, subM, '');

addItem('2003 Junior Crusader<br>Classic Hockey Tournament', 'lourdes/', '', subM, 40);



startMenu('mTournamentsSportVolleyBall', true, 70, 0, 165, subM, '');

addItem('All Ontario Catholic<br>Volleyball Tournament', 'ontariocatholicvolleyballtournament', '', subM, 40);

addItem('Lions Classic<br>Volleyball Tournament', 'lionsclassic', '', subM, 40);


startMenu('mTournamentsSportBasketball', true, 70, 0, 165, subM, '');

addItem('CYO Basketball Tournament', 'guelphcyotournaments', '', subM, 40);


///////////// CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   CAMPS  CAMPS   



startMenu('mCamps', true, 85, 0, 90, subM, '');

addItem('By Location', 'mCampsByLocation', 'sm:');

addItem('By Sport', 'mCampsBySport', 'sm:');



startMenu('mCampsByLocation', true, 70, 0, 70, subM, '');

addItem('Ontario', 'mCampsLocationOntario', 'sm:');



startMenu('mCampsLocationOntario', true, 50, 0, 70, subM, '');

addItem('Guelph', 'mCampsLocationOntarioGuelph', 'sm:');


startMenu('mCampsLocationOntarioGuelph', true, 50, 0, 165, subM, '');

addItem('Shayne Campbell<br>Sports', 'http://www.shaynecampbellsports.com', '', subM, 40);




startMenu('mCampsBySport', true, 70, 0, 90, subM, '');
addItem('All Sports', 'mCampsSportAll', 'sm:');




startMenu('mCampsSportAll', true, 70, 0, 165, subM, '');
addItem('Shayne Campbell<br>Sports', 'shaynecampbellsports', '', subM, 40);




/////////////  ABOUT SPORTCLIX ABOUT  ABOUT SPORTCLIX ABOUT  ABOUT SPORTCLIX ABOUT  ABOUT SPORTCLIX ABOUT  ABOUT SPORTCLIX ABOUT 



startMenu('mAboutSportclix', true, 0, 22, 95, subM, '');

addItem('Philosophy', 'http://www.sportclix.com/philosophy.html', '');

addItem('Terms', 'http://www.sportclix.com/termsofconditions.html', '');

addItem('Contact', 'http://www.sportclix.com/contact.html', '');





}











addMenuBorder(pMenu, window.subBlank,

 null, '#666666', 1, '#CCCCDD', 2);









addDropShadow(pMenu, window.subM,

 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);

addDropShadow(pMenu, window.subBlank,

 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);









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)

{

 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').

 var mD = menuObj.menu[menuName][0];

 // Add timer and counter variables to the menu data structure, we'll need them.

 if (!mD.timer) mD.timer = 0;

 if (!mD.counter) mD.counter = 0;



 with (mD)

 {

  // Stop any existing animation.

  clearTimeout(timer);



  // If the litNow() array doesn't show this menu as lit, and we're still showing it,

  // force a quick hide (this stops miscellaneous timer errors).

  //if (dir>0 && !menuObj.litNow[menuObj.menu[menuName][0].parentMenu]) dir = -100;



  // If the layer doesn't exist (cross-frame navigation) quit.

  if (!lyr || !lyr.ref) return;

  // This next line is not strictly necessary, but it stops the one-in-a-hundred menu that

  // shows and doesn't hide on very quick mouseovers.

  if (!visNow && dir>0) dir = 0-dir;

  // Show the menu if that's what we're doing.

  if (dir>0) lyr.vis('visible');

  // Also raise showing layers above hiding ones.

  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) );



  // Increment the counter and if it hasn't reached the end (counter is 0% or 100%),

  // set the timer to call the animation function again in 40ms to contine the animation.

  // Note that we hide the menu div on animation end in that direction.

  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)

{

 // Loop through the menu array of that object, finding matching ItemStyles.

 for (var mN in mObj.menu)

 {

  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';

  if (mR[0].itemSty != iS) continue;

  // Loop through the items in that menu, move them down and to the right a bit.

  for (var mI=1; mI<mR.length; mI++)

  {

   mR[mI].iX += bordW+backW;

   mR[mI].iY += bordW+backW;

  }

  // Extend the total dimensions of menu accordingly.

  mW = mR[0].menuW += 2*(bordW+backW);

  mH = mR[0].menuH += 2*(bordW+backW);



  // Set the menu's extra content string with divs/layers underneath the items.

  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/100):'')+

   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+

   (mH-2*bordW)+'px; z-index:990"></div></div>';

 }

};



function addDropShadow(mObj, iS)

{

 for (var mN in mObj.menu)

 {

  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;

  if (mD.itemSty != iS) continue;

  for (var shad=2; shad<a.length; shad++)

  {

   var s = a[shad];

   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+

    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';

   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+

    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; z-index:'+

    (a.length-shad)+'; '+(s[0]!=null?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+(s[0]/100):'')+

    '"></div>';

   addW=Math.max(addW, s[2]+s[4]);

   addH=Math.max(addH, s[3]+s[5]);

  }

  mD.menuW+=addW; mD.menuH+=addH;

 }

};





