//author

function RunFlash()
{

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="893_SA_Aseptic1" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="http://www.sigmaaldrich.tv/protease/893_SA_Aseptic1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="http://www.sigmaaldrich.tv/protease/893_SA_Aseptic1.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="893_SA_Aseptic1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://get.adobe.com/flashplayer/" />');
	document.write(' <\/embed>');
	document.write('</object>');

}


function RunFlashPublish()
// publish (no author)
{

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="893_SA_Aseptic1" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="http://www.sigmaaldrich.tv/protease/893_SA_Aseptic1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="http://www.sigmaaldrich.tv/protease/893_SA_Aseptic1.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="893_SA_Aseptic1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://get.adobe.com/flashplayer/" />');
	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>');
   }