function People(xmlData) {
	
	var xmlData = xmlData;
       
    this.setXmlData = function(xmlData)	{
    	this.xmlData = xmlData;
   	}
   	
   	this.getPeopleList = function() {
   		var peopleList = "";
   		var counter = 0;
   		
		$.each(xmlData.person, function() {
    		peopleList += '<li><a class="aPeopleM-JQ-OFF' + counter + '" rel="' + counter + '" ';
    		peopleList += 'style="background-image: url(img/people/' + this.image[0].src + ');" ';
    		peopleList += 'href="javascript:xmlPeople.loadVita(' + counter + ')" id="person_' + counter + '">';
    		//peopleList += '<strong>' + this.name + '</strong><br />';
			//peopleList += '<span><strong>' + this.position + '<br />' + this.dept + '</strong></span>';
    		peopleList += '</a></li>';
    		counter += 1;
    	});
		/*$.each(xmlData.person, function() {
    		peopleList += '<li><a class="aPeopleM-JQ-OFF" rel="' + counter + '" ';
    		peopleList += 'style="background-image: url(img/people/' + this.image[0].src + ');" ';
    		peopleList += 'href="javascript:xmlPeople.loadVita(' + counter + ')" id="person_' + counter + '">';
    		peopleList += '<strong>' + this.name + '</strong><br />';
    		peopleList += '<span><strong>' + this.position + '<br />' + this.dept + '</strong></span></a></li>';
    		counter += 1;
    	});*/

    	$("#divPeopleMContent ul").html(peopleList);
    	$("#divPeopleMContent").jScrollPane();
    } 
    
    this.loadVita = function(index) {
		//$("#divPeopleRContent").html(personList);
		if(xmlData.person[index].name == '')
			$("#divPeopleRContent").html(xmlData.person[index].vita[0].text);
		else
			$("#divPeopleRContent").html('<strong>' + xmlData.person[index].name + '</strong><br />' + '<span><strong>' + xmlData.person[index].position + '<br />' + xmlData.person[index].dept + '</strong></span><br />' + xmlData.person[index].vita[0].text);
    	$("#divPeopleRContent").jScrollPane();
    	
    	hiltePerson(index);
    }  
}
