GJ1214b is thought to be either a mini-Neptune with a thick, hydrogen-rich atmosphere, or a planet with a composition dominated by water. In the case of a hydrogen-rich atmosphere, molecular absorption and scattering processes may result in detectable radius variations as a function of wavelength. The aim of this paper is to measure these variations. We have obtained observations of the transit of GJ1214b in the r- and I-band with the INT, in the g, r, i and z bands with the 2.2 meter MPI/ESO telescope, in the Ks-band with the NOT, and in the Kc-band with the WHT. By comparing the transit depth between the the different bands, which is a measure for the planet-to-star size ratio, the atmosphere is investigated. We do not detect clearly significant variations in the planet-to-star size ratio as function of wavelength. Although the ratio at the shortest measured wavelength, in g-band, is 2sigma larger than in the other bands. The uncertainties in the Ks and Kc bands are large, due to systematic features in the light curves. The tentative increase in the planet-to-star size ratio at the shortest wavelength could be a sign of an increase in the effective planet-size due to Rayleigh scattering, which would require GJ1214b to have a hydrogen-rich atmosphere. If true, then the atmosphere has to have both clouds, to suppress planet-size variations at red optical wavelengths, as well as a sub-solar metallicity, to suppress strong molecular features in the near- and mid-infrared. However, star spots, which are known to be present on the hoststars surface, can (partly) cancel out the expected variations in planet-to-star size ratio, due to the lower surface temperature of the spots . A hypothetical spot-fraction of 10% would be able to raise the infrared points sufficiently with respect to the optical measurements to be inconsistent with a water-dominated atmosphere. [abridged]