/*
 *	ccCourseConfig.js
 *	Build 3.2.0.23
 *	Copyright 1999-2003 Accenture
 */

/* Property:		Course ID
 * Description:		This property defines the internal name of this course/module.
 *					The value of this property is used to determine the name of the
 *					local file for storing course data.
 * Requirements:	This ID must be unique across all products.
 */
var sCourseID = "CapacityManagement";



/* Property:		Course Timestamp
 * Description:		This value is the functions as a release version number which
 *					is used to determine whether local context data for a file
 *					applies for the current version.
 * Requirements:	Enter a string representing the build date of your course.
 */
var sCourseTimeStamp = "02/01/2002";



/* Property:		Configuration of Course Display Properties
 * Description:		This string contains the list of course display properties for
 *					the window that displays the course.  It is used by the 
 *					ccWindowAPI script.
 *
 * This comment block represents information provided by MSDN Online,
 * Copyright 2002 Microsoft.  It is included here for reference purposes.
 * ----------------------------------------------------------------------------
 * window.open
 * ----------------------------------------------------------------------------
 *	Syntax:
 *		oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
 *	sFeatures:
 *		Optional.  This String parameter is a list of items separated by commas.
 *		Each item consists of an option and a value, separated by an equals
 *		sign (for example, "fullscreen=yes, toolbar=yes"). The following features 
 *		are supported.
 *
 *	channelmode = { yes | no | 1 | 0 }
 *	Specifies whether to display the window in theater mode and show the 
 *	channel band. The default is no. 
 *
 *	directories = { yes | no | 1 | 0 }
 *	Specifies whether to add directory buttons. The default is yes. 
 *
 *	fullscreen = { yes | no | 1 | 0 }
 *	Specifies whether to display the browser in full-screen mode. The default
 *	is no. Use full-screen mode carefully. Because this mode hides the browser's
 *	title bar and menus, you should always provide a button or other visual clue to
 *	help the user close the window. ALT+F4 closes the new window. 
 *
 *	height = number
 *	Specifies the height of the window, in pixels. The minimum value is 100. 
 *
 *	left = number
 *	Specifies the left position, in pixels. This value is relative to the 
 *	upper-left corner of the screen. 
 *
 *	location = { yes | no | 1 | 0 }
 *	Specifies whether to display the input field for entering URLs directly into
 *	the browser. The default is yes. 
 *
 *	menubar = { yes | no | 1 | 0 }
 *	Specifies whether to display the menu bar. The default is yes. 
 *
 *	resizable = { yes | no | 1 | 0 }
 *	Specifies whether to display resize handles at the corners of the window.
 *	The default is yes. 
 *
 *	scrollbars = { yes | no | 1 | 0 }
 *	Specifies whether to display horizontal and vertical scroll bars. The
 *	default is yes.
 *
 *	status = { yes | no | 1 | 0 }
 *	Specifies whether to add a status bar at the bottom of the window. The
 *	default is yes.
 *
 *	titlebar = { yes | no | 1 | 0 }
 *	Specifies whether to display a title bar for the window. This parameter is
 *	ignored unless the calling application is an HTML Application or a trusted
 *	dialog box. The default is yes. 
 *
 *	toolbar = { yes | no | 1 | 0 }
 *	Specifies whether to display the browser toolbar, making buttons such as Back,
 *	Forward, and Stop available. The default is yes. 
 *
 *	top = number
 *	Specifies the top position, in pixels. This value is relative to the upper-left
 *	corner of the screen. 
 *
 *	width = number
 *	Sets the width of the window, in pixels. The minimum value is 100. 
 *
 */
var CFG_DISPLAY_PROPS = "menubar=no,toolbar=no,location=no,status=yes,fullscreen=no,resizable=no,top=0,left=0,height=550,width=778,status=no";



/* Property:		Should SDWAPI enable full-screen display when launching the course
 * Description:		This property defines how the full-screen launch processing by 
 *					the ccWindowAPI script is processed when the course is launched
 *					from the home page.
 * Scope:			For configuration of an 'eModule', this property will have a value
 *					of false.
 */
var bFullScreenBySDWAPI = false;



/* Property:		Configuration of Module Navigation
 * Description:		This array is used for configuration of the 'mini-main menu'
 *					navigation bar.  This field is an array which contains a list
 *					of all the modules within this course and their main frameset.
 * Requirements:	The structure of this file needs to be consistent wtih the
 *					sModuleID values that are defined in the NavConfig.js files
 *					used by each module.
 *
 *					(e.g. "m01" should match sModuleID in NavConfig.js)
 */
/*var aCourseModules = new Array(
 *	"m01",  "../m01/eModMainFrameset.htm"
 *	);
 */
var aCourseModules = new Array(
	"m01",  "../m01/eModMainFrameset.asp"
	);

/* Property:		AICC Course
 * Description:		This property identifies if the course is deployed as an AICC
 *					course.
 *					When:
 *					- true:		The course is an AICC-enabled course, and the AICC
 *								enablement objects should perform processing.
 *					- false:	The course is a non-AICC course.
 * Scope:			For configuration of an 'eModule', this property will have a value
 *					of true.
 */
var bSTADeployedAsAICC = true;



/* Property:		Enable module installation
 * Description:		This property identifies if the course has been configured to 
 *					allow modular install.  The modular install option allows piecemeal
 *					installation of individual modules on a workstation.  When this is
 *					enabled, the home page must validate that the target page still
 *					exists when resuming a course.
 *					When:
 *					- true:		The course supports modular installation for download-play.
 *								Enable all 'special processing' for error handling and
 *								validation events that supports this option.
 *					- false:	Basic installation was used; all course pages are installed
 *								at one time.  Disable special case processing that
 *								supports modular installation.
 * Scope:			For configuration of an 'eModule', this property will have a value
 *					of false.
 */
var bEnableModularInstall = false;



/* Property:		Require Completion of Activities
 * Description:		This property defines behavior for the navigational components.
 *					When:
 *					- true:		The user must complete each page before then can 
 *								move forward.
 *					- false:	The next button will always be enabled.
 * Scope:			For configuration of an 'eModule', this property may have either
 *					value.
 */
var bRequireCompletion = false;



/* Property:		Cross-Browser Support
 * Description:		This property enables cross-browser communication using the
 *					Common Message Broker object.
 * Requirements:	Setting this option to 'true' requires a download of an Active-X
 *					component.
 * Scope:			For configuration of an 'eModule', this value must be set to false.
 */
var bEnableMessageBroker = false;



/* Property:		JIT Installer Configuration
 * Description:		This property identifies the master page for supporting the
 *					'just-in-time' Active-X loader.  This component supports the
 *					installation of Active-X controls for the course.
 * Scope:			For configuration of an 'eModule', the processing of this page
 *					should not be invoked outside the Accenture environment.
 * Configuration:
 *					For STA:	This property is defined in courseconfig.js
 *					For WC:		This property is located in ccRoot.js
 */
var sInstallActiveXURL = "../ActiveX_Loader/ccJITInstall.htm";



/* Property:		Blank page (default)
 * Description:		This property references the default HTML page that should be
 *					used whenever a blank page is required.
 */
var sBlankPageURL = "../cCourse/blank.htm";



/* Properties:		Progress Tracking Graphics
 * Description:		This set of properties defines the various states for the
 *					display graphics that are used for Progress Tracking by this
 *					course/module.
 */
var sNotStartedGraphic = "../cImages/progress_notstarted.gif";
var sInProgressGraphic = "../cImages/progress_inprogress.gif";
var sCompletedGraphic = "../cImages/progress_complete.gif";



/* Properties:		Configuration of Comment Page
 * Description:		These properties define the resource (HTML page) and display
 *					properties (window sizes) for a Popup Window that is used to
 *					capture 'comments or feedback' from the user.
 * Requirements:	Setting this option to 'true' requires a download of an Active-X
 *					component.
 * Usage:			These properties support the default NavHeader.htm.
 * Scope:			For configuration of an 'eModule', the comment page functionality
 *					is not enabled for use.  Consequently, these values are not used.
 */
var sCommentPageID = "Comment Page";
var sCommentPageName = "../cCourse/comment.htm";
var COMMENT_HEIGHT = 500;
var COMMENT_WIDTH = 500;
var sCommentPopupTitle = "Comment...";



/* Properties:		KMI Section Pages (array)
 * Description:		Define section ending pages where KMI would like to transmit (post)
 *					information to the database.  This configuration array should hold the
 *					page keys (names without extension) for the Section Ending pages for
 *					this eModule.  A "Section Ending" page is defined as the last page
 *					for one of the tabs on the eModLeft display.
 * Usage:			These pages are used to bootstrap the Window Manager object
 *					(ccWindowAPI.js) in the KMI Environment.
 */
var cfgSectionPages = ["c010104_act","c010210_act","c010335_act","c010425_act","c010508_act","c010609_act","c010701_act"];



/* Properties:		KMI Database Integration (catcher.asp)
 * Description:		This is a configuration property for the KMI Environment which
 *					is used to "bootstrap" the Window Manager object.  Replace the
 *					value of hte constant with the URL for the ASP or other resource
 *					that is responsible for accepting the HTTP POST requests for
 *					writing data to the database.
 */
var POST_CATCHER = "../catcher.asp";



/* Properties:		Project Constants
 * Description:		Define project level constants that are used by the Standard
 *					Tutorial Architecture.
 * Usage:			These values are constants.  DO NOT CHANGE THESE VALUES from
 *					their defaults:
 *						var sParseKey = "+";
 *						var FILE_EXTENSION = ".htm";
 */
// ***** DO NOT CHANGE THESE VALUES
	var sParseKey = "+";			/* Parse key, internal use only */
	var FILE_EXTENSION = ".htm";	/* Default file extension to be concatenated 
									 * with the page IDs
									 */
	var sPackageID = sCourseID;		/* The AICC enablement objects support both STA
									 * and WC implementation.  In WC, a 'course' is
									 * referred to as a 'package'.  This variable
									 * declaration resolves a name-space discrepancy
									 * between the STA and WC architectures for use
									 * by the common AICC enablement objects.
									 */
	var sSTAPackageID = sCourseID;	/* AICC Integration */



/******************************************************************************/

/* Property:		Project Specific Variable Declarations
 * Description:		Define all 'project specific' global variable declarations
 *					in this section.  This file is referenced by all activity
 *					templates which ensures that the variables will be available
 *					when needed.
 */

		/* PROJECT SPECIFIC VARIABLES */



/* Property:		Common Glossary Configuration
 * Description:		These properties define common configuration properties
 *					for the display of glossary popups and the location
 *					of glossary pages.
 * Usage:			These declarations may be customized to meet the needs
 *					of the course.
 */
var POPSIZE_GLOSSARY_WIDTH = 240;				/* width of glossary popup window */
var POPSIZE_GLOSSARY_HEIGHT = 180;				/* height of glossary popup window */
var GLOSSARY_POPUP_PATH = "..\\glossary\\";		/* location of glossary content files */



/* Property:		Individual Immediate Feedback for Drag & Drop
 * Description:		This property sets a course level configuration property to 
 *					customize the behavior of feedback for a drag and drop
 *					activity.
 *					When:
 *					- 1 :	Immediate feedback is enabled for individual items
 *							within a drag and drop activity.
 *					- 0 :	Immediate feedback is only enabled once all objects
 *							within the drag and drop activity have been positioned.
 * Usage:			This customization is pending consideration as a standard option.
 */
var CFG_DD2_IMMEDIATE_INDIVIDUAL = 1;	/* 0=turn off option, 1=turn on option */



/* Functions:		Standard Property Access Functions
 * Description:		These functions are property 'get' functions for the configuration
 *					options that are set above.  Using function calls enables 
 *					'case-specific' customization of processing if required by the course.
 * Usage:			These are standard functions that must be included within the course.
 */
function ext_ConfigGlossaryPopupWidth()
{	return POPSIZE_GLOSSARY_WIDTH;	}

function ext_ConfigGlossaryPopupHeight()
{	return POPSIZE_GLOSSARY_HEIGHT;	}

function ext_ConfigGlossaryPopupPath()
{	return GLOSSARY_POPUP_PATH;	}

function ext_ConfigDD2ImmediateFeedback()
{	return CFG_DD2_IMMEDIATE_INDIVIDUAL;	}

function ext_TabGraphicProgressNotStarted(sCourse,sModule,sTab)
{	return sNotStartedGraphic;	}

function ext_TabGraphicProgressInProgress(sCourse,sModule,sTab)
{	return sInProgressGraphic;	}

function ext_TabGraphicProgressComplete(sCourse,sModule,sTab)
{	return sCompletedGraphic;	}

function ext_MMTabGraphicProgressNotStarted(sCourse,sModule,sTab)
{	return sNotStartedGraphic;	}

function ext_MMTabGraphicProgressInProgress(sCourse,sModule,sTab)
{	return sInProgressGraphic;	}

function ext_MMTabGraphicProgressComplete(sCourse,sModule,sTab)
{	return sCompletedGraphic;	}



/* Functions:		Standard Exit Functions
 * Description:		These functions enable exit points within processing for 
 *					'case-specific' processing for various activities.  Defining this
 *					processing to a common function ensures consistency and reuse of
 *					these methods by the course.  It also assists with maintenance
 *					of the course.
 * Usage:			These are standard functions that must be included within the course.
 *					The names of these functions are predefined and cannot be changed.
 *					The logic within these functions is custom to the course.
 */
function ext_MiniMainCustomInit()
{
	return;
}

function ext_BeforeActPageInit()
{
	return;
}

function ext_AfterActPageInit()
{
	return;
}

function ext_BeforeActPageUnload()
{
	return;
}

function ext_AfterActPageUnload()
{
	return;
}

function ext_ShowCustomFeedback(sFeedbackFile)
{
	/* gFeedbackStyles of FEEDBACK_POPUP & FEEDBACK_FRAMES are supported
	 * by Standard Tutorial Architecture routine con_ShowFeedback
	 */
	switch(gFeedbackStyle)
	{
		/* enter case statements for your "custom" styles here */
		case FEEDBACK_POPUP:
		case FEEDBACK_FRAMES:
			alert("Show Feedback Error! Order of execution, internal error.");
			break;
		default:
			alert("Show Feedback Error! The feedback type must be set in the template.");
			break;
	}
}

function ext_CustomSmartGridFeedback(curRow,curCol)
{
	/* gFeedbackStyles of FEEDBACK_POPUP & FEEDBACK_FRAMES are supported
	 * by Standard Tutorial Architecture routine con_ShowFeedback
	 */
	switch(gFeedbackStyle)
	{
		/* enter case statements for your "custom" styles here */
		case FEEDBACK_POPUP:
		case FEEDBACK_FRAMES:
			alert("Show Feedback Error! Order of execution, internal error.");
			break;
		default:
			alert("Show Feedback Error! The feedback type must be set in the template.");
			break;
	}
}

function ext_GetPgKeyCustomFdbk()
{
	/* gFeedbackStyles of FEEDBACK_POPUP & FEEDBACK_FRAMES are supported
	 * by Standard Tutorial Architecture routine con_FdbkPageKey
	 */
	switch(gFeedbackStyle)
	{
		/* enter case statements for your "custom" styles here */
		case FEEDBACK_POPUP: 
		case FEEDBACK_FRAMES:
			alert("Page_Key Error! Order of execution, internal error.");
			break;
		default:
			alert("Page_Key Error! The feedback type must be set in the template.");
			break;
	}
}

function ext_PopupCustomDefaults(oPopObj)
{
	switch (oPopObj.sType)
	{
		/* enter case statements for your "custom" styles here */
		default:
			alert ("no type match found");
		break;
	}
}

function ext_SetPopupProgress(iState)
{
	switch (iState)
	{
		case 0:
		{
			/* As Popup */
			break;
		}
		case 1:
		{
			/* Within Glossary */
			break;
		}
		default:
		{
			/* (begin block) use this code to set progress complete */
			/* Note - to set progress as a popup, the moduleID may need
			 * to be hardcoded to your your glossary module ID.
			 */
			var pageProgress = COMPLETE_TSTATE;
			var oMainSTAWin = util_GetSTAFramesetWindow(window);
			var courseID = oMainSTAWin.crse_CourseID();
			var moduleID = oMainSTAWin.crse_ModuleID();
			var spageKey = util_GetPageKey(document.location);
			var oProgress = oMainSTAWin.crse_Progress();

			spageKey = util_StrReplaceAll(spageKey,HTML_ENCODED_SPACE,TEXT_SINGLE_SPACE)
			oProgress.SetProgress(courseID, moduleID, spageKey, pageProgress);
			/* (end block) use this code to set progress complete */

			/* (begin block) use this code to send a pageloaded event for control sync */
			var sMessageID = MSG_PAGELOADED;
			var oLclController = oMainSTAWin.crse_Controller();
			oLclController.MessageHandler(sMessageID, spageKey)
			/* (end block) use this code to send a pageloaded event for control sync */
			break;
		}
	}
}



/* Functions:		AICC Scoring Exit Routines (Optional)
 * Description:		These are user-exits for the AICC Scoring functions
 * Usage:			Uncomment and use appropriate functions below to code custom
 *					scoring mechanisms for activities.  If you wish to use standard
 *					scoring, comment out the function.
 */
//function ext_MultipleChoice1_Score()		// multiple choice
//{
//	var score = 0;
//	return score;
//}

//function ext_CheckBox1_Score()		// multiple select (check box)
//{
//	var score = 0;
//	return score;
//}

//function ext_SmartGrid1_Score()		// smart grid
//{
//	var score = 0;
//	return score;
//}

//function ext_DragDrop1_Score()		// drag drop1
//{
//	var score = 0;
//	return score;
//}

//function ext_DragDrop2_Score()		// drag drop2
//{
//	var score = 0;
//	return score;
//}

/* Functions:		Project Specific Functions
 * Description:		Any project specific functions should be included below.  This
 *					script file is accessible by all pages in the course.
 */

	/* - - - PROJECT SPECIFIC FUNCTIONS WHICH HAVE BEEN ADDED ARE BELOW - - - */

