YAHOO.Media.Dtk.GlobalSearch.init("masthead_search");
with({
	l:YAHOO.util.Dom.get("masthead_branded_help"),E:YAHOO.util.Event,
	t:0,a:null,u:null,n:null,s:null,h:null
}) {
if(l) {
	a=l.getElementsByTagName("a")[0];u=l.getElementsByTagName("ul")[0];
	if(a&&u) {
		n=function() { u.style.display="none"; };
		s=function(e) { u.style.display="block"; window.clearTimeout(t); E.stopEvent(e); return false; };
		h=function() { window.clearTimeout(t); t=window.setTimeout(n,1000); };
		E.on(a,"click",s);E.on(u,"mouseover",s);E.on(l,"mouseout",h);E.on(document,"mouseover",h);E.on(document,"click",n);
	}
}
};if( document.uniqueID && !window.XMLHttpRequest && document.execCommand ){YAHOO.util.Event.addListener(window,"load",function(){    try { document.execCommand("BackgroundImageCache", false, true); }catch(e){}});YAHOO.util.Event.addListener(window,"unload",function(){ try { document.execCommand("BackgroundImageCache", false, false); }catch(e){}});}with({s:null, toggle:YAHOO.util.Dom.getElementsByClassName("controls", null, "switcher")[0].getElementsByTagName("a")[0]})
{
s = YAHOO.Games.PromoBox;
s.init("switcher",true,15);
s.onAutoPlayStart.subscribe(function(ev) {
	toggle.innerHTML = "Stop";
	YAHOO.util.Dom.addClass(toggle, "playing");
	YAHOO.util.Dom.removeClass(toggle, "paused");
});
s.onAutoPlayStop.subscribe(function(ev) {
	toggle.innerHTML = "Start";
	YAHOO.util.Dom.addClass(toggle, "paused");
	YAHOO.util.Dom.removeClass(toggle, "playing");
});
s.onCardChange.subscribe(function(ev) {this.pauseElement = this.currentCard;}, s, true);
YAHOO.util.Event.addListener(toggle, "click", s.toggleAutoPlay, s, true);
}				YAHOO.Games.FlyoutData = {"top-games":{"buildalot3":{"name":"Build-a-lot 3: Passport to Europe","shortDesc":"Travel through Europe restoring houses for big profits!","rank":1,"rankLastWeek":701,"rankChange":700,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=buildalot3","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/buildalot3\/buildalot3_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"bejeweled2":{"name":"Bejeweled 2","shortDesc":"With awe-inspiring planetary backdrops, explosive new gems and dazzling special effects, Bejeweled 2 is more wildly addictive than ever before.","rank":1,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=bejeweled2","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/bejeweled2\/bejeweled2_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"artistcolony":{"name":"Artist Colony","shortDesc":"Inspire artists as they find love, betrayal and achieve creative genius.","rank":2,"rankLastWeek":921,"rankChange":919,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=artistcolony","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/artistcolony\/artistcolony_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"parkingdash":{"name":"Parking Dash","shortDesc":"To keep customers happy, you&#039;ll have to be quick to click as you rack, track, and even stack automotive gems from every corner of DinerTown.","rank":3,"rankLastWeek":249,"rankChange":246,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=parkingdash","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/parkingdash\/parkingdash_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"sunsetstudio":{"name":"Sunset Studio: Love on the High Seas","shortDesc":"Keep a big budget Hollywood blockbuster from sinking!","rank":4,"rankLastWeek":925,"rankChange":920,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=sunsetstudio","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/sunsetstudio\/sunsetstudio_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"scrabbleplus":{"name":"SCRABBLE Plus","shortDesc":"You&#039;ve never played SCRABBLE like this before!","rank":5,"rankLastWeek":924,"rankChange":918,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=scrabbleplus","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/scrabbleplus\/scrabbleplus_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"web_the-scruffs":{"name":"The Scruffs","shortDesc":"Help the Scruffs save their house in this hidden-object hunt.","rank":6,"rankLastWeek":913,"rankChange":906,"playUrl":"http:\/\/games.yahoo.com\/free-games\/the-scruffs","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/gameart2\/the-scruffs\/the-scruffs-150.gif","imageWidth":150,"imageHeight":150,"genre":"all"},"anniesmillions":{"name":"Annie&#039;s Millions","shortDesc":"Go on a million dollar shopping spree in Annie&#039;s Millions!","rank":7,"rankLastWeek":11,"rankChange":2,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=anniesmillions","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/anniesmillions\/anniesmillions_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"monopolypb":{"name":"Monopoly","shortDesc":"Own it all with this amazing version of the family favorite!","rank":7,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=monopolypb","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/monopolypb\/monopolypb_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"treasuresmysteryisland":{"name":"The Treasures of Mystery Island","shortDesc":"Find hidden objects and use them to solve puzzles that will take you into the heart of an incredible mystery!","rank":8,"rankLastWeek":1,"rankChange":9,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=treasuresmysteryisland","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/treasuresmysteryisland\/treasuresmysteryisland_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"},"web_daily-crossword-with-yahoo-search":{"name":"Daily Crossword with Hints","shortDesc":"Play a Daily Crossword with an innovative twist that challenges you to employ Yahoo! Search to uncover hints.","rank":9,"rankLastWeek":12,"rankChange":1,"playUrl":"http:\/\/games.yahoo.com\/daily-games\/daily-crossword-with-yahoo-search","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/gameart2\/daily-crossword-with-yahoo-search\/daily-crossword-with-yahoo-search-150.gif","imageWidth":150,"imageHeight":150,"genre":"all"},"cakemania2":{"name":"Cake Mania 2","shortDesc":"Jill is back in an all-new, out-of-this-world adventure. In Cake Mania 2, it&#039;s up to you to choose which path Jill will take!","rank":10,"rankLastWeek":202,"rankChange":189,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=cakemania2","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/cakemania2\/cakemania2_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"all"}},"top-5-card-games":{"web_po":{"name":"Hold &#039;Em Poker","shortDesc":"Join in the poker craze with our free multi-player version of Hold &#039;em Poker!","rank":1,"rankLastWeek":2,"rankChange":1,"playUrl":"http:\/\/games.yahoo.com\/po","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/gameart2\/po\/po-150.gif","imageWidth":150,"imageHeight":150,"genre":"other"},"web_py":{"name":"Pyramids","shortDesc":"Check out our version of Tri-Peaks solitaire, available exclusively on Yahoo!","rank":2,"rankLastWeek":3,"rankChange":1,"playUrl":"http:\/\/games.yahoo.com\/py","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/gameart2\/py\/py-150.gif","imageWidth":150,"imageHeight":150,"genre":"other"},"solitairechallenge":{"name":"Solitaire Challenge","shortDesc":"Take a break today with this fantastic collection of solitaire games.","rank":3,"rankLastWeek":20,"rankChange":12,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=solitairechallenge","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/solitairechallenge\/solitairechallenge_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"uno":{"name":"UNO - Undercover","shortDesc":"Experience the classic card game in two different and exciting ways.","rank":4,"rankLastWeek":16,"rankChange":4,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=uno","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/uno\/uno_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"alohasolitaire":{"name":"Aloha Solitaire","shortDesc":"Relax with a mix of classic card games and mahjong on the golden sands of Hawaii.","rank":5,"rankLastWeek":24,"rankChange":10,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=alohasolitaire","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/alohasolitaire\/alohasolitaire_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"}},"top-5-hidden-object":{"dreamdayvegasbundle":{"name":"Dream Day Wedding: Vegas Bundle","shortDesc":"Dream Day Wedding: Viva Las Vegas and First Home bundle!","rank":1,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=dreamdayvegasbundle","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/dreamdayvegasbundle\/dreamdayvegasbundle_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"samanthaswift2":{"name":"Samantha Swift and the Golden Touch","shortDesc":"Unravel the mysteries of King Midas&#039; Golden Touch!","rank":2,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=samanthaswift2","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/samanthaswift2\/samanthaswift2_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"chosenchild":{"name":"Dream Chronicles: The Chosen Child","shortDesc":"Unlock the secrets of the mysterious fairy realm in the third installment of the award-winning Dream Chronicles series.","rank":3,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=chosenchild","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/chosenchild\/chosenchild_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"jewelquestmysteries":{"name":"Jewel Quest Mysteries","shortDesc":"The Jewel Quest franchise branches out in an all new hidden object adventure!","rank":4,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=jewelquestmysteries","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/jewelquestmysteries\/jewelquestmysteries_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"dreammachine":{"name":"Can You See What I See? Dream Machine","shortDesc":"Help Curfuffle out of a pickle. Use the dream machine to find the rare items!","rank":5,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=dreammachine","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/dreammachine\/dreammachine_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"}},"top-5-puzzle-games":{"buildalot3":{"name":"Build-a-lot 3: Passport to Europe","shortDesc":"Travel through Europe restoring houses for big profits!","rank":1,"rankLastWeek":460,"rankChange":459,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=buildalot3","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/buildalot3\/buildalot3_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"artistcolony":{"name":"Artist Colony","shortDesc":"Inspire artists as they find love, betrayal and achieve creative genius.","rank":2,"rankLastWeek":580,"rankChange":578,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=artistcolony","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/artistcolony\/artistcolony_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"parkingdash":{"name":"Parking Dash","shortDesc":"To keep customers happy, you&#039;ll have to be quick to click as you rack, track, and even stack automotive gems from every corner of DinerTown.","rank":3,"rankLastWeek":178,"rankChange":175,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=parkingdash","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/parkingdash\/parkingdash_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"sunsetstudio":{"name":"Sunset Studio: Love on the High Seas","shortDesc":"Keep a big budget Hollywood blockbuster from sinking!","rank":4,"rankLastWeek":583,"rankChange":578,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=sunsetstudio","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/sunsetstudio\/sunsetstudio_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"scrabbleplus":{"name":"SCRABBLE Plus","shortDesc":"You&#039;ve never played SCRABBLE like this before!","rank":5,"rankLastWeek":582,"rankChange":576,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=scrabbleplus","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/scrabbleplus\/scrabbleplus_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"}},"top-5-strategy-games":{"cookingacademy2":{"name":"Cooking Academy 2","shortDesc":"A whole world of food for you to prepare!","rank":1,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=cookingacademy2","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/cookingacademy2\/cookingacademy2_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"westward3":{"name":"Westward III: Gold Rush","shortDesc":"Steer the fortunes of three adventurous pioneers as they build and defend their ever-growing settlement!","rank":2,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=westward3","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/westward3\/westward3_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"virtualvillagers3":{"name":"Virtual Villagers - The Secret City","shortDesc":"Guide a tribe of castaways as they live, breed, and discover secrets about their mysterious home in this real-time sim adventure.","rank":3,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=virtualvillagers3","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/virtualvillagers3\/virtualvillagers3_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"cinematycoon2":{"name":"Cinema Tycoon 2: Movie Mania","shortDesc":"Do you have what it takes to become a Cinema Tycoon?","rank":4,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=cinematycoon2","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/cinematycoon2\/cinematycoon2_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"fairygodmothertycoon":{"name":"Fairy Godmother Tycoon","shortDesc":"Build a potion empire. Make a fortune!","rank":5,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=fairygodmothertycoon","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/fairygodmothertycoon\/fairygodmothertycoon_screenshot1-1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"}},"top-5-time-management":{"dinertowntycoon":{"name":"DinerTown Tycoon","shortDesc":"Save DinerTown from the evil Grub Burger.","rank":1,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=dinertowntycoon","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/dinertowntycoon\/dinertowntycoon_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"diaperdash":{"name":"Diaper Dash","shortDesc":"Keep all of the babies of DinerTown happy in the cutest Dash game yet!","rank":2,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=diaperdash","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/diaperdash\/diaperdash_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"winemaker":{"name":"Winemaker Extraordinaire","shortDesc":"Own and build a successful winemaking empire in the beautiful Italian countryside!","rank":3,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=winemaker","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/winemaker\/winemaker_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"airportmania":{"name":"Airport Mania","shortDesc":"Take over the control tower and try your own hand at running an airport in Airport Mania!","rank":4,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=airportmania","imageUrl":"http:\/\/l.yimg.com\/a\/i\/\/us\/ga\/dload\/games\/airportmania\/airportmania_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"},"cakemania3":{"name":"Cake Mania 3","shortDesc":"Jill confronts her greatest challenge yet... planning her dream wedding!","rank":5,"rankLastWeek":0,"rankChange":0,"playUrl":"http:\/\/get.games.yahoo.com\/proddesc?gamekey=cakemania3","imageUrl":"http:\/\/l.yimg.com\/a\/i\/us\/ga\/dload\/games\/cakemania3\/cakemania3_screenshot1.jpg","imageWidth":212,"imageHeight":167,"genre":"other"}}};
				var lists = YAHOO.util.Dom.getElementsByClassName('list', 'ul', YAHOO.util.Dom.get('top-games'));
				var options = [];
				var vibesLists = [];
				for (var x in lists) {					
					if (x > 0) {
						var title = lists[x].getAttribute('data-title');
						var value = x - 1;
						var opt = new YAHOO.Games.controls.PickerOption(title, value);
						if (lists[x].getAttribute('data-editorial') == 1) {
							options.push(opt);
						} else {
							vibesLists.push(opt);
						}
					}
					lists[x] = new YAHOO.Games.FlyoutList(lists[x]);
				}
				options.push(new YAHOO.Games.controls.PickerOption('--', null)); // Separator
				for (var x in vibesLists) {
					options.push(vibesLists[x]);
				}
				var more = YAHOO.util.Dom.get('more-lists');
				if (more) {
					var picker = new YAHOO.Games.controls.Picker(options);
					more.parentNode.insertBefore(picker.domNode, more);
					picker.init();
					var keys = {A_pn:'Yahoo! Games Home'};
					var conf = {spaceid:780000010, tracked_mods:{'top-games':'Top Games'}, keys:keys}; 
					var ins = new YAHOO.i13n.Track(conf); 
					ins.init();
					YAHOO.util.Dom.addClass(more, 'swapper');
					var swapper = new YAHOO.Games.controls.Swapper(more, picker);
				}YAHOO.Media.Dtk.CarouselMgr.init("featured-games",{animDur:0.4});YAHOO.Media.Dtk.CarouselMgr.init("video-games",{animDur:0.4});with({
        els : YAHOO.util.Dom.getElementsByClassName("rolloverimagelinks"),
        bd:YAHOO.util.Dom.getElementsByClassName("bd-wrap","div","daily-puzzles")[0],
        E:YAHOO.util.Event,
        i:0,
        over:null,
        out:null,
        img:null,
        to:0
    }) {
    over=function(e) {
        window.clearTimeout(to);
        bd.style.backgroundImage=this.imgSrc;
    };
    out=function(e) {
        // set a timeout so that it doesnt flicker the default between each mouseover
        to=window.setTimeout(function(){bd.style.backgroundImage=bd.NormalBackground;},100);
    };
    if (els && els.length) {
        for(i=0;i<els.length;i++) {
            // snatch the img url, and save it on the A tag.
            img=els[i].getElementsByTagName("img");
            if (img && img[0]) {
                img=img[0];
                els[i].imgSrc="url(\"" + img.src + "\")";
                img.parentNode.removeChild(img);
                img=null;
                // swap out the backgroundImage of the bd-wrap element.
                E.on(els[i],"mouseover",over);
                E.on(els[i],"mouseout",out);
            }
        }
        // save the normal backgroundImage setting.
        bd.NormalBackground=YAHOO.util.Dom.getStyle(bd,"backgroundImage");
    }
}