function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		homeover = newImage("images/home_on.gif");
		aboutover = newImage("images/about_on.gif");
		programsover = newImage("images/programs_on.gif");
		howover = newImage("images/howitworks_on.gif");
		financialsover = newImage("images/financial_on.gif");
		accreditationover = newImage("images/accreditation_on.gif");
		preloadFlag = true;
	}
}
function genOver(button,image) {
	button.src = image;
}

	function genOut(button,image) {
button.src = image;
}
function changeDiv(showDiv)
{
	document.getElementById('divHome').style.display='none';
	document.getElementById('divAbout').style.display='none';
	document.getElementById('divPrograms').style.display='none';
	document.getElementById('divHow').style.display='none';
	document.getElementById('divFinancial').style.display='none';
	document.getElementById('divAccreditation').style.display='none';
	document.getElementById('divLocation').style.display='none';		
	document.getElementById('divAssociates').style.display='none';
	document.getElementById('divBachelors').style.display='none';
	document.getElementById('divMasters').style.display='none';
	document.getElementById('divDoctor').style.display='none';
	document.getElementById('divMilitary').style.display='none';
	document.getElementById(showDiv).style.display='block';
	/**
	 * Removed per 2468
	 */
	//if(showDiv == "divAbout" || showDiv == "divPrograms" || showDiv == "divLocation" || showDiv == "divHow"  || showDiv == 
	//	"divFinancial" || showDiv == "divAccreditation"){
	//	document.getElementById('featuredPrograms').style.display='none';
	//}else{
	//	document.getElementById('featuredPrograms').style.display='table-cell';
	//}
}
function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function popLoc(url){
	var popLocWindow = window.open(url,'popLocWindow','width=500, height=350, resizable=no scrollbars=yes');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function Trim(strValue){
	return LTrim(RTrim(strValue));
}
function LTrim(strValue){
	var LTRIMrgExp = /^\s */;
	return strValue.replace(LTRIMrgExp, "");
}
function RTrim(strValue){
	var RTRIMrgExp = /\s *$/;
	return strValue.replace(RTRIMrgExp, "");
}

function openPrivacy() {
	var popupwin=window.open('popups/privacy.html','',' width=790, height=500, status=0, location=0, scrollbars=1');
}

