// BRP Specific js scripts
// JavaScript Document
// CONSTANTS: 
var sProtocol = location.protocol;
var sHost = location.hostname;
var testDir = "";
var site = getSite();

/*
	Function: getSite()
	Arguments: N/A
	Returns: The sites hosted URL
	Descr: Checks the site host name to determine whether site is in DEV/Staging/QA environment. 
	If site is not on Production and a testDir has been the test directory is appended to the site URL. 
*/

function getSite() {
	var myRegExp = new RegExp("-(dev|staging|qa)");
	var sVal = sProtocol + '//' + sHost + "/";
	
	if (myRegExp.test(sHost) && testDir.length > 0) {
		return sVal + testDir + '/';
		} else {
		return sVal;
	}	
}

/*
	Function: initPage()
	Arguments: N/A
	Returns: N/A
	Descr: Initializes the  page by calling functions that apply to each page. (Example: Add footnotes to all printed pages)
*/
function initPage() {
	footnoteLinks('accessContent','accessContent');
//	clearCurrentLink();
}