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.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);
	}
}

/**
 * @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);
}

