//author

function RunFlash()
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.write(' ID="ATP Synthase" WIDTH="595" HEIGHT="550" ALIGN="">');
    document.write(' <PARAM NAME=movie VALUE="/author/etc/medialib/flashapps/atp-synthase/ATPSynthase_swf.Par.0001.File.ATPSynthase.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
    document.write(' <EMBED src="/author/etc/medialib/flashapps/atp-synthase/ATPSynthase_swf.Par.0001.File.ATPSynthase.swf" quality=high bgcolor=#FFFFFF  ');
    document.write(' swLiveConnect=TRUE WIDTH="595" HEIGHT="550" NAME="SAMediaExpert" ALIGN=""');
    document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
    document.write(' <\/EMBED>');
    document.write(' <\/OBJECT>');

}
http://stlwcmqa01.sial.com/author/etc/medialib/flashapps/atp-synthase/ATPSynthase_swf.Par.0001.File.ATPSynthase.swf

function RunFlashPublish()
// publish (no author)
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.write(' ID="ATP Synthase" WIDTH="595" HEIGHT="550" ALIGN="">');
    document.write(' <PARAM NAME=movie VALUE="/etc/medialib/flashapps/atp-synthase/ATPSynthase_swf.Par.0001.File.ATPSynthase.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
    document.write(' <EMBED src="/etc/medialib/flashapps/atp-synthase/ATPSynthase_swf.Par.0001.File.ATPSynthase.swf" quality=high bgcolor=#FFFFFF  ');
    document.write(' swLiveConnect=TRUE WIDTH="595" HEIGHT="550" NAME="SAMediaExpert" ALIGN=""');
    document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
    document.write(' <\/EMBED>');
    document.write(' <\/OBJECT>');
	}

var TempHost=location.host;
var hasNameCookie = document.cookie.indexOf("WelcomeName=");
var hasSiteCookie = document.cookie.indexOf("SiteDef=");
var hasCountryCookie = document.cookie.indexOf("country=");

if (hasNameCookie != -1)
{
 var start = hasNameCookie + 12;               // Start of cookie value
 var end = document.cookie.indexOf(";", start);            // End of cookie value
 if (end == -1) end = document.cookie.length;
 var WelcomeName=unescape(document.cookie.substring(start, end));
 }
 else
 {
 var WelcomeName="x";
}
if (hasSiteCookie != -1)
{
 var start = hasSiteCookie + 8;               // Start of cookie value
 var end = document.cookie.indexOf(";", start);            // End of cookie value
 if (end == -1) end = document.cookie.length;
 var mySiteDef=unescape(document.cookie.substring(start, end));
 }
 else
 {
 var mySiteDef="Suite7";
}
if (hasCountryCookie != -1)
{
 var start = hasCountryCookie + 8;               // Start of cookie value
 var end = document.cookie.indexOf(";", start);            // End of cookie value
 if (end == -1) end = document.cookie.length;
 var Country=unescape(document.cookie.substring(start, end));
 }
 else
 {
 var Country="x";
}
var MM_contentVersion = 8;
var noflash = 0;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
        var words = navigator.plugins["Shockwave Flash"].description.split(" ");
        for (var i = 0; i < words.length; ++i)
        {
        if (isNaN(parseInt(words[i])))
        continue;
        var MM_PluginVersion = words[i];
        }
    var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
   && (navigator.appVersion.indexOf("Win") != -1)) {

    document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
    document.write('on error resume next \n');
    document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
    document.write('<\/SCR' + 'IPT\> \n');
}

if ( MM_FlashCanPlay ) {
 if (document.location.href.indexOf("/author/") != -1)
   { RunFlash();
   } else { RunFlashPublish();
   }

   } else {

    document.write('<p align=center>This page contains Flash.  To view the Flash presentation, you need Flash 9 Player.<br><br>Click <a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">here</a> to download the Flash Player.</p>');
   }