active=1;

//get current server
var fullURL = document.URL;
var host = window.location.hostname;
var prefix = parent.location.protocol + '//';
var basepath = prefix+host;

//set env vars
var testSites = "http://www.hood.army.mil";
var testCORE = "";
var prodA = "http://www.hood.army.mil";
var prodCORE = "";


//find the root
if(fullURL.indexOf(testSites) != -1){
	rootF = testSites;	
}else if(fullURL.indexOf(testCORE) != -1){
	rootF = testCORE;	
}else if(fullURL.indexOf(prodCORE) != -1){
	rootF = prodCORE;		
}else{
	rootF = prodA;	
}
