<%@ Page language="c#" Codebehind="flashcheck.aspx.cs" AutoEventWireup="false" Inherits="Orciid.flashcheck" %>
<%@ Import namespace="Orciid.Core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title runat="server" id="PageTitle">Browser Compatibility Check</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<asp:Literal Runat="server" Text="" id="ScriptVariablesLiteral" EnableViewState="false" />
		<script language="javascript">
<!--
var query = location.search.substring(1).toLowerCase();
var hasflashparam = (query.indexOf("flash=") == 0 || query.indexOf("&flash=") > -1);
// The URL (sans querystring) in this meta tag MUST MATCH the "failurl" parameter 
// in the flashtesturl below.
// The URL must have the querystring "?flash=no" appended to it.
if (!hasflashparam)
{
	document.writeln('<meta http-equiv="refresh" content="5;url=flashcheck.aspx?flash=no' + oldquerystring + '" />');
}

function performFlashTestOnce() {
  if (!hasflashparam)
  {
		// Specify the success and fail URLs
		var flashtesturl = "flashbin/flashtest.swf?successurl=" + successurl + "&failurl=flashcheck.aspx";
		// Specify the minimum required Flash player version
		flashtesturl += "&contentVersion=7&contentMajorRevision=0&contentMinorRevision=0";
		// Allow auto installation of the Flash player?
		flashtesturl += "&allowFlashAutoInstall=false";
		// Specify up to 9 key/value pairs to append in a query string to both the success and fail URLs.
		// Note: Flash apparently cannot handle encoded querystrings within querystrings
		// flashtesturl += "&key1=goto&value1=lighttable.aspx";
		// flashtesturl += "&key2=ssid&value2=15:33333";
		// flashtesturl += "&key3=redirect&value3=slideshows.aspx";
		flashtesturl += keyvaluepairs;
		document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1" height="1">');
		document.writeln('<PARAM NAME="movie" VALUE="'+flashtesturl+'">');
		document.writeln('<PARAM NAME="quality" VALUE="low">');
		document.writeln('<PARAM NAME="bgcolor" VALUE="#FFFFFF">');
		document.writeln('<EMBED src="'+flashtesturl+'" quality="low" bgcolor="#FFFFFF"  WIDTH="1" HEIGHT="1" NAME="flash_detection" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
		document.writeln('</object>');
	}
}
-->
		</script>
	</HEAD>
	<body>
		<form method="post" runat="server">
			<h1 id="Heading" runat="server">Browser Compatibility Check</h1>
			<asp:Panel id="CheckingPanel" runat="server" Visible="False">
				<SPAN id="PleaseWaitSpan" runat="server">Please wait while we check your 
					browser...</SPAN>
				<SCRIPT language="JavaScript">
		performFlashTestOnce();
				</SCRIPT>
			</asp:Panel>
			<asp:Panel id="CheckFailedPanel" runat="server" Visible="False" Width="500">
				<H2 id="Subheading" runat="server">You need a new version of the Macromedia Flash 
					Player.</H2>
				<P><A href="http://www.macromedia.com/go/getflashplayer"><IMG style="FLOAT: left" height="31" src="flashbin/alternate.gif" width="88" border="0"></A>
					<SPAN id="FlashNeededSpan" runat="server">MDID makes use of Macromedia Flash 
						software (version 7.0 or higher). The Flash Player is not installed on your 
						computer or you have an old version of Flash Player that cannot play MDID Flash 
						content. To install the latest version of the Flash player now, click the logo 
						now (it's free). When the installation is complete, return to this page.</SPAN></P>
				<P><FONT size="-2"><SPAN id="TrademarksSpan" runat="server">Macromedia and Flash are 
							trademarks of Macromedia, Inc.</SPAN></FONT></P>
			</asp:Panel>
			<asp:HyperLink id="ContinueHyperLink" runat="server">Click here to continue anyway</asp:HyperLink>
		</form>
		<P></P>
	</body>
</HTML>
