﻿//<script language="javascript">
//<!--
//<!-- Original:  Robert Bui (astrogate@hotmail.com) -->
//<!-- Adaptation Martin Mc Arthur (martin@rmweb.co.za -->

//<!-- Re-coding by Netlive KZN (support@netlive.co.za -->

//<!-- Begin
var interval = 10; // delay between changing quotes (in seconds)
var random_display = 1; // 0 = no, 1 = yes
interval *= 1000;

var quote_index = 0;
quote_list = new Array();
quote_list[quote_index++] = "&quot;Prosyn was referred to us when we outgrew our previous supplier and we have been very impressed by the knowledge and reactivity of the engineers. Given the variety of services offered by Prosyn and the expertise of the staff, we know we are in good hands for our networking, data storage and telephony requirements.&quot;<br><b> Rob Corlett<br>Curo Property Funds</b>";
quote_list[quote_index++] = "&quot;Our telephone system, recommended and installed by Prosyn, has had a very positive impact on our business. It is a pleasure to deal with Prosyn. Their engineers are efficient and our systems always work better as a result of taking their advice.&quot;<br><b> Brendan O’Connor<br>Shine Communications</b>";
quote_list[quote_index++] = "&quot;Prosyn was recommended to us and they have lived up to all expectations. They installed a comprehensive VOIP and network package which solved all of our IT and communication problems in one fell swoop. The finance deal they came up with was very attractive – ideal for a small business.&quot;<br><b> Steve Vaudrey<br>The Clarion Agency</b>";
quote_list[quote_index++] = "&quot;Prosyn support is responsive and effective - they are there when you need them and they get the job done. We would definitely recommend their services to others.&quot;<br><b>Jane Rouse<br>Nova Capital Group</b>";
quote_list[quote_index++] = "&quot;We have always been very impressed with the professionalism of Prosyn staff. they do what they say they will and always follow things up afterwards. They are good enough not to need client testimonials on their website…&quot;<br><b>Mathew Dixon<br>Hudson Walker International</b>";
quote_list[quote_index++] = "&quot;We have a long-standing and good relationship with Prosyn and they respond very well to all of our business needs. Prosyn offers a personal approach and [on his initial visit] Roy talked in a language which we could understand, which was very pleasing. As a charity, we need to be able to count on IT support from a company which provides good service at an affordable price. Prosyn is one such company.&quot;<br><b>Miriam Isherwood<br>Mary Feilding Guild</b>";
var number_of_quotes = quote_list.length;

function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}

function getNextQuote() {
	if (random_display) {
		quote_index = generate(0, number_of_quotes-1);
	}
	else {
		quote_index = (quote_index+1) % number_of_quotes;
	}
	var new_quote = quote_list[quote_index];
	return(new_quote);
}

function changeQuote(div_id) {

	_findObj(div_id).innerHTML = getNextQuote();
	var recur_call = "changeQuote('"+div_id+"')";
	setTimeout(recur_call, interval);
}
//  End -->

function _findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//</script>