//*****************************************************************************************************
//Author: Ryan Ziegler
//Date: April 26/2006
//Purpose: Activating ActiveX Controls. This script is used to create an embeded ActiveX control for any Flash object. 
//This was done to correct the issue caused by the Eolas Patent Lawsuit. After the change in IE6 any activex control loaded into
//the browser would require an addition "click" to activate the control. By creating the control dynamically
//this extra click is avoided.
//*****************************************************************************************************
function CreateControl(DivID, classid, CODEBASE,
                       WIDTH, HEIGHT, SOURCE, QUALITY, TYPE, OBJECTID)
{
  var d = document.getElementById(DivID);
  d.innerHTML =
    '<object classid=' + classid + ' codebase=' + CODEBASE + ' width=' + WIDTH + ' height=' + HEIGHT + ' id=' + OBJECTID + ' VIEWASTEXT>' +
    '<param name=movie value=' + SOURCE + '>' +
    '<param name=quality value=' + QUALITY + '>' + 
    '<embed src=' + SOURCE + ' quality=' + QUALITY + 
    'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ' +
    'type=' + TYPE + ' width=' + WIDTH + ' height=' + HEIGHT + '>' +
    '</embed></object>';			

}



	