// JavaScript Document
function LoadFeature()	{
	/* This function doesn't do anything but is needed to keep the page from reloading when the link is clicked */
}

function ShowFeature(FeatureMainCode,FeatureDescCode)	{
	var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; // checks to see if this browser is IE
	var activexObject;
	var errorMsg;
	var errorFlag = false;
	if (isIE)	{ // if the browser is IE, aka the worst browser ever made...
		try	{ activexObject = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); } // ...check to see if we can instatiate a Shockwave Flash ActiveX object
		catch (errorMsg) { errorFlag = true; } // if we can't, then IE will barf up an error and we'll catch it. We don't care what the error is, but we'll set the error flag to true
	}
	else	{ // browser is not Internet Explorer, so it obeys the laws of logic
		if (!navigator.plugins["Shockwave Flash"]) { // if Shockwave Flash isn't in the list of plugins...
			errorFlag = true; // ...set the error flag to true
		}
	}
	if (!errorFlag)	{ // if the error flag is false...
		document.getElementById("FeatureMain").innerHTML = FeatureMainCode; // ...display the Shockwave Flash object
		document.getElementById("FeatureDescription").innerHTML = FeatureDescCode; // ...and display the description
	}
	else	{ // if the error flag is true...
		document.getElementById("FeatureMain").innerHTML = "<div style='background-font-size:16px; color:#FFFFFF; text-align:center; width:530px; height:300px; padding-top:70px; padding-left:10px; padding-right:20px; padding-bottom:20px;'><img src='img/flash-logo.png' border='0' /><br />Adobe's Flash Player is required<br />to view this content.<br /><a href='http://get.adobe.com/flashplayer/' target='_blank'>Get Flash Player</a></div>"; // ...display a message that Flash is required
		document.getElementById("FeatureDescription").innerHTML = FeatureDescCode; // ...and display the description (since Flash isn't used in the description area)
	}
}
