Propagation of solitons in thermal media with periodic nonlinearity.