var quotations = [
			[
			'"Propertyware is the essential tool for managing our properties. Our management company simply cannot survive without it."', 
			'Bill, Eastmont Properties', 
			'Oakland, CA'
			],
			[
			'"Propertyware has made it possible for us to manage properties all over the world"', 
			'Robert, JHS Properties', 
			'San Rafael, CA'
			],
			[
			'"Awesome! I cannot imagine running my business without Propertyware!"', 
			'Charles, Rent4Less', 
			'Denver, CO'
			],
			[
			'"We have entrusted our business to Propertyware and they have proven to be an indispensable strategic partner. The level of service and commitment is unsurpassable, which makes all the difference in the world when choosing a solution that is the very core of your business."', 
			'Dov, First Key Management, LLC', 
			'New York, NY'
			]
		];

/***** TIMER FUNCTIONS *********/

var timerID = 0;
var tStart  = null;
var timerLenInSec = 5; // refresh value in secs

function StartTimer() {
   tStart   = new Date();
   timerID  = setTimeout("UpdateQuotation()", timerLenInSec * 1000);
}

function UpdateTimer() {
   if(timerID) {
      clearTimeout(timerID);
      clockID  = 0;
   }

   if(!tStart)
      tStart   = new Date();

   var   tDate = new Date();
   var   tDiff = tDate.getTime() - tStart.getTime();

   tDate.setTime(tDiff);
  
   timerID = setTimeout("UpdateQuotation()", timerLenInSec * 1000);
}

function StopTimer() {
   if(timerID) {
      clearTimeout(timerID);
      timerID  = 0;
   }

   tStart = null;
}

function UpdateQuotation() {
	var randomnumber = Math.floor(Math.random()*quotations.length)

	var obj = window.document.getElementById("testimonialSpanText");
	obj.innerHTML = quotations[randomnumber][0];

	obj = window.document.getElementById("testimonialSpanWho");
	obj.innerHTML = obj.innerHTML = quotations[randomnumber][1];

	obj = window.document.getElementById("testimonialSpanLocation");
	obj.innerHTML = quotations[randomnumber][2];

	//UpdateTimer();  enable this if you want them to refresh
}

