//	Code to create flash plugin tag needed to show movie

//	This returns the major and minor version of flash plugin installed,
//	or 0.0 if no plugin is detected
var flashVersion = DetectFlashVer();

//alert("Returned from flashVersion = " + flashVersion + " typeof " + typeof flashVersion);

cookieVal = "";

if(parseFloat(flashVersion) > 0) {  
	// flash is too old but installed, so set a cookie
	// and reload so jsp can forward us to the right page
	//alert("Adding version " + flashVersion + " to cookie");
	cookieVal+=FLASHID+VALUESEP+flashVersion
	}

//	Apparently have javascript enabed, so set cookie for this as well...
if(cookieVal != "")cookieVal+=KEYSEP;
cookieVal+=JSID+VALUESEP+"1.0";

//alert("Setting cookie " + cookieVal);

//	Use function to set cookie containing browser capabilities...
SetCookie(COOKIENAME,cookieVal);

//alert("forwarding to '" +  REFERRER + "'");

//	Send people back after one second...
window.setTimeout("window.location.href = \"" + REFERRER + "\"",1000);


