  var msgCt = 12;
  var mesgArray = [];
  var elem = null;
  mesgArray[0] = 'We can smog ANY vehicle (including RVs)'
  mesgArray[1] = 'Two testing units = FAST smog check!'
  mesgArray[2] = 'We price-match and accept competitor coupons'
  mesgArray[3] = 'Pass or your RETEST is FREE (no expiration)'
  mesgArray[4] = 'Experienced and friendly technicians'
  mesgArray[5] = 'Fast service with upfront pricing (no surprises)'
  mesgArray[6] = 'Official smog check test-only station'
  mesgArray[7] = 'Complimentary snacks and drinks available'
  mesgArray[8] = 'We process purchase orders for corporate clients'
  mesgArray[9] = 'Flexible hours and appointments by request'
  mesgArray[10] = 'Gross polluter and out of state vehicles welcome'
  mesgArray[11]= 'Call now to get your personalized price quote!'
  var ctr = -1;

  function changeMessage() {
    ctr++;
    if (ctr >= msgCt) {
      ctr = 0;
    }
    elem = document.getElementById('messageDiv');
    elem.innerHTML = mesgArray[ctr];
    fadeOpacity(elem, 1);
    setTimeout("changeMessage()", 5000);
  }

  function fadeOpacity(elem, opacityAsInt) {
    var opacityAsDecimal = opacityAsInt; 
    
    if (opacityAsInt > 100)
        opacityAsInt = opacityAsDecimal = 100; 
    else if (opacityAsInt < 0)
        opacityAsInt = opacityAsDecimal = 0; 
    
    opacityAsDecimal /= 100;
    if (opacityAsInt < 1)
        opacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0
    
    elem.style.opacity = (opacityAsDecimal);
    elem.style.filter  = "alpha(opacity=" + opacityAsInt + ")";
    if (opacityAsInt < 100) {
      setTimeout("fadeOpacity(elem,"+(opacityAsInt+5)+")",100);
    }
  }

