Associated Lame equation, periodic potentials and sl(2,R)