﻿var count = 0;
function Anthem_PreCallBack() { 
    count++;
    setTimeout("CallBackStarted()", 500); 
}
function Anthem_PostCallBack() { CallBackFinished(); }

function CallBackStarted() {
  if (count > 0){  
    $("#wait").slideDown({ duration: 1000, easing: 'easeInOutElastic'});
  }
}
 
function CallBackFinished(){
  count--;
  if (count == 0){
    $("#wait").slideUp({ duration: 1000, easing: 'easeInOutElastic'});
  }
}
