    // Progressivley enhances page to include flash map, using SWFObject to replace image

	    var flashvars = {};
	    // 2008-06-05, Martin Digon:
	    // Add <param name="wmode" value="opaque"/>; this allows the Adtech popup survey div to 
	    //  appear above the map (otherwise the Flash area always sits on top of everything. 
	    var params = { wmode: 'opaque' };
	    params.quality = "high";
	    var attributes = {};
	    
	    var requiredFlashVersion = "9.0.0";
	    // ER70, 2008-06-25, Martin Digon:
	    //  Until now, all we tried to do here is replace "map" div with the given SWF by using swfobject.embedSWF().
	    //  This is no longer enough for ER70, because we need to determine if the embed was succesful
	    //  so that we can display the two links below the map.
	    
	    // Embed the map if possible. Note that this can be called before the DOM has loaded.
	    swfobject.embedSWF("/cssimages/flash/map.swf", "location-browser", "392", "299", requiredFlashVersion, false, flashvars, params, attributes);	
	    
	    // Now wait till the DOM has loaded to display links below map if appropriate.
	    swfobject.addDomLoadEvent(handleLinksBelowMap);
	    
	    
	    // Display links below map if appropriate.
	    // DOM must be loaded for this to work.
	    function handleLinksBelowMap()
	    {
	        // If we have the right Flash player version that we need for the map, we can assume the map was embedded successfully.
    	    if (swfobject.hasFlashPlayerVersion(requiredFlashVersion))
	        {
	            // Use Madgex JS library to change the "links-under-map"'s class.
                CSSClass.remove("links-under-map", "hidden-links-under-map");
                CSSClass.add("links-under-map", "shown-links-under-map");
            }
        }
        
