function detectFlash() {    if (navigator.plugins) {    if (navigator.plugins["Shockwave Flash 2.0"]        || navigator.plugins["Shockwave Flash"]) {      var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";      var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;      var flashVersion = parseInt(flashDescription.substring(16));      flash2Installed = flashVersion == 2;          flash3Installed = flashVersion == 3;      flash4Installed = flashVersion == 4;      flash5Installed = flashVersion == 5;      flash6Installed = flashVersion == 6;      flash7Installed = flashVersion == 7;      flash8Installed = flashVersion == 8;      flash9Installed = flashVersion >= 9;    }  }  for (var i = 2; i <= maxVersion; i++) {      if (eval("flash" + i + "Installed") == true) actualVersion = i;  }  if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 4;    if (actualVersion >= requiredVersion) {    if (useRedirect) {      if(jsVersion > 1.0) {        window.location.replace(flashPage);        } else {        window.location = flashPage;      }    }    hasRightVersion = true;                  } else {      if (useRedirect) {      if(jsVersion > 1.0) {        window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);      } else {        window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;      }    }  }  if(!hasRightVersion) {	  	// Add script for IE6 and below on the PC		document.write('<!--[if lt IE 7]><link href="'+myURL+'scripts/css/ie.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->');	  	// Adds a static picture to the web site		document.write('<link href="'+myURL+'scripts/css/static-banner.css" rel="stylesheet" type="text/css" media="screen" />');		showImage = (Math.floor(Math.random()*numberOfImages)+1);		document.write('<style type="text/css" media="screen">div#banner h1 {background-image:url('+myURL+'images/banner/'+showImage+'.jpg);}</style>');   } else {	  	// Add the container for the Flash banner if we have the correct version of flash	  	document.write('<style type="text/css" media="screen">div#bTop, div#banner h1 {display:none;}</style>');   }}detectFlash();