Problem with flash detection script & frames

Hey there. I’ve created a flash website, and an opening page in html. The opening page doesn’t contain any flash stuff, and it consists out of a few frames. The enter page only contains the word “enter” and a detection script for flash plugin. This enter page is being loaded into a frame on the opening page. When you press the enter button, and you don’t have a flash plugin installed, you get a page which replaces the enter.htm page with the noflash.htm page in the same frame. The only problem is when you do have a flash plugin installed and you try to enter the site, the site opens in the same frame as the enter.htm page. I don’t want this to happen, I want the website to open in the root of the frameset. So that the site covers the whole screen in stead of being loaded into a small frame.

The code I use:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Niels' Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--

function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
//-->
</script>
</head>

<body bgcolor="#EFEFEF" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<div align="center"> 
  <p><font color="#000000" size="-2" face="Arial, Helvetica, sans-serif" onclick="MM_checkPlugin('Shockwave Flash','http://members.home.nl/nielskreijveld/site.htm','http://members.home.nl/nielskreijveld/noflash.htm',true);return document.MM_returnValue"><a href="%20">Enter</a></font></p>
</div>
</body>
<script name="Used by MM_checkPlugin" language="javascript">
<!--
with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
'<scr'+'ipt language="VBScript">
On error resume next
'+
'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))
'+
'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))
</scr'+'ipt>');
//-->
</script>
</html>

The website can be found @ http://www.niels-site.tk/.

Thnx 4 the help.

Code R.