var roundedCornersOnLoad = function () 
{
    
 roundClass("h2", null, {corners: "top"});
   
 roundClass("h5", null, {corners: "bottom"});

 roundClass("h6", null);
 roundClass("td", "vertmenu");
 roundClass("td", "prodheader", {corners: "top"}); 
 roundClass("td", "prodfooter", {corners: "bottom"}); 
 roundClass("td", "strip", {corners: "top"});
roundClass("td", "strip2", {corners: "bottom"});
roundClass("td", "hormenu", {corners: "bottom"});
};

addLoadEvent(roundedCornersOnLoad);

// rewrite the view-source links
addLoadEvent(function () {
    var elems = getElementsByTagAndClassName("A", "view-source");
    var page = "rounded_corners/";
    for (var i = 0; i < elems.length; i++) {
        var elem = elems[i];
        var href = elem.href.split(/\//).pop();
        elem.target = "_blank";
        elem.href = "../view-source/view-source.html#" + page + href;
    }
});

