//////////////////////////////////////////////
// CXD-i related functions

// Flash prompter
// NOTE: assumes that a Flash detect has been carried out before this function is called...
function flashPrompt(){
	if(!flashDetected && !getCookie("flashPrompt")){
		// flash version is either not present or not up to the required version
		// before we invoke a relocation, we need to set a cookie so that we do not get caught in a nasty loop
		setCookie("flashPrompt", true);
		var detectedVersion = getPlayerVersion();
		if(detectedVersion.major > 0){
			// wrong version of flash
			self.location = "index.cfm?go=flashPrompt&detected=true";
		}else{
			// no flash at all
			self.location = "index.cfm?go=flashPrompt&detected=false";
		}
	}
}
flashPrompt();
//alert(getCookie("flashPrompt"));
//destroyCookie("flashPrompt");