3 var switchedArea = null;
5 Rakka.switchScreen = function () {
6 if (switchedArea == null) {
7 switchedArea = $.DIV({});
9 $("div.sideBar div.outline").hide();
11 $("p.redirection").hide();
17 .append(switchedArea);
20 $(switchedArea).empty();
23 return $(switchedArea);
26 Rakka.restoreScreen = function () {
27 if (switchedArea == null) {
28 throw new Error("Rakka.restoreScreen(): not switched");
31 $("div.sideBar div.outline").show();
33 $("p.redirection").show();
35 $(switchedArea).remove();
38 $("div.body").children().show();
42 var waitingMessageBoard = null;
44 Rakka.displayWaitingMessage = function (msg) {
45 Rakka.hideWaitingMessage();
48 = $.P({className: "waitingMessageBoard"},
51 $("body").append(waitingMessageBoard);
54 Rakka.hideWaitingMessage = function () {
55 if (waitingMessageBoard != null) {
56 $(waitingMessageBoard).remove();
57 waitingMessageBoard = null;