//Dan's random quote generator

function UpdateQuote(){
	// total number of quotes
	// sample link -- quotes[x] = "<a href = \" http://www.yahoo.com\" target = \"_blank\" >Yahoo</a>";

	var totalnumquotes = 22
	var quotes = new Array(totalnumquotes);

	quotes[0] = "... sometimes, investing in usability is bad for business. sometimes, the usability of a product doesn't affect customers' purchasing decisions. Sometimes, understanding business means ignoring or even purposefully crippling the usability of products, software and systems. -- Enemies of Usability, Peter Morville";
	quotes[1] = "If a feature can be implemented in two or more ways, select the one that is most intuitive for the user. It’s likely also the most intuitive to implement and maintain as well. ... The user will thank you and the extra effort always pays off in the long run. -- 10 Rules to Code By, Cam Turner";
	quotes[2] = "In Western societies, people read left to right and top to bottom. Because people are used to this, should you design screens that are also organized left to right and top to bottom... -- Scott Ambler, Agile Modeling author";
	quotes[3] = "Consistency in your user interface enables your users to build an accurate mental model of the way it works, and accurate mental models lead to lower training and support costs. -- Scott Ambler, Agile Modeling author";
	quotes[4] = "Whenever possible, instead of talking about what the user can do or what the software should do, talk about what the user does and what the software does. -- The Yucan, Your 2nd-Best Friend, Mark L. Levinson";
	quotes[5] = "The criticality of correct, complete, testable requirements is a fundamental tenet of software engineering. -- Doing Requirements Right the First Time! Theodore Hammer et all";
	quotes[6] = "...the appropriate use of color, field alignment, text wording, consistent field design and the appropriate use of user interface widgets go a long way to the development of good user interfaces.  -- Scott Ambler, Agile Modeling author";
	quotes[7] = "... adjectives and adverbs make claims; nouns and verbs report facts. Most readers recognize claims immediately and strain any claims that appear extravagant through their natural skepticism. On the other hand, they tend to accept reasonable statements of fact without hesitation. The Bold Approach: How Reporting the Facts Can Invigorate Your Writing -- by Herman Holtz";
	quotes[8] = "Most software products are designed for (the few) users who understand its conceptual model and have mastered common procedures. For the majority of customer, each feature or procedure is a frustrating, unwanted puzzle. -- Microsoft Inductive User Interface Guidelines";
	quotes[9] = "... superficial simplicity disguising sophisticated functionality... -- Inside Google's Design Process, Helen Walters"; 
	quotes[10] = "Just enough” doesn’t mean 'this will do'. -- Gordon McLean, One Man Writes";
	quotes[11] = "...user-centered design is consistently related to Web 2.0 definitions. Where Web 1.0 merely served information blindly, Web 2.0 gives users a chance to interact with the information and each other using the web.";
	quotes[13] = "The site specification document is crucial to creating a successful site, as it is both the blueprint for your process and the touchstone you'll use to keep the project focused on your agreed goals and deliverables. -- Website: Steps to take before you begin, Chad."; 
	quotes[14] = "The customer doesn't expect everything will go right all the time; the big test is what you do when things go wrong. -- Sir Colin Marshall";
	quotes[15] = "The first law of e-commerce is that if user cannot find the product, they cannot buy it. -- Jakob Nielsen";
	quotes[16] = "Design is basically problem solving under constraints: you must design a system that can actually be built, that's within budget, and that works in the real world. Usability adds one more constraint: the system must be relatively easy for people to use. -- Jakob Nielsen";
	quotes[17] = "Interface design is about making money for the company. Execution and workmanship are what you need, not fashion and advanced features. Do the basics, and do them well. -- Jakob Nielsen"; 
	quotes[18] = "Users don't care about technology and don't especially want new features. They just want quality improvements in the basics: 1)text they can read, 2) Content that answers their questions, 3) Navigation and search that help them find what they want, 4) Short and simple forms (streamlined registration, checkout, and other workflow). 5) No bugs, typos, or corrupted data; no linkrot; no outdated content. -- Jakob Nielsen";
	quotes[19] = "Remember how brains work: There's nothing our brains like so much as order and meaning. Remember how eyes move: we're trained from the moment we start reading to scan from left to right, starting from the top left of the page and working down to bottom right. Remember you're here to communicate, not decorate: Headlines, subheads, body copy point size, pictures, colours - all are used to 'signpost' the route the good designer wants the reader to take through the material placed before him. -- Don't Decorate, Communicate, Phil Brisk";
	quotes[20] = "How real people use web pages: They move quickly because they don't like looking at the screen. They're impatient - they tend to click the first promising link, and often don't wait for pages to finish loading. They don't like to read, scanning text quickly for clues. They're looking for things to help them do what they want to do.";
	quotes[21] = "... sometimes, investing in usability is bad for business. sometimes, the usability of a product doesn't affect customers' purchasing decisions. Sometimes, understanding business means ignoring or even purposefully crippling the usability of products, software and systems. -- Enemies of Usability, Peter Morville";
	
    var randomnumber=Math.floor(Math.random()*(totalnumquotes));
    document.getElementById('quote1').innerHTML = quotes[randomnumber];

    randomnumber=(randomnumber + 1) % totalnumquotes;
    document.getElementById('quote2').innerHTML = quotes[randomnumber];

    randomnumber=(randomnumber + 1) % totalnumquotes;
    document.getElementById('quote3').innerHTML = quotes[randomnumber];
}

