﻿
var timerID = null

function InitializeTimer()
{
    timerID = window.setInterval("DisplayTestimonial();", 10 * 1000);    
}

function DisplayTestimonial()
{
    index = Math.floor(Math.random() * testimonials.length);
    var testimonialarray = testimonials[index].split("|");
    document.getElementById('qupper').innerHTML = testimonialarray[0];
    document.getElementById('qlower').innerHTML = testimonialarray[1];
}

function showDemoMenu( val )
{
    var x = document.getElementById('demos');
    var y = (x.style.display == 'none');
    x.style.display = (y) ? 'block' : 'none';
}
                
