/////////////////////////////////////////////////////////////////////////
// global definitions  for CMS
/*
	definitions ONLY, no code in this file!

	author: dmw  on behalf of c2 technologies
	revision history:
		feb 2003: prototype
		jly 2003: initial version (cms risk mgmt)

*/		
/////////////////////////////////////////////////////////////////////////


var	DEBUG =0;


if (DEBUG)	{		alert("dev: loading cms_defs.js");	}


// pseduo constants for menu status
var _notavail_ = 0;	// not available, not viewed
var _avail_ = 1;		// available to be viewed
var _in_ = 2;		    // rollover state/indicator for current mod
var _viewed_ =3;    // previously viewed.

// questions (and dlinks) locked or unlocked?
var queslock = true;
var dqueslock = true;

var AutoDLink = false;

// questions answered in current session
var quesTable = new Array();
quesTable[0] = "debug value";

// course windows
var courseWin,dlinkWin,glossWin,textWin,helpWin,risksheetWin,coursemapWin,certificateWin;

// store student name exactly as they typed it for use in certificate
var StudentName;

var risksheet = new Array();
risksheet[0] = "debug value";

var Root;	// root path, used with Nav operations

var bookmarkLocation = "";

// debug: set to false to disable lockout on coursemap
var courselockflag = true;

// need to know whether we are running on a webserver 
//		protocool http://webserver/mod3/m3l1s010.htm
// or locally
//		file:///J:/mod3/m3l1s010.htm
// want to avoid making pseudo-URLS like
//	J:\mod3\m3l1s010.htm
// because they don't work consistently (mixed /\ problem?)
var serverMode;
// serverPath = the path to the course (after the protocol)
// e.g. 
//		[file://] /J:/
// or
//		[http://] webserver/
var	serverPath;

