Swfobject 2.1 Flex template. HistoryManager and DeepLinking supported as well

[UPDATE] I've updated template to SWFObject 2.1
And there is a bit smarter way to register flexApplication with BrowserHistory:

var flashvars = {
name1: "hello",
name2: "world",
name3: "foobar"
var params = {
menu: "false"
var attributes = {
id: "${application}",
name: "${application}"

swfobject.embedSWF ( "${swf}.swf", "${application}_div", "${width}", "${height}", "${version_major}", "expressInstall.swf", flashvars, params, attributes );
function loadEventHandler() {
BrowserHistory.flexApplication = swfobject.getObjectById("${application}");

I have been using Geoff Stearns' SWFObject for a long time. I think it will be useful to share my index.template.html that tuned for using with SWFObject 2 2.1. I was inspired with Ted Patrick's FXWidget project that uses SWFObject 1.5 for embedding flex content to html page. So now it supports HistoryManager and DeepLinking.
I've made few little changes in history.js to let content embed with SWFObject work with HistoryManager and Deeplinking - I've replaced 'embed' with 'object' at lines 115 and 131 due to the fact that
SWFObject's base markup uses the nested-objects method.

Project Archive [updated - 07-07-2008] ( broken link has been fixed)

Have fun with it!