// JavaScript Document

/* SOME VARIABLES */
var tasksComplete = 0;
var currentTask = 0;
var content = new Array(
// INTRO
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-main.jpg' width='296' height='204' /></p> \
		<p><img src='/eMagazine/Viewpoints/images/drop-T.gif' alt='T' width='45' height='50' class='dropCap' />his season can be crazy &#8211; crazy busy, that is. But I love the hustle and bustle of the holidays. Shopping for gifts. Decorating the house. Family. Friends. And, of course, fantastic parties like the one I&#8217;m throwing tonight. </p> \
		<p>The only problem? I&#8217;ve got a lot to do before the guests arrive, and only 14 hours to get it all done. But I love the holidays &#8211; and a challenge. So to keep myself on task, I&#8217;ve outlined my entire day. </p> \
		<p>I&#8217;ve got 14 &#8220;to-dos&#8221; to tackle and loads of holiday spirit to keep me going. Luckily, thanks to OPTI-FREE<sup>&#174;</sup> RepleniSH<sup>&#174;</sup> Solution, I have 14 hours of contact lens moisture ahead of me, too. It&#8217;s going to be a busy day, and I can&#8217;t have dried out contacts slowing me down!</p>"
	},
// TASK 1
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task01.jpg' width='296' height='171' /></p> \
		<h3>8:00 AM &#8211; 9:00 AM:</h3> \
		<h2>Clean the House</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-I.gif' alt='I' height='50' class='dropCap' /> start the day by shuffling to the bathroom to put in my contacts. The way I figure, being able to see is <em>bound</em> to help me tackle my colossal list of &#8220;to-dos.&#8221; Good thing I use OPTI-FREE<sup>&#174;</sup> RepleniSH<sup>&#174;</sup> Solution. This time of year, it&#8217;s my Secret Holiday Helper, giving me the contact lens moisture I need to keep moving all day long.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task01-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>First on the list: cleaning the house. I head to the kitchen &#8211; a.k.a the scene of last night&#8217;s crime of caloric proportions (Let&#8217;s just say that a batch of gingerbread men is no longer with us.) &#8211; and start sweeping up crumbs and wiping down countertops.</p> \
		<p>After I&#8217;ve destroyed most of the evidence &#8211; the rest is safely hidden in my thighs &#8211; it&#8217;s on to dusting and vacuuming. I burst into an operatic rendition of &#8220;Frosty the Snowman&#8221; in effort to cheer myself up. In my head, I sound great. According to the judges of last night&#8217;s &#8220;Holiday Idol&#8221; karaoke contest, however, I apparently sound more like a choking cat. Luckily for anyone within earshot, I&#8217;m drowned out by the sound of my vacuum cleaner.</p>"	
	},
// TASK 2
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task02.jpg' width='296' height='190' /></p> \
		<h3>9:00AM &#8211; 10:00AM:</h3> \
		<h2>Deck the Halls</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-T.gif' alt='T' height='50' class='dropCap' />here are people who <em>love</em> the holidays. Then there&#8217;s my mom. If celebrating the season were an Olympic sport, she&#8217;d be a gold medal winner. She starts shopping for presents in August, can sing every carol in multiple languages (Have you ever heard &#8220;Jingle Bells&#8221; in Swahili?), and buys new decorations every year &#8211; which means that I get last year&#8217;s leftovers for this year&#8217;s party.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task02-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>Unfortunately &#8211; from the looks of the decorations she just dropped off &#8211; last year&#8217;s theme must have been &#8220;creepy holiday nutcrackers.&#8221;</p> \
		<p>I&#8217;m not sure how my guests will feel when they&#8217;re greeted by an army of tiny, mustachioed soldiers, but <em>I</em> feel like they&#8217;re all staring at me. Good thing I&#8217;ve still got mom&#8217;s leftover decorations from the year before last. Can&#8217;t go wrong with garland and jingle bells, right? And there&#8217;s plenty of tinsel&#8230; which I might have to use to tie up those nutcrackers. They look like they might spring to life and come after me any minute.</p>"
	},
// TASK 3
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task03.jpg' width='296' height='190' /></p> \
          <h3>10:00 AM &#8211; 11:00 AM:</h3> \
		<h2>Shovel Sidewalk</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-I.gif' alt='I' height='50' class='dropCap' /> put it off as long as I could, and hoped that some of it might melt over the last few days, but no such luck. Time to suck it up and bust out the shovel. This snow isn&#8217;t going to clear itself from the sidewalk. Maybe the creepy nutcrackers would help if I released them from captivity&#8230; Nah, better not risk it.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task03-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>20 minutes in, and my arms already feel like jelly. Sure, all this snow looks pretty, but it feels like I&#8217;m shoveling coal. My feet are freezing, and my back is killing me. I try singing &#8220;Sixteen Tons,&#8221; until the neighbor kids start throwing snowballs my way. Everyone&#8217;s a critic.</p> \
		<p>At least my contacts still feel great. OPTI-FREE<sup>&#174;</sup> RepleniSH<sup>&#174;</sup> Solution has been working wonders &#8211; even out in this weather. Thank goodness, because there&#8217;s no way I could adjust my lenses while wearing mittens.</p>"
	
	},
// TASK 4
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task04.jpg' width='296' height='171' /></p> \
          <h3>11:00 AM &#8211; 12:00 PM:</h3> \
		<h2>Send Holiday Cards</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-I.gif' alt='I' height='50' class='dropCap' />t&#8217;s time to get back inside and warm up with a cup of cocoa &#8211; and maybe a marshmallow or two&#8230; Okay, seven. Okay, half the bag. Nothing beats cocoa on a cold winter&#8217;s day. And I need to get the feeling back in my fingers before I can tackle that stack of holiday cards.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task04-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>I turn on the radio as I get to task. Listening to carols definitely gets me in the holiday spirit &#8211; and helps when I can&#8217;t think of anything clever to write. Although, at one point, a commercial for Al&#8217;s Used Car Lot came on, and I started writing to my Uncle Bernie about low-APR financing.</p> \
		<p>Fueled by my sugar rush and my holiday tunes, I finish my cards in record time. Of course, I was so jittery that all of my thoughtful, handwritten notes may have been impossible to read, but it&#8217;s the thought that counts, right?</p> \
		<p>And with a flick of the mailbox door, one more task is complete.</p>"
	},
// TASK 5
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task05.jpg' width='296' height='171' /></p> \
          <h3>12:00 PM &#8211; 1:00 PM:</h3> \
		<h2>Sew Costume For Henry&#8217;s Holiday Pageant</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-H.gif' alt='H' height='50' class='dropCap' />enry, my nephew, has a starring role in this year&#8217;s holiday pageant, and since my sister isn&#8217;t exactly the crafty type, she turned to me to help make his costume. Of course, I&#8217;m not exactly the crafty type either, so I&#8217;m not sure what her logic was. &#8220;Blame the aunt,&#8221; I guess.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task05-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>I can&#8217;t get the antlers to stand up straight, the tail is crooked, and the dog barks every time I hold up the costume to check out my handiwork. I think he thinks it&#8217;s some sort of bear. Too bad Henry is playing &#8220;Reindeer #7&#8221; and not &#8220;Floppy-Antlered Grizzly.&#8221; All we can do now is hope he&#8217;s a good Method actor.</p> \
		<p>On the plus side, I might have enough leftover fabric to fashion a pair of antlers for the dog. I wonder if I have a headband somewhere around here&#8230;</p>"	
	},
// TASK 6
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task06.jpg' width='296' height='171' /></p> \
          <h3>1:00 PM &#8211; 2:00 PM:</h3> \
		<h2>Buy Gifts</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-T.gif' alt='T' height='50' class='dropCap' />ime to hop in the car and head to the mall. I&#8217;ve got a few more presents to buy, and I&#8217;m armed with a list of the <em>exact</em> items I need to hunt down. Last year, I made homemade gifts. This year, I may have gotten several <em>subtle</em> hints to never, ever do that again. For the record, three-armed sweaters don&#8217;t tend to go over very well. Although&#8230; maybe if I hid a new iPod* up one of the sleeves&#8230; Hmm&#8230;</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task06-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>I weave my way through a sea of holiday shoppers to get to each store, crossing items off of my list as I go. After 45 minutes, I&#8217;ve become a veritable holiday bag lady and it&#8217;s getting harder to battle through the throngs of people. Luckily, I&#8217;m done buying gifts. And not a moment too soon &#8211; people are starting to get that crazed, post-apocalyptic look that only comes with last minute shopping.</p> \
		<p>Now I just have to figure out how to get across the food court and out to the parking lot without accidentally taking anyone out. Duck and weave!</p> \
		<p>&nbsp;</p> \
		<p style='font-size: .9em;'>* Trademarks are property of their respective owners</p>"
	},
// TASK 7
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task07.jpg' width='296' height='171' /></p> \
          <h3>2:00 PM &#8211; 3:00 PM:</h3> \
		<h2>Buy Fabulous Sweater Dress</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-T.gif' alt='T' height='50' class='dropCap' />ook a detour around the insanely crowded food court &#8211; the new &#8220;fried salad&#8221; booth seems to be particularly popular &#8211; and ended up in front of the most fantastic store window display I&#8217;ve ever seen. Call it fate. Or maybe just lack of willpower. Either way, I just couldn&#8217;t help myself. That sweater dress was calling my name. And I <em>did</em> need something to wear for the party tonight. It&#8217;s a holiday miracle!</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task07-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>I probably didn&#8217;t need to buy matching earrings and a necklace, though. Or the shoes. But don&#8217;t I deserve a present from myself every now and then? Besides, you can&#8217;t put a price on a miracle.</p>"
	},
// TASK 8
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task08.jpg' width='296' height='171' /></p> \
          <h3>3:00 PM &#8211; 4:00 PM:</h3> \
		<h2>Go to Grocery Store</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-O.gif' alt='O' height='50' class='dropCap' />n to the grocery store. I&#8217;ve got another list to help me stay focused in the aisles (and there&#8217;s no chance of getting distracted by fabulous winter outfits here), so this trip should go quickly&#8230;</p> \
		<p>Unless, of course, the parking lot is <em>packed</em>.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task08-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>Talk about survival of the fittest. I swear I saw an SUV flatten a compact car to steal its spot. And who knew so many people were good at sign language?</p> \
		<p>It takes 15 minutes of searching (and five more getting honked at), before I finally find an empty spot at the end of the lot. I must be five miles from the front of the store. Shouldn&#8217;t they have shuttles for people that have to park out here? Good thing I brought my mittens.</p> \
		<p>And good thing I use OPTI-FREE<sup>&#174;</sup> RepleniSH<sup>&#174;</sup> Solution. Between the dry air blasting out of my car heater and the sting of the wind blowing across the parking lot, my eyes should be completely dried out. Amazingly enough, they still feel fresh and comfortable. I&#8217;m gonna chalk it up to another holiday miracle &#8211; you&#8217;ll take what you can get on the arctic trek to the produce aisle.</p>"
	},
// TASK 9
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task09.jpg' width='296' height='171' /></p> \
          <h3>4:00 PM &#8211; 5:00 PM:</h3> \
		<h2>Bake Cookies</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-I.gif' alt='I' height='50' class='dropCap' />&#8217;m deeply regretting last night&#8217;s decimation of my entire batch of gingerbread men. For one, 17 gingerbread men probably didn&#8217;t make a well-balanced dinner (I can&#8217;t <em>believe</em> frosting didn&#8217;t make the Food Pyramid). For two, I ate all the cookies I was supposed to bring to the holiday pageant.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task09-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>Good thing I&#8217;ve got just enough time to scrape together one more batch.</p> \
		<p>Had to decorate them fast, so the gumdrop buttons came out crooked, and some of them may need candy canes to get around, but I doubt a class of 3rd graders will notice. They&#8217;ll still taste delicious, even if they don&#8217;t look perfect.</p> \
		<p>Hmmm&#8230; Maybe I should test one out, just to be sure that they came out okay.</p>"
	},
// TASK 10
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task10.jpg' width='296' height='171' /></p> \
          <h3>5:00 PM &#8211; 6:00 PM:</h3> \
		<h2>Go to Holiday Pageant</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-H.gif' alt='H' height='50' class='dropCap' />enry actually looks sort of like a reindeer in his costume. Or, at least, more like a reindeer than the kid standing next to him, who most closely resembles a Barcalounger that caught the acting bug. And he delivered his lines like a pro. I hope he remembers who sewed his 3rd grade pageant costume when he grows up to be famous.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task10-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>After the pageant, I go backstage to hand out gingerbread men, and am immediately ambushed by a mass of antlers. Apparently 3rd grade reindeer survive on a diet of sugar and frosting. No wonder they&#8217;re an endangered species.</p> \
		<p>Henry gets a big hug, I get a &#8220;thanks for my costume!&#8221; and my sister gets out her camera. After about a million pictures, I check my watch and realize that I&#8217;m running late to pick up my brother from the airport. I ask the reindeer if they could give me a lift, but they&#8217;re too busy bouncing off the walls.</p>"
	},
// TASK 11
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task11.jpg' width='296' height='171' /></p> \
          <h3>6:00 PM &#8211; 7:00 PM:</h3> \
		<h2>Pick Up Brother From Airport</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-I.gif' alt='I' height='50' class='dropCap' />&#8217;m lucky. Traffic is light on the way to the airport, and my brother&#8217;s flight is even on time. Now, if <em>that&#8217;s</em> not a holiday miracle, I don&#8217;t know what is.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task11-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>What I <em>do</em> know is that as soon as he gets off the plane, he&#8217;s going to ask me to stop somewhere so he can buy contact lens solution. He does this every time he visits. Doesn&#8217;t he know I&#8217;ve got a schedule to keep?</p> \
		<p>I am immediately baffled when he doesn&#8217;t even mention it. Until he tells me why. Then I am thoroughly pleased. Discovering that OPTI-FREE<sup>&#174;</sup> RepleniSH<sup>&#174;</sup> Solution is considered an over-the-counter-medication and CAN absolutely be carried on a plane has just made my day. This is almost better than my incredible find at the mall. Almost.</p>"
	},
// TASK 12
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task12.jpg' width='296' height='171' /></p> \
          <h3>7:00 PM &#8211; 8:00 PM:</h3> \
		<h2>Wrap Presents</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-D.gif' alt='D' height='50' class='dropCap' />ropped off my brother at Mom and Dad&#8217;s, then headed home to wrap the pile of presents I bought earlier today. It may sound strange, but I&#8217;ve been looking forward to this task all day. Wrapping presents is like origami&#8230; except instead of a lame crane, you&#8217;ve got a box with a Cuisinart* inside!</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task12-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>I plug along happily, until right around present number 7, when I come to a stark and horrifying realization: I am running out of tape. There&#8217;s no time to run to the store, so I search my junk drawer and scavenge through closets, where I find two possible solutions.</p> \
		<p>Duct tape, or glue stick?</p> \
		<p>Strategically placed ribbons and bows can cover almost anything, so either choice will work. I opt for the duct tape &#8211; partly because it holds better, but mostly because it would be hilarious to wrap my brother&#8217;s entire present with the stuff. I envision him trying to get the box open (possibly with his teeth), giggle, and immediately start fashioning a duct tape bow. Duct tape really <em>can</em> fix anything!</p>\
		<p>&nbsp;</p> \
		<p style='font-size: .9em;'>* Trademarks are property of their respective owners</p>"
	},
// TASK 13
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task13.jpg' width='296' height='171' /></p> \
          <h3>8:00 PM &#8211; 9:00 PM:</h3> \
		<h2>Convince Mom Not To Wear the Happy Snowman Sweater</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-A.gif' alt='A' height='50' class='dropCap' />n hour to the party, and I&#8217;m furiously setting out dips and party trays in preparation for the celebration. Mom <em>always</em> picks the best time to call:</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task13-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>&#8220;What am I wearing for the party tonight? My fabulous new outfit, of course...&#8221;<br /> \
		&#8220;Oh, you went shopping today, too?&#8221;</em><br /> \
		&#8220;Wow, Mom, a snowman sweater that <em>actually lights up and plays music?</em> That&#8217;s&#8230; uh&#8230; <em>wow</em>. Where did you even find something like that?&#8221;<br /> \
		&#8220;Um, well&#8230; Uh, okay, I, uh&#8230; I can&#8217;t <em>wait</em> to see it.&#8221;</p> \
		<p>Okay, so I couldn&#8217;t bring myself to convince her not to wear the snowman sweater. I know I swore not to have any fruitcake at the party this year, but what can I say? She&#8217;s my mom. At least it&#8217;s not a creepy nutcracker sweater. Plus, it&#8217;s the holidays, and I couldn&#8217;t dampen her spirits like that.</p> \
		<p>And don&#8217;t tell anyone, but I&#8217;m dying to hear what song it will play.</p>"
	},
// TASK 14
	{
	task: "<p><img src='/eMagazine/Viewpoints/images/holiday09-task14.jpg' width='296' height='171' /></p> \
          <h3>9:00 PM &#8211; ???? PM:</h3> \
		<h2>Mix and Mingle</h2> \
		<p><img src='/eMagazine/Viewpoints/images/drop-T.gif' alt='T' height='50' class='dropCap' />he house looks perfect, the gifts are bought, and the guests are starting to arrive (Did I mention that I look <em>fabulous?</em>). My last task? Enjoy the fruits of my labor &#8211; and a big ol&#8217; glass of eggnog.</p> \
		<img src='/eMagazine/Viewpoints/images/holiday09-task14-icon.gif' width='100' height='100' style='border: 1px solid #7A0000; float: right; margin: 0px 0px 5px 5px; padding: 5px;' /> \
		<p>After tackling all those holiday tasks, I should be exhausted. But with a fabulous party ahead of me, and my eyes <em>still</em> feeling great thanks to OPTI-FREE<sup>&#174;</sup> RepleniSH<sup>&#174;</sup> Solution, I&#8217;m nothing but excited for the rest of this night.</p> \
		<p>Hark! Is that the sound of a merry snowman sweater I hear?</p> \
		<p>Gotta go! Happy Holidays!</p>"
	}
);

/* ANYTHING THAT IS DEPENDENT ON DOM AND MUST WAIT FOR THE PAGE TO LOAD GOES HERE */

function domLoaded() {
	
};
	
/* END DOM DEPENDENT */


/* TELL FLASH TO REVEAL NOTES */
function showTasks() {
	if (currentTask > 0) {
		curElement = "task" + currentTask;
		document.getElementById(curElement).src = "/eMagazine/Viewpoints/images/checkbox-checked.gif";
		thisMovie('musicMashup').showTasks(currentTask);
		return false;
	}
}

/* TARGET THE FLASH MOVIE SO IT CAN BE ACCESSED VIA JAVASCRIPT*/
function thisMovie(movieName) {
    if (navigator.appName.indexOf('Microsoft') != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}

// CHECK TO SEE IF DOM IS LOADED

if( window.addEventListener ) {
  window.addEventListener('load',domLoaded,false);
} else if( document.addEventListener ) {
  document.addEventListener('load',domLoaded,false);
} else if( window.attachEvent ) {
  window.attachEvent('onload',domLoaded);
}
function getTask(whichTask) {
	currentTask = whichTask;
	updatePage();
	
}

function goPrev() {	
	currentTask --;
	updatePage();
}
function goNext() {
	currentTask ++;
	updatePage();
}

function updatePage() {
	if (currentTask == 0) {
		document.getElementById('holiday09-previous').style.display = "none"
	} else if (currentTask == 14) {
		document.getElementById('holiday09-next').style.display = "none"
	} else {
		document.getElementById('holiday09-previous').style.display = "block"
		document.getElementById('holiday09-next').style.display = "block"
	}
	document.getElementById('holiday09-content').innerHTML = content[currentTask].task;
	
	
	showTasks();
	return false;
}