//ÇÃ·¡½Ã ½ºÅ©¸³Æ® ¼Ò½º
function ActiveX()
{

}

ActiveX.CreateObject = function( type, 
    id ,
    width,
    height,
    name,
    transparent )
{
    switch( type )
    {
        case "Flash":
            Flash.CreateObject( id, 
                width, 
                height, 
                name,
                transparent );
            break;
    }
}

// JScript ÆÄÀÏ.
function Flash()
{
    this.ID = null;
    this.Width = 0;
    this.Height = 0;
    this.Name = null;
    this.IsTransparent = false;
}

Flash.createParam = function( name, value )
{
    document.write( "<param name=\"" + name + "\"" );
    document.writeln( " value=\"" + value + "\" />" ) 
}

Flash.CreateObject = function( id, 
    width, 
    height, 
    name, 
    transparent )
    
{    
    document.write( "<object" );
    document.write( " width=\"" + width + "\"" );
    document.write( " height=\"" + height + "\"" );
    document.write( " id=\"" + id + "\"" );
    
    if( window.navigator.appName == "Netscape" )
    {
        document.write( " type=\"application/x-shockwave-flash\"" );
        document.write( " data=\"" + name + "\"" );
    }
    else
    {
        document.write( " classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"" );    
    }
    
    document.writeln( " align=\"top\">" );
    
    Flash.createParam( "allowScriptAccess", "sameDomain" );
	Flash.createParam( "allowFullScreen", "true" );
    Flash.createParam( "movie", name );
    Flash.createParam( "quality", "high" );
    Flash.createParam( "movie", name );
    
    if( transparent == true )
        Flash.createParam( "wmode", "transparent" );
 
    document.writeln( "</object>" ); 
}
