if (!window.sMap) window.sMap = {}; if (!window.sMap.constants) window.sMap.constants = {};window.sMap.constants["surveyUrl"] = "https://survey.sustrans.org.uk/sustrans_survey";window.sMap.constants["featureWmsLayers"] = "sus_imagemap";window.sMap.constants["featureImageMapWmsUrl"] = "http://www.sustrans.org.uk/smap/features-wms";window.sMap.constants["cyclingMph"] = "8";window.sMap.constants["backdropWmsLayers"] = "map_layers";window.sMap.constants["walkingMph"] = "3";window.sMap.constants["webappUrl"] = "http://www.sustrans.org.uk/smap";window.sMap.constants["featureWmsUrl"] = "http://www.sustrans.org.uk/smap/smap/features-wms";window.sMap.constants["SINGLE_FEATURE_MAP_PAGE"] = "http://www.sustrans.org.uk/map?searchtype=%0%&searchkey=%1%";window.sMap.constants["helpUrl"] = "http://www.sustrans.org.uk/smap/help.jsp";window.sMap.constants["applicationBaseUrl"] = "http://www.sustrans.org.uk/smap";window.sMap.constants["backdropWmsUrl"] = "http://www.sustrans.org.uk/smap/backdrop-wms";window.sMap.constants["selectedRouteWmsLayers"] = "sus:route,sus:routesegment_route,sus:route_accesspoints";window.sMap.constants["selectedRouteWmsUrl"] = "http://www.sustrans.org.uk/smap/route-wms";

jQuery(document).ready(function() {
	
	var $mapc = jQuery('#mapcontainer');
	$mapc.append("<div id='route-results'/><div id='smapwrapper'><div id='smapOl' class='smallmap' /></div>");
	var m = new sMap.model.Map();
	sMap.userId = 0;
	sMap.search.resultsCount = 0;
	sMap.search.searchInput = "";

	sMap.init();
	
});

