var MM_contentVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i]; 
		}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function loadCapabilities(sid) {
	if ( MM_FlashCanPlay ) {
		if (sid == 5) {
			requestCapability('Five');
		} else {
			requestCapability('One');
		}
	} else {
		requestAllCapabilities();
	}
}

function requestCapability(capNum) {
	if ( MM_FlashCanPlay ) {
	// Must have the Flash Player check in here also.
	// Without it, the call in the Body onLoad causes the non-Flash brower to only display the first capability.
		if (capNum != 'One') {
			s = document.getElementById("capabilityOne");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Two') {
			s = document.getElementById("capabilityTwo");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Three') {
			s = document.getElementById("capabilityThree");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Four') {
			s = document.getElementById("capabilityFour");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Five') {
			s = document.getElementById("capabilityFive");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Six') {
			s = document.getElementById("capabilitySix");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Seven') {
			s = document.getElementById("capabilitySeven");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
		if (capNum != 'Eight') {
			s = document.getElementById("capabilityEight");
			if (s.style.display == 'block') {
				s.style.display = 'none';
			}
		}
	
		s = document.getElementById("capability" + capNum);
		s.style.display = 'block';
	}
}

function requestAllCapabilities() {
	s = document.getElementById("capabilityOne");
	s.style.display = 'block';
	s = document.getElementById("capabilityTwo");
	s.style.display = 'block';
	s = document.getElementById("capabilityThree");
	s.style.display = 'block';
	s = document.getElementById("capabilityFour");
	s.style.display = 'block';
	s = document.getElementById("capabilityFive");
	s.style.display = 'block';
	s = document.getElementById("capabilitySix");
	s.style.display = 'block';
	s = document.getElementById("capabilitySeven");
	s.style.display = 'block';
	s = document.getElementById("capabilityEight");
	s.style.display = 'block';
}
