 
 


//--------------------------------------------------------------------------------------				
//--------------------------------------------------------------------------------------
// Initialize Flash video player using swfobject library


//For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.  
var swfVersionStr = "10.1.0";
//To use express install, set to playerProductInstall.swf, otherwise the empty string.
var xiSwfUrlStr = "http://www.nait.ca/flash_videos/assets/playerProductInstall.swf";

var D3_flashvars = {};
if (D3_showListControl == "true") flashvars.showListControl = D3_showListControl; // this property is deprecated
if (D3_showChapterControl == "true") flashvars.showChapterControl = D3_showChapterControl; // this property is deprecated	
D3_flashvars.showVideoList = D3_showVideoList;
D3_flashvars.showChapterList = D3_showChapterList;
D3_flashvars.videoXML = D3_videoXML;
D3_flashvars.isLive = D3_isLive;
D3_flashvars.loop = D3_loop;
D3_flashvars.videoName = D3_videoName;
D3_flashvars.videoSource = D3_videoSource;
D3_flashvars.streamingServerURL = D3_streamingServerURL;
D3_flashvars.width = D3_width.toString();
D3_flashvars.height = D3_height.toString();
D3_flashvars.title = D3_title;
D3_flashvars.autoPlay = D3_autoPlay;
D3_flashvars.debugMode = D3_debugMode;
D3_flashvars.introFrame = D3_introFrame;

// if the url has an intFrame then we add it here
//if ( D3_getQueryVariable("intFrame") )  D3_flashvars.introFrame = D3_getQueryVariable("intFrame");
// done intFrame


D3_flashvars.videoListTitle = D3_videoListTitle;
D3_flashvars.isAudio = D3_isAudio;
// looking for the querystring value for "v" which needs to be an interger (min value of 1)
// the jumpToIndex value will be used to play a specific video in the xml video list
D3_flashvars.jumpToVideoIndex = D3_getQueryVariable("v");
// looking for a "c" which is a jump to chapter number
D3_flashvars.jumpToChapterIndex = D3_getQueryVariable("c");       

var D3_params = {};
D3_params.quality = "high";                        
D3_params.scale = "noscale";
D3_params.salign = "tl";
D3_params.bgcolor = D3_stageColor;
D3_params.allowfullscreen = "true";
D3_params.allowscriptaccess = "sameDomain";            

var D3_attributes = {};
D3_attributes.id = "D3MediaPlayerOSMF";
D3_attributes.name = "D3MediaPlayerOSMF";

if (D3_showChapterList == "true" || D3_showVideoList == "true" ) D3_height += 142;

swfobject.embedSWF(
    "http://www.nait.ca/flash_videos/assets/D3MediaPlayerOSMF.swf", D3_videoDivID, 
   	D3_width.toString(), Math.max(D3_height,5).toString(), 
    swfVersionStr, xiSwfUrlStr, 
    D3_flashvars, D3_params, D3_attributes);  

