// This contains the script functions needed to dynamic add Active X controls to the page to address the IE issue on having to manually activate page active X components
// Flash loader
//Definition of variables passed to the function
// divID - the ID name of the div tag into which the code will be written
// swfID - the ID name to be given to the Flash swf file
// swfWidth - the width of the Flash movie
// swfHeight - the height of the Flash movie
// swfURL - the URL to the Flash file
// windowMode - [Window | Opaque | Transparent] used to indicate the mode of the window in which the Flash file is displayed
// scriptAccess - [always | never | samedomain] - used to indicate what level of scripting the Flash file should be allowed to process
// swfBGColor - Hex value of the Flash movie background
function activexFlashLoader(divID, swfID, swfWidth, swfHeight, swfURL, windowMode, scriptAccess, swfBGColor)
{
//Private variables
var flashCode = document.getElementById(divID);
flashCode.innerHTML = '';
}
// QuickTime loader
//Definition of variables passed to the function
// divID - the ID name of the div tag into which the code will be written
// qwtWidth - the width of the movie
// qwtHeight - the height of the movie
// qwtURL - the URL to the file
// autoplay [true | false] - indicates if the movie should autostart or require interaction first.
// loop [true | false] - used to indicate if the medai should loop
// controller [true | false] - used to enable or disable the controller
function quickTimeLoader(divID, qwtWidth, qwtHeight, qwtURL, autoplay, loop, controller)
{
//Private variables
var quickTimeCode = document.getElementById(divID);
quickTimeCode.innerHTML = '';
}
// RealMedia loader
//Definition of variables passed to the function
// divID - the ID name of the div tag into which the code will be written
// realWidth - the width of the movie
// realHeight - the height of the movie
// realURL - the URL to the file
// autostart [true | false] - indicates if the movie should autostart or require interaction first.
// loop [true | false] - used to indicate if the media should loop
// controls [true | false] - used to indicate the type of controls
function realMediaLoader(divID, realWidth, realHeight, realURL, autostart, loop, controller)
{
//Private variables
var realMediaCode = document.getElementById(divID);
if (controler == "true") {
realMediaCode.innerHTML = ' ';
} else {
realMediaCode.innerHTML = '';
}
}
// Windows Media loader
//Definition of variables passed to the function
// divID - the ID name of the div tag into which the code will be written
// winWidth - the width of the movie
// winHeight - the height of the movie
// winURL - the URL to the file
// autoStart [true | false] - indicates if the movie should autostart or require interaction first.
// showControls [true | false] - used to turn on controls
// loop [true | false] - used to indicate if the media should loop
function winMediaLoader(divID, winWidth, winHeight, winURL, autoStart, showControls, loop)
{
//Private variables
var winMediaCode = document.getElementById(divID);
winMediaCode.innerHTML = '';
}