/* This is the master javascript file that manages the dynamic javascripts that are called into a
 * page dependent upon what context the page occurs in.
 */
// First check that the head include file is present and it has the enabled flag set to true
if ((window.isSCHeadIncluded != undefined) && (isSCHeadIncluded == true)) {
	
	// Loop through the array of Include objects and write each javascript include to the page.
	for (i=0; i<includeArray.length; i++ ){
		if ((includeArray[i].isEnabled) && (includeArray[i].codePath != null)) {
			
			// write the script tag to the page to include the js code
			document.write('<script type="text/javascript" src="' + BASE_PATH + includeArray[i].codePath + '"><\/script>');
		}
	}
}


