document.write('
'); document.write(''); function gei(x){ return document.getElementById(x); } var liveTestimonial=0; function rotateTestimonial(){ document.getElementById('testimonial').style.opacity=100; document.getElementById('testimonial').style.filter="alpha(opacity=100)"; testimonialCount = gei('testimonialList').getElementsByTagName("div").length; if(liveTestimonial+1 > testimonialCount) liveTestimonial=0; nextTestimonial = gei('testimonialList').getElementsByTagName("div")[liveTestimonial].innerHTML; document.getElementById('testimonial').innerHTML = nextTestimonial; window.setTimeout("slideTestimonial(100);",7000); liveTestimonial++; } function slideTestimonial(x){ x--; document.getElementById('testimonial').style.opacity=x/100; document.getElementById('testimonial').style.filter="alpha(opacity="+x+")"; if(x > 0) window.setTimeout("slideTestimonial("+x+");",10); else rotateTestimonial(); } rotateTestimonial();