var m_tim;

function m(i) {
  $('#m div').hide('slow');
  $('#m div:eq('+i+')').show('slow', function () {
    if ($('#m div:eq(0)').css('display') == 'none') {
      clearTimeout(m_tim);
      m_tim = setTimeout('m(0)',8000);
    }
  });
}

