window.onload = function () {
    /*
    The new 'validTags' setting is optional and allows
    you to specify other HTML elements that curvyCorners
    can attempt to round.

    The value is comma separated list of html elements
    in lowercase.

    validTags: ["div", "form"]

    The above example would enable curvyCorners on FORM elements.
    */
    var settings = {
        tl: { radius: 11 },
        tr: { radius: 11 },
        bl: { radius: 12 },
        br: { radius: 12 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    };
    var myBoxObject = new curvyCorners(settings, "myBox");
    if (myBoxObject) {
        myBoxObject.applyCornersToAll();
    }

    var settingspgcntnt = {
        tl: { radius: 11 },
        tr: { radius: 11 },
        bl: { radius: 0 },
        br: { radius: 0 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    };
    var myBoxObjectcntnt = new curvyCorners(settingspgcntnt, "pagecontent");
    if (myBoxObjectcntnt) {
        myBoxObjectcntnt.applyCornersToAll();
    }

    var settingshftrleft = {
        tl: { radius: 1 },
        tr: { radius: 1 },
        bl: { radius: 1 },
        br: { radius: 11 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    };
    var myBoxObjectftrleft = new curvyCorners(settingshftrleft, "footerleft");
    if (myBoxObjectftrleft) {
        myBoxObjectftrleft.applyCornersToAll();
    }

    var settingshftrinfo = {
        tl: { radius: 1 },
        tr: { radius: 1 },
        bl: { radius: 11 },
        br: { radius: 1 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    };
    var myBoxObjectftrinfo = new curvyCorners(settingshftrinfo, "footerinfo");
    if (myBoxObjectftrinfo) {
        myBoxObjectftrinfo.applyCornersToAll();
    }

    var settingshcanvas = {
        tl: { radius: 11 },
        tr: { radius: 11 },
        bl: { radius: 11 },
        br: { radius: 11 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    };
    var myBoxObjectcanvas = new curvyCorners(settingshcanvas, "canvas");
    if (myBoxObjectcanvas) {
        myBoxObjectcanvas.applyCornersToAll();
    }

    var settingshheadertop = {
        tl: { radius: 1 },
        tr: { radius: 1 },
        bl: { radius: 7 },
        br: { radius: 7 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    };
    var myBoxObjectheadertop = new curvyCorners(settingshheadertop, "headertop");
    if (myBoxObjectheadertop) {
        myBoxObjectheadertop.applyCornersToAll();
    }

};
