﻿

// overlay functions for submit buttons
// requires jquery_blockUI.js
function blockIT() {
    jQuery.blockUI({
        message: '<h1><img src="/images/busy.gif" /> Just a moment...</h1>',
        css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#fff',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            opacity: .5,
            color: '#fff'
        },
        overlayCSS: {
            backgroundColor: '#999999',
            opacity: 0.6
        }
    });
};

function blockIT2() {
    jQuery.blockUI({
        message: '<h1><img src="/images/busy.gif" /> Just a moment...</h1>',
        overlayCSS: {
            backgroundColor: '#999999',
            opacity: 0.6
        }
    });
};

function allInclusive() {
    jQuery.blockUI({
        message: $('#pnlAllInclusiveOV'),
        css: {
            top: ($(window).height() - 500) / 2 + 'px',
            left: ($(window).width() - 500) / 2 + 'px',
            width: '500px',
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            color: '#fff'
        },   
        overlayCSS: {
            backgroundColor: '#999999',
            opacity: 0.6
        }
    });
    $('#btnCloseOV').attr('title', 'Click to close').click(jQuery.unblockUI);
    $('.blockOverlay').attr('title', 'Click to close').click(jQuery.unblockUI);
};
