
if(typeof OBA !== 'undefined' && typeof OBA.Config !== 'undefined') {
	OBA.Config.staleTimeout=120;
	OBA.Config.googleAnalyticsSiteId="UA-104020128-1";
	OBA.Config.bingMapsKey="";
	OBA.Config.obaApiKey="OBAKEY";
	OBA.Config.mapBounds={ swLat: 38.69426299999999, swLon: -77.449456, neLat: 39.191491, neLon: -76.668936 };
	OBA.Config.mapCenterLat=null;
	OBA.Config.mapCenterLon=null;
	OBA.Config.mapZoom=null;
	OBA.Config.shortCode='41411';
	OBA.Config.stopTerm='Bus Stop #';
	OBA.Config.txtPrefix='WMATA';
	OBA.Config.signDefaultAgencyId='';
	OBA.Config.useAgencyId='true';
	OBA.Config.showVehicleIdInStopPopup='true';
	OBA.Config.showExpectedArrivalTimeInStopPopup='false';
	OBA.Config.showBlockIdInVehiclePopup='true';
	OBA.Config.serviceAlertText='Service Advisory';

	OBA.Config.siriSMUrl = "/onebusaway-api-webapp/siri" + "/stop-monitoring.json?key=" + OBA.Config.obaApiKey;
	OBA.Config.siriVMUrl = "/onebusaway-api-webapp/siri" + "/vehicle-monitoring.json?key=" + OBA.Config.obaApiKey;
	OBA.Config.apiBaseUrl = "/onebusaway-api-webapp";
	OBA.Config.timeApiUrl = "/onebusaway-api-webapp" + "/api/where/current-time.json?key=" + OBA.Config.obaApiKey;
	OBA.Config.showSMS = "";

	OBA.Config.infoBubbleFooterFunction = function(type, query) {
			var html = '';

			if(type === "stop")	{
				html += '<div class="footer">';
				html += '<span class="header">While at the bus stop...</span>';
				html += '<br/>';
				
				if(OBA.Config.showSMS === "true"){
					html += 'Send ' + OBA.Config.txtPrefix + ' <strong>' + query + '</strong> as a text to <strong>' + OBA.Config.shortCode + '</strong>';
					html += '<br/>';
					html += 'or check <a href="queryLink">this stop</a> on your smartphone.';
				}
				else{
					html += 'Check <a href="queryLink">this stop</a> on your smartphone.';
					
				}	
				html += '</div>';

				var queryLink = "m/?q=" + query;
				html = html.replace("queryLink", queryLink);

			} else if(type === "route") {
				html += '<div class="footer">';
				html += '<span class="header">While at the bus stop...</span>';
				html += '<br/>';
				html += 'Check <a href="queryLink">this route</a> on your smartphone.';

				html += '</div>';

				var queryLink = "m/?q=" + query;
				html = html.replace("queryLink", queryLink);

			} else if(type === "sign") {
				html += 'Text <strong> ' + query + '</strong> to <strong>' + OBA.Config.shortCode + '</strong> ';
				html += 'or check this stop on your smartphone at <strong>http://' + window.location.hostname + ((window.location.port !== '') ? ':' + window.location.port : '') + '/m/?q=' + query + '</strong>';
			}

			return html;
		};

	OBA.Config.configurationHasLoaded();
}
