/*
 *  Brochure JavaScript © 2009, Technica Solutions
 *
 *  licensed under the terms of the GNU Lesser General Public License:
 *    http://www.opensource.org/licenses/lgpl-license.php
 *
 */


SecondsPerSlide = 30;

rrr = 0;

var narray= new Array();

narray[1]="<span class='red'\>Panic is unnecessary. </span>" +
"IT support is certainly complicated, but it needn't be stressful or confusing. " +
"We know how to build and maintain IT systems with assurance and consistency. " +
"We understand how to be proactive in our work: to predict and eliminate problems, " +
"plan for change and accommodate new thinking. We don't wait for things to go " +
"wrong before we fix them. Downtime is unacceptable.<br />&nbsp;";

narray[2]="<span class='red'>Clarity is essential. </span>" +
"We do lots of technical things you don't need to worry about, although " + 
"occasionally we have to talk about them in a bit more detail. This makes some people " + 
"nervous. Please relax. You need to understand your IT system and we need to explain it " + 
"to you in plain English (with plenty of patience of course). We can even take remote control of " + 
"your computers and talk you through what we're doing in real time.<br />&nbsp;";

narray[3]="<span class='red'>Process is important. </span>" +
"We like precision and flexibility, and we prefer to establish clear " + 
"schedules of work with our clients. The best IT systems demand performance and " +
"reliability at every stage from advice, design and installation to configuration and " +
"maintenance. We insist on doing these things with attention to detail, creative application " + 
"and commitment to the very highest standards. Your IT system is valuable to your " + 
"business. We suggest that you look after it properly.<br />&nbsp;";

narray[4]="<span class='red'>Relationships are vital. </span>" +
"You need reassurance and certainty from your IT support team, " +
"not complacency or reactive problem solving. Our work begins with detailed planning and " +
"collaboration. We will ask you the right questions, listen carefully and develop systems " +
"just for you. Our support is absolute: everything is backed up and everything is secure. " +
"We check things and then we check them again, even when you're not working. Then we " +
"do some more checks (just to be on the safe side).";

narray[5]="<span class='red'>Communication is everything. </span>" +
"Contact us for a chat about your requirements. We won't " +
"confound you with jargon or irritate you with vague promises.<br /><br />" +
"T 020 8236 9160<br /> " +
"E <a href='mailto:"+link+"' class='mainlink'>"+link+"</a>" +
"<br />&nbsp;<br />&nbsp;";

var parray= new Array();

parray[1]="<img alt='keyboard with red control button' src='resources/control.jpg' class='copyimage' />";
parray[2]="<img alt='chip on circuit board with red interconnects' src='resources/chip.jpg' class='copyimage' />";
parray[3]="<img alt='pda with little red light sitting on a laptop' src='resources/pda.jpg' class='copyimage' />";
parray[4]="<img alt='mouse on red mouse mat' src='resources/mouse.jpg' class='copyimage' />";
parray[5]="<img alt='hi-tech office - pc with little red light' src='resources/office.jpg' class='copyimage' />";


var sarray= new Array();

s1=' <a href="#" class="numberslidetext" onclick="ResetTimerNo(1); return false;">1</a>';
s2=' <a href="#" class="numberslidetext" onclick="ResetTimerNo(2); return false;">2</a>';
s3=' <a href="#" class="numberslidetext" onclick="ResetTimerNo(3); return false;">3</a>';
s4=' <a href="#" class="numberslidetext" onclick="ResetTimerNo(4); return false;">4</a>';
s5=' <a href="#" class="numberslidetext" onclick="ResetTimerNo(5); return false;">5</a> ';

sarray[1]=" 1"+s2+s3+s4+s5;
sarray[2]=s1+" 2"+s3+s4+s5;
sarray[3]=s1+s2+" 3"+s4+s5;
sarray[4]=s1+s2+s3+" 4"+s5;
sarray[5]=s1+s2+s3+s4+" 5 ";

function ChangeSlide(nnn)
// nnn is 1 to 5
{
  document.getElementById('mypic').innerHTML=parray[nnn];
  document.getElementById('mytxt').innerHTML=narray[nnn];
  document.getElementById('myslide').innerHTML=sarray[nnn];
}

function UpdateTimer()
{
  rrr=rrr + 1;
  if (rrr > 5) {rrr=1};
  ChangeSlide(rrr);
  timerID = setTimeout("UpdateTimer()", SecondsPerSlide * 1000);
}

function ResetTimer()
{
  clearTimeout(timerID);
  UpdateTimer();
}

function UpdateTimerRev()
{
  rrr=rrr - 1;
  if (rrr < 1) {rrr=5};
  ChangeSlide(rrr);
  timerID = setTimeout("UpdateTimer()", SecondsPerSlide * 1000);
}

function ResetTimerRev()
{
  clearTimeout(timerID);
  UpdateTimerRev();
}

function UpdateTimerNo(utn)
{
  rrr=utn;
  ChangeSlide(rrr);
  timerID = setTimeout("UpdateTimer()", SecondsPerSlide * 1000);
}

function ResetTimerNo(rtn)
{
  clearTimeout(timerID);
  UpdateTimerNo(rtn);
}
