/*
10/27/2008 N. Boemio - (CR# 3354) - Changed "var HEIGHT = 28;" to "var HEIGHT = 33;" to adjust for
           hiding of "Career Opportunities" menu option.
11/06/2008 N. Boemio - (CR# 3380) - Changed "TOPOFFSET = 0" to "TOPOFFSET = 40;" to adjust for
           hiding of  "Public Finance", "Structured Finance", and "International Finance" menu options.
*/

/*
  --- menu level scope settins structure --- 
  note that this structure has changed its format since previous version.
  Now this structure has the same layout as Tigra Menu GOLD.
  Format description can be found in product documentation.
*/

// added by DeSantis Breindel to make compatible with Firefox
if (document.all) {
   var HEIGHT       = 33;
   var WIDTH       = 146;
   var LEFTOFFSET   = 0;
   var TOPOFFSET    = 40;
} else {
   var HEIGHT       = 13;
   var WIDTH       = 149;
   var LEFTOFFSET   = -5;
   var TOPOFFSET    = -1;
}

var MENU_POS = [
{
   // item sizes
   'height': HEIGHT,
   'width': WIDTH,
   // menu block offset from the origin:
   //   for root level origin is upper left corner of the page
   //   for other levels origin is upper left corner of parent item
   'block_top': getOffset('top'),
   'block_left': getOffset(),
   // offsets between items of the same level
   'top': HEIGHT+1,
   'left': 0,
   'right': 0,
   // time in milliseconds before menu is hidden after cursor has gone out
   // of any items
   'hide_delay': 200,
   'expd_delay': 200,
   'css' : {
      'outer': ['m0l0oout', 'm0l0oover'],
      'inner': ['m0l0iout', 'm0l0iover']
   }
},
{
   'height': 14,
   'width': WIDTH+90,
   'block_top': 0,
   'block_left': - WIDTH - 91,
   'top': 14,
   'left': 0,
   'css': {
      'outer' : ['m0l1oout', 'm0l1oover'],
      'inner' : ['m0l1iout', 'm0l1iover']
   }
},
{
   'height': 15,
   'block_top': 5,
   'block_left': +145,
   'width': 148,
   'css': {
      'outer': ['m0l2oout', 'm0l2oover'],
      'inner': ['m0l1iout', 'm0l2iover']
   }
}
]


function getOffset(pos) {
   var topnavImg = document.images['appsImg'];
   var offsetTrail = topnavImg;
   var offsetLeft = 0;
   var offsetTop = 0;
   
   while (offsetTrail) {
      offsetLeft += offsetTrail.offsetLeft;
      offsetTop += offsetTrail.offsetTop;
      offsetTrail = offsetTrail.offsetParent;
   }

   if (pos == 'top') return offsetTop + TOPOFFSET;
   return offsetLeft + 15 + LEFTOFFSET;
}