$(document).ready(function () {
    
    $(".SideMore").each(function () {
        $(this).css('width', $(this).width() + 1 + 'px');
    });
    $(".More").each(function () {
        $(this).css('width', $(this).width() + 1 + 'px');
    });
    $(".PostComment").each(function () {
        $(this).css('width', $(this).width() + 1 + 'px');
    });
    $("#SendEmailButton").each(function () {
        $(this).css('width', 49 + 'px');
        $(this).css('height', 20 + 'px');

    });

    var PostComment = {
        tl: { radius: 11 },
        tr: { radius: 11 },
        bl: { radius: 11 },
        br: { radius: 11 },
        antiAlias: true
    }
    curvyCorners(PostComment, ".PostComment");
    curvyCorners(PostComment, ".Download");
    curvyCorners(PostComment, ".SendFile");
  
   var contour= {
        tl: { radius: 11 },
        tr: { radius: 11 },
        bl: { radius: 13 },
        br: { radius: 13 },
        antiAlias: true
    }
    curvyCorners(contour, ".contourNavigation");

    

    var settings = {
        tl: { radius: 7 },
        tr: { radius: 7 },
        bl: { radius: 7 },
        br: { radius: 7 },
        antiAlias: true
    }
    curvyCorners(settings, ".More");
    curvyCorners(settings, ".SideMore");
    curvyCorners(settings, ".BlogReadOn");
    curvyCorners(settings, ".NewsReadOn");
    curvyCorners(settings, ".EventReadOn");

    var Mail = {
        tl: { radius: 9 },
        tr: { radius: 9 },
        bl: { radius: 9 },
        br: { radius: 9 },
        antiAlias: true
    }

    curvyCorners(Mail, "#Email");
    var theColorIs = $('#SideMenu ul li.MenuQuickContact').css("background-color");
    $('#SendEmailButton').css('background-color', theColorIs);

    curvyCorners(Mail, "#SendEmailButton");
    curvyCorners(Mail, ".SubmitInstant");

});
