var Logic = (function __LOGIC() {

  return {
    "typing": function(str, func, speed, params) {
      Timer.setTimeout(function() {
        if (!str) {
          Timer.clearTimeout("typing");
          params.onfinished();
          return false;
        }
        func(str[0]);
        Logic.typing(str.substring(1, str.length), func, speed, params);
      }, (speed | 50), "typing");
    },
    "showMain": function() {
      G("monitor").style.display = "none";
      G("main").style.display = "block";
      G("wrapper").style.backgroundImage = "url(../images/broken.gif)";
      Timer.clearInterval("line");
      G("line").innerHTML = "";
    }
  }
})();
