/* 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 = {
	'abbasi' :
	{'heading' : 'Yousuf Abbasi, MFE \'07',
	'link_name' : 'abbasi',
	'teaser' : '',
	'internship' : '',
	'current' : 'Associate, <br />Deutsche Bank Securities, <br />New York, NY',
	'fulltime' : ''},
	
	'barone' :
	{'heading' : 'Luca Barone, MFE \'05',
	'link_name' : 'barone',
	'teaser' : '',
	'internship' : '',
	'current' : 'Junior Partner, <br />Sator SPA, <br />Rome, Italy',
	'fulltime' : ''},

	'bellicha' :
	{'heading' : 'Aya Bellicha, MFE \'09',
	'link_name' : 'bellicha',
	'teaser' : '',
	'internship' : '',
	'current' : 'Senior Associate, </br />Duff & Phelps, San Francisco',
	'fulltime' : ''},
	
	'brunet' :
	{'heading' : 'Matthieu Brunet, MFE \'09',
	'link_name' : 'brunet',
	'teaser' : '',
	'internship' : '',
	'current' : 'Associate <br />Citi <br />London, UK',
	'fulltime' : ''},
	
	'burrus' :
	{'heading' : 'Jacques Burrus, MFE \'09',
	'link_name' : 'burrus',
	'teaser' : '',
	'internship' : '',
	'current' : 'CorpBanca, <br />Senior Analyst, <br />Santiago, Chile',
	'fulltime' : ''},
	
	'chromiak' :
	{'heading' : 'Peter Chromiak, MFE \'09',
	'link_name' : 'chromiak',
	'teaser' : '',
	'internship' : 'Associate Financial Engineer, <br />Spot Trading, <br />Chicago, IL',
	'current' : '',
	'fulltime' : ''},
	
	'cowan' :
	{'heading' : 'Andrew Cowan , MFE \'08',
	'link_name' : 'cowan',
	'teaser' : '',
	'internship' : '',
	'current' : 'Goldman Sachs, <br />Associate, Stategist, <br />New York, NY',
	'fulltime' : ''},
	
	'erdmann' :
	{'heading' : 'Shannon Erdmann<br />MFE \'08',
	'link_name' : 'erdmann',
	'teaser' : '',
	'internship' : '',
	'current' : 'Portfolio Associate<br />PIMCO<br />Newport Beach, California',
	'fulltime' : ''},
	
	'feldman' :
	{'heading' : 'Ruben Feldman, MFE \'09',
	'link_name' : 'feldman',
	'teaser' : '"The extensive network the Berkeley MFE office has built is very valuable, and the office&#8217;s efforts helped me search for and find the perfect career opportunities."',
	'internship' : '',
	'current' : '',
	'fulltime' : 'Special Operations<br />Exis Capital Management'},	
	
	'gilliland' :
	{'heading' : 'Jim Gilliland<br />MFE \'02',
	'link_name' : 'gilliland',
	'teaser' : '',
	'internship' : '',
	'current' : '',
	'fulltime' : ''},

    'gum' :
	{'heading' : 'Ben Gum<br />MFE \'07',
	'link_name' : 'gum',
	'teaser' : '',
	'internship' : 'Barr Rosenberg Research Center<br />AXA Rosenberg<br />Orinda, California',
	'current' : 'Research Associate<br />Barr Rosenberg Research Center<br />AXA Rosenberg<br />Orinda, California',
	'fulltime' : ''},
	
	'kahn' :
	{'heading' : 'Ronald N. Kahn, Adjunct Professor',
	'link_name' : 'kahn',
	'teaser' : 'Kahn teaches the equities half of the MFE course, Equities and Currency Markets (MFE 230G). He has also developed and taught the course How to Research Active Strategies to hundreds of investment practitioners around the world.',
	'internship' : '',
	'current' : '',
	'fulltime' : ''},

	'krishnan' :
	{'heading' : 'Mahesh Krishnan, MFE \'09',
	'link_name' : 'krishnan',
	'teaser' : '',
	'internship' : '',
	'current' : 'Pavisier LLC',
	'fulltime' : ''},
	
	'kudlay' :
	{'heading' : 'Alexander Kudlay, MFE \'09',
	'link_name' : 'kudlay',
	'teaser' : '',
	'internship' : '',
	'current' : 'Associate <br />Bloomberg <br />New York, NY',
	'fulltime' : ''},
	
	'lagos' :
	{'heading' : 'Rodrigo Nunez Lagos, MFE \'09',
	'link_name' : 'lagos',
	'teaser' : '"The Berkeley MFE office is one of the main reasons I decided to join the Program, and even in the toughest financial turmoil, it has exceeded my expectations."',
	'internship' : '',
	'current' : '',
	'fulltime' : 'Product Developer<br />Barclays Global Investors<br />San Francisco, California'},
	
	'liu' :
	{'heading' : 'Lisa Liu, MFE \'09',
	'link_name' : 'liu',
	'teaser' : '',
	'internship' : 'Citigroup, Hong Kong',
	'current' : '',
	'fulltime' : ''},
	
	'macdonald' :
	{'heading' : 'Geoff MacDonald, MFE \'06',
	'link_name' : 'macdonald',
	'teaser' : '',
	'internship' : '',
	'current' : 'Associate, FICC Strategies America<br />Special Situations Group<br />Goldman Sachs<br />New York',
	'fulltime' : ''},
	
	'marandella' :
	{'heading' : 'Guido Marandella, MFE \'09',
	'link_name' : 'marandella',
	'teaser' : '"The Haas MFE gives you exactly what you need to succeed in the field of finance, even in this economy: an excellent curriculum, renowned faculty, and a powerful network of contacts with firms."',
	'internship' : '',
	'current' : '',
	'fulltime' : 'Associate<br />Citigroup, New York'},

'mutreja' :
	{'heading' : 'Priyanshu Mutreja, MFE \'09',
	'link_name' : 'mutreja',
	'teaser' : '"The program staff members are extremely helpful and dedicated &#8212; whether advising students on academics, working to find internship and job opportunities for students, or organizing mock interviews."',
	'internship' : '',
	'current' : '',
	'fulltime' : 'Investment Analyst<br />Clarivest Asset Management'},	
	
	'oteng-amoako' :
	{'heading' : 'Kingsley Oteng-Amoako, MFE \'09',
	'link_name' : 'oteng-amoako',
	'teaser' : '',
	'internship' : '',
	'current' : 'State Street, <br />Boston, MA',
	'fulltime' : ''},
		
	'rubinstein' :
	{'heading' : 'Mark Rubinstein, Professor',
	'link_name' : 'rubinstein',
	'teaser' : 'Professor Mark Rubinstein (The Paul Stephens Professor of Applied Investment Analysis) teaches two core courses in the MFE program, Fundamentals of Investments and Derivatives: Economic Concepts.',
	'internship' : '',
	'current' : '',
	'fulltime' : ''},
	
	'savov' :
	{'heading' : 'Pavlin Savov, MFE \'09',
	'link_name' : 'savov',
	'teaser' : '"The Haas MFE is a known quantity among industry employers. They know how well its alumni have performed, which gives us an advantage in the employment marketplace."',
	'internship' : '',
	'current' : 'Associate, <br />Goldman Sachs, New York',
	'fulltime' : ''},
	
	'singhvi' :
	{'heading' : 'Vipul Singhvi, MFE \'09',
	'link_name' : 'singhvi',
	'teaser' : '"The rigor of the coursework prepared me to hit the ground running on day one of my internship."',
	'internship' : '',
	'current' : '',
	'fulltime' : 'Associate, Fixed Income Strategy and Analysis<br />Citigroup'},
	
	'tchikanda' :
	{'heading' : 'Serge Tchikanda, MFE \'07',
	'link_name' : 'tchikanda',
	'teaser' : '',
	'internship' : '',
	'current' : 'Bloomberg, New York',
	'fulltime' : ''},
	
	'toscano' :
	{'heading' : 'Pietro Toscano, MFE \'09',
	'link_name' : 'toscano',
	'teaser' : '"The MFE program at Berkeley fully met my expectations. I have been able to find a great job, despite the current financial turmoil."',
	'internship' : '',
	'current' : '',
	'fulltime' : 'Associate<br />Barclays Global Investors<br />San Francisco, California'},
		
	'tureci' :
	{'heading' : 'Esin Tureci, MFE \'09',
	'link_name' : 'tureci',
	'teaser' : '',
	'internship' : '',
	'current' : 'IMC Trading, <br />Trading Analyst, <br />Zug, Switzerland',
	'fulltime' : ''},
	
	'wang' :
	{'heading' : 'Irene Wang<br />MFE \'07',
	'link_name' : 'wang',
	'teaser' : '',
	'internship' : '',
	'current' : 'Global Tactical Asset Allocation Research<br />Mellon Capital Management<br />San Francisco',
	'fulltime' : ''},
	
	'xu' :
	{'heading' : 'Wanling Xu, MFE \'08',
	'link_name' : 'xu',
	'teaser' : '',
	'internship' : '',
	'current' : 'Strategist, Fixed Income<br />Citigroup<br />New York, New York',
	'fulltime' : ''},
	
	'yalla' :
	{'heading' : 'Swaroop Yalla, MFE \'07',
	'link_name' : 'yalla',
	'teaser' : '',
	'internship' : 'Associate, Fixed Income Strategy and Analytics<br />Citigroup<br />New York',
	'current' : 'Morgan Stanley<br />New York',
	'fulltime' : ''},
	
	'zwemer' :
	{'heading' : 'Margit Zwemer, MFE \'09',
	'link_name' : 'zwemer',
	'teaser' : '',
	'internship' : '',
	'current' : 'Societe Generale, <br />Junior Trader, <br />Hong Kong, China'}
};

/*
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 internship = (profile_group[number].internship != '' ? profile_group[number].internship : false);
	var current = (profile_group[number].current != '' ? profile_group[number].current : false);
	var fulltime = (profile_group[number].fulltime != '' ? profile_group[number].fulltime : false);
	var teaser = profile_group[number].teaser;
	
	var body = '<div class="profile">' +
			'<a class="noborder" href="' + toRoot + 'profiles/' + name + '.html" onclick="return popCenter(this.href, \'profile\', 448, 600);"><img src="' + toRoot + 'images_local/profiles/' + name + '_big.jpg" alt="' + name.replace(/<br( \/)?>/gi, ', ') + '" border="0" /></a>' +
		'<p><a href="' + toRoot + 'profiles/' + name + '.html" onclick="return popCenter(this.href, \'profile\', 448, 600);"><strong>' + heading + '</strong></a></p>';
	if (internship) {
		body += '<p><strong>MFE Internship:</strong><br />' + internship + '</p>';
	}
	if (current) {
		body += '<p><strong>Current Position:</strong><br />' + current + '</p>';
	}
	if (fulltime) {
		body += '<p><strong>Full-time Position:</strong><br />' + fulltime + '</p>';
	}
	if (teaser) {
		body += '<p>' + teaser + '</p>';
	}
	body += '</div>';
	document.write(body);
}