/* 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 webserverPath = "http://web.fineliving.com/fine/packages/bedroom_IQ/"

var showHintsPerPage = true;

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

var minPageContentHeight = 336;

var divCenterContentTextContainerWidth = 350;
// 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":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63817,00.html",
			"q1":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63818,00.html",
			"q2":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63819,00.html",
			"q3":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63820,00.html",
			"q4":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63821,00.html",
			"q5":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63822,00.html",
			"q6":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63823,00.html",
			"q7":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63824,00.html",
			"q8":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63825,00.html",
			"q9":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63826,00.html",
			"q10":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63827,00.html",
			"finish":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63828,00.html",
			"seeAnswers":"http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63829,00.html",
			"sendToFriend":"mailto:?subject=Fine Living Trivia:Bedroom Test&body=I thought you might like to take the Fine Living Bedroom IQ Quiz to see if you can turn your bedroom into a sleep sanctuary. http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_63817,00.html",
			"newsLetter":"hintwindow('http://www.fineliving.com/fine/newsletter/')" // newsletter link goes inside the quotes in hintwindow('')
		},
		"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": 'Find our how much you know about creating a restful and relaxing bedroom with this FINE LIVING quiz. Discover which paint colors promote sleep, how often you need to replace your pillows and how to employ feng shui in your bedroom design.',
			"landingHeader": 'BEDROOM DESIGN: Can you turn your bedroom into a sleep sanctuary? Take the IQ quiz.',
			"landingText": 'Okay, so you know the difference between a sham and a duvet. But what about appropriate lighting for your master bedroom, paint colors that promote sleep and choosing the right mattress? Take our quiz on all things bedroom and find out what you know about designing a dreamy sleep sanctuary.'
		},
		"links":{
			"noTimeForQuizHREF": 'http://www.fineliving.com/fine/entertaining/text/0,,FINE_1405_62170,00.html',
			"noTimeForQuizText": 'No time for a quiz? Read up on design topics.',
			"landingFooterLink2HREF": 'http://www.fineliving.com/fine/favorite_things/article/0,1663,FINE_1425_5644321,00.html',
			"landingFooterLink2Text": 'Enhance Romance in the Bedroom'
		},
		"moreLinks":{
			"numMoreLinks": "6", // make sure numMoreLinks matches actual amount of links
			"moreLinksPhrase": 'Get More:',
			"moreLinksTitle1": 'Create a Sleep Sanctuary',
			"moreLinksTitle2": 'Eco-Chic Bedroom Design',
			"moreLinksTitle3": 'Create a Guest Suite',
			"moreLinksTitle4": 'Shop for Your Bedroom',
			"moreLinksTitle5": 'Test Your Home Design IQ',
			"moreLinksTitle6": 'Take More IQ Quizzes',
			"moreLinksHREF1": 'http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_5005272,00.html',
			"moreLinksHREF2": 'http://www.fineliving.com/fine/personal_space/article/0,1663,FINE_1405_5720003,00.html',
			"moreLinksHREF3": 'http://www.fineliving.com/fine/personal_space_essentials/article/0,1663,FINE_1423_5860675,00.html',
			"moreLinksHREF4": 'http://marketplace.fineliving.com/Bedroom',
			"moreLinksHREF5": 'http://www.fineliving.com/fine/pac_ctnt_988/text/0,,FINE_26036_59214,00.html',
			"moreLinksHREF6": 'http://www.fineliving.com/fine/favorite_things/article/0,1663,FINE_1425_5906571,00.html'
		},
		"progressbar":{
			"width":"240",
			"height":"12"
		}
	}
});

// BEGIN updated 06-15-07
var aryHintURL = new Array(
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_5005272,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_5005437,00.html",
	"http://www.fineliving.com/fine/favorite_things_essentials/article/0,1663,FINE_1426_1096164,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_5005437,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_2365581,00.html",
	"http://www.fineliving.com/fine/favorite_things_essentials/article/0,1663,FINE_1426_1134849,00.html",
	"http://www.fineliving.com/fine/personal_space/article/0,1663,FINE_1405_5110086,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_5005449,00.html",
	"http://www.fineliving.com/fine/personal_space/article/0,1663,FINE_1405_4857735,00.html",
	"http://www.fineliving.com/fine/rejuvenation_essentials/article/0,1663,FINE_1422_5005449,00.html"
);

// END updated 06-15-07

/* Beratments */
var strIQLabelA = "Snoozing Loser";
var strIQLabelATag = "Your knowledge of creating a sleep sanctuary would fit in a sleeping bag. You've made your bed; now lie in it.";
var strIQLabelB = "Light Sleeper";
var strIQLabelBTag = "With just a little more attention to detail, you could be getting the great sleep you're missing.";
var strIQLabelC = "The Sandman";
var strIQLabelCTag = "You're the real deal when it comes to decorating bedrooms for better sleep —someone who can choose the perfect mattress and the right sheets to put one right to sleep.";

/* Question Array */
var aryQuestions = new Array(
	"When choosing paint colors for the bedroom:",
	"Replace synthetic bed pillows,",
	"What's a feather bed?",
	"According to the ancient Asian design philosophy of feng shui:",
	"When buying a new mattress, always:",
	"It's best to launder sheets:",
	"The best way to make a smallish guest bedroom seem larger is to:",
	"Make your bedroom a relaxing, worry-free place by:",
	"The best way to organize a bedroom closet is to:",
	"Bedroom lighting should be:"
);

var aryQ0Answers = new Array(
	"go with soothing blues and greens, which are associated with sleep-inducing feelings of peace and serenity.",
	"select a scheme that matches your bedspread and bedroom furniture.",
	"always choose from a milky white palette: cream; eggshell; ecru.",
	"consider black."
);

var aryQ1Answers = new Array(
	"every 10 years.",
	"every three years.",
	"at once, and forever — they're gross.",
	"with 100 color-coordinated throw pillows that complement your nightstand's Kleenex box."
);

var aryQ2Answers = new Array(
	"It's a bed made entirely of feathers.",
	"It's a sort of overstuffed comforter, usually filled with down, that rests on top of your mattress to give your bed both height and pillow-like comfort.",
	"It's a duvet before you put the duvet cover on.",
	"It's a Simmons Beautyrest filled with goose down and upholstery springs."
);

var aryQ3Answers = new Array(
	"you should always position your bed opposite an east-facing window, which will allow your sorrow to head straight for the morning sun.",
	"you should never position your bed opposite the room's entrance, which will allow your life energy to flow right out of the room.",
	"it's bad luck to have a ceramic duck in your bedroom.",
	"rooms painted yellow always attract more positive energy."
);

var aryQ4Answers = new Array(
	"remember to leave the \"Do not remove under penalty of law\" tags on until you get home.",
	"buy a new box spring to go with it.",
	"give it a break-in period of at least 30 days.",
	"give it a break-in period of no more than a week."
);

var aryQ5Answers = new Array(
	"separately, because zippers and buttons on clothing can damage linen.",
	"once a week.",
	"once a month.",
	"in hot water with bleach."
);

var aryQ6Answers = new Array(
	"paint it a really bright color.",
	"decorate it with smaller-scale kids\' bedroom furniture.",
	"put up wallpaper with wide vertical stripes.",
	"install a space-saving sleeper sofa."
);

var aryQ7Answers = new Array(
	"posting \"No worrying allowed\" signs just outside the door.",
	"banishing the exercise equipment, television, computer and other electronic intrusions.",
	"piping in the sounds of the ocean and spreading the floor with sand and seashells.",
	"choosing a bedspread and curtains printed with clouds or other dreamy patterns."
);

var aryQ8Answers = new Array(
	"make three clothing piles: keep, toss and recycle/give away.",
	"make two clothing piles: doesn't fit and really ugly.",
	"get rid of everything that you haven't worn in the past two months.",
	"hire someone to do it for you."
);

var aryQ9Answers = new Array(
	"really bright, which helps you awaken in the morning.",
	"made up mostly of bulbs of 40 watts or less, because lower lighting tells your brain that you're headed for sleep.",
	"strictly overhead.",
	"fluorescent."
);

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

