if (!window.sMap) window.sMap = {}; if (!window.sMap.constants) window.sMap.constants = {};window.sMap.constants["surveyUrl"] = "http://www.snapsurveys.com/swh/surveylogin.asp?k=125473028598";window.sMap.constants["featureWmsLayers"] = "sus:layers";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["webappUrl"] = "http://www.sustrans.org.uk/smap";window.sMap.constants["walkingMph"] = "3";window.sMap.constants["featureWmsUrl"] = "http://sustrans-m3.dottedeyes.com//smap/features-wms,http://sustrans-m4.dottedeyes.com//smap/features-wms,http://sustrans-m5.dottedeyes.com//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["backdropWmsUrl"] = "http://sustrans-m0.dottedeyes.com/smap/backdrop-wms,http://sustrans-m1.dottedeyes.com/smap/backdrop-wms,http://sustrans-m2.dottedeyes.com/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.init();
	
});
