/* 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 = {
	'aftab_hinna' :
	{'heading' : 'Hinna Aftab<br/>MBA 10',
	'link_name' : 'aftab_hinna',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/hinna-aftab/7/22/a5',
	'internship' : 'Job prior to Haas:<br/>Assistant Manager, Performance Assessment<br/>Warid Telecom, Ltd.<br/>Lahore, Pakistan <br/><br/>"Haas gives us room to experiment, to choose and design our own path, whether that is a class project or an independent study course."',
	'current' : ''},
	
	'balarezo_gonzalo' :
	{'heading' : 'Gonzalo Balarezo<br/>MBA 09',
	'link_name' : 'balarezo_gonzalo',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/gonzalobalarezo',
	'internship' : 'Internship:<br/>Summer Intern<br/>Dolby Laboratories<br/><br/>"There is a virtuous circle of classmates learning from me and me learning from my classmates. I could never have imagined that Haas would change my life so profoundly."',
	'current' : ''},
	
	'bender_james' :
	{'heading' : 'James Bender<br/>MBA 10',
	'link_name' : 'bender_james',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/jwbender',
	'internship' : 'Internship:<br/>Cisco Strategic Services<br/>San Jose, California<br/><br/>"There is a virtuous circle of classmates learning from me and me learning from my classmates. I could never have imagined that Haas would change my life so profoundly."',
	'current' : ''},
	
	'calendaditavani_leonardo' :
	{'heading' : 'Leonardo Calenda di Tavani<br/>MBA 09',
	'link_name' : 'calendaditavani_leonardo',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/leonardo-calenda-di-tavani/3/44a/17a',
	'internship' : '"Haas makes the adjustment easy for international students from the very start...That made a big difference for me and my wife, and now, for our five-month-old baby."',
	'current' : 'Equities Research Intern<br/>JMP Securities, LLC<br/>San Francisco, California'},
	
	'chi_thaili' :
	{'heading' : 'Thaili Chi<br/>MBA 10',
	'link_name' : 'chi_thaili',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/thaili-chi/10/547/617',
	'internship' : 'Internship:<br/>Global Equities Intern - Corporate Governance<br/>CalPERS<br/>Sacramento, California<br/><br/>"It was great to take my first real estate elective at the end of my first year. It provided a coherent framework for understanding...every step of the real estate investment process."',
	'current' : ''},
	
	'colmenares_jaime' :
	{'heading' : 'Jaime Colmenares<br/>MBA 09',
	'link_name' : 'colmenares_jaime',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/jaime-colmenares/0/23/a0b',
	'internship' : '"I hadn \'t realized...just how important the social side of business school is. It \'s where you create friendships you will have for the rest of your life." ',
	'current' : 'Consultant<br/>Bain & Company'},
	
	'dewinter_alex' :
	{'heading' : 'Alex de Winter<br/>MBA 09',
	'link_name' : 'dewinter_alex',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/dewinter',
	'internship' : '"Getting into Haas gives you a certain degree of confidence, but once you\'re here, you don\'t feel any entitlement among the students."',
	'current' : 'Associate<br/>Mohr Davidow Ventures'},
	
	'doshi_megha' :
	{'heading' : 'Megha Doshi<br/>MBA 09',
	'link_name' : 'doshi_megha',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Internship:<br/>Corporate Responsibility Intern<br/>Nike, Inc.<br/><br/>"The professors are very approachable and open to ideas proposed by students."',
	'current' : ''},
	
	'drakelee_ryan' :
	{'heading' : 'Ryan Drake-Lee<br/>MBA 09',
	'link_name' : 'drakelee_ryan',
	'teaser' : '',
	'linkedin' : '',
	'internship' : '"Haas teaches people how to be independent-thinking leaders, capable of garnering widespread support for their ideas. The Haas curriculum gave me the flexibility to follow my personal interests in classes with real academic rigor."',
	'current' : 'Senior Associate<br/>McKinsey & Co. <br/>Atlanta, Georgia'},
	
	'elmeleegy_amr' :
	{'heading' : 'Amr El Meleegy<br/>MBA 10',
	'link_name' : 'elmeleegy_amr',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Job prior to Haas:<br/>Global Account Manager<br/>Oberthur Technologies<br/><br/>"The number and variety of speakers who come to Haas is astounding: industry leaders, entrepreneurs, and business innovators. Listening to them involves us in real-life issues and problems."',
	'current' : ''},
	
	'frankel_ari' :
	{'heading' : 'Ari Frankel<br/>MBA 10',
	'link_name' : 'frankel_ari',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/frankelari',
	'internship' : 'Job prior to Haas:<br/>Senior Analyst<br/>Economics Research Associates<br/><br/>"Berkeley is such a high-bandwidth place. There is so much mental and physical energy here."',
	'current' : ''},
	
	'gardner_toby' :
	{'heading' : 'Toby Gardner<br/>MBA 10',
	'link_name' : 'gardner_toby',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/tobygardner',
	'internship' : 'Internship:<br/>Investment Analyst (Real Estate)<br/>CalPERS<br/>Sacramento, California<br/><br/>"The core curriculum gives you a clear and concise approach to solving both qualitative and quantitative problems. It also gives you the confidence to recognize that your own opinions are valid."',
	'current' : ''},
	
	'herreroramos_jara' :
	{'heading' : 'Jara Maria Herrero Ramos<br/>MBA 10',
	'link_name' : 'herreroramos_jara',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/jaramariaherreroramos',
	'internship' : 'Internship:<br/>Corporate Strategy Intern<br/>Bosch GmbH, Stuttgart, Germany<br/><br/>"Haas teaches the traditional subjects, but in a very innovative way. People toss around the craziest ideas. Everyone is open to the next breakthrough."',
	'current' : ''},
	
	'holman_matt' :
	{'heading' : 'Matt Holman<br/>MBA/MPH  09',
	'link_name' : 'holman_matt',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Internship:<br/>MBA Intern (Marketing)<br/>Abbot Diabetes Care<br/><br/>"I really appreciated the individual, account managers we worked with at the Career Center. They knew us and our goals, the industry and its needs, and how to put both sides of the equation together."',
	'current' : ''},
	
	'hurwitz_carrie' :
	{'heading' : 'Carrie Hurwitz<br/>MBA 09',
	'link_name' : 'hurwitz_carrie',
	'teaser' : '',
	'linkedin' : '',
	'internship' : '"Haas students have what it takes to do well, but they don\'t have the need to tell people about how well they\'ve done." ',
	'current' : 'Manager, Corporate Strategy and Business Development<br/>McKesson Corporation<br/>San Francisco, California'},
	
	'jablonski_nick' :
	{'heading' : 'Nick Jablonski<br/>MBA 10',
	'link_name' : 'jablonski_nick',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Internship:<br/>Marketing Manager Intern<br/>Trilibis Mobile<br/>San Mateo, California<br/><br/>"Diversity at Haas isn\'t just something written about in a brochure. We live it every day. We learn from it every day. There is no one in my class who doesn\'t absolutely deserve to be here." ',
	'current' : ''},
	
	'jinich_gabriel' :
	{'heading' : 'Gabriel Jinich <br/>MBA 10',
	'link_name' : 'jinich_gabriel',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Job prior to Haas:<br/>Associate<br/>ACON Investments<br/><br/>"Being a Mayfield Fellow gives me a head start on reaching my career goals by connecting me with mentors in the VC community and the Haas Alumni Network." ',
	'current' : ''},
	
	'jourdan_glodine' :
	{'heading' : 'Glodine Jourdan<br/>MBA 10',
	'link_name' : 'jourdan_glodine',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/glodine-jourdan/7/b25/bb1',
	'internship' : 'Job prior to Haas:<br/>Pricing Manager/Associate<br/>JP Morgan Chase<br/><br/>"The Haas Alumni Network is essential to understanding what people who have been in my shoes are doing now and how they made that transition from school to work." ',
	'current' : ''},
	
	'kanairo_kazu' :
	{'heading' : 'Kazutaka Kanairo<br/>MBA 10',
	'link_name' : 'kanairo_kazu',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/kazutaka-kanairo/b/254/290',
	'internship' : 'Internship:<br/>Investment Banking<br/>J.P. Morgan Chase & Co.<br/><br/>"I wanted my career to head in a direction with more international exposure. The Haas reputation for teaching global management skills, through programs such as International Business Development, attracted me." ',
	'current' : ''},
	
	'kittredge_brad' :
	{'heading' : 'Brad Kittredge<br/>MBA 09',
	'link_name' : 'kittredge_brad',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/brad-kittredge/4/53/697',
	'internship' : 'Internship:<br/>Corporate Strategy and Business Development<br/>McKesson Corporation<br/>San Francisco, California<br/><br/>"The dual MBA/MPH degree gave me the broad understanding I need to succeed in my new choice of a career in the healthcare IT sector."',
	'current' : ''},
	
	'mcleggon_matt' :
	{'heading' : 'Matt McLeggon<br/>MBA 10',
	'link_name' : 'mcleggon_matt',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/matt-mcleggon/5/6ab/a37',
	'internship' : 'Job prior to Haas:<br/>Business Development Manager<br/>Cyveillance, Inc.<br/><br/>"I am amazed by the global diversity and expertise here." ',
	'current' : ''},
	
	'parekh_urvi' :
	{'heading' : 'Urvi Parehk<br/>MBA 09',
	'link_name' : 'parekh_urvi',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/urviparekh',
	'internship' : 'Internship:<br/>MMA Renewable Ventures<br/>San Francisco, California<br/><br/>"I like being a decision-maker. The courses and extra-curricular activities at Haas are very action-oriented. I appreciate that students are encouraged to make decisions and deliver actionable results." ',
	'current' : ''},
	
	/*'perezsalazar_gonzalo' :
	{'heading' : 'Gonzalo Perez Salazar<br/>MBA 10',
	'link_name' : 'perezsalazar_gonzalo',
	'teaser' : '',
	'linkedin' : '',
	'internship' : '"The Bay Area has so many things to offer. I have been able to strike a life balance with my wife…both in and outside of Haas." ',
	'current' : 'Internship:<br/>Self-employed entrepreneur'},*/
	
	'rios_jacob' :
	{'heading' : 'Jacob Rios<br/>MBA 09',
	'link_name' : 'rios_jacob',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/rios81',
	'internship' : '"I really appreciate the emphasis on teaching at Haas. Student feedback is listened to and taken seriously." ',
	'current' : 'Product Marketing Manager<br/>Leadership Rotation Program<br/>Sybase Inc.<br/>Dublin, California'},
	
	'salvini_karen' :
	{'heading' : 'Karen Salvini<br/>MBA 09',
	'link_name' : 'salvini_karen',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/in/karensalvini',
	'internship' : 'Internship:<br/>Corporate Sustainability Intern<br/>Sun Microsystems<br/><br/>"The Haas Alumni Network is a great way to network with less pressure and better results."',
	'current' : ''},
	
	'sikka_naveen' :
	{'heading' : 'Naveen Sikka<br/>MBA 09',
	'link_name' : 'sikka_naveen',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/naveen-sikka/0/750/89a',
	'internship' : 'Internship:<br/>Summer Associate<br/>Lazard Fr&egrave;res & Co.<br/><br/>"Where else can teams of students in law, business, public policy and engineering work in close coordination with some of the best brains at the Lawrence Berkeley National Laboratory."',
	'current' : ''},
	
	'silva_raimundo' :
	{'heading' : 'Raimundo Silva<br/>MBA 10',
	'link_name' : 'silva_raimundo',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Internship:<br/>Consultant<br/>Boston Consulting Group<br/><br/>"Leading Through Innovation is about being convinced that there must be a better way of doing things...not being scared to question the way things are being done...even the most generally accepted habits."',
	'current' : ''},
	
	'wendell_kathryn' :
	{'heading' : 'Kathryn Wendell<br/>MBA 10',
	'link_name' : 'wendell_kathryn',
	'teaser' : '',
	'linkedin' : '',
	'internship' : 'Internship<br/>Climate Change Strategy<br/>Levi Strauss & Co., San Francisco<br/><br/>"Every Haas student is confident in his or her ability to master the material, eager to work with others and find out how much more we can learn from blending our unique perspectives and skills."',
	'current' : ''},
	
	'weng_vivian' :
	{'heading' : 'Vivian Weng<br/>MBA 09',
	'link_name' : 'weng_vivian',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/vivian-weng/4/b88/4a0',
	'internship' : '"Thanks to my experiences at Haas I realize that true leadership is not about what we say or do; rather, it\'s about how we inspire others to act." ',
	'current' : 'Senior Associate<br/>McKinsey & Company<br/>Taipei, Taiwan'},
	
	'wright_will' :
	{'heading' : 'Will Wright<br/>MBA/MPH 09',
	'link_name' : 'wright_will',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/william-wright/2/b51/318',
	'internship' : 'Internship:<br/>McKinsey & Company, Brussels, Belgium<br/><br/>"Haas prides itself on being largely student-run. Among other things, that means that you have carte blanche to create whatever works. That sort of freedom is invigorating." ',
	'current' : ''},
	
	'zander_alison' :
	{'heading' : 'Alison Zander<br/>MBA 10',
	'link_name' : 'zander_alison',
	'teaser' : '',
	'linkedin' : 'http://www.linkedin.com/pub/william-wright/2/b51/318',
	'internship' : 'Internship:<br/>Brand Marketing Intern<br/>Clorox, Oakland, California<br/><br/>"I relied a lot on the connections I made through the Marketing Club for my internship search. Its speaker\'s series and the Career Center\'s firm nights introduced me to the Bay Area business community." ',
	'current' : ''}

};

/*
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/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/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);
}