var tWidth='790px';                  // width (in pixels)
var tHeight='16px';                  // height (in pixels)
var tcolour='rgb(255,255,255)';               // background colour:
var fontfamily = 'Tahoma, Arial,sans-serif'; // font for content
var tSpeed=1;                        // scroll speed (1 = slow, 5 = fast)

// Ticker content here (use \/ and \' in place of / and ' respectively)
var com1 = ' "The recliner suite we had made for us is a terrific piece of furniture and all round good value."<font color="blue"> Rick (Rockingham W.A.)<\/font>';
var com2 = ' "I am very impressed with the service offered by the Furniture Directory and wherever possible will be recommending it in the future. Bob is a pleasure to work with, he is totally professional and reliable and his product is excellent, I am delighted with the chairs."<font color="blue"> Nette (East Fremantle W.A.)<\/font> ';
var com3 = ' "We are delighted with the furniture. Both the look of it and the high quality."<font color="blue"> Pat & Ben (Dianella W.A.)<\/font>';
var com4 = ' "Please accept our sincere appreciation for the Entertainment unit you put together for us, we are very pleased with the completed unit."<font color="blue"> Shirley & Mark (Victoria Park W.A.)<\/font>';
var com5 = ' "Our new entertainment unit arrived in good shape. There was a bit of holding breath when it was carried in as we had essentially bought something quite substantial but sight unseen. It was everything we hoped it would be. We are grateful to the attention shown by Carla, please convey our appreciation to her also."<font color="blue"> Mark & Leslie  (Marmion W.A)<\/font> ';
var com6 = ' "We were delighted with the three piece suite which was exactly what we were looking for. Due to our difference in heights Mattie and I always have great difficulty in finding comfortable chairs which are not totally different to each other. Your willingness to customise your already very comfortable standard chair has ensured that mine is as good as it gets. Slightly raised, widened and heightened it is a delight to sit in and is not noticeably different from the other one. We were very pleased with your companys approach to customers, helpful but not pressing, good explanations of the construction of the furniture and any amount of fabric options. Thanks Frank and Carla."<font color="blue"> Jim & Mattie  (Bullcreek W.A)<\/font>';
var com7 = '"The harpsichord stool that you had made for me is excellent!"<font color="blue"> Anthony  (Subiaco W.A)<\/font> ';
var com8 = ' "A very big thank you to everyone from Furniture Directory for the leather sofas …. We are just over the moon with the whole process and look forward to enjoying our purchase for many years."<font color="blue"> Russell  (Geraldton W.A)<\/font>';
var com9 = ' "It has been a pleasure dealing with you all as we mentioned to Valerie we wish we had known about your services before. We are absolutely delighted with our new dining suite and cabinet …. It is perfect and exactly what we wanted."<font color="blue"> Dave & Lynn  (Willetton W.A)<\/font>';
var com10 = ' "We would like to take this opportunity to say how well we were attended to by Valerie and Frank. Although there was a hic-cup with the table edge we have no complaints about the workmanship or the fulfillment of our instructions. We wish you and your company all the best for the future."<font color="blue"> Ian & Carol  (Sorrento W.A)<\/font>';
var com11 = " \"When you have something in mind and explain to someone what you are desiring, sometimes the result is different than expected. Your company has done a wonderful job on the ottomans. They are exactly how I pictured them and our patients are finding them very comfortable. I'm very happy with the result and thank you all for your attention to detail. I wish you every success in the future.\"<font color='blue'> Robyn  (Melville W.A)<\/font>";
var com12 = " \"Your excellent service exceeded even my expectations; you managed to turn my ideas, as vague as they have been, into quality pieces of furniture. Your consultant, Paul, played an integral part in making this happen. The delivery and installation was flawless even with the added difficulties of a security apartment in East Perth. Thanks for everything.\"<font color='blue'> Gary  (East Perth W.A)<\/font>";
var com13 = ' "I was more than pleased with my recent purchases from AFD...The service and professionalism was second to none from start to finish...it is pleasing that an Australian company is leading the charge in setting such standards"<font color="blue"> Donald  (Atwell WA)<\/font>';
var gap = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
var content; 
 
var aw, mq; 
var fsz = parseInt(tHeight) - 4; 

function startticker()
{
		var randomNumber = Math.floor(Math.random()*5);
		switch(randomNumber)
		{
			case 0:
				content = 'Customer Comments: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + com1 + gap + com2 + gap + com3 + gap + com4 + gap + com5 + gap + com6 + gap + com7 + gap + com8 + gap + com9 + gap + com10 + gap + com11 + gap + com12 + gap + com13 + gap; break;
			case 1:
				content = 'Customer Comments: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + com5 + gap + com6 + gap + com7 + gap + com8 + gap + com9 + gap + com10 + gap + com11 + gap + com12 + gap + com13 + gap + com1 + gap + com2 + gap + com3 + gap + com4 + gap; break;
			case 2:
				content = 'Customer Comments: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + com9 + gap + com10 + gap + com11 + gap + com12 + gap + com13 + gap + com1 + gap + com2 + gap + com3 + gap + com4 + gap + com5 + gap + com6 + gap + com7 + gap + com8 + gap; break;
			case 3:
				content = 'Customer Comments: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + com11 + gap + com12 + gap + com13 + gap + com1 + gap + com2 + gap + com3 + gap + com4 + gap + com5 + gap + com6 + gap + com7 + gap + com8 + gap + com9 + gap + com10 + gap; break;
			case 4:
				content = 'Customer Comments: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + com3 + gap + com4 + gap + com5 + gap + com6 + gap + com7 + gap + com8 + gap + com9 + gap + com10 + gap + com11 + gap + com12 + gap + com13 + gap + com1 + gap + com2 + gap; break;
			default:
				content = 'Customer Comments: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + com7 + gap + com8 + gap + com9 + gap + com10 + gap + com11 + gap + com12 + gap + com13 + gap + com1 + gap + com2 + gap + com3 + gap + com4 + gap + com5 + gap + com6 + gap;
		}
		
	if (document.getElementById) 
	{ 	
		var tick = '<div style="position:relative;width:'+tWidth+';height:'+tHeight+';overflow:hidden;background-color:'+tcolour+'"';
		tick +='><div id="mq" style="position:absolute;left:0px;top:0px;font-family:'+fontfamily+';font-size:'+fsz+'px;white-space:nowrap;"><\/div><\/div>'; 
		document.getElementById('ticker').innerHTML = tick; 
		mq = document.getElementById("mq"); mq.style.left=(parseInt(tWidth)+10)+"px"; 
		mq.innerHTML='<span id="tx">'+content+'<\/span>'; 
		aw = document.getElementById("tx").offsetWidth;
		lefttime=setInterval("scrollticker()",10);
	}
} 

function scrollticker()
{
	mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ?parseInt(mq.style.left)-tSpeed+"px" : parseInt(tWidth)+10+"px";
} 

window.onload=startticker;