// Manage testimonials and next and previous functions.
// Wm. Stewart, 2011-11-16

var testimonials = new Array (



"<p>Just wanted to let you know how much we like your solution.  Your ERP system will save us $5,000 as we move from SalesForce to your solution. It is great to have a portable, safe and reliable cloud solution that costs us nothing in IT overhead.</p> <p>Jean-Fran&ccedil;ois Larente<br />Owner<br /> <a href=\"http://kinlar.ca/\" target=\"cc_kinlar\">Kinlar Insulation</a></p>",

"<p align=\"center\">\"<span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span> has solved our IT problem so we can focus on our business. Highly recommended.\"<br /><br />\Andrew Johnston<br /> President<br /><span class=\"oneLinkColor\"><a href=\"http://FirstAidOttawa.com/\" target=\"fao_ext\">FirstAidOttawa.com</a></span> </p>",

"<p>After trying to get SalesForce to work, we were lucky to find <span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span>. We now manage all customer contacts with our CRM system, from engagement through servicing and invoicing. </p><p>Rick Buffham<br />President<br /><a href=\"http://www.rbheating.com/\" target=\"cc_rbh\">RB Heating</a></p>",

"<p> We are glad to recommend <span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span> to any small or medium size business needing inexpensive, secure, hassle-free IT, with a great suite of software tools to help them achieve their mission. </p><p>Rick Buffham<br />President<br /><a href=\"http://www.rbheating.com/\" target=\"cc_rbh\">RB Heating</a></p>",

"<p>With our new capacity for collaboration, we are learning how to benefit from easy access to shared files and calendars, and version control of important documents. And we no longer worry about the need to back-up all of our important information.<br /><br />Dan Doyle<br />Director<br /><a href=\"http://st-josephs.ca/\" target=\"cc_stj\">St. Joseph's Parish Ottawa</a></p>",

"<p><span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span> offered us a very reasonable rate, with applications that meet our current needs, and enable the development of emerging opportunities. And the financial arrangements are based on our needs, without long-term commitments.<br /><br />Dan Doyle<br />Director<br /><a href=\"http://st-josephs.ca/\" target=\"cc_stj\">St. Joseph's Parish Ottawa</a></p>",

"<p>We have a rich set of reports and analytics to help track progress and ensure that opportunities for business don't get missed. And, we have the peace of mind of knowing our data is always safely protected. </p><p>Rick Buffham<br />President<br /><a href=\"http://www.rbheating.com/\" target=\"cc_rbh\">RB Heating</a></p>",

// "<p><span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span> understands customer care. They went to work quickly to get us running. The planning was comprehensive, and the execution was impressive. I do not hesitate to recommend them as a quality provider. <br /><br />Dan Doyle<br />Director<br /><a href=\"http://st-josephs.ca/\" target=\"cc_stj\">St. Joseph's Parish Ottawa</a></p>",

// "<p> The <span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span> solution helped us consolidate our information, while giving us portability of access to our business solutions to anyone on the team, in the office and through netbooks and smartphones on the road. </p><p>Rick Buffham<br />President<br /><a href=\"http://www.rbheating.com/\" target=\"cc_rbh\">RB Heating</a></p>",

// "<p><span class=\"style28a\">Cirrus</span><span class=\"style29a\"> Computing</span> provided us with great service, support, and training structured to meet our needs. It was nice to see that they started by first understanding our business, and then helped us use the system to streamline our processes. </p><p>Rick Buffham<br />President<br /><a href=\"http://www.rbheating.com/\" target=\"cc_rbh\">RB Heating</a></p>",

// End of array item, not used, has no comma at end, so others can be moved around easily
"Click to see what customers say about their Cirrus Computing solutions!"

);

var testimonials_length = 0 ;
testimonials_length = testimonials.length ;
testimonials_length = testimonials.length - 1 ;

var current_index = 0 ;

ChangeText ( ) ;

// -------------------- 

function ChangeText ( ) {

var x = document.getElementById("testimonialtext") ;

if ( x != null ) {  
x.innerHTML = testimonials [ current_index ] ;
}

}

//------------------------------------------------------------

function NextText (  ) {
// Load the next item.
// If current_index is not at the end, add 1, otherwise
// set to the end.  

 var s1 ;

 (current_index < testimonials_length - 1 ) ? 
   current_index = current_index + 1 : current_index = 0 ;

ChangeText (  ) ;
 
}

//------------------------------------------------------------

function PreviousText (  ) {

// Load the previous item.
// If the current_index is not at the beginning, subtract 1, 
// otherwise set to the end.  

 (current_index > 0) ? 
   current_index = current_index - 1 : current_index = testimonials_length - 1 ;

ChangeText (  ) ;

}
