/* STOP! DO NOT MODIFY THE CODE. DO NOT REMOVE COMMAS. */
/* YOU MUST ESCAPE SPECIAL CHARACTERS WITH A BACKSLASH BEFORE THE SPECIAL CHARACTER, INCLUDING QUOTES WITHIN THE TEXT. */

//var mAdsRemotePath = "http://adsremote.scripps.com/js.ng/site=FINE&topic=FINEIQ&adtype=UNSIZED_AD&PagePos=5";
//setAdsRemote("http://adsremote.scripps.com/js.ng/site=FINE&topic=FINEIQ&adtype=UNSIZED_AD&PagePos=5");

var webServerPath = "http://web.fineliving.com/fine/packages/coffee_IQ/";

var showHintsPerPage = true;

var usingLandingPageMinHeight = true;
var usingQuestionPageMinHeight = false;
var usingFinishPageMinHeight = false;

var minPageContentHeight = 336;

var divCenterContentTextContainerWidth = 400;
// WIDTH & HEIGHT FOR BUTTONS
// landing page button
var btnStartWidth = 130;
var btnStartHeight = 29;
// finsh page button
var btnSeeAnswersWidth = 143;
var btnSeeAnswersHeight = 29;
// see answers page button
var btnShowScoreWidth = 131;
var btnShowScoreHeight = 29;
// see answers & finish page buttons
var btnNotifyMeWidth = 194;
var btnNotifyMeHeight = 29;
var btnSendToFriendWidth = 141;
var btnSendToFriendHeight = 29;
var btnLandingLinkWidth = 94;
var btnLandingLinkHeight = 29;

// paths for URLs will need to be absolute
insertData({
	"data":{
		"url":{
			// note:: there should be a coma after each string EXCEPT the last inside each {} bracket
//			"landing":"index.htm",
//			"q1":"q1.htm",
//			"q2":"q2.htm",
//			"q3":"q3.htm",
//			"q4":"q4.htm",
//			"q5":"q5.htm",
//			"q6":"q6.htm",
//			"q7":"q7.htm",
//			"q8":"q8.htm",
//			"q9":"q9.htm",
//			"q10":"q10.htm",
//			"finish":"finish.htm",
//			"seeAnswers":"answers.htm",
			"landing":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64493,00.html",
			"q1":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64494,00.html",
			"q2":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64495,00.html",
			"q3":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64496,00.html",
			"q4":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64497,00.html",
			"q5":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64498,00.html",
			"q6":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64499,00.html",
			"q7":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64500,00.html",
			"q8":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64501,00.html",
			"q9":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64502,00.html",
			"q10":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64503,00.html",
			"finish":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64504,00.html",
			"seeAnswers":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64505,00.html",
			"sendToFriend":"mailto:?subject=Fine Living: Coffee IQ Test&body=I thought you might like to take the Fine Living: Coffee IQ Test and see if you're a java junkie... http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_64493,00.html",
			"newsLetter":"hintwindow('http://www.fineliving.com/fine/newsletter/')"
		},
		"jpgs":{
			"nextQuestion": webServerPath + "images/nextQuestion.jpg",
			"nextQuestionOver": webServerPath + "images/nextQuestion_over.jpg",
			"lastQuestion": webServerPath + "images/showScore.jpg",
			"lastQuestionOver": webServerPath + "images/showScore_over.jpg",
			"imgNeedHint": webServerPath + "images/needHint.jpg"
		},
		"includes":{
			"funcs": webServerPath + "js/funcs.js",
			"css": webServerPath + 'iq.css'
		},
		"strings":{
			"landingTitle": 'Coffee: Fine Living IQ',
			"landingHeader": 'Are you a java junkie?',
			"landingText": 'Do you dream of perfectly frothy lattes? Is your idea of &quot;gettin\' wild&quot; dosing your java with an extra shot &mdash; of espresso? If you said yes, you may be an addict &#151; but you\'ll also score great on our Coffee IQ Quiz. Put those fidgety, over-caffeinated fingers to work and start clicking to find out if you\'re a true joe aficionado.'
		},
		"links":{
			"noTimeForQuizHREF": 'http://www.fineliving.com/fine/entertaining/text/0,,FINE_1404_63752,00.html',
			"noTimeForQuizText": 'No time for a quiz? Read up coffee topics.',
			"landingFooterLink2HREF": 'http://www.fineliving.com/fine/entertaining/article/0,2498,FINE_22197_5631522,00.html',
			"landingFooterLink2Text": 'Fair Trade Coffee'
		},
		"moreLinks":{
			"numMoreLinks": "5", // make sure numMoreLinks matches actual amount of links
			"moreLinksPhrase": 'More Helpful Links:',
			"moreLinksTitle1": '10 FINE Coffee Recipes',
			"moreLinksTitle2": 'Fair Trade Coffee',
			"moreLinksTitle3": 'Brewing Good Coffee',
			"moreLinksTitle4": 'The Deal on Decaf',
			"moreLinksTitle5": 'Take More IQ Quizzes',
			"moreLinksHREF1": 'http://www.fineliving.com/fine/entertaining/article/0,2498,FINE_22197_5381780,00.html',
			"moreLinksHREF2": 'http://www.fineliving.com/fine/entertaining/article/0,2498,FINE_22197_5631522,00.html',
			"moreLinksHREF3": 'http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_1539227,00.html',
			"moreLinksHREF4": 'http://www.fineliving.com/fine/tricks_of_the_trade/article/0,1663,FINE_9157_2475723,00.html',
			"moreLinksHREF5": 'http://www.fineliving.com/fine/entertaining/article/0,2498,FINE_22197_5417611,00.html',
			"moreLinksTarget1": '_self',
			"moreLinksTarget2": '_self',
			"moreLinksTarget3": '_self',
			"moreLinksTarget4": '_self',
			"moreLinksTarget5": '_self'
		},
		"progressbar":{
			"width":"240",
			"height":"12"
		}
	}
});

// BEGIN updated 06-15-07
var aryHintURL = new Array(
	"http://www.fineliving.com/fine/shopping_with_chefs/article/0,3147,FINE_29696_5584185_04,00.html",
	"http://www.fineliving.com/fine/tricks_of_the_trade/article/0,1663,FINE_9157_2475726,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_1539227,00.html",
	"http://www.fineliving.com/fine/adventure/article/0,1663,FINE_1403_4132268,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_3204774,00.html",
	"http://www.fineliving.com/fine/art_of_the_party/article/0,1663,FINE_18241_3016266,00.html",
	"http://www.fineliving.com/fine/tricks_of_the_trade/article/0,1663,FINE_9157_2475723,00.html",
	"http://www.fineliving.com/fine/adventure/article/0,1663,FINE_1403_2310984,00.html",
	"http://www.fineliving.com/fine/survival_guide/article/0,1663,FINE_15099_2446747,00.html",
	"http://www.fineliving.com/fine/adventure/article/0,1663,FINE_1403_2310984,00.html"
);

// END updated 06-15-07

/* Beratments */
var strIQLabelA = "You\'re a Java Novice";
var strIQLabelATag = "You enjoy the occasional cup of coffee, but that\'s where your expertise ends. Time to brush the dust off your coffeemaker and brush up on your coffee know-how.";
var strIQLabelB = "You Know Your Joe";
var strIQLabelBTag = "Whether you\'re sipping a specialty latt&eacute; or straight black coffee, you know a quality cup when you taste one, but the finer points of coffee culture still elude you. (Caf&eacute; Sua <i>what?!</i>)";
var strIQLabelC = "You\'re a Coffee Connoisseur";
var strIQLabelCTag = "With your extensive java wisdom, you could practically run a school for baristas. You know the regions, roasts, and recipes that comprise a perfect cup, and you rarely settle for anything less.";

/* Question Array */
var aryQuestions = new Array(
	"Where was coffee first consumed?",
	"Approximately a third of the world's coffee comes from:",
	"According to experts, coffee should be brewed:",
	"The Kona Coffee Belt is:",
	"What is Irish coffee?",
	"What is Vietnamese coffee?",
	"How much caffeine can coffee contain if it's labeled &quot;decaf?&quot;",
	"Maria Theresa is:",
	"Coffee boosts productivity, but what else <br>will it increase?",
	"Which city is known as the birthplace <br>of modern coffeehouses, with more <br>than 500 inside its city limits?"
);

var aryQ0Answers = new Array(
	"In Persia by only the very rich",
	"In the northern region of Guatemala",
	"In the highlands of Ethiopia", 
	"Shortly after the invention of the hangover"
);

var aryQ1Answers = new Array(
	"Colombia",
	"Brazil",
	"China",
	"Starbucks"
);

var aryQ2Answers = new Array(
	"Between 195 and 200 degrees",
	"Between 100 and 110 degrees",
	"At cooler temps for a longer period of time",
	"By someone else just before my alarm goes off"
);

var aryQ3Answers = new Array(
	"20 miles of espresso-scented roadway in Hawaii",
	"The hot accessory of the season",
	"A caffeine-measuring device", 
	"A smack in the face from a sumo wrestler"
);

var aryQ4Answers = new Array(
	"Whiskey topped with coffee",
	"Coffee with whiskey added and topped with whipped cream",
	"What Tony Soprano was drinking just before the cut to black",
	"What Dubliners drink on Mondays to get over the weekend"
);

var aryQ5Answers = new Array(
	"Soy milk and espresso",
	"Rice and Red Bull",
	"Drip coffee with sweetened, condensed milk",
	"Marlon Brando's favorite color"
);

var aryQ6Answers = new Array(
	"Three percent",
	"One percent",
	"Zilch",
	"Enough to hold me over until I find some real coffee"
);

var aryQ7Answers = new Array(
	"An Austrian coffee drink made with orange liqueur",
	"A world-famous coffee shop in Venice",
	"A famous Austrian barista",
	"The patron saint of coffee"
);

var aryQ8Answers = new Array(
	"Blood pressure",
	"Cholesterol",
	"Heart rate",
	"Trips to the WC"
);

var aryQ9Answers = new Array(
	"Paris",
	"Vienna",
	"Seattle",
	"Las Macchiato"
);

var aryCorrectAnswers = new Array(
	"C",
	"B",
	"A",
	"A",
	"B",
	"C",
	"A",
	"A",
	"C",
	"B"
);

