// swfObject callback function to redirect to HTML page on failure
// and set UI to HTML only
// Note: relies on Prototype functions
function swfObjectFailover(e)
{
  if(!e.success)
  {
    $('flash').hide(); // hide the default home page
    try {
      if(window.location.hash) {
        curUrl = window.location.href;
        newUrl = curUrl.replace(/\#\//, '') + '?_ui=htm';
      }
      else {
        newUrl = window.location.href + '?_ui=htm';
      }
      //alert('redirecting...'+newUrl);
      window.location.replace(newUrl); // reload with new link
    }
    catch(err) {
      $('flash').show(); // restore on failure
    }
  }
}

var flashvars = {
	};
var params = {
	menu: "false",
	wmode: 'transparent',
	allowscriptaccess: 'always',
	swliveconnect: 'true',
	scale: 'noscale',
	salign: 't',
	align: 't'

};
var attributes = {
	id: "flash",
	name: "flash"
};

swfobject.embedSWF('flash/slt_main.swf?v1.5', 'flash', '100%', 800, '9.0.45', 'js/expressinstall.swf', flashvars, params, attributes, swfObjectFailover);

function resizeFlash(newHeight) {
document.getElementById('flash').style.height = newHeight+"px";
}

