var ne=0;
$(document).ready(function(){
  setInterval(function() {
  neOld = ne;
  if (ne<1) ne=ne+1;
  else ne=0;
  $('#epicenter'+neOld).animate({ opacity: "hide" }, 3000);
  $('#epicenter'+ne).animate({ opacity: "show" }, 3000);
  }, 7000);

var ce=0;
  setInterval(function() {
  ceOld = ce;
  if (ce<2) ce=ce+1;
  else ce=0;
  $('#cim'+ceOld).animate({ opacity: "hide" }, 1000);
  $('#cim'+ce).animate({ opacity: "show" }, 1000);
  }, 3500);

var se=0;
  setInterval(function() {
  seOld = ce;
  if (se<2) se=se+1;
  else se=0;
  $('#shell'+seOld).animate({ opacity: "hide" }, 3000);
  $('#shell'+se).animate({ opacity: "show" }, 3000);
  }, 8500);

var fe=0;
  setInterval(function() {
  feOld = fe;
  if (fe<1) fe=fe+1;
  else fe=0;
  $('#furshet'+feOld).animate({ opacity: "hide" }, 2500);
  $('#furshet'+fe).animate({ opacity: "show" }, 2500);
  }, 5500);



});

