$(document).ready (function() {
    if($.blockUI) {
        $.blockUI.defaults = {
            message:  '',
            css: {
                padding:        0,
                margin:         0,
                width:          '30%',
                top:            '50%',
                left:           '50%',
                textAlign:      'center',
                color:          '#fff',
                border:         'none',
                backgroundColor:'#fff',
                cursor:         'default'
            },
            overlayCSS:  {
                backgroundColor: '#000',
                opacity:          0.5,
                cursor:          'wait'
            },
	        growlCSS: {
		        width:    '350px',
		        top:      '10px',
		        left:     '',
		        right:    '10px',
	            border:   'none',
	            padding:  '5px',
	            opacity:   0.6,
		        cursor:    null,
	            color:    '#fff',
	            backgroundColor: '#000',
	            '-webkit-border-radius': '10px',
	            '-moz-border-radius':    '10px'
	        },
	        iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
	        forceIframe: false,
            baseZ: 1000,
            centerX: true, 
            centerY: true,
            allowBodyStretch: true,
	        bindEvents: true,
            constrainTabKey: true,
            fadeIn:  0,
            fadeOut: 0,
	        timeout: 0,
	        showOverlay: true,
            focusInput: true,
            applyPlatformOpacityRules: true,
            onUnblock: null,
            quirksmodeOffsetHack: 4
        }
    }   
});
