/* Minification failed. Returning unminified contents.
(1,10): run-time error CSS1031: Expected selector, found 'show_all_message('
(1,10): run-time error CSS1025: Expected comma or open brace, found 'show_all_message('
(44,1): run-time error CSS1019: Unexpected token, found '$'
(44,2): run-time error CSS1019: Unexpected token, found '('
(44,3): run-time error CSS1019: Unexpected token, found '"#btnUpload"'
(44,15): run-time error CSS1019: Unexpected token, found ')'
(44,17): run-time error CSS1030: Expected identifier, found 'click('
(44,17): run-time error CSS1019: Unexpected token, found 'click('
(44,32): run-time error CSS1031: Expected selector, found '('
(44,32): run-time error CSS1025: Expected comma or open brace, found '('
(46,2): run-time error CSS1019: Unexpected token, found ')'
(48,1): run-time error CSS1019: Unexpected token, found '$'
(48,2): run-time error CSS1019: Unexpected token, found '('
(48,3): run-time error CSS1019: Unexpected token, found '"#btnOpenAcc"'
(48,16): run-time error CSS1019: Unexpected token, found ')'
(48,18): run-time error CSS1030: Expected identifier, found 'click('
(48,18): run-time error CSS1019: Unexpected token, found 'click('
(48,33): run-time error CSS1031: Expected selector, found '('
(48,33): run-time error CSS1025: Expected comma or open brace, found '('
(50,2): run-time error CSS1019: Unexpected token, found ')'
(52,10): run-time error CSS1031: Expected selector, found 'ShowProgress('
(52,10): run-time error CSS1025: Expected comma or open brace, found 'ShowProgress('
 */
function show_all_message(message, type, title,
    closeButton,
    newestOnTop,
    progressBar,
    positionClass,
    preventDuplicates,
    onclick,
    showDuration,
    hideDuration,
    timeOut,
    extendedTimeOut,
    showEasing,
    hideEasing,
    showMethod,
    hideMethod
) {
    toastr.options = {
        'closeButton': closeButton,
        'debug': false,
        'newestOnTop': newestOnTop,
        'progressBar': progressBar,
        'positionClass': positionClass,
        'preventDuplicates': preventDuplicates,
        'onclick': onclick,
        'showDuration': showDuration,
        'hideDuration': hideDuration,
        'timeOut': timeOut,
        'extendedTimeOut': extendedTimeOut,
        'showEasing': showEasing,
        'hideEasing': hideEasing,
        'showMethod': showMethod,
        'hideMethod': hideMethod,
        'preventDuplicates': true,
        'preventOpenDuplicates': true
    };

    toastr[type](message, title);
}

/*$("#btnSubmit").click(function () {
    ShowProgress();
});*/

$("#btnUpload").click(function () {
    ShowProgress();
});

$("#btnOpenAcc").click(function () {
    ShowProgress();
});

function ShowProgress() {
	$("#loading").fadeIn();
	var opts = {
		lines: 12, // The number of lines to draw
		length: 7, // The length of each line
		width: 4, // The line thickness
		radius: 10, // The radius of the inner circle
		color: '#000', // #rgb or #rrggbb
		speed: 1, // Rounds per second
		trail: 60, // Afterglow percentage
		shadow: false, // Whether to render a shadow
		hwaccel: false // Whether to use hardware acceleration
	};
	var target = document.getElementById('loading');
	var spinner = new Spinner(opts).spin(target);
}
