HWbName = navigator.appName;

function itemEnterDOM(obj, anEvent)
{
  var menuid = obj.getAttribute('menuid');
  var mitem=getRegisteredMenu(menuid);
  if (mitem.shtim_!=null)
    Menu_clearTimeout(mitem.shtim_);
  mitem.clearClose();
  if (!mitem.isseperator_ && !mitem.nohi)
    mitem.highlighteItem();
  if(!mitem.menu_.wasDown_ && !mitem.ishanl_ && !mitem.menu_.close_)
    return;

  functionString="showItem("+mitem.id_+")";
  var sleep=clsleep;
  if (mitem.menu_.orientation_=="top"){sleep=100};
  if (mitem.enterEvent!="focus") {
    mitem.shtim_=Menu_setTimeout(functionString,sleep,window);
  }
  else {
    if (!anEvent || (anEvent && anEvent.type=="keypress")) {
      mitem.shtim_=Menu_setTimeout(functionString,0,window);
    } 
  }
  if (mitem.menu_.parentItem_)
    mitem.menu_.parentItem_.highlighteItem();
  if (anEvent) {
    anEvent.cancelBubble = true;
  }
}

function itemLeaveDOM(obj, anEvent)
{
  var menuid = obj.getAttribute('menuid');
  var mitem=getRegisteredMenu(menuid);
  if (mitem.shtim_)
    Menu_clearTimeout(mitem.shtim_);
  mitem.shtim_=null;
  if (mitem.menu_.isvis_)
    mitem.lowlightItem();

  if (anEvent) {
    anEvent.cancelBubble = true;
  }
  if(!mitem.menu_.wasDown_ && !mitem.ishanl_ && !mitem.menu_.close_)
    return;
  mitem.setClose();
  window.status="";
}

function onMouseOverTD(anObj, anEvent) {

  var mitem=getRegisteredMenu(anObj.getAttribute('menuid'));
  mitem.enterEvent = anEvent.type;
  itemEnter(anObj, anEvent);
}


function onMouseOutTD(anObj, anEvent) {

  var mitem=getRegisteredMenu(anObj.getAttribute('menuid'));
  if (!mitem)
    return;
  mitem.enterEvent = "";
  itemLeave(anObj, anEvent);
}

function onClickTD(anObj, anEvent) {

  var mitem=getRegisteredMenu(anObj.getAttribute('menuid'));
  if (true) {
    itemClicked(anObj, anEvent);
  }
  return false;
}



function onFocusAnchor (anObj, anEvent) 
{
  var menu_id = anObj.getAttribute('menuid');
  var mitem=getRegisteredMenu(menu_id);
  if (!mitem)
    return true;

  if (mitem.menu_.visibility()==vishide) {
    return true;
  }

  if (mitem.enterEvent)
    return true;

  mitem.enterEvent = anEvent.type;
  var id = anObj.id;

  if (mitem.menu_.focusMenu_ && mitem.menu_.focusMenu_.visibility()!=vishide) {
    anObj.blur();
    mitem.menu_.focusMenu_.focus();
    return true;
  }

  if (id.indexOf("dummy")==-1) {
      
    mitem.menu_.focusElement_ = anObj;
    mitem.menu_.focusId_ = menu_id;
    itemEnter(anObj, anEvent);
  }
  else {
    if ((anEvent.shiftKey && document.all) || (!anEvent.altKey && !document.all)) {
      anObj.blur();
      mitem.menu_.focusPrevious();
    }
    else {
      anObj.blur();
      mitem.menu_.focusNext();
    }
  }
  return true;
}


function onBlurAnchor(anObj, anEvent) {

  var menu_id = anObj.getAttribute('menuid');
  var mitem=getRegisteredMenu(menu_id);
  if (!mitem)
    return;

  if (mitem.enterEvent) {

    if (anObj.id.indexOf('dummy')==-1) {
      itemLeave(anObj, anEvent);
    }
    mitem.enterEvent = "";
  }
}

function onKeyPressAnchor(anObj, anEvent) {

  var menuid = anObj.getAttribute('menuid');
  var mitem=getRegisteredMenu(menuid);

  if (anEvent.keyCode == 27) { // escape-key
    if (mitem.menu_.parentItem_ || mitem.menu_.openerElement_) {
      if (mitem.menu_.menuLayer_) {
        mitem.menu_.hide();
      }
      if (mitem.menu_.parentItem_) {
        mitem.menu_.blur(mitem.menu_.parentItem_.menu_);
        mitem.menu_.parentItem_.menu_.focus();
      }
      else {
        
        if (mitem.menu_.openerElement_) {

          mitem.menu_.openerElement_.focus();
          mitem.menu_.blur();
        }
      }
    }
  }
  else {
    if (anEvent.keyCode == 13) { // return/enter-key

      itemClicked(anObj, anEvent);
      itemEnter(anObj, anEvent);
    }
  }
  return true;
}

MenuItem.prototype.createAnchorId = function () {
  if (this.quickTestId_) {
    return 'a_'+this.quickTestId_;
  }
  return 'a_'+this.id_;
}

MenuItem.prototype.toStringDOM = function()
{
  var mco=this.menu_.MenuConf_;
  var menu_id = ' menuid="'+this.id_+'"';
  var str=[];

  if (this.isStartAnchor_ || this.isEndAnchor_) {
    var handler = "";
  }
  else {
    if (this.isdisabled_ || this.isseperator_) {
      var handler = 'id="menuitem'+this.id_+'" menuid="'+this.id_+'"';
    }
    else {
      var handler = 'onclick="return onClickTD(this, self.event||arguments[0])" onmouseover="onMouseOverTD(this, self.event||arguments[0])" onmouseout="onMouseOutTD(this, self.event||arguments[0])" onmousedown="this.className=\'Active\'" onmouseup="this.className=\'Default\'" id="menuitem'+this.id_+'" menuid="'+this.id_+'"';
    }
  }
  
//  *** Menu Title *** 
  if (this.menu_.orientation_!='left') {
    str[str.length]='<td';
    if (this.isdisabled_) {
      str[str.length]=' class="Disabled" ';
    }
    else {
      str[str.length]=' class="Default" ';
    }
    str[str.length]=handler+'><table border="0" cellpadding="0" cellspacing="0"><tr>';
  }
  else {
    str[str.length]='<tr ';
    if (this.isdisabled_) {
      str[str.length]=' class="Disabled" ';
    }
    else {
      str[str.length]=' ';
    }
    str[str.length]=handler+'>';
  }
  if (this.isspace_)
  {
    str[str.length]='<td colspan="2"></td>';
  }
  else  if (this.isseperator_)
  {
    str[str.length]='<td colspan="2" height="10"><div class="Separator"></div></td>';
  }
  else  if (this.isStartAnchor_)
  {
    str[str.length]='<td colspan="2"><a id="dummy_0_'+this.menu_.id_+'" '+menu_id+' href="javascript:void(0)" onFocus="return onFocusAnchor(this, self.event||arguments[0]);" onBlur="onBlurAnchor(this, self.event||arguments[0])"></a></td>';
  }
  else  if (this.isEndAnchor_)
  {
    str[str.length]='<td colspan="2"><a id="dummy_1_'+this.menu_.id_+'" '+menu_id+' href="javascript:void(0)" onFocus="return onFocusAnchor(this, self.event||arguments[0]);" onBlur="onBlurAnchor(this, self.event||arguments[0])"></a></td>';
  }
  else if (this.menu_ && this.menu_.isiconbar_ && this.icondefault_)
  {  // do not display caption just icon
    var iconsrc=this.icondefault_;
    var iwidth=mco.IconbarDefaultWidth;
    if (this.iwidth_)
      iwidth=this.iwidth_;
    var iheight=mco.IconbarDefaultHeight;
    if (this.iheight_)
      iheight=this.iheight_;

// *** Menu Item ***

    if (this.isdisabled_ && this.icondisabled_)
      iconsrc=this.icondisabled_;
    str[str.length]='<td class="';
    if (this.getPostMenuItem()) // If the icon has arrow icon following it, pad only to the left
      str[str.length]='ToolbarIconLeft';
    else if (this.alignprevitem_) // If the icon is an arrow icon, pad only to the right
      str[str.length]='ToolbarIconRight';
    else // All other icons pad both sides
      str[str.length]='ToolbarIconLeft ToolbarIconRight';
    str[str.length]='" title="'+this.caption_+'">';
    if (!this.isdisabled_) {
      this.anchorId_ = this.createAnchorId();
      str[str.length]='<a id="'+this.anchorId_+'"'+menu_id+' href="javascript:void(0)" onFocus="onFocusAnchor(this, self.event||arguments[0])" onBlur="onBlurAnchor(this, self.event||arguments[0])" onKeyPress="return onKeyPressAnchor(this, self.event||arguments[0])">';
    }
    str[str.length]='<img alt="'+this.caption_+'" width="'+iwidth+'" height="'+iheight+'" '+menu_id+ ' id="icon'+this.id_+'" border="0" src="';
    str[str.length]=iconsrc;
    str[str.length]='">';
    if (!this.isdisabled_) {
      str[str.length]='</a>';
    }
    str[str.length]='</td>';
  }
  else
  {
    str[str.length]='<td class="IconLabel">';

    if (this.ischecked_)
    {
      var iw = parseInt(mco.CheckedIconWidth);
      var img_src = mco.CheckedIcon;
    }
    else
    {
      var iw = 0;
      var img_src = iep;
    }
    str[str.length]='<img width="'+iw+'" id="che'+this.id_+'" border="0" src="'+img_src+'" class="MenuItemCheckedIcon">';

    if (!this.isdisabled_) {
      this.anchorId_ = this.createAnchorId();
      str[str.length]='<a id="'+this.anchorId_+'"'+menu_id+' class="Label" href="javascript:void(0)" onFocus="onFocusAnchor(this, self.event||arguments[0])" onBlur="onBlurAnchor(this, self.event||arguments[0])" onKeyPress="return onKeyPressAnchor(this, self.event||arguments[0])">';
    }
    else  {
      str[str.length]='<span>';
    }
    str[str.length]=this.caption_;
    
/* Key shortcuts hidden by default.
    if (this.key_) {
      str[str.length]='   <span class="MenuKey">Ctrl+Shift+'+this.key_+'</span>';
    }
*/
    if (!this.isdisabled_) {
      str[str.length]='</a>';
    }
    else  {
      str[str.length]='</span>';
    }
    str[str.length]='</td>';
    str[str.length]='<td class="Arrow">';
    if (this.child_)
    {
      str[str.length]='<img id="chi'+this.id_+'" border="0" src="';
      if (this.menu_.orientation_=="top")
      {
        str[str.length]=mco.ChildTIcon;
        str[str.length]='" height="'+mco.ChildTIconHeight+'" width="'+mco.ChildTIconWidth+'" border="0">';
      }
      else
      {
        str[str.length]=mco.ChildLIcon;
        str[str.length]='" height="'+mco.ChildLIconHeight+'" width="'+mco.ChildLIconWidth+'" border="0">';
      }
    }
    str[str.length]='</td>';
  }
  str[str.length]='</tr>';
  if (this.menu_.orientation_!="left") {
    str[str.length]='</table></td>';
  }

  return str.join('');
}

function alertObj(obj,pref)
{
  var pref=pref||"";
  var str="";
  for (var a in obj)
  {
    if (a.indexOf("on")!=-1)
    {
      str+=pref+a+">";
      str+=obj[a];
      str+="<\n";
    }
  }
  return str;
}

Menu.prototype.createNewMenuRepDOM= function(obj)
{
  var mco = this.MenuConf_;
  var orientation = this.orientation_;

  var str=obj.prelayerstr+obj.str+obj.postlayerstr;
  if (this.container_)
  { // the menu has to be displayed in an other frame in an object named hw_menuContainer
    if (!this.theCont_)
    {
      var containername=this.containername_ || "hw_menuContainer";
      this.theCont_=eval("top.frames."+this.container_+"."+containername);
      this.theDocument_ = eval("top.frames."+this.container_+".document");
      this.theWindow_ = eval("top.frames."+this.container_);
    }
    WriteToPageRepl(str,this.theCont_);
  }
  else if (this.frame_)
  { // menu has to be displayed in an other frame
    if (!this.theCont_)
    {
      this.theCont_=eval("top.frames."+this.frame_);
      this.theDocument_=eval("top.frames."+this.frame_+".document");
      this.theWindow_=eval("top.frames."+this.frame_);
    }
    WriteToPage(str,this.theCont_);
  }
  else
  { // display menu in the same page
    if (!this.theCont_)
    {
      this.theCont_=eval("window");
      this.theDocument_=eval("window.document");
      this.theWindow_=eval("window");
    }
    WriteToPage(str,this.theCont_);
  }

  this.menuCont_=this.theCont_;
  this.menuLayer_=this.theDocument_.getElementById('menu'+this.id_);
  this.menuTable_=this.theDocument_.getElementById('menutable'+this.id_);

  // compute max item width
  var maxwidth= 0;
  for (var itemcont=0; itemcont< this.items_.length; itemcont++)
  {
    var it= this.items_[itemcont];
    if (it.isdisplayed_)
    {  // the item is displayed. For some reasons (iconbar and disabled) this may be not the case
      it.iLay_=this.theDocument_.getElementById("menuitem"+it.id_);
        // no need to get reference to child-image when no inverted version is defined
      if (it.child_ && ((mco.ChildTIconInv && orientation=="top") || (mco.ChildLIconInv && orientation=="left"))) {
        it.chiimg_=this.theDocument_.getElementById("chi"+it.id_);
      }
        // no need to get reference to child-image when element is not checkable or no inverted version is defined
      if (it.ischecked_ && mco.CheckedIconInv)
        it.checkimg_=this.theDocument_.getElementById("che"+it.id_);

      if (it.menu_ && it.menu_.isiconbar_ && it.icondefault_)
        it.iconimg_=this.theDocument_.getElementById("icon"+it.id_);

      if (maxwidth<it.iLay_.offsetWidth)
        maxwidth=it.iLay_.offsetWidth;
    }
  }
  // store first and last element that contains an anchor (508 support)
  var first_anchor_id;
  var last_anchor_id;
  for (var itemcont=0; itemcont< this.items_.length; itemcont++)
  {
    var it = this.items_[itemcont];
    if (it.anchorId_) {
      last_anchor_id = it.anchorId_;
      if (!first_anchor_id)
        first_anchor_id = it.anchorId_;
    }
  }
  this.firstAnchorId_ = first_anchor_id;
  this.lastAnchorId_  = last_anchor_id;

  this.maxItemWidth_=maxwidth;
  for (var itemcont=0; itemcont< this.items_.length; itemcont++)
  {
    var it= this.items_[itemcont];
    if (it.isdisplayed_)
    {  // the item is displayed. For some reasons (iconbar and disabled) this may be not the case
      var mitem=it.iLay_;
      if (!it.offsetComputed_)
      {
        it.offsetTop_=computeOffsetTop(mitem,"DIV");
        it.offsetLeft_=computeOffsetLeft(mitem,"DIV");
        it.offsetComputed_=true;
      }
    }
  }

  this.menuLayer_.style.width=getCoordValue(this.menuTable_.offsetWidth);
  this.width_=this.menuLayer_.offsetWidth;
  this.height_=this.menuLayer_.offsetHeight;

  //compute first itemoffsets
  var firstitem=this.items_[0];
  var of=this.MenuConf_.Margin;
  this.itemOffsetx_=firstitem.offsetLeft_+of;
  this.itemOffsety_=firstitem.offsetTop_+of
}

Menu.prototype.clientHeight=function()
{
  var y = 0;
  if (this.theWindow_ && this.theWindow_.innerHeight) // all except Explorer
  {
	y = this.theWindow_.innerHeight;
  }
  else {
    if (this.theDocument_ && 
        this.theDocument_.documentElement && 
        this.theDocument_.documentElement.offsetHeight)    // Explorer 6 Strict Mode
    {
      y = this.theDocument_.documentElement.offsetHeight;
    }
    else {
      if (this.theDocument_ && this.theDocument_.body) // other Explorers
      {
        y = this.theDocument_.body.offsetHeight;
      }
    }
  }
  return y;
}

Menu.prototype.clientWidth=function()
{
  var x = 0;
  if (this.theWindow_ && this.theWindow_.innerWidth) // all except Explorer
  {
	x = this.theWindow_.innerWidth;
  }
  else {
    var isIE55 = document.all && document.fireEvent && !document.createComment;
    if (isIE55) { // hotfix for MSIE5.5 support
      x = this.theDocument_.body.offsetWidth;
    }
    else {
      if (this.theDocument_ && 
          this.theDocument_.documentElement && 
          this.theDocument_.documentElement.offsetWidth)    // Explorer 6 Strict Mode
      {
        x = this.theDocument_.documentElement.offsetWidth;
      }
      else {
        if (this.theDocument_ && this.theDocument_.body) // other Explorers
        {
          x = this.theDocument_.body.offsetWidth;
        }
      }
    }
  }
  return x;
}

Menu.prototype.getScrollTop = function()
{
  var pos = 0;
  if (this.theWindow_.innerHeight) {
    pos = this.theWindow_.pageYOffset;
  }
  else { 
    if (!this.theDocument_) return pos;

    if (this.theDocument_.scrollTop) {
      pos = this.theDocument_.scrollTop;
    }
  	else {
      if (this.theDocument_.documentElement && 
          this.theDocument_.documentElement.scrollTop) {
        pos = this.theDocument_.documentElement.scrollTop;
      }
      else {
        if (this.theDocument_.body) {
          pos = this.theDocument_.body.scrollTop;
        }
      }
    }
  } 
  return pos;
}

Menu.prototype.getScrollLeft = function()
{
  var pos = 0;
  if (this.theWindow_.innerWidth) {
    pos = this.theWindow_.pageXOffset;
  }
  else {
    if (!this.theDocument_) return pos;

    if (this.theDocument_.scrollLeft) {
      pos = this.theDocument_.scrollLeft;
    }
  	else {
      if (this.theDocument_.documentElement && 
          this.theDocument_.documentElement.scrollLeft) {
        pos = this.theDocument_.documentElement.scrollLeft;
      }
      else {
        if (this.theDocument_.body) {
          pos = this.theDocument_.body.scrollLeft;
        } 
      }
    }
  }
  return pos;
}

Menu.prototype.showAtDOM=function(x,y,vis,relright)
{
  if (this.frame_ && !this.container_)
  {
    if (this.frametop_)
    {
      y=this.getScrollTop()+2 ;
    }
    else
    {
      x=this.getScrollLeft()+2;
    }
  }

  var x_vis_area_start = this.getScrollLeft();
  var x_vis_area_end   = x_vis_area_start+this.clientWidth();

  var xo=x;
  if (relright)
  { // position is relative from the right window corner
    x=x_vis_area_end-x;
  }

  if (this.orientation_=="left") {
    if (x>x_vis_area_end-this.maxItemWidth_-25)
    {
      if (this.parentItem_ && this.parentItem_.menu_.orientation_=="left") {
        x=this.parentItem_.menuLeft()-this.maxItemWidth_;
      }
      else {
        x=x_vis_area_end-this.maxItemWidth_-25;
      }
    }
    if (x<x_vis_area_start) {
      x = x_vis_area_start;
    }
  }

  this.menuLayer_.style.top=getCoordValue(y);
  this.menuLayer_.style.left=getCoordValue(x);
  this.menuLayer_.style.visibility=vis;
  var mar=this.MenuConf_.Margin;
  if (!(x==this.x_ && y==this.y_) || !this.created_)
  {
    for (var itemcont=0; itemcont< this.items_.length; itemcont++)
    {
      var it=this.items_[itemcont];
      if (it.isdisplayed_)
      {  // the item is displayed. For some reasons (iconbar and disabled) this may be not the case
        it.menuTop_=it.offsetTop_+y+mar;
        if (this.container_)
        {
          it.menuLeft_=this.clientWidth()-(x+it.offsetLeft_+mar);
        }
        else
        {
          it.menuLeft_=x+it.offsetLeft_+mar;
        }
        it.menuBottom_=it.menuTop_+it.iLay_.offsetHeight;
        it.menuRight_=it.menuLeft_+parseInt(this.maxItemWidth_);
      }
    }
  }
}

function WriteToPageRepl(str,thecont) {
  if (typeof thecont=="undefined") return;
  thecont.innerHTML=str;
}

function WriteToPage(str,thecont) {
  if (typeof thecont=="undefined") return;

  var the_temp = thecont.document.getElementById("MENU_CONTAINER");
  var div_available = true;

  if (!the_temp) {
    the_temp = thecont.document.createElement("DIV");
    the_temp.id = "MENU_CONTAINER";
    the_temp.style.position = "absolute";
    the_temp.style.visibility = "hidden";
    the_temp.style.top = getCoordValue(0);
    the_temp.style.left = getCoordValue(0);
    the_temp.style.zIndex = 10;
    the_temp.constructedContainers_ = 0;
    the_temp.usedContainers_ = 0;
    thecont.document.body.appendChild(the_temp);
  }
  
  var target_container = thecont.document.getElementById("MENU_CONTAINER_"+the_temp.usedContainers_);
  if (!target_container) {

    var target_container = thecont.document.createElement("DIV");
    target_container.id = "MENU_CONTAINER_"+the_temp.usedContainers_;
    target_container.style.position = "absolute";
    target_container.style.visibility = "hidden";
    target_container.style.top = getCoordValue(0);
    target_container.style.left = getCoordValue(0);
    target_container.style.zIndex = 10;
    the_temp.constructedContainers_++;
    the_temp.appendChild(target_container);
    var div_available = false;
  }
  the_temp.usedContainers_++;
  target_container.innerHTML = str;
  return target_container;
}

function computeOffsetTop(elem,stoptag,count)
{
  var el2=elem;
  var c=1;
  if (count!=null)
    c=count;
  var off=el2.offsetTop;
  while ((el2=el2.offsetParent)!="undefined")
  {
    if (el2.tagName==stoptag && !(--c) || el2.tagName=="BODY") break;
    off+=el2.offsetTop;
  }
  return off;
}

function computeOffsetLeft(elem,stoptag,count)
{
  var el2=elem;
  var c=1;
  if (count!=null)
    c=count;
  var off=el2.offsetLeft;

  while ((el2=el2.offsetParent)!="undefined")
  {
    if (el2.tagName==stoptag && !(--c) || el2.tagName=="BODY") break;
    off+=el2.offsetLeft;
  }
  return off;
}

function Menu_onLoadDOM () 
{
  var MAX_HELPCONTAINERS = 20;
  var isMacIE = (document.all && navigator.platform.toLowerCase().indexOf('mac')!=-1);
  var doGenerateContainers = isMacIE;
  var doHideLayers = ((typeof gAccessibility!="undefined" && gAccessibility) || (document.all));

  if (!doGenerateContainers && !doHideLayers)
    return true;

  // get all registered menus
  var reg_menus = top.menu_registeredMenus;

  if (reg_menus && reg_menus.length>0) {

    var container_cache = [];
    for (var menu_count=0; menu_count<reg_menus.length; menu_count++) {

      var menu = reg_menus[menu_count];
      // find target-container for menu
      var the_cont;
      var eval_cont;
      if (menu.theCont_) {
        the_cont = menu.theCont_;
      }
      else {
        if (menu.container_) {
          var containername=menu.containername_ || "hw_menuContainer";
          var eval_cont = "top.frames."+menu.container_+"."+containername;
        }
        else {
          if (menu.frame_) {
            var eval_cont = "top.frames."+menu.frame_;
          }
          else {
            var eval_cont = "window";
          }
        }
        the_cont = eval(eval_cont);
      }

      // generate help-containers in the target containers
      if (the_cont && the_cont.document) {
        
        if (doHideLayers) {

          var layers_to_hide = the_cont.gMenuHideLayers;
          if (layers_to_hide) {

            for (var cnt=0; cnt<layers_to_hide.length; cnt++) {

              var hide_div = the_cont.document.getElementById(layers_to_hide[cnt]);
              if (hide_div) {
                if (menu.parentItem_) {

                  menu.parentItem_.menu_.addHideLayer(hide_div);
                }
              }
            }
          }
        }

        if (doGenerateContainers) {
          if (the_cont.menu_pregenerated_containers_) {
            the_cont.menu_pregenerated_containers_++;
          }
          else {
            the_cont.menu_pregenerated_containers_ = 1;
            container_cache[container_cache.length] = the_cont;
          }
        }
      }
    }

    if (doGenerateContainers) {

      for (var entry=0; entry<container_cache.length; entry++) {
        
        var the_cont = container_cache[entry];
        var the_temp = the_cont.document.getElementById("MENU_CONTAINER");
        if (!the_temp) {
          // generate parent-container
          the_temp = the_cont.document.createElement("DIV");
          the_temp.id = "MENU_CONTAINER";
          the_temp.style.position = "absolute";
          the_temp.style.visibility = "hidden";
          the_temp.style.top = getCoordValue(0);
          the_temp.style.left = getCoordValue(0);
          the_temp.style.zIndex = 10;
          the_temp.constructedContainers_ = 0;
          the_temp.usedContainers_ = 0;
        }
        
        while (the_temp.constructedContainers_<the_cont.menu_pregenerated_containers_ && 
               the_temp.constructedContainers_<MAX_HELPCONTAINERS) {
          var target_container = the_cont.document.createElement("DIV");
          target_container.id = "MENU_CONTAINER_"+the_temp.constructedContainers_;
          target_container.style.position = "absolute";
          target_container.style.visibility = "hidden";
          target_container.style.top = getCoordValue(0);
          target_container.style.left = getCoordValue(0);
          target_container.style.zIndex = 10;
          the_temp.constructedContainers_++;
          the_temp.appendChild(target_container);
        }
        the_cont.document.body.appendChild(the_temp);
      }
    }
  }
  return true;
}

