
var staffArray= new Array(3) 
staffArray[0]="backgroundStaff1"; 
staffArray[1]="backgroundStaff2"; 
staffArray[2]="backgroundStaff3"; 

var peopleArray= new Array(3) 
peopleArray[0]="backgroundPeople1"; 
peopleArray[1]="backgroundPeople2"; 
peopleArray[2]="backgroundPeople3"; 
peopleArray[3]="backgroundPeople4"; 
peopleArray[4]="backgroundPeople5"; 
peopleArray[5]="backgroundPeople6"; 
peopleArray[6]="backgroundPeople7"; 
peopleArray[7]="backgroundPeople8"; 


function showStaff(){
	var ranNum= Math.round(Math.random()*2);
	var element= document.getElementById("contentBottomPeople");
	jsCSS("add", element, staffArray[ranNum]);
}

function showPeople(){
	var ranNum= Math.round(Math.random()*7);
	var element= document.getElementById("contentBottomPeople");
	jsCSS("add", element, peopleArray[ranNum]);
}

function jsCSS(a,o,c1,c2)
{
	switch (a){
		case 'swap':
			o.className=!jsCSS('check',o,c1)?o.className.replace(c2,c1):o.className.replace(c1,c2);
		break;
		case 'add':
			if(!jsCSS('check',o,c1)){o.className+=o.className?' '+c1:c1;}
		break;
		case 'remove':
			var rep=o.className.match(' '+c1)?' '+c1:c1;
			o.className=o.className.replace(rep,'');
		break;
		case 'replace':
			o.className=c1;
		break;
		case 'check':
			return new RegExp('\\b'+c1+'\\b').test(o.className)
		break;
	}
}