// JavaScript Document

<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values defined in globals
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) 
{
	// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
	// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
	// DO NOT MODIFY THE FOLLOWING FOUR LINES
	// Location visited after installation is complete if installation is required
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
	document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	var MMdoctitle = document.title;

	AC_FL_RunContent(
		"src", "scripts/playerProductInstall",
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
		"width", "215",
		"height", "138",
		"align", "middle",
		"id", "playerInstall",
		"quality", "high",
		"bgcolor", "#FFFFFF",
		"name", "playerInstall",
		"allowScriptAccess","always",
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
} 
else if (hasReqestedVersion) 
{
	// if we've detected an acceptable version
	function QueryString(key)
	{
		var value = null;
		for (var i=0;i<QueryString.keys.length;i++)
		{
			if (QueryString.keys[i]==key)
			{
				value = QueryString.values[i];
				break;
			}
		}
		return value;
	}
	QueryString.keys = new Array();
	QueryString.values = new Array();
	
	function QueryString_Parse()
	{
		var query = window.location.search.substring(1);
		var pairs = query.split("&");
		
		for (var i=0;i<pairs.length;i++)
		{
			var pos = pairs[i].indexOf('=');
			if (pos >= 0)
			{
				var argname = pairs[i].substring(0,pos);
				var value = pairs[i].substring(pos+1);
				QueryString.keys[QueryString.keys.length] = argname;
				QueryString.values[QueryString.values.length] = value;		
			}
		}
	
	}
	QueryString_Parse();
	
	function writeRadio() {
		var width = '172'
		var height = '110'
		var src = 'assets/slatenRadio_062009.swf'
		var queries = '?myVar='+QueryString('myVar')
	
		var l1 = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="'+width+'" height="'+height+'">';
		var l2 = '<param name="movie" value="'+src+queries+'" />';
		var l3 = '<param name="quality" value="high" />';
		var l4 = '<param name="wmode" value="transparent" />';
		var l5 = '<param name="allowFullScreen" value="true" />';
		var l6 = '<embed src="'+src+queries+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>';
		var l7 = '</object>'
	
		document.write(l1+l2+l3+l4+l5+l6+l7)
	}
		
} 
else 
{  
	// flash is too old or we can't detect the plugin
	var alternateContent = "This content requires the Adobe Flash Player. "
	+ "<a href=http://www.adobe.com/go/getflash/>Get Flash</a>";
	document.write(alternateContent);  // insert non-flash content
}
// -->
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
