if (!localhost) var localhost = {};
if (!localhost.site) localhost.site = {};

localhost.site.brand = {

    onReady: function(){
        var script = this;

    //this.handleThemeAlert();
    },

    handleThemeAlert: function(){

        //
        // Load block UI.
        //
        $.ajax({
            url: "/tools/jquery/jquery.blockUI.js",
            async: false,
            dataType: "script",
            complete: function(){
            //$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
            }
        });

        $("#theme-alert").each(function(){
            var $this = $(this);
            $.blockUI({
                message: $('<div class="theme-notice"/>').html($this.html()),
                timeout: 50000,
                css: {
                    width: "400px"
                }
            });
        //$this.remove();
        });
    }

}
$(document).ready(function(){
    localhost.site.brand.onReady();
});

