function comments() { window.open("/Arizona-online-defensive-driving/src/English/comments.html", "comments", "left=50, top=50, width=730, height=550, resizable=yes, scrollbars=yes"); } function faq() { window.open("/Arizona-online-defensive-driving/src/English/faq.html", "faq", "left=50, top=50, width=730, height=550, resizable=yes, scrollbars=yes"); } function SSL_Encrypted_Secured() { window.open("https://www.arizonadriver.com/thawte/SSL/SSL_Encrypted_Secured.html", "secured", "left=50, top=50, width=500, height=585, resizable=no, scrollbars=no"); } function initRollovers() { if (!document.getElementById) return var aPreLoad = new Array(); var sTempSrc; var aImages = document.getElementsByTagName('img'); for (var i = 0; i < aImages.length; i++) { if (aImages[i].className == 'imgover') { var src = aImages[i].getAttribute('src'); var ftype = src.substring(src.lastIndexOf('.'), src.length); var hsrc = src.replace(ftype, '-ovr'+ftype); aImages[i].setAttribute('hsrc', hsrc); aPreLoad[i] = new Image(); aPreLoad[i].src = hsrc; aImages[i].onmouseover = function() { sTempSrc = this.getAttribute('src'); this.setAttribute('src', this.getAttribute('hsrc')); } aImages[i].onmouseout = function() { if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('-ovr'+ftype, ftype); this.setAttribute('src', sTempSrc); } } } } function enlargeText1() { x = document.getElementById('textarea'); x.style.fontSize = '1em'; } function enlargeText2() { x = document.getElementById('textarea'); x.style.fontSize = '1.5em'; } function enlargeText3() { x = document.getElementById('textarea'); x.style.fontSize = '2em'; } var imageon0, imageon1, imageon2, imageon3, imageon4, x, z; function load_people() { imageon0 = new Image(); imageon0.src = "/Arizona-online-defensive-driving/images/homepage/comment1.jpg"; imageon1 = new Image(); imageon1.src = "/Arizona-online-defensive-driving/images/homepage/comment2.jpg"; imageon2 = new Image(); imageon2.src = "/Arizona-online-defensive-driving/images/homepage/comment3.jpg"; imageon3 = new Image(); imageon3.src = "/Arizona-online-defensive-driving/images/homepage/comment4.jpg"; imageon4 = new Image(); imageon4.src = "/Arizona-online-defensive-driving/images/homepage/comment5.jpg"; x = 0; z = 0; setTimeout('rotatepeople()', 5000); } function rotatepeople() { document.getElementById('testimonial').src = eval('imageon'+x).src; setTimeout( 'rotatepeople()', z == 0 ? 20000 : 25000 ); if( ++x == 5 ){ x = 0; ++z; } }