	function loadem(){ //loads all variables
		FACTSC=0;
		FACTS2 = document.getElementById("unifacts2");
		REPORTSC=0;
		REPORTS2 = document.getElementById("reports2");
		SURVEYSC=0;
		SURVEYS2 = document.getElementById("surveys2");
		IPEDSC=0;
		IPEDS2 = document.getElementById("ipeds2");
		STRATC=0;
		STRAT2 = document.getElementById("strat2");
		RESOURCESC=0;
		RESOURCES2 = document.getElementById("resources2");
	}
	
	function closeem(){ //closes all tabs
		REPORTS2.className="hidden";
		REPORTSC=0;
		SURVEYS2.className="hidden";
		SURVEYSC=0;
		FACTS2.className="hidden";
		FACTSC=0;
		IPEDS2.className="hidden";
		IPEDSC=0;
		STRAT2.className="hidden";
		STRATC=0;
		RESOURCES2.className="hidden";
		RESOURCESC=0;
		
	}

	function changefacts() { //toggles the UNI Facts Tab
		if (FACTSC == 0){
			closeem();
			FACTS2.className="shown"
			FACTSC++;
		 } else {
			closeem();
		}
	}

	function changereports() { //toggles the Reports Tab
		if (REPORTSC == 0){
			closeem();
			REPORTS2.className="shown"
			REPORTSC++;
		 } else {
			closeem();
		}
	}

	function changesurveys() { //toggles the Surveys Tab
		if (SURVEYSC == 0){
			closeem();
			SURVEYS2.className="shown"
			SURVEYSC++;
		} else {
			closeem();
		}
	}
	function changeipeds() { //Toggles the IPEDs Tab
		if (IPEDSC == 0){
			closeem();
			IPEDS2.className="shown"
			IPEDSC++;
		} else {
			closeem();
		}
	}
	function changestrat() { //Toggles UNI Strat
		if (STRATC == 0){
			closeem();
			STRAT2.className="shown"
			STRATC++;
		} else {
			closeem();
		}
	}
	
	function changeresources() { //toggles the UNI Facts Tab
		if (RESOURCESC == 0){
			closeem();
			RESOURCES2.className="shown"
			RESOURCESC++;
		 } else {
			closeem();
		}
	}
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}