// JavaScript Document
var newsText = new Array();

newsText[0] = "Customer Feedback";

newsText[1] = "I just wanted to let you know that I purchased a chess set from ChessBaron before Christmas. The chess set arrived within a few days (in plenty of time!) and when it was opened on Christmas morning, it was absolutely stunning!  I had purchased a mid-range product and I also have to say, what fantastic value for money it was! Many thanks for your professionalism - it helped to make our Christmas really special! D.Q. Dublin";

newsText[2] = "Baron, I received the set today and wanted to drop you a quick note to say how pleased I am with it.  The pieces are exquisite!  (As I write this, my 9-year-old daughter is sketching one of the Knights.) I had very high expectations based on the photographs and descriptions on your website, and I must say that the set in the \"flesh\" more than lived up to them.  Now if I can only elevate my game to their level. Your service was excellent, the set magnificent.  Thank you! Earl";

newsText[3] = "Hi Baron, I'm just writing to express my thanks! The E2013 Russian special chess set with 4.25 inch King arrived today, and it is fantastic. It's a beautiful set combining excellent value for money with quality craftmanship and it's very nicely weighted. Thanks again!\n\n Ritchie H Newcastle.";

newsText[4] = "I am writing to express my thanks for the King Cross Staunton Chess Set that arrived today. This is truly a beautiful work of art - well done indeed! I'm looking forward to many years of playing (oops-learning! We never stop learning this game do we!).\n\n A.L.";

newsText[5] = "Thanks for a really excellent service. The chess set is beautiful and arrived very quickly. Thank you. Sent from my iPhone. \n\nH.F.";

newsText[6] = "We have been really impressed with the level of service that you have provided and the quality of your products. We have now got a super chess set from you - the Canterbury pieces and rosewood board. It looks so fantastic. It was an engagement present from me to my fiance as he has always wanted a chess set and we met in Canterbury!\n\nThank you again S.C.";

newsText[7] = "Hi Chess Baron. I recently ordered a chess set and board. Your website has excellent photographs and discriptions, but the overall level in the quality of transaction was a surprise! From the ease and assurance of the online transaction, to the swift confirmation emails complete with tracking numbers - I have been very impressed. I do a fair bit of internet shopping and this purchase has been easily one of the best. \n\nT.B ";

newsText[8] = "Hello Baron! I just received the X2043 King Charles and I must compliment the great quality of the set, as well as the outstanding care your company gives to it's customers, both in the UK and the USA (Maureen was very helpful) ... Excellent !!! Will be ordering another set soon, and have recommended to friends! \n\nMr P.V ";

newsText[9] = "Nearly 6 years ago I purchased a Margaret Anne set from. I am very impressed with my set and I am now buying this set and board as a gift for a friend. I know chessbaron supply high quality boards and chess sets so I am thrilled to see you have a set which is so suited in name and style for my friends. \n\nMr J.C ";


var ttloop = 1;    // Repeat forever? (1 = True; 0 = False)
var tspeed = 50;   // Typing speed in milliseconds (larger number = slower)
var tdelay = 2000; // Time delay between newsTexts in milliseconds



// ------------- NO EDITING AFTER THIS LINE ------------- \\
var dwAText, cnews=0, eline=0, cchar=0, mxText;

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.news.news2.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.news.news2.value = nmttxt;
      cchar += 1;
      if (cchar != dwAText.length) document.news.news2.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()
