	var previous = "";
	var previousPerson = "";

	function rollover(Obj)
	{
		theId=Obj.id;
		theElement = document.getElementById(theId);
		previous = Obj.className;
		Obj.className = theId+"on";
		Obj.style.cursor = "pointer";
	}

	function rollout(Obj)
    {
		theId=Obj.id;
		theElement = document.getElementById(theId);
		theElement.className = previous;
		Obj.style.cursor = "arrow";
	}

	function goto(Obj,directory)
	{
		if(directory == "parent")
		{
			directory = "../";
		}
		newLocation = directory+"/"+Obj.id+".aspx";
		document.location = newLocation;		
	}


	function rollOverPerson(Obj)
	{
	    Obj = "person" + Obj;
	    Obj = document.getElementById(Obj);
	    rollOverPersonBox(Obj);
	    return;
		theId=Obj.id;
		theId = theId.slice(4);
		theId = "person"+theId;
		theElement = document.getElementById(theId);
		previousPerson = theElement.className;
		theElement.className = theId+"on";
	}

	function rollOutPerson(Obj)
	{
	    Obj = "person" + Obj;
	    Obj = document.getElementById(Obj);
	    rollOutPersonBox(Obj);
	    return;
		theId=Obj.id;
		theId = theId.slice(4);
		theId = "person"+theId;
		theElement = document.getElementById(theId);
		theElement.className = previousPerson;		
	}

	function rollOverPersonBox(Obj)
	{
		theId=Obj.id;
		theElement = document.getElementById(theId);
		strBGimage = theElement.style.backgroundImage;
		previous = strBGimage;
		strNewImage = GetBGImage(previous);
		theElement.style.backgroundImage = strNewImage;
		Obj.style.cursor = "pointer";
	}

	function rollOutPersonBox(Obj)
	{
		theId=Obj.id;
		theElement = document.getElementById(theId);
		theElement.style.backgroundImage = previous;
		Obj.style.cursor = "arrow";
	}

    function GetBGImage(strIn)
    {
        strTemp = strIn.substring(18,strIn.length-5);
		strTemp = "url(images/people/" + strTemp + "-on.jpg)";
        return strTemp;
    }


	function gotoPerson(personID)
	{
		newLocation = "person.aspx?ID=" + personID;
		document.location = newLocation;	
	}
