/** Stat Logger
 *
**/


function logStat(statName, statEpisode) {

  if( typeof(statName) == 'string' ) {

    runAjaxCode(
      '/includes/ajax_stat_update.php?stat=' + statName + (statEpisode != undefined ? '&group=' + statEpisode : ''),
      true,
      'GET',
      null
    );

    switch(statName) {
    case 'judy_episode_play':

      hideRandomThumb();
      killFauxLoader();

    break;
    default:
      // ...
    }

  }

} // ! logStat()