(function() {
	// Insert a script tag pointing at the desired version of jQuery

	// Get the version from the url
	var jqueryRE = /[\\?&]jquery=([^&#]*)/,
		results = jqueryRE.exec( location.search ),
		version = "",
		myScriptTag = document.getElementsByTagName( "script" )[document.getElementsByTagName( "script" ).length - 1],
		baseUrl = myScriptTag.src.replace( /(.*)\/.*$/, "$1/" ),
		url;

	if( results ) {
		version = decodeURIComponent(results[results.length - 1].replace(/\+/g, " "));
	}

	switch( version ) {
		// Local versions
		case "1.6.4":
		case "1.7.1":
		case "1.7.2":
			url = baseUrl + "jquery-" + version + ".js";
			break;
		default:
			url = baseUrl + "jquery.js";
			break;
	}

	document.write( "<script src='" + url + "'></script>" );

	if ( parseInt( version.replace( /\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {
		document.write( '<script>define( "jquery", [], function () { return jQuery; } );</script>' );
	}
}());
(function() {
	// Insert a script tag pointing at the desired version of jQuery

	// Get the version from the url
	var jqueryRE = /[\\?&]jquery=([^&#]*)/,
		results = jqueryRE.exec( location.search ),
		version = "1.7.1",
		myScriptTag = document.getElementsByTagName( "script" )[document.getElementsByTagName( "script" ).length - 1],
		baseUrl = myScriptTag.src.replace( /(.*)\/.*$/, "$1/" ),
		url;

	if( results ) {
		version = decodeURIComponent(results[results.length - 1].replace(/\+/g, " "));
	} 

	switch( version ) {
		// Local versions
		case "1.6.4":
		case "1.7.1":
		case "1.7.2":
			url = baseUrl + "jquery-" + version + ".js";
			break;
		// CDN versions
		default:
			url = "http://code.jquery.com/jquery-"+version+".js";
			break;
	}

	document.write( "<script src='" + url + "'></script>" );

	if ( parseInt( version.replace( /\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {
		document.write( '<script>define( "jquery", [], function () { return jQuery; } );</script>' );
	}
}());
Revert "default to unversioned vendored jquery.js for ci"
Revert "default to unversioned vendored jquery.js for ci"

This reverts commit 4b5a84880f8317549140b5cfba96d61c14eba5d2.
