// Be careful with your arrays below. If the last item in the list has a trailing comma, IE will not execute the script.
//
//	var lead = [
//				{"skill" : "conducive tools", }, 
//				{"skill" : "conducive people" }
//	]; 	// Good
//
//	var lead = [
//				{"skill" : "conducive tools", }, 
//				{"skill" : "conducive people" },
//	]; 	// Bad. Will choke IE.
//

var quotes = [
	{"quote" : "<br />What advice can be found<br />in the Magic Sandbox?", "attribution" : "click to dig for ideas!"},
	{"quote" : "<br />Who needs a Magic 8-Ball<br />when you have a Magic Sandbox?", "attribution" : "click to dig for ideas!"},
	{"quote" : "<br />Get ready to kiss idea block goodbye...<br />BigDig has got great ideas for you to uncover!", "attribution" : "click to dig for ideas!"},
	{"quote" : "<br />You\'ll dig the advice found<br />in the Magic Sandbox", "attribution" : "click to uncover suggestions"}
];

var challenges = [
	/* Osborn Verbal Checklist */
	"substituting something.<br />Who else instead? What else instead? Other ingredient? Material? Process? Power? Place? Approach? Other tone of voice?",
	"adapting something to it.<br />What else is like this? What other idea does this suggest? What could you copy?<br />Whom could you emulate?",
	"modifying it. New twist?<br />Change meaning, color, motion, sound, odor, form, shape? Other changes?",
	"magnifying it.<br />What to add? More time? Greater frequency? Stronger? Higher? Longer? Thicker? Extra value? Plus ingredient? Duplicate?<br />Multiply? Exaggerate?",
	"putting it<br />to some other use.",
	"minifying it.<br />What can you subtract? <br />Smaller? Condensed? Miniature? Lower? Shorter? Lighter? Omit? Streamline? Split up? Understate?",
	"sleeping on it, (if you can).<br />Often solutions reveal themselves<br /> when your mind is fresh.",
	"reversing it. <br />Can you start from the desired result<br />and work your way back?",
	"reversing it. <br />Transpose positive and negative. How about opposites? Turn it backward. Reverse roles. Change shoes. Turn tables.<br />Turn the other cheek.",
	"rearranging it. <br />Interchange components? Other pattern?<br />Other layout? Other sequence? Transpose cause and effect? Change pace?<br />Change schedule?",
	"asking yourself<br />\"what if?\"",
	/* from Roger von Oech */
	"asking \"Why?\"<br />When you have that answer, ask why about that. Continue for three to five 'whys' and you'll find the core of the issue. Perhaps <i>this</i> is the challenge you should be solving.",
	"dropping an assumption. <br />What can you let go of? What unnecessary assumptions can you eliminate?",
	"looking to nature.<br />What patterns in nature can you borrow?",
	/* advice from KnowBrainer */
	"asking what might be<br />changed or improved.",
	"asking,<br />if the sky is the limit,<br />what might be possible?",
	"asking what might be fun, <br />humorous or crazy ideas.",
	/* advice from Free the Genie */
	"changing your space.<br />Go somewhere different, away from where you've been currently solving the problem.<br />A fresh location might give you<br />fresh perspective.",
	"looking at your problem through<br />someone else's eyes.",
	"giving up on perfection. <br />What if you moved forward even though<br />it's not totally ready? <br />What's the worst that could happen?",
	"finding another way. <br />What's your biggest obstacle?<br />Name three ways you can go over, around,<br />or through this obstacle.",
	/* Edges from Free Prize */
	"using a network<br />to connect users.",
	"creating events<br />that bring in new users and connect old ones.",
	"making<br />an invisible services visible.",
	"creating a sensation.",
	"saving users<br />an enormous amount of time.",
	"fortifying an exposed area.",
	"making<br />a product sensual.",
	"creating great design<br />or cheesy design.",
	"making<br />the static interactive<br />or making what is active, static.",
	"targeting<br />geeks or laggards.",
	"creating a new format<br />or rescuing and old one.",
	"making a product<br />that is very safe or very dangerous.",
	"leaving<br />something out.",
	"overbuilding<br />for the user's need.",
	"maximizing<br />or minimizing externalities.",
	"helping<br />a controversial cause<br />or hurt one.",
	"making<br />the invisible product visible.",
	"treating<br />different customers differently<br />or treating different customers the same.",
	"disrupting<br />or embracing industry standards.",
	"leveraging<br />an old sales force,<br />or building a new sales force.",
	"selling<br />to a new market<br />or selling a new product to your market.",
	"finding<br />an alternative retail channel.",
	"making a product<br />more convenient<br />or less convenient.",
	"minimalizing<br />or maximizing the packaging.",
	"selling<br />by subscription",
	"moving retail outlets<br />to nonretail locations<br />or putting your nonretail outlet in a mall.",
	"taking advantage<br />of unusual timing.",
	"unbundling it.",
	"being open<br />all the time<br />or rarely being open.",
	"becoming<br />ubiquitous or rare.",
	"making<br />boring things seem unboring.",
	"making<br />it smell.",
	"being<br />obsssive with cleanliness.",
	"adding<br />some grittiness.",
	"faking<br />some surliness.",
	"adding some<br />unexpected friendliness.",
	"supersizing it,<br />or microsizing.",
	"putting<br />things together<br />or taking things apart.",
	"adding more power,<br />or removing some weight (so you don't need extra power).",
	"leaving ingredients out<br />or putting ingredients in.",
	"making it<br />much bigger<br />or much smaller.",
	"making<br />the permanent disposable<br />or making the disposable reusable.",
	"adding color,<br />or losing color.",
	"making<br />it a parody.",
	"making<br />a silly thing serious.",
	"becoming<br />the expert in a new field.",
	"making<br />formal uniforms casual<br />or making informal dress informal.",
	"living<br />your life in public<br />or refuse to talk to the media.",
	/* advice from 101 Problem-Solving Techniques */
	"drawing a picture of the problem.<br />Even a rough sketch. Sometimes if you can \"see\" the problem it's easier to solve.",
	"listening to music. <br />Something soft and calming helps<br />to free-up your subconscious.",
	/* advice from Idea Sandbox */
	"exploring how<br />a similar problem is solved<br />in another profession or industry. <br />Any best practices you can follow?",
	"double-checking that you're solving the right problem. Is there a more significant one you're overlooking?",
	"examining the problem<br />as if <i>you</i> were it!<br />How would you feel if you were<br />the idea you're developing?",
	"looking up.<br />You may be trying to solve something<br />that is really a small part of a much bigger problem?",
	"asking a fool. <br />What would a fool say about your problem?",
	"double-checking that you're<br />solving the right problem. Is there a more significant one you're overlooking?",
	"asking yourself,<br /> \"How would mom solve this?\"",
	"sending an email to<br />Paul from Idea Sandbox<br />and asking his advice?<br /><br />His email is <b>paul@idea-sandbox.com</b>.",
	"forgetting all of this<br />and finding an easier career?<br /><br />I'm kidding... What do I know?<br />I'm a sandbox for Pete's sake!",
	"speaking with someone who<br />has no association with the project. Someone out of your work group, or better yet...<br />out of your business.",
	"asking...<br />\"how would _______ do it?\"<br />Replace the blank with the name of your hero."
];

var leads = [
	"Try",
	"Test<br />",
	"Attempt",
	"Magic Sandbox suggests<br />",
	"Take the problem and try<br />",
	"We suggest<br />",
	"You should try<br />",
	"Tackle the problem by<br />",
	"Big Dig suggests<br />",
	"Dig into<br />",
	"We recommend<br />",
	"Maybe...<br />",
	"Look into<br />",
	"Why not try<br />",
	"Would it be<br />interesting to",
	"Have you<br />thought about",
	"Consider",
	"Get closer to a solution by<br />",
	"Make passes at<br />",
	"Take a whack at<br />",
	"Set your mind at<br />",
	"Take a shot at<br />",
	"Have a go at<br />",
	"Have you tried<br />",
	"Take a stab at<br />",
	"Think about<br />"
];

var links = [
	"another idea?",
	"one more?",
	"hit me",
	"uno mas",
	"sock it to me!",
	"keep it going",
	"again?",
	"c'mon one more",
	"another! another!",
	"try another",
	"click for another"
];

function outputMessage() {

	if  (document.getElementById("float-idea")) {

		// Grab a reference to the DIV	
		var idea_div = document.getElementById("float-idea");

		// Clear out the previous contents of the div, if any
		idea_div.innerHTML = "";

		// Pick our random values
		var lead = leads[( Math.floor ( Math.random ( ) * leads.length ) )];
		var challenge = challenges[( Math.floor ( Math.random ( ) * challenges.length ) )];
		var link = links[( Math.floor ( Math.random ( ) * links.length ) )];

	
		// Construct our new contents
		htmlOut = "<div style=\"z-index: 10; position: absolute; top: 180px; left: 183px; width: 200px; height: 25px;\"><a href=\"javascript: outputMessage();\" style='color: #663300; font-size: 9pt; text-decoration: none; font-weight: normal;'>" + link + "</a></span></p></div>";
		//htmlOut = "<div style=\"z-index: 10; position: absolute; top: 280px; left: 164px; width: 200px; height: 25px;\"><a href=\"javascript: outputMessage();\"><img src=\"http://bigdig.idea-sandbox.com/images/bucket_shovel.png\">" + "</a></span></p></div>";
		htmlOut += "<p><span style='color: #000000; font-size: 12pt; font-weight: normal;'>" + lead + "</span> ";
		htmlOut += "<span style='color: #000000; font-size: 12pt; font-weight: normal;'>" + challenge + "</span></p>";

		
		// Insert the contents
		idea_div.innerHTML = htmlOut;
		
	} else {
		
		// Something is wrong... the idea div is missing! Bail.
		return;
		
	}
		
}

function outputQuote() {

	if  (document.getElementById("float-idea")) {

		// Grab a reference to the DIV	
		var idea_div = document.getElementById("float-idea");

		// Clear out the previous contents of the div, if any
		idea_div.innerHTML = "";

		// Pick our random value
		var this_selection = quotes[( Math.floor ( Math.random ( ) * quotes.length ) )];
	
		// Construct our new content
		htmlOut = "<p><span style='font-size: 13pt; font-weight: normal;'>" + this_selection.quote + "</p></span>";
		if (this_selection.attribution) { htmlOut += "<p><a href=\"javascript: outputMessage();\" style='color: #663300; font-size: 8pt; text-decoration: none; font-weight: normal;'>" + this_selection.attribution + "</a></p>"; }
		
		// Insert the contents
		idea_div.innerHTML = htmlOut;
		
	} else {
		
		// Something is wrong... the idea div is missing! Bail.
		return;
		
	}
		
}


