﻿//file created by Msharp.JQuery.Csharp.CodeGenerator - copyright Msharp B.V.
//hand-modifing this file is strongly discouraged > change customlayout.js.cs instead 

function roundedCorners() {
    
    if($("#uxTXTcolor").val() != 'transparent' ) {
        if($("#cl_body").length) {
            $("#cl_body").uncorner();
            $("#cl_body").corner("10px");
        }
        if($("#cl_reactions").length) {
            $("#cl_reactions").uncorner();
            $("#cl_reactions").corner("10px");  
        }
        if($(".cl_block").length) {
            $(".cl_block").uncorner();
            $(".cl_block").corner("10px");  
        }
    }
}   
  
$(document).ready(function() {
    
    roundedCorners();
    
    $('#uxShareSite').click(function() {
        $.scrollTo($('#cl_header'), 700);
    });
});

function StretchBackgroundImage(image) {

    RemoveStretchedBackground();
    
    image = image.replace('.ashx?w=60&h=59','');
    $.backstretch(image, {speed: 1000});
}

function RemoveStretchedBackground() {
    $("#backstretch").remove();
}

