= {};
= {};
= function(format, arg1, arg2) {
var console = ._getConsole();
if (console.get_visible()) {
var msg = format;
if (typeof msg !== "undefined" && msg !== null) {
var index;
if (typeof msg === "string") {
var array = (/\{(\d+)\}/g);
if (array) {
for (var i = 0; i < ; i++) {
index = array[i];
index = parseInt((1, - 2)) + 1;
msg = (array[i], arguments[index]);
}
}
}
}
var span = ("SPAN");
((msg));
console._output.appendChild(span);
console._output.appendChild(("BR"));
();
return span;
}
}
._getConsole = function() {
var console = ._console;
if (!console) {
var div = ("DIV");
= "fixed";
= "3px";
= "3px";
= "350px";
= "180px";
= "white";
= "black";
= "solid 2px #afafaf";
= "12px";
(div);
._console = console = div;
div = ("DIV");
= "#e0e0e0";
= "absolute";
= "0px";
= "0px";
= "0px";
= "16px";
= "2px 2px";
= "0px";
(div);
console._toolbar = div;
div = ("DIV");
= "auto";
= "nowrap";
= "absolute";
= "0px";
= "0px";
= "20px";
= "0px";
= "auto";
(div);
console._output = div;
var btn;
btn = ("SPAN");
= "contraction";
= "0px 3px";
= "pointer";
console._toolbar.appendChild(btn);
= function() { if (console.get_collapsed()) (); else (); }
btn = ("SPAN");
= "Clear";
= "0px 3px";
= "pointer";
console._toolbar.appendChild(btn);
= ;
btn = ("SPAN");
= "Close";
= "pointer";
= "0px 3px";
console._toolbar.appendChild(btn);
= function() { (); }
console.get_visible = function() { return !== "none" };
console.get_collapsed = function() { return !(!this._collapseState) };
= function() {
if (!this.get_collapsed()) {
this._output. = "none";
this._toolbar.childNodes[1]. = "none";
this._toolbar.childNodes[2]. = "none";
this._toolbar.childNodes[0].innerHTML = "Expand";
this._collapseState = { width: , height: }
= "30px";
= "16px";
}
}
= function() {
if (this.get_collapsed()) {
this._output. = "";
this._toolbar.childNodes[1]. = "";
this._toolbar.childNodes[2]. = "";
this._toolbar.childNodes[0].innerHTML = "Shrink";
= this._collapseState.width;
= this._collapseState.height;
this._collapseState = null;
}
}
}
return console;
}
= function() {
._getConsole(). = "";
}
= function() {
var console = ._console;
if (console) {
= "none";
}
}
= function() {
var console = ._console;
if (console) console._output.innerHTML = "";
}