function StGallenArtdetailHead(artid, arttime, artsource) {
    if (!artid || !$(artid)) {
        return(false);
    }

    if ($(artid)) {
        val = $(artid).innerHTML;
        part = val.substring(0, 3);
        var cTextNode = undefined; 

        if (part == 'NT-' || part == 'ON-') {
            replText(artid, val.substring(3, val.length));
        }

        if (part == 'NT-') {
            if ($(arttime)) {
                $(arttime).style.display = 'none';
            }
            if ($(artsource)) {
                replText(artsource, '');
            }
            /*if ($(artsource)) {
                replText(artsource, ', TAGBLATT');
            }*/
        }
        else if (part == 'ON-') { 
            if ($(artsource)) {
                replText(artsource, '');
            }
            /*if ($(artsource)) {
                replText(artsource, ', ONLINE');
            }*/
        } 
        else {
            if ($(artsource)) {
                replText(artsource, '');
            }
        }
    }

    return(false);
}

// Generic element text replace function. Works with or without element content.
function replText(szID, szText) {
    if (!document.getElementById(szID)) { return; }
    var cObj = document.getElementById(szID), cTextNode;
    if (cObj.childNodes.length) {
        cObj.firstChild.nodeValue = szText; // Replace existing content.
    } else {
        cTextNode = document.createTextNode(szText); // Create new text node.
        if (cTextNode) { cObj.appendChild(cTextNode); }
    }
}


function position_morepics(id, bildname) {
  if (!document.getElementById(id)) {
       return (false);
   }
   if (document.getElementById) { // if ( IE4 )
      var el_ = document[bildname];
      var x = y = 0;

      // MAC-Erweiterung fuer IE   20020229 dm
      if ((navigator.userAgent.indexOf("Mac") > -1) && ( navigator.userAgent.indexOf("IE") > -1 )) {
         var offsetleft = document[bildname].offsetLeft + document[bildname].offsetWidth;
         var offsettop  = document[bildname].offsetTop  - document[bildname].offsetHeight;
      } else {
         while((el_ = el_.offsetParent) != null) {
             x += el_.offsetLeft;
             y += el_.offsetTop;
         }
         var offsetleft = x + document[bildname].offsetLeft + document[bildname].offsetWidth;
         var offsettop  = y + document[bildname].offsetTop;
      }
      if (obj = document.getElementById(id)) {
         obj.style.position = 'absolute';
         obj.style.left = offsetleft+'px';
         obj.style.top = (offsettop-80)+'px';
      }
   }   
}