
	if( !imageRoot || imageRoot == null ) {
		var imageRoot = "" ;
	}
	
	var oldDiv = "";
	var newDiv = "";

// Netscape 3.0 compatibility test (for javascript image swapping)
	compat = false;
	if( parseInt( navigator.appVersion ) >= 3 ) {
		compat = true ; 
	}

// cache images for quick swapping
	if( compat ) {

		l_experience = new Image();
		l_experience.src = imageRoot + "/nav/l_experience.gif";
		lo_experience = new Image();
		lo_experience.src = imageRoot + "/nav/lo_experience.gif";
		
		l_professionals = new Image();
		l_professionals.src = imageRoot + "/nav/l_professionals.gif";
		lo_professionals = new Image();
		lo_professionals.src = imageRoot + "/nav/lo_professionals.gif";
		
		l_services = new Image();
		l_services.src = imageRoot + "/nav/l_services.gif";
		lo_services = new Image();
		lo_services.src = imageRoot + "/nav/lo_services.gif";
		
		l_industries = new Image();
		l_industries.src = imageRoot + "/nav/l_industries.gif";
		lo_industries = new Image();
		lo_industries.src = imageRoot + "/nav/lo_industries.gif";
		
		l_locations = new Image();
		l_locations.src = imageRoot + "/nav/l_locations.gif";
		lo_locations = new Image();
		lo_locations.src = imageRoot + "/nav/lo_locations.gif";
						
		l_about = new Image();
		l_about.src = imageRoot + "/nav/l_about.gif";
		lo_about = new Image();
		lo_about.src = imageRoot + "/nav/lo_about.gif";
		
		l_news = new Image();
		l_news.src = imageRoot + "/nav/l_news.gif";
		lo_news = new Image();
		lo_news.src = imageRoot + "/nav/lo_news.gif";
		
		l_events = new Image();
		l_events.src = imageRoot + "/nav/l_events.gif";
		lo_events = new Image();
		lo_events.src = imageRoot + "/nav/lo_events.gif";
		
		l_pubs = new Image();
		l_pubs.src = imageRoot + "/nav/l_pubs.gif";
		lo_pubs = new Image();
		lo_pubs.src = imageRoot + "/nav/lo_pubs.gif";
		
		l_careers = new Image();
		l_careers.src = imageRoot + "/nav/l_careers.gif";
		lo_careers = new Image();
		lo_careers.src = imageRoot + "/nav/lo_careers.gif";
		
		l_alumni = new Image();
		l_alumni.src = imageRoot + "/nav/l_alumni.gif";
		lo_alumni = new Image();
		lo_alumni.src = imageRoot + "/nav/lo_alumni.gif";
		
		l_language = new Image();
		l_language.src = imageRoot + "/l_language.gif";
		lo_language = new Image();
		lo_language.src = imageRoot + "/lo_language.gif";
		
		l_login = new Image();
		l_login.src = imageRoot + "/l_login.gif";
		lo_login = new Image();
		lo_login.src = imageRoot + "/lo_login.gif";
		
		l_logout = new Image();
		l_logout.src = imageRoot + "/l_logout.gif";
		lo_logout = new Image();
		lo_logout.src = imageRoot + "/lo_logout.gif";
		
		l_sitesearch = new Image();
		l_sitesearch.src = imageRoot + "/l_sitesearch.gif";
		lo_sitesearch = new Image();
		lo_sitesearch.src = imageRoot + "/lo_sitesearch.gif";
						
	}
	

// swap images using the cached images

function change(x, y) {
	if( compat ) {
		document.images[x].src=eval(y+'.src'); 
		}
	}
function testIsValidObject(objToTest) {
               if (null == objToTest) {
                       return false;
               }
               if ("undefined" == typeof(objToTest) ) {
                       return false;
               }
               return true;
 
        }


/*function removes highlighting from left nav
*/
function HideShowDiv2( show )
{
	var arr = document.getElementsByTagName("A");
    for(var i=0; i < arr.length; i++){
        var href = arr[i];
        if(href.ht == "removeHighlight"){
        href.className='';       
        }
    }
	    
	    newDiv = show;
	    
	    
		if(oldDiv != '' && oldDiv != show)
		{
		    if(oldDiv == 'AttExtended')
		    {
		        HideMe('AttOverview');
		        HideMe('AttExperience');
		        HideMe('AttDecisions');
		        HideMe('AttPubs');
		        HideMe('AttNews');
		        HideMe('AttEvents');
		        HideMe('AttExtendedRest');
		    
		    }
		    else
		    {
		        HideMe(oldDiv);
		    }
		}
		
	    if(show == 'AttExtended')
	    {
	            ShowMe('AttOverview');
		        ShowMe('AttDecisions');
		        ShowMe('AttExperience');
		        ShowMe('AttPubs');
		        ShowMe('AttNews');
		        ShowMe('AttEvents');
		        ShowMe('AttExtendedRest');
	    }
	    else
	    {
	        ShowMe(show);
	    }
	    //alert(show);
	    eraseCookie('sectionCookie');
	    createCookie('sectionCookie',show,7);
	    ShowCrumbs();
		oldDiv = show;
	}
	
	
	
	function HideShowDiv( show )
	{	
	    
	    newDiv = show;
	    
	    
		if(oldDiv != '' && oldDiv != show)
		{
		    if(oldDiv == 'AttExtended')
		    {
		        HideMe('AttOverview');
		        HideMe('AttExperience');
		        HideMe('AttDecisions');
		        HideMe('AttPubs');
		        HideMe('AttNews');
		        HideMe('AttEvents');
		        HideMe('AttExtendedRest');
		    
		    }
		    else
		    {
		        HideMe(oldDiv);
		    }
		}
		
	    if(show == 'AttExtended')
	    {
	            ShowMe('AttOverview');
		        ShowMe('AttDecisions');
		        ShowMe('AttExperience');
		        ShowMe('AttPubs');
		        ShowMe('AttNews');
		        ShowMe('AttEvents');
		        ShowMe('AttExtendedRest');
	    }
	    else
	    {
	        ShowMe(show);
	    }
	    //alert(show);
	    //So ASP.Net can see what tab the page is in.
	    eraseCookie('sectionCookie');
	    createCookie('sectionCookie',show,7);
	    
		oldDiv = show;
	}
	
	//This function read the querystring to see if the page is being set for Printer Friendly.
	//If the page is being set to printer friendly, it then reads the cookie which has the tab from which
	//the printer friendly icon was selected, and it displays that data in the Printer Friendly page.
	function InitialPageLoad(show)
	{
	    var myQuery = new QueryString();
	    myQuery.read();
	    if(myQuery.getStatus())
	    {   
	        var aQueryData = myQuery.getAll();
	        for(var n in aQueryData)
	        {
	            if(aQueryData['print'] == 'true')
	            {
	                var cookieShow = readCookie('sectionCookie');
	    
	                if(cookieShow)
	                {
	                    HideShowDiv(cookieShow);
	                }
	                else
	                {
	                    HideShowDiv(show);
	                }
	            }
	            else
	            {
	                HideShowDiv(show);
	            }
	        }
	    }
	    else
	    {
	        HideShowDiv(show);
	    }
	}



	function HideMe(strwho) {
	var objLayer;
	if (document.all) {
		objLayer = document.all[strwho]
		objLayer.style.display = 'none';
		
		objLayer = document.all[oldDiv + "A"];
		objLayer.className = "";
		
	}
	else if (document.getElementById) {
		objLayer = document.getElementById(strwho);
		objLayer.style.display= 'none';
		
		objLayer = document.getElementById[newDiv + "A"];
    	objLayer.className = "";
  
    	
	}
}
function ShowMe(strwho) {
	var objLayer;
	if (document.all) {
		objLayer = document.all[strwho]
		objLayer.style.visibility = "visible"
		objLayer.style.display = "block"

		objLayer = document.all[newDiv + "A"];
		objLayer.className = "active";
        //alert(objLayer.className);		
	}
	else if (document.getElementById) {
		objLayer = document.getElementById(strwho);
		objLayer.style.display= "block";
		objLayer.style.visibility= 'visible';

        objLayer = document.getElementById[oldDiv + "A"];
    	objLayer.className = "active";
  //alert(objLayer.className);		
    }
}

function ShowCrumbs() {
    var objFullPath;
    var objPreviousPath;
    if (document.getElementById) {
        objFullPath = document.getElementById("FullPath");
        objPreviousPath = document.getElementById("PreviousPath");
        if (objFullPath != null)
            objFullPath.style.display = "none";
        if (objPreviousPath != null)
            objPreviousPath.style.display = "block";
    }
    else if (document.all)
    {
        objFullPath = document.All["FullPath"];
        objPreviousPath = document.All["PreviousPath"];
        if (objFullPath != null)
            objFullPath.style.display = "none";
        if (objPreviousPath != null)
            objPreviousPath.style.display = "block";
    }
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function createCookie(name,value,days) {
	
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}	

function eraseCookie(name) {
	createCookie(name,"",-1);
}

function QueryString() {
	// PROPERTIES
	this.arg = new Array;
	this.status = false;
	
	// METHODS
	this.clear = Clear;
	this.get = Get;
	this.getAll = GetAll;
	this.getStatus = GetStatus;
	this.read = Read;
	this.set = Set;
	this.write = Write;
	
	// FUNCTIONS
	
	// Clears the array, this.arg, of all query string data
	function Clear()
	{	this.arg = new Array;
	}
	
	// Returns a named value from the query string
	function Get(sName)
	{	return this.arg[sName];
	}
	
	// Return all data as an associative array
	function GetAll()
	{	return this.arg;
	}
	
	function GetStatus()
	{	return this.status;
	}
	
	// Reads the query string into an array named this.arg
	function Read(sUrl) 
	{	var aArgsTemp, aTemp, sQuery;
		// You can pass in a URL query string
		if(sUrl)
		{	sQuery = sUrl.substr(sUrl.lastIndexOf("?")+1, sUrl.length);
		}
		// Or read it from the browser location
		else
		{	sQuery = window.location.search.substr(1, window.location.search.length);
		}
		// Check that query string exists and contains data
		// If not (length < 1) then return
		if(sQuery.length < 1) {return;}
		// Else set this.status to true and proceed
		else {this.status = true;}
		//
		aArgsTemp = sQuery.split("&");	
		for (var i=0 ; i<aArgsTemp.length; i++)
		{	aTemp = aArgsTemp[i].split("=");
			this.arg[aTemp[0]] = aTemp[1];
		}
	}
	
	// Overwrites an existing named value in the array, this.arg
	// You can also pass null to delete from array
	function Set(sName,sValue)
	{	if (sValue == null) {delete this.arg[sName];}
		else {this.arg[sName] = sValue;}
	}
	
	// Writes out a string from the data in this.arg array
	// This string can be used to pass a new query string to the browser
	// when navigating to the next page. This allows a page
	// to create and pass data to another page via JavaScript.
	function Write()
	{	var sQuery = new String(""); 
		for (var sName in this.arg)
		{	if (sQuery != "") {sQuery += "&";}
			if (this.arg[sName]) {sQuery += sName + "=" + this.arg[sName];}
		}
		if (sQuery.length > 0) {return "?" + sQuery;}
		else {return sQuery;}
	}
}

		function showDiv(div) {
		    for (var i=0; i<relevantDivs.length; i++) {
		        document.getElementById(relevantDivs[i]).style.display="none";
		    }
		    document.getElementById(div).style.display="block";
		}
		
		function showAllDivs() {
		    for (var i=0; i<relevantDivs.length; i++) {
		        document.getElementById(relevantDivs[i]).style.display="block";
		    }
		}