function Notifications(){

    var notifications = {

        prompt : function(config){
            if (config === undefined){
                config = {};
            }
            return System.display.newWindow(config);
        },

        alert : function(text){
            var config = {};
            config.width = (config.width === undefined) ? 300 : config.width;
            config.height = (config.height === undefined) ? 200 : config.height;
            config.id = "System_Alert";
            config.title = "System Alert";
            config.icon = "/Images/alert.png";
            config.theme = "default";
            var frame = System.windowmanager.createFrame(config);
            frame.addContent(document.createTextNode(text));
            return frame;
        },

        dialog : function(config){
            if (config === undefined){
                config = {};
            }
            config.width = (config.width === undefined) ? 250 : config.width;
            config.height = (config.height === undefined) ? 250 : config.height;
            config.title = (config.title === undefined) ? "Alert" : config.title;
            config.icon = (config.icon === undefined) ? "/Images/notice.png" : config.icon;
            config.theme = (config.theme === undefined) ? "default" : config.theme;
            config.minimizeable = (config.minimizeable === undefined) ? true : config.minimizeable;
            config.maximizeable = (config.maximizeable === undefined) ? true : config.maximizeable;
            return System.windowmanager.createFrame(config);
        },

        note : function(config){
            if (config === undefined){
                config = {};
            }
            config.width = (config.width === undefined) ? 250 : config.width;
            config.height = (config.height === undefined) ? 250 : config.height;
            config.position = "bottomRight";
            config.theme = "note";
            config.icon = "";
            config.title = "";
            return System.windowmanager.createFrame(config);
        }

    };

    System.notifications = notifications;

}
