rem: modeToolbox = contentPanel.parentNode.insertBefore(modeToolbox,contentPanel); 
add: modeToolbox = contentPanel.parentNode.insertBefore(modeToolbox, contentPanel); 
context:     var onModified = function(aEvent)    {      if(aEvent.attrName == "location") {        var contentPanel = document.getElementById("contentPanel");        var modeToolbox = document.getElementById("mode-toolbox");        var palette = modeToolbox.palette;        modeToolbox.removeEventListener("DOMAttrModified", onModified, false);        var bag = retrieveToolbarProperties(modeToolbox);        if(aEvent.newValue == "top" && aEvent.prevValue == "bottom") {          // place the mode toolbox at the top of the left pane          modeToolbox = contentPanel.parentNode.insertBefore(modeToolbox,contentPanel);          modeToolbox.palette = palette;          var toolbar = document.getElementById("mode-toolbar");        } else if(aEvent.newValue == "bottom" && aEvent.prevValue == "top") {          // place the mode toolbox at the bottom of the left pane          modeToolbox = contentPanel.parentNode.appendChild(modeToolbox);          modeToolbox.palette = palette;        }        restoreToolbarProperties(modeToolbox,bag);        modeToolbox.addEventListener("DOMAttrModified", onModified, false);      }    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/f70e29689b8162967890390645475b7ad6b03767/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js