function FDetect() {








	this.PARTNER_COS = ["bladeanswers",
        "bladewebinar",
        "bladewebinar1",
        "btc",
        "btcchallenge",
        "datacenterblades",
        "dsc",
        "green",
        "greenoverview",
        "greenproliant",
        "insightcontrol",
        "sellhp",
        "smallsiteblades",
        "uim",
        "virt",
        "virtwebinar",
        "managementwebinar",
        "managementwebinar_sp",
        "managementwebinar_fr",
	"managementwebinar_ch"];
        
	this.PARTNER_DEST = ["bpKey=Blades_Intro",
        "bpKey=Blades_Webinars",
        "bpKey=Blades_Webinars&pfVid=4",
        "bpKey=Hub_Intro",
        "special=BTC_Challenge",
        "bpKey=Blades_Datacenter_Feature",
        "bpKey=Dynamic_Smart_Cooling",
        "bpKey=Power_and_Cooling_Intro",
        "bpKey=Power_and_Cooling_Overview",
        "bpKey=Power_and_Cooling_Videos",
        "bpKey=Unified_Management_Feature",
        "special=Sell_HP",
        "bpKey=Blades_Undatacenter_Feature",
        "bpKey=Unified_Management_Intro",
        "bpKey=Virtualization_Intro",
        "bpKey=Virtualization_Webinars",
        "bpKey=Unified_Management_Video_Resources",
        "bpKey=Unified_Management_Video_Resources&pfVid=1",
        "bpKey=Unified_Management_Video_Resources&pfVid=2",
	"bpKey=Unified_Management_Video_Resources&pfVid=3"];
	
	this.checkFlash = checkFlash;
	this.writeFlashContent = writeFlashContent;
	this.translateCo = translateCo;
}

function checkFlash(requiredMajorVersion, requiredMinorVersion, requiredRevision) {
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		return (true);
	} else {  // flash is too old or we can't detect the plugin
		return (false);
	}
}

function writeFlashContent(swfName,width,height,flashVars,bkg) {
	// embed the Flash Content SWF when all tests are passed
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="' + swfName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="' + swfName + '.swf" />');
	document.write('<param name="FlashVars" value="' + flashVars + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="' + ((bkg != null) ? bkg : '#000000') + '" />');
	document.write('<embed src="'  + swfName + '.swf" quality="high" bgcolor="' + ((bkg != null) ? bkg : '#000000') + '" width="' + width + '" height="' + height + '" name="' + swfName + '" FlashVars="' + flashVars + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

/**
 * @param co is the company name
 */
function translateCo(co) {
	for (var i=0;i<this.PARTNER_COS.length;i++) {
		if (co == this.PARTNER_COS[i]) {
			return(this.PARTNER_DEST[i]);
		}
	}
	return (null);
}
