// JavaScript Document
function createQuote(){

	var quoteArray = new Array(
							   
 		"Don't give them what they want, give them something better",
		"Genius is 1% inspiration and 99% perspiration",
		"The important thing is not to stop questioning",
		"The best way to predict the future is to invent it",
		"Everything should be made as simple as possible, but not simpler",
		"Place is not given, it is made",
		"If I had asked my customers what they wanted, they would have said a faster horse",
		"If I had 20 days to solve a problem, I would take 19 days to define it",
		"The only thing more expensive than hiring a professional is hiring an amateur",
		"Telling the truth about a product demands a product worth telling the truth about",
		"Rules are what the artist breaks; the memorable never emerged from a formula",
		"It would be a sad situation if the wrapper were better than the meat wrapped inside it. (referring to clothing)",
		"You recover from recessions with tomorrow's products, not today's",
		"Discovering problems actually requires just as much creativity as discovering solutions",
		"Innovation comes from places that you don't expect"
		
		
	)
	
	var sourceArray = new Array(
		"Lord Reith, former Director General, BBC",
		"Inventor Thomas A. Edison",
		"Physicist Albert Einstein",
		"Pioneer of the Graphical User Interface (GUI) Alan Kay",
		"Physicist Albert Einstein",
		"Malcolm McCullough, author on design and IT",
		"Henry Ford",
		"Physicist Albert Einstein",
		"Red Adair, American oil field fire fighter",
		"Bill Bernbach, legendary advertising executive",
		"Bill Bernbach, legendary advertising executive",
		"Physicist Albert Einstein",
		"Sean Maloney, senior vice president, Intel",
		"Scott Berkum, author on innovation",
		"Eric Schmidt, CEO Google"

	)
	
	var howManyQuotes = quoteArray.length - 1;
	var randomNumber = Math.round(Math.random() * howManyQuotes)
	var newQuote = quoteArray[randomNumber]
	var newSource = sourceArray[randomNumber]
	
	document.write('<span class="quoteBody">&#8220;' + newQuote + '&#8221;</span><span class="quoteSource"><br>' + newSource + '</span>')

	return true;
}

// Testimonials

function createTestimonial(){

	var quoteArray = new Array(
							   
		"For Perks, Web design mantras such as customer-as-king, the customer being one click away from the competition, and &#8220;keep it simple, stupid&#8221;, are part of a safety-first philosophy that is inimical to genuine innovation.",
		"The event <strong>'<a href=http://www.battleofideas.org.uk/index.php/site/session_detail/542/>Design in Denial</a>'</strong> hosted by the Design Museum which I produced and chaired sold out!",
		"In 2002 I debated world famous usability guru <a href=http://www.sensible.com/>Steve Krug</a> (author of <em><strong>Don't Make Me Think!</strong></em>) on innovation versus usability. Read what <i><a href=http://www.usabilitynews.com/news/article509.asp>Usability News</a></i> had to say...",
		"My article '<strong><a href=http://www.spiked-online.com/index.php?/site/article/4123/>Tracing the history Helvetica</a></strong>' included in December 2007 edition of <em><strong><a href=http://www.boldtype.com/155353>Boldtype</a></strong></em>",
		"I co-authored '<strong>What Use for Usability</strong>' with Professor James Woudhuysen for <em>Cre@te Online</em> magazine in 2002. It was the first critique of the new media industry's obsession with usability",
		"My article <i><a href=http://www.spiked-online.com/index.php?/site/article/4501/>Why we should swat The Mosquito</a></i> selected by The Times newspaper's comment editor Daniel Finelestein, in his '<i><a href=http://timesonline.typepad.com/comment/2008/02/todays-web-gr-9.html>Rolling guide to opinion on the web</a></i>'",
		"Perks questions the function and social worth of design. So do we. We have never claimed to be able to reverse the social causes of crime, but amazingly we do think that design can contribute more than another useless over-priced lemon squeezer to the world. Our aim at the Design Against Crime Centre is to strengthen individual liberty and movement, so that cyclists and those travelling about town feel, and are, less vulnerable."
					
		)
	
	var sourceArray = new Array(
		"James Woudhuysen, <i><a href=http://www.itweek.co.uk/Analysis/1132275>IT Week</a></i>",
		" ",
		" ",
		" ",
		" ",
		" ",
		"Professor Lorraine Gamman, director of Design Against Crime Centre, making big claims for design. Previously I argued why design should not be scapegoated in tackling cime.<i><a href=http://www.spiked-online.com/index.php?/site/article/5365/>Read more on the debate</a></i>"		
		
		)
	
	var howManyQuotes = quoteArray.length - 1;
	var randomNumber = Math.round(Math.random() * howManyQuotes)
	var newQuote = quoteArray[randomNumber]
	var newSource = sourceArray[randomNumber]
	
	document.write('<span class="quoteBody">&#8220;' + newQuote + '&#8221;</span><span class="quoteSource"><br>' + newSource + '</span>')

	return true;
}