/* Example:

'gerasimov' :
{'heading' : 'Sergey Gerasimov, MFE \'07',
'link_name' : 'gerasimov',
'teaser' : '"After completing my MBA, I wanted to study further the mathematics of finance and to link it to my background in computer science.  Haas\' very rigorous MFE program provides all of the courses required for a career in quantitative finance.  It matched my professional objectives and is sufficiently challenging to ensure the future success of its graduates"',
'internship' : 'Fixed Income and Equity Linked Research Department<br />Merrill Lynch<br />New York',
'current' : 'Associate, Asset Backed Securities<br />ORIX Capital Markets<br />Dallas, Texas'}

REMEMBER: You must have a comma between each profile definition but not after the last one!

REMEMBER: If you use single quotes in the profile teaser, you have to put a forward slash first:
ex: 'teaser' : 'My friends don\'t understand how great Haas is.'

To add a new profile, add a comma after the curly brace of the last one, and paste this code in after:
	'NAME' :
	{'heading' : '',
	'link_name' : '',
	'teaser' : '',
	'internship' : '',
	'current' : ''}
	
Put the same value in NAME as you do after link_name.  This is so that you can target small subsets of
profiles on some pages.

The 'teaser', 'internship', 'current' fields are optional; leave blank if you don't want one

Currently the list is organized alphabetically.  If you insert a profile in the middle somewhere, make sure
that you have a comma after the profile's final curly brace!  If you insert at the end, make sure there is
no comma!
	
To change the display code that's written to the page, edit the display_profile() function at the bottom of
this document.
*/

var profiles = {
	'coffman_david' :
	{'heading' : 'David Coffman<br />MBA 10',
	'link_name' : 'coffman_david',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Previous degrees:<br /> BA, Economics<br /> Northwestern University<br /> Evanston, Illinois <br /><br />  MS, Accounting<br /> University of Southern California<br /> Los Angeles, California <br /> <br />  Previous jobs:<br /> Principal Financial Analyst<br /> Oracle Corporation<br /> Redwood Shores, California <br /> <br />Senior Accountant<br />  Deloitte & Touche LLP<br /> San Francisco, California ',
'current' : 'Senior Business Analyst, Revenue Operations<br />Salesforce.com<br />San Francisco, California'},

'fong_jeremy' :
	{'heading' : 'Jeremy Fong<br /> MBA 10',
	'link_name' : 'fong_jeremy',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/jeremyfong',
	'internship' : 'Previous degree:<br /> BS, Economics and Psychology <br /> University of California, Los Angeles <br /> <br /> Previous Job:<br /> Program Manager<br /> NBC Universal<br /> Los Angeles', 
	'current' : 'Product Manager<br /> Ribbit Corporation<br /> Mountain View, California '},
	
	
	'ho_jeff' :
	{'heading' : 'Jeff Ho<br />MBA 10',
	'link_name' : 'ho_jeff',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/jwbender',
	'internship' : 'Previous degree:<br />BA, Economics<br /> Stanford University, California  <br /> <br />  Previous job:<br /> Manager, Market Research<br /> Schering-Plough Pharmaceuticals<br /> Kenilworth, New Jersey   ',
	'current' : 'Associate Director, Commercial Strategy<br /> Gilead Sciences<br /> Foster City, California '},
	
	
	'love_stephen' :
	{'heading' : 'Stephen Love<br />MBA 10',
	'link_name' : 'love_steve',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Previous degree:<br /> HBA, Business Administration<br />  University of Western Ontario, Canada', 
	'current' : 'Manager<br /> ZS Associates<br /> San Mateo, California'},
	
	'moorjani_dinesh' :
	{'heading' : 'Dinesh Moorjani<br/> MBA 10 ',
	'link_name' : 'moorjani_dinesh',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/dinesh-moorjani/5/136/668',
	'internship' : 'Previous degree:<br /> BBA, Finance<br /> Hong Kong University of Science & Technology <br /> <br />  Previous job:<br /> Associate Director, Equity Research<br /> Bear, Stearns & Co., Inc.<br /> San Francisco, California', 
	'current' : 'Manager<br /> ZS Associates<br /> San Mateo, California '},
	
	'rao_sachin' :
	{'heading' : 'Sachin Rao<br />MBA 10',
	'link_name' : 'rao_sachin',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/jaime-colmenares/0/23/a0b',
	'internship' : 'Previous degrees:<br />BS, Engineering<br />University of Bombay, India<br /><br />MS, Engineering<br />Texas A & M <br />College Station, Texas<br /><br />Previous job:<br />Technical Manager<br />Blackstone Technology GroupSan Francisco ',	
	'current' : 'Director, Integration Systems<br /> McKesson Corp. <br /> San Francisco'},
	
	'reichmuth_swati' :
	{'heading' : 'Swati Reichmuth<br />MBA 10',
	'link_name' : 'reichmuth_swati',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Internship:<br />Deloitte Consulting<br />San Francisco, California<br /><br />Previous degree:<br />BS, Mechanical Engineering<br />University of California, Berkeley',
	'current' : 'Project Manager<br />Cisco Systems<br />San Jose, California'},
	
	'tsang_peter' :
	{'heading' : 'Peter Tsang<br />MBA 10',
	'link_name' : 'tsang_peter',
	'teaser' : '',
	'linkedin' :'http://www.linkedin.com/profile?viewProfile=&key=12887193&authToken=MS8Q&authType=NAME_SEARCH&locale=en_US&srchindex=1&pvs=ps&goback=.psr_*1_Peter+Tsang_*1_*1_*1_*1_*1_*1_*1_*1_Y_us_94598_*1_*1_*2_*2_*2_Y_Y_*1_Relevance',
	'internship' : 'Previous degree:<br />BA, Economics<br />University of California, Berkeley<br /><br />Previous job:<br />Market Data Operations Team Lead<br />Barclays Global Investors<br />San Francisco, California',
	'current' : 'Portfolio Manager<br />Barclays Global Investors<br />San Francisco, California'},
	
	'warren_elisabeth' :
	{'heading' : 'Elisabeth Warren<br />MBA 09',
	'link_name' : 'warren_elisabeth',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/elisabeth-warren-mba-pmp/2/506/b8b',
	'internship' : 'Previous degree:<br />BS, Human Biology<br />Stanford University, California<br /><br />Previous job :<br />Manager, Quintiles Transnational<br />San Francisco, California',
	'current' : 'Director, Product Portfolio Management<br />Genentech<br />South San Francisco, California'},
	
	'yuen_sherwood' :
	{'heading' : 'Sherwood Yuen<br />MBA 08',
	'link_name' : 'yuen_sherwood',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/sherwood-yuen/2/312/471',
	'internship' : 'Previous degree:<br />BA, Asian Studies<br />Cornell University, New York<br /><br />Previous job:<br />Manager<br />Charles Schwab Company<br />San Francisco',
	'current' : 'Vice President, Alternative Investments<br />Wells Fargo<br />San Francisco, California'}
	

};

/*
The following code selects a random profile to display, and controls how they are formatted

'toRoot' is required; a relative path to the root of the site
	'../' for example, if the page is in a sub-directory
'subset' is an optional comma deliminited list of profiles to select from (uses whatever's in the NAME slot above)
	'ortiz, tadelis, kulka, walling, penzini' for example
*/

function display_profile(toRoot, subset) {
	var subset = (subset == null) ? false : subset;
	var profile_group = new Array();
	if (subset) {
		subset = subset.split(/, ?/);
		for (var i = 0; i < subset.length; i++) {
			profile_group.push(profiles[subset[i]]);
		}
	} else {
		for (var profile in profiles) {
			profile_group.push(profiles[profile]);
		}
	}
	var number = Math.floor(Math.random()*profile_group.length);
	var name = profile_group[number].link_name;
	var heading = profile_group[number].heading;
	var teaser = profile_group[number].teaser;
	var linkedin = (profile_group[number].linkedin != '' ? profile_group[number].linkedin : false);
	var internship = (profile_group[number].internship != '' ? profile_group[number].internship : false);
	var current = (profile_group[number].current != '' ? profile_group[number].current : false);
	
	
	var body ='<a href="community/students/' + name +'.html"><img src="' + '/images_local/final/students/homepage/' + name + '.jpg" class="ProfileImage" alt="' + name.replace(/<br( \/)?>/gi, ', ') + '" border="0" /></a>' +
		'<div class="NameDegree">' + heading + '</div>';
	if (teaser) {
		body += '<p>' + teaser + '</p>';
	}
	
	if (current) {
		body += '<div class="JobTitle">' + current + '</div>';
	}
	if (internship) {
		body += '<p>' + internship + '</p>';
	}
	
	
	body += '<div id="ProfileLinks">';
	
	if (linkedin) {
	body += '<div id="haasIcon"><img src="/images_local/final/icons/linkedin.gif" alt="Linkedin" name="linkedIn" align="absmiddle" class="Icon" id="linkedIn" /></div><div id="haasLable"><a href="' + linkedin + '" target="_blank">Meet Me on LinkedIn</a></div>';
	}
	
	body += '<div id="readon"><a href="community/students/' + name +'.html">Read On</a></div><div id="morePro">|&nbsp;&nbsp;<a href="community/students/profiles.html">More Profiles</a></div></div>';

	document.write(body);
}