SWFObject 2 offers two optimized Flash Player embed methods; a markup based approach and a method that relies on JavaScript & offers a JavaScript API that aims to provide a complete tool set for embedding SWF files and retrieving Flash Player related information