Ecological model with mercury