OpenLayers 2 is outdated. Go to the latest 3.x version: http://openlayers.org/
Current Stable API URL is always http://openlayers.org/api/OpenLayers.js
Current Version API URL is http://openlayers.org/api/2.13.1/OpenLayers.js
Latest stable release: https://github.com/openlayers/openlayers/releases/download/release-2.13.1/OpenLayers-2.13.1.tar.gz .tar.gz https://github.com/openlayers/openlayers/releases/download/release-2.13.1/OpenLayers-2.13.1.zip .zip
Older releases: https://github.com/openlayers/openlayers/releases/
Getting the Development Version From Github
OpenLayers' development branch is now on GitHub: http://github.com/openlayers/openlayers.
You can thus download OpenLayers by cloning the Git repository:
git clone https://github.com/openlayers/openlayers
The repository is world readable. Write access is limited. To contribute to OpenLayers' development, it's important to be comfortable working with git. The help pages on GitHub provide a nice starting place for this.
Or, if you prefer Subversion:
svn co https://github.com/openlayers/openlayers