﻿function WritePlugin (tagID)
{
    var tagDiv = document.getElementById(tagID)
    var PlayerString = "";
    var InstallerURL = "";

    if (tagDiv != null)
    {
        // test if it's Mozila type Browser
        if (navigator.plugins && navigator.plugins.length) 
           InstallerURL = "2020NPInstall.xpi" // FireFox/Mozila
        else
           InstallerURL = "2020PlayerAX_Win32.cab#version=3,0,23,0"; // IE
        
        PlayerString = "<object id='Obj3DContent' width='200' height='140' " +
        
               " classid='CLSID:1C11B948-582A-433f-A98D-A8C4D5CC64F2' " +
               " codebase='../Core/Player/" + InstallerURL + "' VIEWASTEXT>" +
               "&nbsp;" + 
               "<param name='Src' value='InstallPlayer_3_0_23.axs'>" +
               "<param name='HardwareAccel' value='1'>" +
               "<param name='Windowless' value='0'>" +
               "</object>";
        tagDiv.innerHTML = PlayerString;

    }
   
}

function WritePluginNow ()
{
    var InstallerURL = "";
        // test if it's Mozila type Browser
        if (navigator.plugins && navigator.plugins.length) 
           InstallerURL = "2020NPInstall.xpi" // FireFox/Mozila
        else
           InstallerURL = "2020PlayerAX_Win32.cab#version=3,0,23,0"; // IE
        

        document.write ("<object id='Obj3DContent' width='200' height='140' ");
        document.write (" classid='CLSID:1C11B948-582A-433f-A98D-A8C4D5CC64F2' ");
        document.write (" codebase='../Core/Player/" + InstallerURL + "' VIEWASTEXT>");
        document.write ("<param name='Src' value='InstallPlayer_3_0_23.axs'>");
        document.write ("<param name='HardwareAccel' value='1'>");
        document.write ("<param name='Windowless' value='0'>");
        document.write ("</object>");
   
}