
/*
*	Write a flash component out by passing in the Id, URI (with Querystring if applicable), height, width, and background color
*
*	This method will bypass Microsoft's ActiveX security and automatically active the flash component.
*/
function writeFlashComponent(componentId, flashURI, componentHeight, componentWidth, bgColor, isSecure)
{
    if (isSecure)
    {
	    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
	}
	else
	{
	    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
	}
	
	if (componentWidth != 0)
	{
	    document.write('width="');
        document.write(componentWidth);
        document.write('" ');
    }
    
    if (componentHeight != 0)
	{
        document.write('height="');
        document.write(componentHeight);
        document.write('" ');
    }
    
    document.write('id="');
    document.write(componentId);
    document.write('" align="middle" VIEWASTEXT>');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="');
    document.write(flashURI);
    document.write('" />');
    document.write('<param name="menu" value="false" />');
    document.write('<param name="quality" value="high" /><param name="wmode" value="transparent" />');
    document.write('" />');
    document.write('<embed src="');
    document.write(flashURI);
    document.write('" menu="false" quality="high" wmode="transparent" ');
    
    if (bgColor != null)
    {
        document.write('bgcolor="');
        document.write(bgColor);
        document.write('" ');
    }
    
    if (componentWidth != 0)
	{
	    document.write('width="');
        document.write(componentWidth);
        document.write('" ');
    }
    
    if (componentHeight != 0)
	{
        document.write('height="');
        document.write(componentHeight);
        document.write('" ');
    }
    
    document.write('name="');
    document.write(componentId);
	    
	if (isSecure)
    {
	    document.write('" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
	}
	else
	{
	    document.write('" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	}
	
	document.write('</object>');
	
}

function writeFlashTags(flashObject)
{
	document.write(flashObject);
}
