
//------------------------------------------------------------------------------
// BYPASS MANUALLY ACTIVATING ACTIVEX CONTROLS IN IE BEGIN
//------------------------------------------------------------------------------

//FUNCTION-- writes ActiveXControl to avoid manually activating ActiveX controls by clicking on the control in IE
function addActiveXControl(argSwfPathLink, argSwfPath,iWidth,iHeight) {
 var axcStr = "";
 
 axcStr += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + iWidth + '" height="' + iHeight + '" id="optin_player" align="middle">';
 axcStr += '<param name="allowScriptAccess" value="sameDomain" />';
 axcStr += '<param name="movie" value="'+argSwfPathLink+'" />';
 axcStr += '<param name="quality" value="high" />';
 axcStr += '<param name="bgcolor" value="#ffffff" />';
 axcStr += '<param name="wmode" value="transparent" />';
 axcStr += '<embed src="'+argSwfPath+'" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + '" name="optin_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
 axcStr += '</object>';

 document.write(axcStr);
}
