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

g_sShortcut = GetParamFromLocation( "shortcut" );

sBuffer = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
sBuffer += '  codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0"';
sBuffer += '  id="newuser_bot" width="640" height="480">';
sBuffer += '  <param name="movie" value="demo.swf?g_sBandwidth=56&';
if ( g_sShortcut )
	sBuffer += 'g_sShortcut=' + g_sShortcut + '&';
sBuffer += '">';
sBuffer += '  <param name="loop" value="false">';
sBuffer += '  <param name="menu" value="false">';
sBuffer += '  <param name="quality" value="high">';
sBuffer += '  <param name="bgcolor" value="#ffffff">';
sBuffer += '  <embed src="demo.swf?g_sBandwidth=56&';
if ( g_sShortcut )
	sBuffer += 'g_sShortcut=' + g_sShortcut + '&';
sBuffer += '"';
sBuffer += '    menu="false" loop="false" quality="high"';
sBuffer += '    bgcolor="#ffffff" width="640" height="480" type="application/x-shockwave-flash"';
sBuffer += '    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
sBuffer += '  </embed>';
sBuffer += '</object>';

//alert( sBuffer );
document.writeln( sBuffer );
document.newuser_bot.focus();