function AdjustTextMargin()
{
    var textHeight = 0;
    var imageHeight = 0;
    var topMainFeature = document.getElementById("cat_hl_87840");
    if(!topMainFeature)
    {
        topMainFeature = document.getElementById("cat_hl_93614");
    }

    if(topMainFeature.className.match("portrait") || topMainFeature.className.match("takeover"))
    {
        for(var i = 0; i < topMainFeature.childNodes.length; i ++)
        {
            var oddFirstNode = topMainFeature.childNodes[i];
            if(oddFirstNode.nodeName == "DIV")
            {
                for(var j = 0; j < oddFirstNode.childNodes.length; j ++)
                {
                    var oddChildNode = oddFirstNode.childNodes[j];
               
                    if(oddChildNode.className == "image")
                    {
                        if(topMainFeature.className.match("takeover"))
                        {
                            if(navigator.appName != "Netscape")
                            {
                                oddFirstNode.style.height = (oddChildNode.firstChild.firstChild.offsetHeight + 10) + "px";
                            }
                            else
                            {
                                imageHeight = oddChildNode.offsetHeight;
                            }
                        }
                    }
               
                    if(oddChildNode.className == "title" || oddChildNode.className == "onlytitle")
                    {
                        if(topMainFeature.className.match("portrait"))
                        {
                            textHeight = oddChildNode.firstChild.offsetHeight;
                        }
                        if (topMainFeature.className.match("takeover"))
                        {
                            var shadowChild = document.createElement(oddChildNode.firstChild.firstChild.nodeName);
                            shadowChild.id = "shadow_text";
                            shadowChild.className = "shadow_text";
                            shadowChild.innerHTML = oddChildNode.firstChild.firstChild.innerHTML;
                            oddChildNode.firstChild.appendChild(shadowChild);
                            
                            textHeight = shadowChild.offsetHeight;
                        }
                    }
               
                    if(oddChildNode.className == "text" || oddChildNode.className == "onlytext")
                    {
                      
                        if(topMainFeature.className.match("portrait"))
                        {
                            oddChildNode.style.marginTop = (-94 + textHeight) + "px";
                        }
                        else if (topMainFeature.className.match("takeover") && navigator.appName == "Netscape")
                        {
                            //oddChildNode.style.marginTop = (imageHeight - textHeight - 56) + "px";
                            oddChildNode.style.marginTop = (textHeight - 58) + "px";
                        }
                    }
                }
                break;
            }
        }
    }
}
AdjustTextMargin();






