﻿

RunOnLoad(function () {

    ApplyRoundCorners();

    ApplyWrappers();

   
});



function ApplyRoundCorners() {
    curvyCorners({ tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true }, ".rounded");
    curvyCorners({ tl: { radius: 4 }, tr: { radius: 4 }, bl: { radius: 4 }, br: { radius: 4 }, antiAlias: true }, ".small-rounded");
    curvyCorners({ tl: { radius: 7 }, tr: { radius: 7 }, bl: { radius: 0 }, br: { radius: 0 }, antiAlias: true }, ".top-rounded");
    curvyCorners({ tl: { radius: 0 }, tr: { radius: 10 }, bl: { radius: 0 }, br: { radius: 10 }, antiAlias: true }, ".right-rounded");
    curvyCorners({ tl: { radius: 0 }, tr: { radius: 7 }, bl: { radius: 0 }, br: { radius: 0 }, antiAlias: true }, ".tr-rounded");
    curvyCorners({ tl: { radius: 0 }, tr: { radius: 0 }, bl: { radius: 7 }, br: { radius: 7 }, antiAlias: true }, ".bottom-rounded");
    curvyCorners({ tl: { radius: 0 }, tr: { radius: 0 }, bl: { radius: 15 }, br: { radius: 15 }, antiAlias: true }, ".bottom-very-rounded");
}


function ApplyWrappers() {

    WrapForms();

    WrapLists();

}

function WrapForms()
{
    var formWapper = $(".form-wrapper");
    formWapper.wrap('<div class="form-wrapper-top" />');
    formWapper.wrap('<div class="form-wrapper-bottom" />');
}


function WrapLists() {
    var formWapper = $(".list-wrapper");
    formWapper.wrap('<div class="list-wrapper-top" />');
    formWapper.wrap('<div class="list-wrapper-bottom" />');
}
