<!-- HIDE FROM OTHERS

function goHome(){
	document.location = "/home/";
	}


/* NOT BEING USED ANY LONGER
function getAffiliations(thisNum){
	
	var thisNum = thisNum * 1;
	
	var affiliations = new Array();
	affiliations[0] = new Array("Here is the title1","<img src=/<?php print $directory ?>/images/best_grad.gif>","http://grad-schools.usnews.rankingsandreviews.com/usnews/edu/grad/rankings/rankindex_brief.php");
	affiliations[1] = new Array("Here is the title2","<img src=/<?php print $directory ?>/images/APPAM_member.gif>","javascript:void(0)");
	affiliations[2] = new Array("Here is the title3","<img src=/<?php print $directory ?>/images/NASPAA_iwp.gif>","http://www.globalmpa.net/");
	affiliations[3] = new Array("Here is the title3","<img src=/<?php print $directory ?>/images/NASPAA.gif>","javascript:void(0)");
	
	var myContent = "<a href='" +  affiliations[thisNum][2] + "' title='" + affiliations[thisNum][0] + "'>" + affiliations[thisNum][1] + "<\/a>";
	var holder = document.getElementById("affiliations");
	holder.innerHTML = myContent;
	
	//alert(affiliations.length)
	
	if(thisNum == (affiliations.length - 1)){
		thisNum = 0;
		}
	else{
		thisNum++;
		}
	
	var t = setTimeout("getAffiliations('" + (thisNum) + "')", 7000);
	}
*/


// THIS THING HIGHLIGHTS THE TABBED BAR WHEN WE ARE IN ONE OF THE PAGE SECTIONS - A REAL HACK
// NEED TO FIND A BETTER WAY TO DO THIS
function doTabActive(){
	
	var myPage = document.location;
	var thisCount = 0;
	

	// PUBLIC PAGES
	var regxPros = /\/prospective-students\//i;
	var regxCourses = /\/courses-degrees\//i;
	var regxCenters = /\/research\//i;
	var regxFaculty = /\/faculty-staff\//i;
	var regxCurrent = /\/current-students\//i;
	var regxAlumni = /\/alumni\//i;
	var regxExecutive = /\/executive-education\//i;
	
	
	//INTRANET
	var regxIntNews = /\/intranet\/news\//i;
	var regxIntAdmin = /\/intranet\/administration\//i;
	var regxIntCurr = /\/intranet\/curriculum\//i;
	var regxIntRes = /\/intranet\/research\//i;
	var regxIntLogis = /\/intranet\/logistics\//i;
	var regxIntDir = /\/intranet\/directories\//i;
	var regxIntDig = /\/intranet\/faculty-resources\//i;
	
	
	
	if(regxPros.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/prospective-students$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}
			
	
	else if(regxCourses.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/courses-degrees$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}
			
			
	else if(regxCenters.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/research$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}
			

	else if(regxFaculty.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/faculty-staff$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}
			
			
			
	else if(regxCurrent.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/current-students$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}



	else if(regxAlumni.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/alumni$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}
		
		
		
	else if(regxExecutive.exec(myPage)){
			
			for(var i=0; i<document.links.length; i++){
				if(thisCount == 0){
					var ts = /\/executive-education$/i;
					if(ts.exec(document.links[i].href)){
						document.links[i].className = "active";
						thisCount++;
						}
					else{
						document.links[i].className = ""
						}
					}
				}
			}
		
		
	else if(regxIntNews.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/news$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}

	else if(regxIntAdmin.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/administration$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}
		
	else if(regxIntCurr.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/curriculum$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}

	else if(regxIntRes.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/research$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}

	else if(regxIntLogis.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/logistics$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}

	else if(regxIntDir.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/directories$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}

	else if(regxIntDig.exec(myPage)){
		
		for(var i=0; i<document.links.length; i++){
			if(thisCount == 0){
				var ts = /\/intranet\/faculty-resources$/i;
				if(ts.exec(document.links[i].href)){
					document.links[i].className = "active";
					thisCount++;
					}
				else{
					document.links[i].className = ""
					}
				}
			}
		}		
	}

// -->
