
// set title for bg title
function settitlebg (node, argv)
{
        if (node.nodeType==1) {
                if (node.nodeName.toUpperCase()=="H1" && (node.getAttribute("classname")=="havebackground" || node.getAttribute("class")=="havebackground")) {
                        node.style.border = "0";
                        node.style.padding = "27 0 0 15";
                        node.style.margin = "0";
                        node.style.height = "32";
                        node.style.color = "black";
                        node.style.verticalAlign = "middle";
                        node.style.backgroundRepeat = "no-repeat";
                        node.style.backgroundPosition = "top";
                        nodeid = "";
                        if (!(nodeid = node.getAttribute("id"))) {
                                nodeid = "img/" + (currentPageURL().replace(/\.html/, ""));
                        } else {
                                if (0>nodeid.search(/\//)) {
                                        nodeid = "images/" + nodeid;
                                }
                        }
                        node.style.backgroundImage = "URL("+nodeid+".gif)";
                        if (document.all) {
                                node.style.height = "60";
                                node.style.padding = "24 0 0 15";
                        }
                }
        }
}
traverseTree(document, settitlebg, null, nodeChildren);

