// ------------------------- DO NOT TOUCH -------------------------------
// ------------------------- DO NOT TOUCH -------------------------------
// ------------------------- DO NOT TOUCH -------------------------------
// ------------------------- DO NOT TOUCH -------------------------------

 POSTTEST_RESULTS_HEADER_FONT_COLOR       = "#000000";
 POSTTEST_RESULTS_HEADER_BACKGROUND_COLOR = "#D0D0D0";


// ---- PRINTING THE PRETTYNESS ----
document.write("<STYLE>");
document.write("	A:LINK{ color: "+LINK_COLOR+"; }");
document.write("	A:VISITED,A:ACTIVE{ color: "+LINK_VISITED_COLOR+"; }");
document.write("	A:HOVER{ color: "+LINK_MOUSEOVER_COLOR+"; }");
document.write("	BODY { padding:0px; margin:0px;background-color: "+PAGE_BACKGROUND_COLOR+";}");
document.write("	TD,P,B,I,DIV,SPAN,STRONG,UL,LI,OL");
document.write("	{"); 
document.write("		font-family: "+COURSE_FONT+"; ");
document.write("		font-size:10pt; ");
document.write("		color: "+COURSE_FONT_COLOR+";");
document.write("	}");
document.write("	P.ContentSubheader{font-weight:bold;padding-bottom:0px;}");
document.write("	TABLE.ContentAndMargin{border:0px;padding:10px;}");
document.write("	TD.PosttestHeader{font-size:11pt;background-color:"+POSTTEST_RESULTS_HEADER_BACKGROUND_COLOR+";color:"+POSTTEST_RESULTS_HEADER_FONT_COLOR+";font-weight:bold;}");
document.write("	TD.ContentHeader{}");
document.write("	TD.Content{width:"+CONTENT_WIDTH+";padding:10px;padding-right:5px;}");
document.write("	TD.Marginalia{width:"+MARGINALIA_WIDTH+";font-size:8pt;color:"+MARGINALIA_FONT_COLOR+";padding-left:15px;"+((MARGINALIA_DIVIDER_COLOR!="") ? "border-left:1px solid "+MARGINALIA_DIVIDER_COLOR+";" : "")+"}");
document.write("	B.Marginalia{font-weight:bold;font-size:8pt;color:"+MARGINALIA_FONT_COLOR+";}");
document.write("	I.Marginalia{font-size:8pt;color:"+MARGINALIA_FONT_COLOR+";}");
document.write("	TD.Content{ text-align:top;font-size:10pt; color:"+COURSE_FONT_COLOR+";}");
document.write("	TABLE.ResourcesModDivider{ border:1px solid #000000; }");
document.write("	TD.ResourcesModDivider{ background-color:#D0D0D0; color:#000000; font-weight:bold; }");
document.write("	A.ResourcesModDivider{ color:#000000; font-weight:bold; }");
document.write("	IMG.MarginSpacer{ padding-top:10px;padding-bottom:2px; }");
document.write("	P.NextSteps{ font-size:8pt;color:"+MARGINALIA_FONT_COLOR+"; }");
document.write("    .note{ font-weight:bold; color:#FF0000; }");
document.write("    H2{ font-weight:bold;font-style:"+CONTENT_HEADER_STYLE+";font-size:10pt; line-height:0; margin-bottom:8px; }");
document.write("	UL{ list-style-position:outside;list-style-image:url('../media/images/interface/bullet.gif'); }");
document.write("	TD.PopupTitle{ background-color: "+POPUP_TITLE_BACKGROUD_COLOR+"; font-weight:bold; font-size:12pt; color:"+POPUP_TITLE_FONT_COLOR+"; }");
document.write("</STYLE>");


// ---- GLOSSARY FUNCTION ----
function BuildGlossaryAlphabet(sAlph)
{
	ALPH  = new Array('',"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
	sAlph = sAlph.toUpperCase();

	document.write("<p style='font-weight:bold;font-size:8pt'>");
	for(x=1;x<ALPH.length;x++)
	{
		if(x+1 < ALPH.length){ sSeperate= "<span style='font-size:8pt;color:"+POPUP_TITLE_BACKGROUD_COLOR+"'>&nbsp;|&nbsp;</span>"; }
		else			     { sSeperate= "";    }

		if(sAlph.indexOf(ALPH[x])>-1)
		{ document.write("<a href='#"+ALPH[x]+"'>"+ALPH[x]+"</a>" + sSeperate); }
		else
		{ document.write("<i><span style='color:#A0A0A0;font-size:8pt'>"+ALPH[x]+"</span></i>" + sSeperate); }
	}
	document.write("</p>");
}

// ---- RESOURCES FUNCTION 01 ----
function BuildResourcesModuleNav()
{
	for(x=0;x<arguments.length;x++)
	{
		sSeperator = "";
		if(x+1 < arguments.length)
		{ sSeperator = " &nbsp;|&nbsp; "; }

		if(MODULES[arguments[x]])
		{ document.write("<a href='#MOD"+arguments[x]+"'>"+MODULE_TERMINOLOGY+" "+arguments[x]+"</a>" + sSeperator); }
	}
}

// ---- RESOURCES FUNCTION 01 ----
function BuildResourcesModuleDivider(iMod)
{
		if(MODULES[iMod])
		{ document.write("<a name=MOD"+iMod+"><table width=100% class='ResourcesModDivider' cellpadding=4 cellspacing=0><tr><td class='ResourcesModDivider'>"+MODULES[iMod][0]+"</td><td class='ResourcesModDivider' align=right><a class='ResourcesModDivider' href='#TOP'>back to top</a></td></tr></table>"); }
}


// --- BUILD MODULES ARRAY ---
function NameModule(iNum,sMod)
{
	MODULES[iNum]    = new Array();
	MODULES[iNum][0] = sMod;
}

