function WFXFlashActiveXCtrl()
{
   var strObject = new String;
   var strParameter = new String;
   var strEmbed = new String;
   var strHTML = new String;
   var strAllParameter = new String;
   var strClassId = new String;
   var strCodeBase = new String;
   var strPluginsPage = new String;
   var strObjectType = new String;
   var strObjectName = new String;
   var strSource = new String;
   var strWidth = new String;
   var strHeight = new String;

   this.init = function(strName, strURL, wdt, hgt)
   {
        strClassId = "D27CDB6E-AE6D-11cf-96B8-444553540000";
        strCodeBase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
        strPluginsPage = "http://www.macromedia.com/go/getflashplayer";
        strObjectType = "application/x-shockwave-flash";
        strObjectName = strName;
        strParameter += "<param name='movie' value='"+ strURL +"'>\n";
        strParameter += "<param name='quality' value='high'>\n";
        strSource = strURL;
        strWidth  = wdt;
        strHeight = hgt;
   }

   this.parameter = function(strName, strValue)
   {
        strParameter += "<param name='"+ strName +"' value='"+ strValue +"'>\n";
        strAllParameter += " "+ strName +"='"+ strValue +"'";
   }

   this.show = function()
   {
        strObject = "<object classid=\"clsid:"+ strClassId +"\" codebase=\""+ strCodeBase +"\" width='"+ strWidth +"' height='"+ strHeight +"'>\n";
        strEmbed = "<embed src='"+ strSource +"' pluginspage='"+ strPluginsPage +"' type='"+ strObjectType +"' width='"+ strWidth +"' height='"+ strHeight +"'"+ strAllParameter +"></embed>\n";
        strEmbed += "</object>\n";
        strHTML = strObject + strParameter + strEmbed;
        document.write(strHTML);
   }
}

function WFXWMPActiveXCtrl()
{
   var strObject = new String;
   var strParameter = new String;
   var strHTML = new String;
   var strClassId = new String;
   var strCodeBase = new String;
   var strObjectName = new String;
   var strSource = new String;
   var strWidth = new String;
   var strHeight = new String;

   this.init = function(strName, strURL, wdt, hgt)
   {
        strClassId = "6BF52A52-394A-11d3-B153-00C04F79FAA6";
        strCodeBase = "";
        strObjectName = strName;
        strParameter += "<param name='url' value='"+ strURL +"'>\n";
        strSource = strURL;
        strWidth  = wdt;
        strHeight = hgt;
   }

   this.parameter = function(strName, strValue)
   {
        var strBoolean;

        if (strValue.toLowerCase() == "yes" || strValue == "1" ||
            strValue.toLowerCase() == "true")
        {
            strBoolean = "true";
        }
        else if (strValue.toLowerCase() == "no" || strValue == "0" ||
        	       strValue.toLowerCase() == "false")
        {
             strBoolean = "false";
        }
        else
        {
            strBoolean = strValue;
        }
        strParameter += "<param name='"+ strName +"' value='"+ strBoolean +"'>\n";
   }

   this.show = function()
   {
//document.write("<OBJECT ID='"+ strName +"' NAME='"+ strName +"' CLASSID='"+ strWMPClassId +"' WIDTH='"+ strWidth +"' HEIGHT='"+ strHeight +"'>");
        strObject = "<object classid=\"clsid:"+ strClassId +"\" codebase=\""+ strCodeBase +"\" width='"+ strWidth +"' height='"+ strHeight +"'>\n";
        strHTML = strObject + strParameter + "</object>\n";
        document.write(strHTML);
   }
}

function WFXActiveXCtrl()
{
   var strObject = new String;
   var strParameter = new String;
   var strHTML = new String;
   var strClassId = new String;
   var strCodeBase = new String;
   var strObjectName = new String;
   var strWidth = new String;
   var strHeight = new String;

   this.init = function(strName, strClsId, strURL, wdt, hgt)
   {
        strObjectName = strName;
        strClassId = strClsId;
        strCodeBase = strURL;
        strWidth = wdt;
        strHeight = hgt;
        strParameter = "";
   }

   this.parameter = function(strName, strValue)
   {
        strParameter += "<param name='"+ strName +"' value='"+ strValue +"'>\n";
   }

   this.show = function()
   {
        strObject = "<object classid=\"clsid:"+ strClassId +"\" codebase=\""+ strCodeBase +"\" width='"+ strWidth +"' height='"+ strHeight +"'>\n";
        strHTML = strObject + strParameter + "</object>\n";
        document.write(strHTML);
   }
}

