var newsText = new Array();
newsText[0]="Education is when you read the fine prints and Experience is what you get, when you do not. At BITP we impart the theory then we do not provide students with answers to remember like others do, rather we give them problems to solve, this unsettle the minds of the students and inflame their intellect on to the subject, and make them learned. For experience we allow our students to successfully complete a real-life project under expert guidance giving them confidence to practice/apply the subject they have learned at BITP.";
newsText[1]="Education is when you read the fine prints and Experience is what you get, when you do not. At BITP we impart the theory then we do not provide students with answers to remember like others do, rather we give them problems to solve, this unsettle the minds of the students and inflame their intellect on to the subject, and make them learned. For experience we allow our students to successfully complete a real-life project under expert guidance giving them confidence to practice/apply the subject they have learned at BITP.";
newsText[2]="Education is when you read the fine prints and Experience is what you get, when you do not. At BITP we impart the theory then we do not provide students with answers to remember like others do, rather we give them problems to solve, this unsettle the minds of the students and inflame their intellect on to the subject, and make them learned. For experience we allow our students to successfully complete a real-life project under expert guidance giving them confidence to practice/apply the subject they have learned at BITP.";

var ttloop = 1;    // Repeat forever? (1 = True; 0 = False)
var tspeed = 87;   // Typing speed in milliseconds (larger number = slower)
var tdelay = 1000; // Time delay between newsTexts in milliseconds

// ------------- NO EDITING AFTER THIS LINE ------------- \\
var dwAText, cnews=0, eline=0, cchar=0, mxText, ele;

function doNews() {
  mxText = newsText.length - 1;
  dwAText = newsText[cnews];
  setTimeout("addChar()",1000)
}
function addNews() {
  cnews += 1;
  if (cnews <= mxText) {
    dwAText = newsText[cnews];
    if (dwAText.length != 0) {
    document.getElementById("Text1").value ="";
      eline = 0;
      setTimeout("addChar()",tspeed)
    }
  }
}
function addChar() {
  if (eline!=1) {
    if (cchar != dwAText.length) {
      nmttxt = ""; for (var k=0; k<=cchar;k++) nmttxt += dwAText.charAt(k);
      document.getElementById("Text1").value = nmttxt;
      cchar += 1;
      //if (cchar != dwAText.length) document.getElementById("Text1").value += "|";
      if (cchar != dwAText.length) document.getElementById("Text1").value += "_";
    } else {
      cchar = 0;
      eline = 1;
    }
    if (mxText==cnews && eline!=0 && ttloop!=0) {
      cnews = 0; setTimeout("addNews()",tdelay);
    } else setTimeout("addChar()",tspeed);
  } else {
    setTimeout("addNews()",tdelay)
  }
}

doNews()