var mapSelector = "#store_locator";
var urlBase = "";


// Hide elements until the flash is loaded.
document.write('<style type="text/css">');
document.write(mapSelector + " {visibility: hidden;}");
document.write('</style>');


function doMapReplace(){
	var el = $(mapSelector).get(0);
//alert('dfs');
	var width = "450";
	var height = "400";
	
	var xml_path = "/net/outlet/stores_xml.aspx";
	
	var flashVars = "urlBase=" + escape(urlBase) + "&xml_path=" + escape(xml_path);
	
	var pars = {
			flashvars: 		flashVars,
			wmode:          "transparent"
		};

	writeFlash(el, "/map/map.swf", width, height, pars );
}

$(doMapReplace);
