function adjust()
  {
  var liste = document.getElementsByTagName("img");
  var i = 0;
  for (i=0;i<liste.length;++i)
    {
    var img = liste[i];
    var src = img.src;
    if (src.indexOf('userfiles/')!=-1)
      {
      //alert(liste[i].src);
      var container = document.createElement("span");
      container.style.cssText = "background:url("+src+") no-repeat;";
      container.style.display = "inline-block";
      container.style.width   = img.width  + "px";
      container.style.height  = img.height + "px";
      var inpic = document.createElement("img");
      inpic.src           = "/tpl_acv/pics/t.png";
      inpic.style.width   = img.width  + "px";
      inpic.style.height  = img.height  + "px";
      if (img.parentNode.tagName.toLowerCase() == "a")
        {
        container.style.cursor = "pointer";
        }
      if (img.alt.length > 0)
        inpic.alt = img.alt
      if (img.title.length > 0)
        inpic.title = img.title;
      if (img.align == "left")
        container.style.float = "left";
          else if (img.align == "right")
            container.style.float = "right";
      if (img.className.length > 0)
        container.className = "img"+img.className;
      if (img.hspace>0)
        {
        container.style.marginTop = img.hspace;
        container.style.marginBottom = img.hspace;
        }
      if (img.vspace>0)
        {
        container.style.marginLeft = img.hspace;
        container.style.marginRight = img.hspace;
        }
      container.appendChild(inpic);
      img.parentNode.replaceChild(container, img);
      --i;
      }
    }
  }
