  var Web20Tools = new Object();
  Web20Tools.tools = new Array();
  Web20Tools.iconPrefix = "/images/icons";
  Web20Tools.elShowToolsId = "show_web20_tools";
  Web20Tools.elHideToolsId = "hide_web20_tools";
  Web20Tools.elHideToolsId = "hide_web20_tools";
  Web20Tools.status = "hidden";

  Web20Tools.elAddMarginTopId = "column2";
  Web20Tools.elAddMarginTopAmt = 12;

  Web20Tools.elMainId = "web20_tool_list";

  Web20Tools.print = function()
  {
    var t = new HTag();
    //t.debug();
    var i, c;
    t.st("div");
    t.att("id", Web20Tools.elMainId);
    t.att("style", "display: none;");
      t.st("ul");
      t.att("class", "web20_tool_list");
        for (i = 0, c = Web20Tools.tools.length; i < c; i++)
        {
          Web20Tools.tools[i].print(t);
        }
      t.et();
    t.et();
  }
  
  Web20Tools.showTools = function()
{
    document.getElementById(Web20Tools.elShowToolsId).style.display = 'none';
    document.getElementById(Web20Tools.elHideToolsId).style.display = 'block';
    document.getElementById(Web20Tools.elMainId).style.display = 'block';

    document.getElementById(Web20Tools.elAddMarginTopId).style.marginTop =
     Web20Tools.elAddMarginTopAmt+"px";

Web20Tools.status = "visible";
  }
  
  Web20Tools.hideTools = function()
{
    document.getElementById(Web20Tools.elShowToolsId).style.display = 'block';
    document.getElementById(Web20Tools.elHideToolsId).style.display = 'none';
    document.getElementById(Web20Tools.elMainId).style.display = 'none';
    Web20Tools.status = "hidden";

    document.getElementById(Web20Tools.elAddMarginTopId).style.marginTop = "0px";
  }

  Web20Tools.cleanURL = function (url)
  {
    return URLEnc.encode(url);
  }

  Web20Tools.addTool = function (className, title, url, onclick, iconExt)
  {
    var tool = new Object();
    tool.url = url ? url : Web20Tools.cleanURL(window.location.href);
    tool.className = className;
tool.title = title;
tool.print = function(t)
{
      t.st("li");
      t.att("class", "tool_item tool_item_"+this.className);      
        t.st("a")
        t.att("class", "tool_link");
        t.att("style", "background-image: url('"+Web20Tools.iconPrefix+"/"+this.className+"."+iconExt+"');");
        t.att("href", url);
        t.att("onclick", onclick ? onclick : '');
        t.att("target", "_blank");
          t.cd(this.title);
        t.et();
      t.et();
    }
    Web20Tools.tools.push(tool);
  }