function GetParamFromLocation( sParam )
{
	var sLocation = document.location.toString();

	// Get everything after the ?
	var aTemp = sLocation.split( "?" );
	if ( aTemp == null )
		return null;
	if ( aTemp.length < 2 )
		return null;

	var sParamList = aTemp[ 1 ];
	aTemp = sParamList.split( "&" );
	if ( aTemp == null )
		return null;

	for ( var i = 0; i < aTemp.length; i++ )
	{
		aEntryValue = aTemp[ i ].split( "=" );

		if ( aEntryValue[ 0 ] == sParam )
			return aEntryValue[ 1 ];
	}
	return null;
}

function CreateFlashObject( sVersion )
{
	var sToInsert = "";

	sToInsert += "<object id='510SCRen' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' id='510SCRen' width='930' height='620' align='middle'>";
	sToInsert += "<param name='allowScriptAccess' value='sameDomain' />";
	sToInsert += "<param name='movie' value='510SCRen.swf' />";
	sToInsert += "<param name='menu' value='false' />";
	sToInsert += "<param name='quality' value='high' />";
	sToInsert += "<param name='bgcolor' value='#000000' />";
	//sToInsert += "<param name='FlashVars' value='g_sVersion=";
	//sToInsert += sVersion;
	//sToInsert += "'>";
	sToInsert += "    <embed id='510SCRen' src='510SCRen.swf' menu='false' quality='high' bgcolor='#000000' width='930' height='620' swLiveConnect='true' id='510SCRen' name='510SCRen' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'";
	//sToInsert += " FlashVars='g_sVersion=" + sVersion;
	sToInsert += "' />";
	sToInsert += "</object>";
	sToInsert += "<scr" + "ipt>";
	sToInsert += "document.getElementById( \'510SCRen\' ).focus();";
	sToInsert += "</scr" + "ipt>";

	document.writeln( sToInsert );
}

