// Hide these elements until the flash is loaded.
document.write('<style type="text/css" media="screen">');
document.write('#interactive_map {visibility: hidden}');
document.write('</style>');


function doMapReplace(){

	var b = document.getElementById("interactive_map");
	var img = $("#interactive_map img");
	//writeFlash(b, "interactive-map/interactive_map_v2.swf", "320", "400", "contentUrl=" + encodeURI(img.longDesc) )
	
	var pars = {
		wmode: "transparent",
		flashvars: "contentUrl=" + encodeURIComponent(img.attr("longDesc"))
		};
		
	writeFlash(b, "interactive-map/interactive_map_v2.swf", 320, 400, pars);
	
	//b.style.marginRight = "-20px";
}

$(doMapReplace);