
var count = 1;

var types = 
{
1:"Memoir",
2:"Commentary",
3:"Memoir",
4:"Memoir",
5:"Literary Criticism",
6:"Commentary",
7:"Fiction",
8:"Fiction",
9:"Fiction",
10:"Fiction"};

var links = 
{
1:"memoir.php",
2:"commentary.php",
3:"memoir.php",
4:"memoir.php",
5:"memoir.php",
6:"commentary.php",
7:"in-progress.php",
8:"novels.php",
9:"in-progress.php",
10:"novels.php"};

var sources = 
{
1:"<em>Breathing Under Water</em>, Work in progress",
2:"<em>Working Woman</em>",
3:"<em>London Review of Books</em>",
4:"<em>Ghost Life</em>",
5:"<em>London Review of Books</em>",
6:"<em>New York Times</em>",
7:"<em>Expiration Dates</em>",
8:"<em>Black Box</em>",
9:"<em>Expiration Dates</em>",
10:"<em>Black Box</em>"};

var quotes = {
1:"I got fired from my Wall Street job for wearing a pink dress. A dress for springtime and sunny days, a dress like a flower, a dress that against your skin, reminds you that you are, after all, still a woman...",
2:"I work at a Family Friendly corporation. We turn up on every magazine's list of the best companies for women to work. My chain of command up to the E.V.P level, is all female. Women make up 60% of the workforce and 40% of management. And in my particular department, it's the men who sometimes feel short shrifted...",
3:"It always felt like a war zone to me. The huge, monolithic buildings. The dearth of sunlight, the vast barren stretches of concrete, the foreign, giant-scale money culture...",
4:"I am a ghost. You may have seen me in the supermarket, on a park bench, standing in line next to you at the library. I walk beside you. But I am not really in the world...",
5:"Getting the world of work right in fiction is difficult. Get bogged down in mundane details and you risk boring the reader. Fail to give it the weight it deserves and you lose credibility. It deserves a lot of weight...",
6:"It is high time for Sylvia Ann Hewlett and feminist pundits like her to stop speaking for women as a whole. Being a mother is a job. Having a career is a job. It is not reasonable to urge women to 'do it all.' In any business, company, profession, only a few people make it to the top. Why doesn't Hewlett focus on the vast majority in the middle and the bottom who don't crave superiority, but merely a livable life?...",
7:"Gina went through life in a fog, making one bad pipe dream decision after another. That was the conclusion Rachel came to after listening to her best friend for five minutes over lunch.",
8:"Gavin looked at Susannah and the men. Her skin had an iridescent quality, and a light seemed to shine through her eyes. All this flowering youth, he decided, allotted her more space here than she was entitled to.",
9:"Gina hadn't minded being bothered by the guys. What she minded was being asked to testify against them. After months of strained loyalties, she took a package and left. On some level, she suspected Rachel never forgave her.",
10:"He had been speaking figuratively, when he told the American girl he?d been married. To have been entirely faithful to someone for six years, as he?d been to Lizzie, was more than any of his legally wed friends could claim."};

$(document).ready(function() {
	
	
	$("div.type").html("");
	$("div.source").html("");
	$("div.quote").html("");
	$("div.type").html(types[1]);
	$("div.source").html(sources[1]);
	$("div.quote").html(quotes[1] + " <a href='/" + links[1]  + "'>Read More ></a>");
	setTimeout("getNextQuote()", 12000);
	
	$("img.cover").dropShadow({left: 5, top: 5, blur: 5, color: "#666"});
            
               $("input#quiz").click(function() {
                    $("dd.answer").slideDown();
                    $("input#quiz").css("display","none");
               });


});

function getNextQuote() {
	count++;
	$("div.type").fadeOut('slow');
	$("div.source").fadeOut('slow');
	$("div.quote").fadeOut('slow');
	setTimeout("changeQuote()", 1000);	
}

function changeQuote() {
	if (count >= 10) { count = 1 };
	$("div.type").html(types[count]);
	$("div.source").html(sources[count]);
	$("div.quote").html(quotes[count] + " <a href='" + links[count]  + "'>Read More ></a>");
	$("div.type").fadeIn('slow');
	$("div.source").fadeIn('slow');
	$("div.quote").fadeIn('slow');
	setTimeout("getNextQuote()", 12000);
}
