/*
 * Transforms the OJP station data into the expected runtime form.
 */
function ojp_init() {
	ojpNames = new Array();
	ojpCrsCodesToNames = {};
	ojpNamesToCrsCodes = {};
	init(stationData, ojpNames, ojpCrsCodesToNames, ojpNamesToCrsCodes);
}
ojp_init();

/*
 * Returns an array of arrays from the OJP dataset
 * whose entries start with the given (URI-encoded) prefix.
 */
function ojp_search(prefix) {
	return search(prefix, ojpNames, ojpCrsCodesToNames, ojpNamesToCrsCodes);
}
var ojpDataSource = new YAHOO.widget.DS_JSFunction(ojp_search);
