Effective cosmological constant and quintessence