// All content Copyright Blue Stripe Web Design 2009 and should not be reproduced without our prior written permission.
// Please do not steal our code!

function numcheckloop(num, maxnum)
{
	if (num > (maxnum - 1))
		{
		num = num - maxnum;
		}
	return num;
}

function startmpics(sindex, sNoOfPics, scount)
{
	mainPics(sindex, scount);
	sNumPics = sNoOfPics;
	snewindex = sindex;
	snewcount = scount + 1;
	snewindex = numcheckloop(sindex + 1, sNumPics);
	setTimeout("startmpics(snewindex, sNumPics, snewcount)", 4000);
}

function mainPics(i, c)
{
	var mpicscr = new Array()
	var picquote = new Array()
	var piccredit = new Array()
	
	var Picture = document.getElementById('mpic');
	var tQuote = document.getElementById('mpicquote');
	var tCredit = document.getElementById('mpiccredit');

	mpicscr[0] = "./images/s1.jpg"
	mpicscr[1] = "./images/s2.jpg"
	mpicscr[2] = "./images/s3.jpg"
	mpicscr[3] = "./images/s4.jpg"
	mpicscr[4] = "./images/s5.jpg"
	mpicscr[5] = "./images/s6.jpg"
	mpicscr[6] = "./images/s7.jpg"
	mpicscr[7] = "./images/s8.jpg"

	picquote[0] = "&quot;...thanks again, we値l certainly be keeping hold of<br>your card!&quot;"
	picquote[1] = "&quot;...thanks again, we値l certainly be keeping hold of<br>your card!&quot;"
	picquote[2] = "&quot;...I知 sure we値l be<br>in touch in the<br>future...&quot;"
	picquote[3] = "&quot;...I知 sure we値l be<br>in touch in the<br>future...&quot;"
	picquote[4] = "&quot;...look forward to<br>working with you in<br>the near future...&quot;"
	picquote[5] = "&quot;...look forward to<br>working with you in<br>the near future...&quot;"
	picquote[6] = "&quot;I was absolutely delighted with the work done ...&quot;"
	picquote[7] = "&quot;I was absolutely delighted with the work done ...&quot;"
	
	piccredit[0] = "RA Roundhay "
	piccredit[1] = "RA Roundhay "
	piccredit[2] = "K & R LS19"
	piccredit[3] = "K & R LS19"
	piccredit[4] = "C & G LS12"
	piccredit[5] = "C & G LS12"
	piccredit[6] = "KS Otley"
	piccredit[7] = "KS Otley"
	
	document.getElementById('mpic').style.filter="blendTrans(duration=1.0)";
	if (document.all) Picture.filters.blendTrans.Apply();
	
	Picture.src= mpicscr[numcheckloop(i, mpicscr.length)];
	if (document.all) document.getElementById('mpic').filters.blendTrans.Play();
	tQuote.innerHTML= picquote[numcheckloop(i, picquote.length)];
	tCredit.innerHTML= piccredit[numcheckloop(i, piccredit.length)]
}
