﻿
var timedFunc = '';

function body_onload (){
   var testimonial1 = document.getElementById("testimonial1");
   if(testimonial1 != null){
        InitTimeInterval()
   }

}

function rotate_testimonial(){
    
    var testimonial1 = document.getElementById("testimonial1");
    var testimonial2 = document.getElementById("testimonial2");
   
    if(testimonial1 != null && testimonial2 != null){
        if(testimonial1.style.display == "block"){
            testimonial1.style.display = "none";
            testimonial2.style.display = "block";
        }
        else{
            testimonial1.style.display = "block";
            testimonial2.style.display = "none";
        }
    }
}

function InitTimeInterval() {
  timeFunc = setInterval("rotate_testimonial()",10000);
}