

/* $Id: max_application_includes.js 171 2006-09-15 01:57:18Z lwissing $ */

//---------------------------------------------------------------------------
// File.......: max_application_includes.js
// Purpose....: this file contains the variables that are used to control the
//              max player application.
// Copyright © 2006 Max Digital Broadcasting Corporation. All rights reserved.
//---------------------------------------------------------------------------
	// this is the flag for multy language support
	var app_bilingual = true;
	
	// this is used to hide the header buttons when not required
	var app_show_buttons = true; 

	// this is used to hide the footer banner
	var app_show_footer = true; 
	
	// this is the number of the starting page
	var app_start_page = 1; 
	
	// this is used to give the changing slides a fade effect
	var app_fade_Slides = true;
	
	// this is the fade duration in seconds
	var app_fade_Duration = "1.0";
	
	// this is the fade duration in seconds
	var app_Session_count = 12;
	
	// to hide Video slider, Duration clock, and Slide Controls
	var app_web_cast_mode = false;
	
	var app_web_cast_mode_optional_controls = new Array();
	
		app_web_cast_mode_optional_controls['video_slider'] = false;	//if TRUE AND WebCastMode=TRUE show video slider (if true must show video controls too)
		app_web_cast_mode_optional_controls['video_controls'] = false;	//if TRUE AND WebCastMode=TRUE show video controls (play/pause & stop)
		app_web_cast_mode_optional_controls['duration_clock'] = false;	//if TRUE AND WebCastMode=TRUE show duration clock
		app_web_cast_mode_optional_controls['slide_controls'] = false;	//if TRUE AND WebCastMode=TRUE show slide controls
	
	
	/*
	9/18/2007
	Adding new functionality for Video Presentation and Slide Presentation
	*/
		
	var app_type = 2; // 1 for slide pres, 2 for video pres
	
	/*-------------------------------------------------------------------*/
	var player_position = parent.player_position;


	// display and use closed captioning
	var closed_captioning = false;
	
	// use the sami file for captioning
	var use_Sami_file = false;

// Max player settings
if (app_type == 2)
{
	if (player_position=='r')
	{
		var screen_width = 380;
		var screen_height = 305;
		var app_player_width = 320;
		var app_player_height = 240;
		var app_player_top = (screen_height - app_player_height) / 2;
		var app_player_left = (screen_width - app_player_width) / 2;
		var app_player_uimode = "none";
		var app_content_width = 320;
		var app_content_height = 240;
		var app_content_top = 31;
		var app_content_left = 25;
		var app_cc_pos = 60;	
	} else {
		var screen_width = 380;
		var screen_height = 305;
		var app_player_width = 320;
		var app_player_height = 240;
		var app_player_top = (screen_height - app_player_height) / 2;
		var app_player_left = (screen_width - app_player_width) / 2;
		var app_player_uimode = "none";
		var app_content_width = 320;
		var app_content_height = 240;
		var app_content_top = 31;
		var app_content_left = 25;
		var app_cc_pos = 60;	
	}
} else {
	if (player_position=='r')
	{
		var screen_width = 240;											// width of the pane containing the player
		var screen_height = 200;										// height of the pane containing the player
		var app_player_width = 240;										//the player width
		var app_player_height = 180;									//the player height
		var app_player_top = (screen_height - app_player_height) / 2;	//the top position of the player
		var app_player_left = 5;	//the left position of the player
		var app_player_uimode = "none";									//the ui mode for the player

		// the position of the content frame
		var app_content_width = 432;									// width 
		var app_content_height = 324;									// height
		var app_content_top = 10;										// top 
		var app_content_left = 25;										// left 

		var app_cc_pos = -5;											// CC positioning
	} else {
		var screen_width = 300;											// width of the pane containing the player
		var screen_height = 230;										// height of the pane containing the player
		var app_player_width = 240;										//the player width
		var app_player_height = 180;									//the player height
		var app_player_top = 11;	//the top position of the player
		var app_player_left = (screen_width - app_player_width) / 2;	//the left position of the player
		var app_player_uimode = "none";									//the ui mode for the player

		// the position of the content frame
		var app_content_width = 432;									// width 
		var app_content_height = 324;									// height
		var app_content_top = 10;										// top 
		var app_content_left = 5;										// left 

		var app_cc_pos = 22;											// CC positioning
	}
}


	if(app_web_cast_mode==true) {
		var app_web_form = 'participate';
	} else {
		var app_web_form = 'share';
	}	
		
	
	//---------------------------------------------------------------------------
	// this is the department information
	//---------------------------------------------------------------------------
		var department = {					// these are the department variables
		ename:"Office Of The Information Commissioner",			// the department english name
		fname:"Commissariat á l'information du Canada" 		// the department french name
		};

	//---------------------------------------------------------------------------
	// project name: Each project requires a unique project name. The project name
	// 				 is used for linking in the share and participate links
	//---------------------------------------------------------------------------
	
	//---- TEMP::needs to be dynamic
	var project_name = "mvovchakTest";
	
	//---------------------------------------------------------------------------
	// button vars: enable or disable various buttons within the system
	//---------------------------------------------------------------------------
	
	
	
	//---------------------------------------------------------------------------
	// top page navigation icons
	//---------------------------------------------------------------------------
	var	Load_pages = new Array("contents.htm","slide.htm","help.htm");
	var button_name	= new Array("contents","slide","help");

