// This biodata.js is a Javascript Document which handles, and delivers biographical information to the HTML browser.

// JavaScript Document

var DEFAULTfilename = "iBIOpic";
var temp1 = 0;
var portrait_total_count = 10;

var member_total_count = 16;											// KEEP UPDATED, total member count + 1
var member_order = new Array(1,2,3,4,5,6,7,8,9,14,10,11,12,15,13);			// VERY IMPORTANT, The order in which members are displayed
																		//         entries must equal total member count
var i;

var member=new Array(member_total_count);
	for (i=0; i < member_total_count; i++) {
		member[i]=new Array(4)
	}
	
function InitBioData () {
	
// member [x][y]
//
// .. where ..
//
// x = Member number
// y = Member-specific info
//
// member[x][0] = Member name
// member[x][1] = Member title
// member[x][2] = Member headshot # (input 0 if member has no headshot)
// member[x][3] = Member biography


member[0][0] = "";										// NULL								- #0
member[0][1] = "";
member[0][2] = "";
member[0][3] = "";

member[1][0] = "Peggy Baker";						// Peggy Baker					- #1
member[1][1] = "Dance Choreographer";
member[1][2] = "1";
member[1][3] = "Peggy Baker is acclaimed as one of the most outstanding contemporary dancers of her generation. Born in Edmonton, Alberta in 1952, Ms Baker began her professional career in Toronto, in 1974, as a founding member, and later artistic director, of Toronto’s Dancemakers, where she participated in more than 50 premieres by Canadian choreographers and contributed three works to the repertoire. She toured internationally as a prominent member of Lar Lubovitch’s celebrated New York company throughout the eighties and joined Mikhail Baryshnikov and Mark Morris for the inaugural season of their White Oak Dance Project in 1990, subsequently forging important creative relationships with Montreal’s Paul-André Fortier and New York’s Doug Varone through numerous performance projects.<br /><br />Ms Baker made her debut as a solo artist in 1990, her work distinguished from the outset by collaborations with extraordinary creators and performers. Among them: choreographers Sarah Chase, Molissa Fenley, James Kudelka, Tere O’Connor and Tedd Robinson; composers Michael J. Baker, Chan Ka Nin, Ahmed Hassan and Ann Southam; dancers Margie Gillis, Christopher House, Sylvain Lafortune and Susan Macpherson; actors Jackie Burroughs and Michael Healey; visual artists and designers Ina Levytsky, Janet Morton Caroline O’Brien, Marc Parent, Kurt Swinghammer, Jane Townsend, and Peter Vogel; Amici, Arraymusic, The Modern Quartet, the Toronto Symphony Orchestra under Jukka-Pekka Saraste; instrumentalists Henry Kucharzyk, Shauna Rolston, Debashis Sinha, James Sommerville, Robert W. Stevenson, and on-going since 1991, pianist Andrew Burashko.<br /><br />Her concerts have been presented at major festivals and dance centres across North America, Asia and Europe including Danspace, The Kitchen and Symphony Space in New York; the Luckman Centre in Los Angeles; Jacob’s Pillow; the Copenhagen International Dance Festival; the Time Festival in Ghent, Belgium; MoDaFe in Seoul, Korea; the Canada Dance Festival in Ottawa and in three seasons at L’Agora de la danse in Montreal.<br /><br />Ms. Baker is the recipient of numerous awards including a <a href='http://www.ggpaa.ca/en/home.html' target='_blank'> Governor General’s Award for Lifetime Achievement in the Arts,</a> the Order of Canada, the Order of Ontario, the 2006 Premier’s Award for Excellence in the Arts, three Dora Mavor Moore Awards for Outstanding Performance (Why the Brook Wept, 1996; loin, très loin, 2000; Portal, 2008), and two for Outstanding Choreography (Portal, 2008 and Radio Play with Denise Clarke, 2009), a 2002 Cadillac-Fairview Salute to the City Award, the Toronto Arts Council’s 2002 Margo Bindhardt Award, and an Honorary Doctorate from the University of Calgary.<br /><br />Recognized as one of the modern dance world’s finest teachers, Ms Baker was director of dance for the Contemporary Arts Summer Institute at Simon Fraser University from 1991 – 1994. She teaches regularly at universities and professional training programs throughout Canada and the U.S. including the Juilliard School, the School at Jacob’s Pillow, American Dance Festival, NYU, UC Santa Barbara, York University and the School of Toronto Dance Theatre. She is the first ever Artist-in-Residence at Canada’s National Ballet School, appointed in 1992. Irene Dowd, Patricia Miner, Christine Wright and Risa Steinberg, her primary teachers since the mid-eighties, continue to exert a powerful influence on her development.<br /><br /><a href='http://www.ggpaa.ca/en/nfb_short_films.html' target='_blank'>See the NFB Peggy short film here</a>";

member[2][0] = "Sylvain Brochu";						// Sylvain Brochu					- #2
member[2][1] = "Dancer and Yoga Instructor";
member[2][2] = "9";
member[2][3] = "Originally from Sherbrooke, Quebec, Sylvain Brochu is a graduate of l’Université du Québec à Montréal. He is recognized as a master of interpretation as well as an accomplished educator. After living in Toronto, Winnipeg, Vancouver, and Quebec City, Sylvain has made his home on the Sunshine Coast, BC, where he teaches contemporary dance and yoga. He has worked with more than 40 choreographers and as a soloist, has a repertoire of uncommon eclecticism. Sylvain’s appearances as a dance performer are selective & are savoured with a deepened sense of thanksgiving. His scope as a dance teacher ranges from the university program to recreational, including high schools. His yoga practice feeds his dance, and is founded on over 20 years of exploration into the human body and movement.<br /><br />Peggy Baker created a solo for Sylvain Brochu, Yang, in 1998, and Sylvain has taught yoga at Peggy Baker Dance Projects’ annual August Intensive since 2004.";

member[3][0] = "Andrew Burashko";							// Andrew Burashko 					- #3
member[3][1] = "Pianist ";
member[3][2] = "2";
member[3][3] = "Andrew Burashko made his debut at the age of seventeen with the Toronto Symphony Orchestra and has since established himself as one of the most sought-after soloists in Canada. Known for his eclectic repertoire and unique programming, Mr. Burashko has performed with most of the Canadian orchestras, including eight seasons with the Toronto Symphony, collaborating with conductors Marin Alsop, Andrew Davis, Jukka-Pekka Saraste and Pinchas Zukerman among many others. As a soloist he has performed extensively throughout Canada , the United States, and Europe. Mr. Burashko's musical dexterity and passion for artistic experimentation have now brought him to the artistic directorship of the Art of Time Ensemble, a chamber music society comprised of the best musicians on the Canadian scene. Since 1998, Art of Time Ensemble has been committed to building a new and younger audience for classical music. Mr. Burashko has recorded for CBC SM5000, Naxos, and Centerdisc labels, and his recording of Prokofiev’s 6th Sonata and Romeo and Juliet suite has been released on the Opening Day label. He is regularly heard on CBC Radio, and is presently a member of the faculty at the Glenn Gould Professional school in Toronto.<br /><br />Andrew Burashko has regularly collaborated and performed with Peggy Baker since she began her solo company in Toronto in 1991.";

member[4][0] = "Sarah Chase";						// Sarah Chase					- #4
member[4][1] = "Choreographer";
member[4][2] = "8";
member[4][3] = "Sarah Chase is a Canadian independent dancer and choreographer who has gained international acclaim. Primarily she works as a solo dance artist presenting her own work in Canada and on tour across Europe. She also performs in Europe with Montreal-based Benoît Lachambre’s Dance par B. Lieux, for Belgian choreographer Alexander Baervoets and German choreographer Raimund Hoghe. In the past few years Sarah Chase has been commissioned to create work for several independent dancers as well as for Toronto Dance Theatre and the School of the Toronto Dance Theatre. She has created The Falcom and the Walmer for Kate Alton, (Overall Dance), Contralateral Duets for Four Chambers Dance Projects and Crazy Motels Holy for Toronto Dance Theatre (Four at the Winch). Two of her early autobiographical works, Lamont Earth Observatory and Muzz have toured extensively across Canada and abroad, and her latest creation, Bird, has received wide critical acclaim.<br /><br />In 1997, Peggy Baker choreographed Garland for Sarah Chase, and in 2004, Chase created The Disappearance of Right and Left for Baker, a unique autobiographical work incorporating text and movement. ";

member[5][0] = "Denise Clarke ";						// Denise Clarke 					- #5
member[5][1] = "Choreographer";
member[5][2] = "7";
member[5][3] = "Denise Clarke began working with One Yellow Rabbit (OYR) in 1983 and became Associate Artist and a permanent member of the Ensemble in 1986. She has created or co-created several shows with the company including The Erotic Irony of Old Glory, Touch, CD Dance, Breeder, So Low, Permission, Featherland, Sign Language and Heavens to Murgatroid. Denise created and became director of the OYR Summer Lab Intensive School in 1997. She continues to teach, give master classes, and lecture, most recently at the University of Regina, Queens University, UC-Drama at the University of Toronto and the Quebec Drama Federation.<br /><br />Other work includes choreography for Theatre Calgary and Alberta Theatre Projects in Calgary, Edmonton’s Citadel Theatre, Crows Theatre and the Canadian Stage Company in Toronto. She has toured extensively in OYR shows including Ilsa, Queen of the Nazi Love Camp, Mata Hari: Tigress at the City Gates, Doing Leonard Cohen, Thunderstruck, Sign Language and Dream Machine.<br /><br />Denise Clarke was commissioned by Peggy Baker to create a new work for the 2007/08 season, featuring duet partner, Larry Hahn.";

member[6][0] = "Molissa Fenley ";						// Molissa Fenley 					- #6
member[6][1] = "Choreographer ";
member[6][2] = "5";
member[6][3] = "Molissa Fenley is a post-modern dancer and choreographer who has championed the values of pure dance and formal choreography through a rich and impressive body of work. Born in Nevada, Fenley grew up in Nigeria and lived in Spain before returning to the U.S. where she graduated from Mills College in 1975. She moved to New York City and formed Molissa Fenley and Dancers in 1977. Her career of choreographing and presenting her work has developed in cycles. During her first ten years (1977-1987) she focused on presenting group works, performed by herself and an ensemble of dancers. In the second ten years (1987-1997) her work shifted to solo performances created in collaboration with contemporary visual artists and composers. Now, in another cycle, she is once again exploring the dynamics of ensemble work. Her dances have also been performed by Bill T. Jones/Arnie Zane Company, Peggy Baker Dance Projects, Australian Dance Theatre, Ohio Ballet, Deutsche Oper Ballet of Berlin and New York City Ballet principal dancer Peter Boal among many others. In 2003 she was commissioned by the Korea/Japan Performing Arts Exchange Association with performances in Seoul and Tokyo. She has been honoured with two Bessies, New York Dance and Performance Awards, for her choreography.<br />Colleagues from Peggy Baker's New York years, Molissa Fenley created Inner Enchantments (1991) and Savanna (1995) for Baker, and has created a new solo for Peggy entitled Dreaming Awake to premiere in Peggy Baker Dance projects’ 3 season in 2008.";

member[7][0] = "Paul-André Fortier";							// Paul-André Fortier 						- #7
member[7][1] = "Choreographer ";
member[7][2] = "0";
member[7][3] = "Paul-André Fortier’s talents as a creator, performer and teacher have made him one of the leading figures in Canadian contemporary dance. He discovered dance in 1973, after having taught theatre and literature, and decided to dedicate his life to this art. He joined the group Nouvelle Aire, a veritable wellspring of talent that produced a whole generation of Quebec choreographers like Ginette Laurin, Édouard Lock, Daniel Léveillé etc. Derrière la porte un mur, created in 1978, marked the beginning of a prolific and intensive career as a choreographer, confirmed by works such as Fin (1981), Pow! t’es mort (1982), the trilogy of Les Males Heures, La Tentation de la transparence, Bras de plomb (1989 to 1993), Tensions (2001), Risque (2003), and Lumière (2004). In 1981 he founded Fortier Danse-Création, then in 1986 with Daniel Jackson, Montréal Danse company, for which he provided artistic direction for three years. He joined the faculty of Université du Québec à Montréal in 1989, where he taught in the dance department until 1999. Always interested in the crossover between different generations and art forms, he regularly features young dancers in his work, as well as other artists, notably visual artists Betty Goodwin and Pierre Bruneau, composer Alain Thibault, and lighting designer John Munro. Over the course of his career, Paul-André Fortier has created 40 choreographies. He is now choreographer in residence at Cinquième Salle of Place des Arts in Montreal.<br /><br />Paul-André Fortier cast Peggy Baker in his work La part des anges in 1998, and in 2000 he created a full evening work for her entitled loin, trés loin. Also in Baker's repertoire is Fortier's 1983 acclaimed work, originally created for Susan Macpherson, Non Coupable.";

member[8][0] = "Larry Hahn";							// Larry Hahn					- #8
member[8][1] = "Dancer";
member[8][2] = "6";
member[8][3] = "Larry Hahn has had the pleasure of working with a wide array of choreographers in New York and San Francisco, chief among them Senta Driver, Gus Solomons Jr., Catlin Cobb, Margaret Jenkins, Bill Young, Mark Morris and Allyson Green. He was a member of Doug Varone and Dancers from 1988 to 2003, creating roles in virtually every company dance. Most recently he was featured in two New York projects choreographed by Varone, Le Sacre du Printemps for the Metropolitan Opera and Aquila Theatre’s Off-Broadway production of The Invisible Man. During the last ten years Mr. Hahn has also developed a business designing and constructing sculptural light forms and furniture. Larry is the recipient of a 1996 New York Dance and Performance Award (Bessie) for his work with Doug Varone and Dancers.<br /><br />Larry Hahn first partnered with Peggy Baker in Doug Varone's In Thine Eyes in 2000. He danced with Peggy Baker Dance Projects in New York in Varone's Home in 2003 and again in 2006 for performances of In Thine Eyes in Calgary, Québec City, Montreal, Toronto and Winnipeg. He is featured with Peggy Baker in the new commissioned duet from Denise Clarke, Radio Play, which will premiere at the 2008 Canada Dance Festival in Ottawa.";

member[9][0] = "James Kudelka";						// James Kudelkda					- #9
member[9][1] = "Choreographer";
member[9][2] = "4";
member[9][3] = "James Kudelka is one of North America's foremost dance artists, universally respected for the quality and depth of his work. As a choreographer, he has the rare ability to marry classical tradition with modern movement and is recognized for his remarkable talent in combining both idioms. Having graduated from the National Ballet School, Kudelka joined the National Ballet of Canada. In 1981, he joined Les Grands Ballets Canadiens in Montreal as a Principal Dancer and was the company's Resident Choreographer from 1984 to 1990. During this time, between Les Grands Ballets Canadiens and other commissions, he created numerous ballets, his work steadily maturing in the perceptions and intelligence which distinguishes its character today. A remarkably prolific choreographer, he has created over 70 ballets, many of the most recent for the National Ballet of Canada, where he was Artistic Director from 1996 – 2005 and continues as Resident Choreographer.<br /><br />James Kudelka created a duet for Peggy Baker and Sylvain LaFortune in 1990 entitled Romeo and Juliet Before Parting; a solo for Baker in 1991, This isn't the End; and Palleas and Melisande in 1997 with Baker and the Toronto Symphony Orchestra. He has since performed with Baker in Doug Varone's Home, and created a duet for Baker and Larry Hahn entitled A Woman By A Man, which will premiere in 2008.";

member[10][0] = "Caroline O'Brien";						// Caroline O'Brien					- #10
member[10][1] = "Costume Designer";
member[10][2] = "0";
member[10][3] = "A native of Ireland, Caroline O’Brien has nurtured a passion for textiles from an early age. The simple elegance of her work and her intrinsic ability to enhance the lines of the dancer and the mood of the dance can be seen in her design collaborations with numerous national and international choreographers including James Kudelka, Yvonne Ng, John Neumeier, John Alleyne, Dominique Dumais and Serge Bennethan, as well as several works with Matjash Mrozewski. In addition to designs for the stage, Caroline is also an award- winning sculptor and is frequently sought after for original creations in evening attire. Based at The National Ballet School in Toronto, she is a member of the Associated Designers of Canada and is a frequent guest lecturer at Dalhousie University in Halifax.<br /><br />Caroline O'Brien is a regular collaborator with Peggy Baker, having designed more than 15 costumes for works in her repertoire since 1988.";

member[11][0] = "Marc Parent";						// Marc Parent				- #11
member[11][1] = "Lighting Designer";
member[11][2] = "0";
member[11][3] = "Marc Parent has worked as a lighting designer for 20 years, creating more than one hundred designs. Since 1990 Marc has lit most of Peggy Baker's solo work, as well as designing all of Danièle Desnoyers' repertoire for Le carré des lombes, and for many choreographers of the contemporary dance scene in Montreal. Many of his designs have been seen over the years in Toronto, including The Haman/Navas Project of compagnie Flak / José Navas, Te souvient-il? by Louise Bédard / Sylvain Émard, 51 pieces of silver by Marie-Josée Chartier and Novecento a play directed by François Girard presented at The World Stage. He is currently resident lighting designer for Les grands ballets canadiens de Montréal. As a self-taught designer, Marc has earned public and critic recognition around the world for his exceptional works.<br /><br />Marc Parent is a regular collaborator with Peggy Baker, having lit more than 20 works in her repertoire since 1988.";

member[12][0] = "Shauna Rolston";						// Shauna Rolston					- #12
member[12][1] = "Cellist";
member[12][2] = "10";
member[12][3] = "One of Canada’s most celebrated musicians, Shauna Rolston has been captivating audiences with her passion for music since the age of two. She made her Town Hall debut in New York City at the age of 16, and she continues to perform regularly around the world, in recital and concerto engagements. Following the completion of her studies at Yale University with the distinguished cellist and pedagogue Aldo Parisot, where she earned a BA in History of Art and a Masters of Music, Shauna joined the faculty at the University of Toronto as a professor of cello and co-head of the string department. She has toured to Finland and Iceland with Her Excellency Adrienne Clarkson, Governor General of Canada, as a member of her delegation, and performed with the China Philharmonic at the Casals Festival in Puerto Rico, and with the Utah, Winnipeg and Toronto Symphonies. She has had work written for her by composers including Oskar Moraweta, Jean Coulthard, Violet Archer, Bruce Mather, Christos Hatzis, Kelly-Marie Murphy, Chan Ka Nin, and Heather Schmidt. Shauna is also a visiting artist at the Banff Centre for the Arts.<br /><br />Shauna Rolston first performed with Peggy Baker in 2000 in Words Fail. She has since collaborated with Baker on Tedd Robinson's 2003 work The Transparent Recital, and has recorded Song of Songs by Karen Tanaka as the score to Baker's latest choreography, Krishna's Mouth.";

member[13][0] = "Doug Varone";							// Doug Varone						- #13
member[13][1] = "Choreographer";
member[13][2] = "3";
member[13][3] = "Doug Varone is a choreographer of contemporary dance for the concert stage, as well as opera, Broadway, regional theater, film and television. He is the artistic director of Doug Varone and Dancers, which he established in 1986 as an opportunity to explore and process his particular choreographic vision. The company tours extensively through the United States, Europe, South America and Asia, performing regularly at prominent venues and festivals such as: Lincoln Center, The Joyce Theater, The Kennedy Center for the Performing Arts, Queen Elizabeth Hall in London, Moscow’s Stanislavky Theater, The Venice biennale; and The Jacob’s Pillow and American Dance Festivals. Varone is the recipient of numerous honors including a Guggenheim Fellowship and a New York Dance and Performance Award (Bessie) for Sustained Achievement in Choreography. His opera credits include productions for the Metropolitan Opera, New York City Opera, Washington Opera and Opera Colorado. Theatre credits include Triumph of Love (Broadway), as well as productions at Baltimore’s Center Stage, Yale Repertory Theatre, Walnut Street Theatre, Music Theatre Group, and The Vineyard Theatre. He attended Purchase College, where he received his Bachelor’s Degree in Fine Arts.<br /><br />Peggy Baker has commissioned two duets from Doug Varone: The Volpe Sisters (1989), and Heaven (2003). She has also acquired two duets for her company’s repertoire: Home (1988) and In Thine Eyes (1996).";

member[14][0] = "Sahara Morimoto";							// Sahara Morimoto						- #14
member[14][1] = "Artistic Associate/Pilates Instructor";
member[14][2] = "0";
member[14][3] = "Born in Tokyo, Japan, Sahara Morimoto is a graduate of Canada’s National Ballet School. In 2004/05, while training at the Rotterdam Dance Academie, she worked with choreographers Douglas Bateman, Michael Crotty, Jérôme Meyer, Aida Redza, and in a creation of Itzik Galili for the International Theatre School Festival. In Canada, Sahara has danced with the Canadian Children’s Dance Theatre, Divertimento Professional Project in 2004, and with Toronto Dance Theatre during fall 2005. She has continued her studies though various workshops presented by Series 8:08 and Doug Varone and Dancers. Over the last few years Sahara has had the privilege of working closely with Peggy Baker, and joined the company as Artistic Associate in January 2008. Sahara performed as part of Peggy Baker Dance Projects' 2008 Toronto Portal program in Baker's 1998 work Yang, she and will lead the Pilates course component in this year's August Intensive.";

member[15][0] = "Debashis Sinha";							// Debashis Sinha						- #15
member[15][1] = "Composer, Musician";
member[15][2] = "0";
member[15][3] = "For many years known as a percussionist and composer with a number of Canada’s premiere intercultural music pioneers, Sinha is forging a name for himself in the world of audio, solo performance, and new media art. Most often Sinha creates his works through a directed focus on distilling the elements of his sources into their component parts of light and sound. To him, this distillation is an expression of his own South Asian heritage, a gesture that infuses the form of classical Indian music (with its elements of mindfulness and improvisation) with content created from his own experience growing up in/between cultures and his eclectic skill set as sound designer, video maker, and musician. Through presenting and dissecting source material he re-contextualizes our perceptions and brings to the fore our expectations about sound, light, and the possibilities of identity.";
}

function fillBIOdivs(current_member){
	InitBioData();	

	var finalTEXT = " "
	var iBIOname = " ";
	var iBIOtitle = " ";
	
	var temp1 = 0;
	
	var alphabetical_list = new Array(member_order.length);
	
	var toFILL = '';

	for (i=0; i < member_order.length; i++) {
		temp1 = member_order[i];
		if (current_member != temp1){
			alphabetical_list[i] = member[temp1][0];
			alphabetical_list[i] = '<a href="bio_template.html?member='+temp1+'">' + member[temp1][0] + '</a><br />';
		} else {
			alphabetical_list[i] = member[temp1][0];
			alphabetical_list[i] = '<span class="simple_fonttype_bullet">' + member[temp1][0] + '</span><br />';	
		}
		toFILL = toFILL + alphabetical_list[i];
	}
	
	document.getElementById("biography_alphabetical_list_div").innerHTML = toFILL;
	
	iBIOname = '<span class="green_bioname_font">' + member[current_member][0] + '</span><br /><br />';
	iBIOtitle = '<strong>'+member[current_member][1]+'</strong><br /><br />';
	finalTEXT = member[current_member][3];
		if (current_member != 0){
				finalTEXT = iBIOname + iBIOtitle + finalTEXT;
		document.getElementById("white_submenu_content_scrollable").innerHTML = finalTEXT;
		}
		
	toFILL =  "";
	var full_member_number;
	var portrait_list = new Array(portrait_total_count+1);
	for (i=1;i<portrait_total_count+1;i++){
		portrait_list[i] = 0;
	}
	var temp2 = 0;

	for (i=1; i <= member_order.length; i++) {
		temp2 = member[i][2];
		portrait_list[temp2]= i;
	}
	
	for (i=1;i<portrait_total_count+1;i++){
		if (i < 10) {
			full_member_number = "0" + i ;
		} else {
			full_member_number = i;	
		}
		if (current_member != portrait_list[i]){
			toFILL = toFILL + '<a href="bio_template.html?member='+portrait_list[i]+'"><img src="portraits/port_'+full_member_number+'.jpg" alt="Portrait" width="80" height="116" border="0" /></a>';
		} else {
			toFILL = toFILL + '<img src="portraits/hl_port_'+full_member_number+'.jpg" alt="Portrait" width="80" height="116" border="0" />';
		}
	}
	document.getElementById("portrait_row_div").innerHTML = toFILL;
}

function getValue(varname)
{
  // First, we load the URL into a variable
  var url = window.location.href;

  // Next, split the url by the ?
  var qparts = url.split("?");

  // Check that there is a querystring, return "" if not
  if (qparts == url)
  {
    return "";
  }

  // Then find the querystring, everything after the ?
  var query = qparts[1];

  // Split the query string into variables (separates by &s)
  var vars = query.split("&");

  // Initialize the value with "" as default
  var value = "";

  // Iterate through vars, checking each one for varname
  for (i=0;i<vars.length;i++)
  {
    // Split the variable by =, which splits name and value
    var parts = vars[i].split("=");
    
    // Check if the correct variable
    if (parts[0] == varname)
    {
      // Load value into variable
      value = parts[1];

      // End the loop
      break;
    }
  }
  
  // Convert escape code
  value = unescape(value);

  // Convert "+"s to " "s
  value.replace(/\+/g," ");

  // Return the value
  return value;
}