var authors	= {
	'anderson' :	"<strong>M.T. Anderson's</strong> satirical science fiction novel <i>Feed</i> was a finalist for the National Book Award and winner of the <i>LA Times</i> Book Award; his Gothic historical novel <i>The Astonishing Life of Octavian Nothing, Volume One</i>, won the National Book Award and the <i>Boston Globe/Horn Book</i> Award. He has also written music criticism, picture books, and stories for adults. For many years, he was fiction editor of <i>3rd bed</i>, a journal of experimental poetry and prose.",
	'black' :		"<strong>Holly Black</strong> is the bestselling author of several contemporary fantasy novels for younger and older readers, including <i>Tithe  Valian, Ironside, The Spiderwick Chronicles</i>, and the graphic novel series, The Good Neighbors. She is an unrepentant geek, having met her husband when they were rival Dungeon Masters and currently living in a house with a secret library hidden behind a bookshelf.",
	'bray' :		"<strong>Libba Bray</strong> is the author of the <i>New York Times</i> bestselling Gemma Doyle Trilogy, which includes the novels <i>A Great and Terrible Beauty, Rebel Angels</i>, and <i>The Sweet Far Thing</i>. She is also the author of the comedic novel, <i>Going Bovine</i>. Besides <i>Geektastic</i>, she has contributed stories to <i>Restless Dead, Up All Night</i>, and <i>Vacations from Hell</i>. Sometimes she tells people she's won the National Book Award, but then M. T. Anderson comes by and asks for his back, 'cause he's grabby like that. Libba is a longtime geek and is fluent in many geek languages including, but not limited to, theater geek, showtunes geek (yes, they are different), music geek, sci-fi TV geek, bad movies geek, &quot;Rocky Horror&quot; geek, campy geek, Hammer Horror geek, and <i>Valley of the Dolls</i> geek, which deserves a category all its own. As a teenager, she saw <i>The Rocky Horror Picture Show</i> every weekend for nearly two years. Any photos that surface of her in a gold lam&egrave; top, heavy eyeliner, and tap shoes are absolutely fabricated, especially if the subject in question is sporting a mullet.",
	'castellucci' :	"<strong>Cecil Castellucci</strong> is the author of three young adult novels&mdash;<i>Boy Proof, The Queen of Cool</i>, and <i>Beige</i>&mdash;and the Plain Janes graphic novel series. Her books have received starred reviews and been on the American Library Association's Best Books for Young Adults (BBYA), Quick Pick for Reluctant Readers, Great Graphic Novels for Teens, and the Amelia Bloomer lists. Cecil waves her geek flag high. She waited on the <i>Star Wars</i> Episode One line on Hollywood Boulevard for six weeks, she invited Batman to her fourth birthday party, and she has a collection of broken action figures.",
	'clare' :		"<strong>Cassandra Clare</strong> is the <i>New York Time</i> bestselling author of <i>City of Bones, City of Ashes</i>, and <i>City of Glass</i>. <i>City of Bones</i> was a 2007 <i>Locus</i> Award finalist for Best First Novel. She is also the author of the upcoming YA fantasy trilogy The Infernal Devices. She lives in Brooklyn, New York, with her boyfriend and two cats. She is also the author of the extremely geeky online Lord of the Rings parody <i>The Very Secret Diaries</i>.",
	'green' :		"<strong>John Green</strong> is the Printz Award-winning author of the novels <i>Looking for Alaska, An Abundance of Katherines</i>, and <i>Paper Towns</i>. He is also an unabashed fan of underappreciated roleplaying games, most particularly Teenage Mutant Ninja Turtles: The Game.",
	'greg' :		"<strong>Greg Leitich Smith</strong> channeled his student days at a math-science magnet high school into the Peshtigo School novels <i>Ninjas, Piranhas, and Galile</i> , which won a Parents' Choice Gold Award, and <i>Tofu and T. rex</i>, both published by Little, Brown. Greg has long been a fan of <i>Star Trek</i>, although he was disappointed as a child when he found out it was fiction and that we had only recently made it to the moon. The starship <i>Enterprise</i> (NCC-1701E) adorned his wedding cake. (The actual ceremony, alas, was not performed in Klingon.)<br/><br/><strong>Cynthia Leitich Smith</strong> is the author of <i>Tantalize</i>, which was a Borders Original Voices selection and a New York Public Library Book for the Teen Age, and its companion novel, <i>Eternal</i>. <i>Blessed</i>, a third book set in the universe, and a <i>Tantalize</i> graphic-novel adaptation are in the works. Cynthia also has written several YA short stories and award-winning books for younger readers. She teaches in the MFA program in Writing for Children and Young Adults at Vermont College. Back in the day, Cynthia and her husband Greg made a twice-weekly ritual out of each all-new <i>Buffy: The Vampire Slayer</i> or <i>Angel</i> episode and are now addicted to the comic adaptations. They both speak fluent &quot;Scooby.&quot;",
	'larson' :		"<strong>Hope Larson</strong> is the author and illustrator of several graphic novels, including <i>Gray Horses</i> and <i>Chiggers</i>. Her short stories have been featured in the <i>New York Times</i> and several anthologies, notably the Flight series and Image Comics' Tori Amos - inspired <i>Comic Book Tattoo</i>. Larson has been nominated for awards in the United States, Canada, and Europe, and is the recipient of a 2006 Ignatz Award and a 2007 Eisner Award. She holds a BFA from the School of the Art Institute of Chicago and lives in Asheville, North Carolina, with her husband and four cats. She used up all her geek points when she started drawing comics professionally.",
	'levithan' :	"All of the science facts in <strong>David Levithan's</strong> story had to be found and/or checked on the Internet. The English facts came from his head. Take out the Internet part, and you pretty much have a summation of his academic career from kindergarten through college. David's books include <i>Boy Meets Boy, The Realm of Possibility, Are We There Yet?, Marly's Ghost, Wide Awake, Love is the Higher Law</i>, and (with Rachel Cohn) <i>Nick &amp; Norah's Infinite Playlist</i> and <i>Naomi &amp; Ely's No Kiss List</i>. His next book is a collaboration with John Green, entitled <i>Will Grayson, Will Grayson</i>. He still remembers who wrote <i>Cry, the Beloved Country</i>, but has completely forgotten how to work a sine or a cosine.",
	'link' :		"<strong>Kelly Link</strong> is the author of the collection <i>Pretty Monsters</i>, as well as <i>Stranger Things Happen</i> and <i>Magic for Beginners</i>. She lives in Northampton, Massachusetts, with her partner, Gavin J. Grant. Together they run Small Beer Press and produce the twice-yearly zine <i>Lady Churchill's Rosebud Wristlet</i> as well as co-edit the fantasy half of <i>The Year's Best Fantasy and Horror</i>. Link's stories have won the Nebula, the Hugo, and the World Fantasy Awards. When she was in third grade, Kelly read the Lord of the Rings series eight times. Today she's a Katamari Damacy addict, and someone (Holly Black) is finally teaching her how to play D&amp;D.",
	'lyga' :		"<strong>Barry Lyga</strong> was a geek long before it was cool to be a geek, back when being a geek meant getting beat up on a regular basis, as opposed to selling that cool new Web app you wrote to a Silicon Valley start-up and retiring at twenty-five. In his time, he's been a comic-book geek, a role-playing geek, a computer geek, and a sci-fi geek, though never a Trekkie, Trekker, or a Whovian, because he has his limits. Barry is the author of <i>The Astonishing Adventures of Fanboy and Goth Girl</i> (called a &quot;love letter and a suicide note to comic books&quot;), <i>Boy Toy</i>, and <i>Hero-Type</i>. He's still a geek.",
	'lynn' :		"<strong>Tracy Lynn</strong> is the pseudonym for Elizabeth J. Braswell. Elizabeth was born in the United Kingdom, to her great surprise. When her parents returned to the United States, she stowed away in their baggage (mega geek points if you know who I stole this from). She is the author of <i>Snow and Rx</i>, and <i>The Nine Lives of Chloe King</i> as Celia Thomson, as well as numerous Disney Pirates of the Caribbean books.",
	'mass' :		"In her eighth grade yearbook, <strong>Wendy Mass</strong> was bestowed the dubious honor of Most Likely to Solve Rubik's Cube because she spent so much time fiddling with it instead of paying attention in class. Always fascinated by the night sky, she took Astronomy 101 in college. It was so complicated that she never got higher than 45 out of 100 on any exam. Fortunately, neither did anyone else and the professor graded on a curve. She got an A! She loves writing about astronomy now, and tries to make it so easy to understand that the reader will fall in love with it, too. Wendy is the author of eight novels for young readers, including <i>A Mango-Shaped Space</i> (about a girl with synesthesia), <i>Jeremy Fink and the Meaning of Life, Every Soul a Star</i>, and <i>Heaven Looks a Lot Like the Mall</i>. She lives in northern New Jersey, where she can be found staring up at the sky with her telescope, or down at the ground with her metal detector, hoping to find gold. She can do Rubik's Cube in less than two minutes.",
	'nix' :			"<strong>Garth Nix</strong> is the bestselling and award-winning author of more than seventeen novels, several role-playing magazine articles and scenarios, and an unpublished journal of the five-year Dungeons and Dragons campaign he ran between the ages of 11 and 16. A keen role-player in his student years, Garth was involved in running very large &quot;free-form&quot; role-playing events in the late 1970s and early 1980s in Australia, including the creation of a starport for 250 role-players in a school assembly hall. Long ago he also used to fight duels with PVC pipe swords while wearing a motorcycle helmet and several old leather coats that didn't provide much protection but did slow everything down. Garth is also deeply interested in computers, the weather, military history, strategy and role-playing games, fantasy and science fi ction, and many other highly geektastic subjects. Garth is married, with two children, and lives near a beach in Sydney, Australia.",
	'omalley' :		"<strong>Bryan Lee O'Malley</strong> was born in London, Ontario, Canada. In high school he joined choir, chess club, the trivia team, and the computer programming club, got his first job in order to purchase a Sega Genesis, attended LAN parties, played Starcraft from dusk 'til dawn while drinking Coke and eating pizza, tried to get his friends to read comic books that he thought were really cool, and hung out with the theater and band geeks. The head of the arts department still speaks of him fondly. O'Malley went on to become an award-winning cartoonist, with a film, <i>Scott Pilgrim vs. the World</i>, in development at Universal. He lives in the United States.",
	'yee' :			"In high school, <strong>Lisa Yee</strong> was a member of the varsity debate team, honor society president, and the student rep of the California Scholarship Federation's State Board. In an act of total geek rebellion, Lisa would cut class to go to the library. And once, during science, she threw her fetal pig over the balcony to see what would happen when it landed on someone. She never got caught and was later named Physiology Student of the Year. Lisa's been a TV writer/producer, written jingles, and penned menus for Red Lobster. The winner of the prestigious Sid Fleischman Humor Award and Thurber House Children's Writer-in-Residence, her books include <i>Millicent Min, Girl Genius, Stanford Wong Flunks Big-Time</i>, and YA novel <i>Absolutely Maybe</i>.",
	'westerfield' :	"<strong>Scott Westerfield</strong> still owns the original trio of staple-bound D&amp;D rulebooks, purchased when he was twelve, roughly the same time he went to his first fannish event: a Famous Monsters convention in New York City. Since then he's designed computer games, composed twelve-tone music, learned Esperanto, and ridden in a zeppelin. The geekiest thing he's done lately was to devise a tactical combat system for steampunk ironclads played with Lego miniatures. He is the author of the Uglies and Midnighters series, and the novels <i>So Yesterday, Peeps</i>, and <i>The Last Days</i>.",
	'zarr' :		"<strong>Sara Zarr</strong> is the author of two critically acclaimed novels for young adults, <i>Sweethearts</i> and <i>Story of a Girl</i> (a 2007 National Book Award finalist). She has also contributed to the anthologies <i>Does This Book Make Me Look Fat?: Stories about Loving - and Loathing - Your Body</i>, and <i>Jesus Girls: True Tales of Growing Up Female and Evangelical</i>. Sara exploded onto the theatrical scene in the role of a greedy bad girl in Linda Mar Elementary's original production, <i>Three for the Money</i>. She continued her career through high school as a passenger in <i>Anything Goes</i>, Theodosia in <i>Bone-Chiller!</i>, and Mollie in <i>The Mousetrap</i>. As an adult, she's appeared in <i>Alice in Wonderland; Oliver!; A Christmas Carol; Look Homeward, Angel</i>; and <i>Judevine</i>, and was a penlight-wearing stage crew member for many other shows. She met her husband while working backstage on a production of <i>Pinocchio</i>. Being married to him has been her favorite role to date."
};

var bioBubble	= null;
var bioContent	= null;
function showAuthorBio( authorId, elementId, toggleRight )
{
	// don't allow invalid author ids
	if (!authors[authorId])
	{
		alert('Invalid authorId passed to showAuthorBio: ' + authorId)
		return;
	}
	// ensure the talk bubble has been added to the DOM
	if ( bioBubble == null )
	{
		bioBubble		= document.createElement('div');
		bioBubble.id	= 'bio-bubble';
		bioContent		= document.createElement('div');
		bioContent.id	= 'bio-content';
		bioBubble.appendChild(bioContent);
		document.body.appendChild( bioBubble );
		bioBubble.onclick	= hideBubble;
	}
	// make the talk bubble visible
	bioBubble.style.display	= 'block';
	bioContent.innerHTML	= '<p>' + authors[authorId] + '</p>';
	// position the talk bubble based on the calling element
	var position			= Element.cumulativeOffset($(elementId));
	var dimensions			= Element.getDimensions(bioBubble);
	var dimensionsParent	= Element.getDimensions($(elementId));
	bioBubble.style.top		= ( position['top'] - dimensions['height'] + 30 ) + 'px';
	if (toggleRight)
	{
		bioBubble.className		= 'bio-right';
		bioBubble.style.left	= ( position['left'] + dimensionsParent['width'] - ( dimensions['width'] - 200 ) ) + 'px';
	} else {
		bioBubble.className		= 'bio-left';
		bioBubble.style.left	= ( position['left'] + dimensionsParent['width'] - ( dimensions['width'] - 20 ) ) + 'px';
	}
}

function hideBubble()
{
	if ( bioBubble != null )
		bioBubble.style.display	= 'none';
	
}
window.onload	= function() {
	document.body.onclick	= hideBubble;
}
