
$(document).ready(function () {
    $("a[rel='cbFoto']").colorbox();
    $(".cbVideoEmbedded").colorbox();
    $(".cbVideoIframe").colorbox({ iframe: true, innerWidth: 425, innerHeight: 344 });
    $(".cbWebpage").colorbox({ width: "700px", height: "85%",
        iframe: true, opacity: 0.7
    });
    $(".cbWebpageRefresh").colorbox(
        {
            width: "600px", height: "85%",
            iframe: true, opacity: 0.7,
            onClosed: function () {
                var btn = document.getElementById("ctl00_mainContent_btnRefreshGrid");
                if (btn) btn.click();
            }
        }
    );

    $(".cbWebpageRefreshSmall").colorbox(
    {
        width: "400px", height: "250px",
        iframe: true, opacity: 0.7,
        onClosed: function () {
            var btn = document.getElementById("ctl00_mainContent_btnRefreshGrid");
            if (btn) btn.click();
        }
    }
    );
    
    $(".cbWebpageEventEdit").colorbox(
        {
            width: "750px", height: "850",
            iframe: true, opacity: 0.7,
            /* onClosed: function () { window.location.reload(); }  */
            onClosed: function () {
                var btn = document.getElementById("ctl00_mainContent_btnRefreshGrid");
                if (btn) btn.click();
            }
        }
    );
    $(".cbWebpageEventDetails").colorbox(
        {
            width: "550px", height: "800",
            iframe: true, opacity: 0.7
        }
    );
    $(".cbWebpage50").colorbox({ width: "600px", height: "85%", iframe: true, opacity: 0.7 });
});
