<!-- Begin

Event.observe(window, 'load',
      function() { updateFacProf(); }
    );


function updateFacProf()
{
var url = 'facultyprofiles2009.html';

new Ajax.Request(url, {
  method: 'get',
  onSuccess: function(transport) {
		 writeProfile(transport)}
	});
}

function writeProfile(transport)
{
	var profID = getProfileForDay();
	if (profID != '')
	{
		var xml = transport.responseText;
		var io = xml.indexOf('<div id="' + profID + '"');
		if (io != -1)
		{
			xml = xml.substr(io);
			xml = xml.substring(0, xml.indexOf('</div>') + 6);
			$('facProf').update(xml);
		}
	}
}
	
	
function getProfileForDay()
{
	var dateNow = new Date();
	var thisMonth = dateNow.getMonth();
	var thisDate = dateNow.getDate();

	
		
	
	//month of March
	 if (thisMonth+1==3) {
		if (thisDate==18)      { return ('yue_him_tam'); }
		else if (thisDate==19) { return ('yue_him_tam'); }
		else if (thisDate==20) { return ('aanonsen'); }
		else if (thisDate==21) { return ('samman'); }
		else if (thisDate==22) { return ('kaplan'); }
		else if (thisDate==23) { return ('macy') ; }
		else if (thisDate==24) { return ('brown'); }
		else if (thisDate==25) { return ('vitiello'); }
		else if (thisDate==26) { return ('cooey'); }
		else if (thisDate==27) { return('latham'); }
		else if (thisDate==28) { return ('steinman'); }
		else if (thisDate==29) { return ('sukhatme'); }
		else if (thisDate==30) { return ('brownb'); }
		else if (thisDate==31) { return ('cleary'); }
		}
	
	//month of April
	 if (thisMonth+1==4) {
		if (thisDate==1) { return ('inglot'); }
		else if (thisDate==2) { return ('fischer'); }
		else if (thisDate==3) { return ('overman'); }
		else if (thisDate==4) { return ('harris'); }
		else if (thisDate==5) { return ('laine'); }
		else if (thisDate==6) { return ('folina'); }
		else if (thisDate==7) { return ('shoop'); }
		else if (thisDate==8) { return ('varberg'); }
		else if (thisDate==9) { return ('sears'); }
		else if (thisDate==10) { return ('gonzalez'); }
		else if (thisDate==11) { return ('davis'); }
		else if (thisDate==12) { return ('schmidt'); }
		else if (thisDate==13) { return ('ping'); }
		else if (thisDate==14) { return ('moore'); }
		else if (thisDate==15) { return ('fox'); }
		else if (thisDate==16) { return ('itzkowitz'); }
		else if (thisDate==17) { return ('severy'); }
		else if (thisDate==18) { return ('lea'); }
		else if (thisDate==19) { return ('brisbois'); }
		else if (thisDate==20) { return ('suzuki'); }
		else if (thisDate==21) { return ('geldern'); }
		else if (thisDate==22) { return ('kim'); }
		else if (thisDate==23) { return ('lanegran'); }
		else if (thisDate==24) { return ('strauss'); }
		else if (thisDate==25) { return ('sarker'); }
		else if (thisDate==26) { return ('olsen'); }
		else if (thisDate==27) { return ('ferderer'); }
		else if (thisDate==28) { return ('mazulla'); }
		else if (thisDate==29) { return ('bressoud'); }
		else if (thisDate==30) { return ('sasse'); }
		}
	
	//month of May
	 if (thisMonth+1==5) {
		 if (thisDate==1) { return ('boychuk'); }
		else if (thisDate==2) { return ('kuwata'); }
		else if (thisDate==3) { return ('veldhuis'); }
		else if (thisDate==4) { return ('moseley'); }
		else if (thisDate==5) { return ('dawes'); }
		else if (thisDate==6) { return ('shandy'); }
		else if (thisDate==7) { return ('nedelsky'); }
		else if (thisDate==8) { return ('fabio'); }
		else if (thisDate==9) { return ('overvoorde'); }
		else if (thisDate==10) { return ('guneratne'); }
		else if (thisDate==11) { return ('wirth'); }
		}
		
	return ('');
}


// End -->
