function tk_FloatToolPane()
{
    this.floatPane = function()
    {
        var oMainTable = document.getElementById("MSOTlPn_Tbl");
        
        if (oMainTable == null) return;
        
        var oContainer = document.createElement("div");
        
        document.forms[0].appendChild(oContainer);
        oContainer.id = "idTkToolPane";
        //oMainTable.parentNode.style.display = "none";
        
        var oBody = document.getElementById("MSOTlPn_Parts").firstChild;
        oContainer.appendChild(oBody);
        oBody.style.width="";
        oBody.style.overflow = "";

        var sTitle = "Tool Pane";

        if (oBody.firstChild.tagName == "TABLE" /*&& oBody.firstChild.className == */)
        {
            var oTable = oBody.firstChild;
            sTitle = oTable.firstChild.firstChild.firstChild.title;
            oTable.firstChild.firstChild.style.display = "none";
        }

        var oWindow = dhtmlwindow.open("tkToolPane", "div", "idTkToolPane", sTitle, "width=300px, height=400px, center=1, resize=1, scrolling=1");

        var oButtons = document.getElementById("MSOTlPn_ToolPaneButtons");
        oButtons.style.paddingTop = "3px"; oButtons.style.borderTop = "1px solid navy";
        oContainer.parentNode.parentNode.insertBefore(oButtons, oContainer.parentNode.nextSibling);

        oMainTable.parentNode.parentNode.removeChild(oMainTable.parentNode); //.style.display = "none";
    }
}

