var chromeColor="#003399",chromeWidth=994,flashWidth=994,legalFooterColor="#FFFFFF",legalFtrCpyRgt="&copy; Disney Enterprises, Inc.",firstload=!0,channelLoading=!1,frameworkRegistered=!1,adz=10,adzStartingValue=11,ads=[],adPadding=7,slugPadding=8,adContentArray={},adResizeTimers={},iframeResizeTimer=100,legalFooterColor="#000000",legalFooterDCOM3=!0,currentPageWidth=0,refreshTimeout,animationStep=10,popCopyrightURL="http://disney.go.com/dxd/dxd_copyright.html",theFooterImage="disney_footer.png",theFooterHREF=
"http://disney.go.com/index",games=["games","games.png","http://disney.go.com/games"],videos=["videos","videos.png","http://disney.go.com/videos"],characters=["characters","characters.png","http://disney.go.com/characters"],mypage=["mypage","mypage.png","http://disney.go.com/mypage"],footerData=[games,videos,characters,mypage],footerImagePath="http://a.dolimg.com/en-US/dcom/media/footer/",legalFooterElements=["lgCopyRight","lgGuestServices","lgSiteMap","lgPrivacyPolicy","lgTermsOfUse","lgInternetSafety",
"lgContent","dxdCopyRight"],adholder_728_90="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/728x90_holder_ADSlug.png",holder_728_90="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/728x90_holder.png",adholder_160_600="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/160x600_holder_ADSlug.png",holder_160_600="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/160x600_holder.png",adholder_300_250="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/300x250_holder_ADSlug.png",holder_300_250="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/300x250_holder.png",
adholder_180_150="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/180x150_holder_ADSlug.png",holder_180_150="http://a.dolimg.com/en-US/dxd/media/bitmaps/ads/180x150_holder.png",swfSource="http://a.dolimg.com/en-US/dxd/DFSF.swf",expressInstallSource="http://a.dolimg.com/en-US/dcom/swf/expressInstall.swf",framebusterURL="http://disney.go.com/home/html/index.html",countryList=["united states","canada","puerto rico","anon"],internationalRedirectURL="http://disney.go.com/dxd/international.html",lightPageRedirectURL=
"http://home.disney.go.com/lite/index",noFlashRedirectURL="http://disney.go.com/home/html/index.html?flash=false",cto_account="disneycom",cto_category="dcore",cto_site="dcom",cto_siteSection="",cto_pageName="dxd_html_wrapper",cto_contentType="regular",cto_brandSegment="dxd",cto_property="",cto_region="",cto_country="",cto_unit="dol",isCDS=!1,chromeWidth=994,chromeTop=120,chromeDivName="GC_holder",footerWidth=994,footerDivName="GF_holder",flashWidth=994,firstload=!0,frameworkRegistered=channelLoading=
!1,adz=10,adzStartingValue=11,ads=[],adSlugs=[],adPadding=7,slugPadding=8,slugWidth=10,adContentArray={},adResizeTimers={},iframeResizeTimer=30,currentPageWidth=0,animationStep=10,diamondController=null,touController=null,theGameWidth=500,theGameHeight=350,theContainerWidth=500,theContainerHeight=350,gameFrameLeft=33,gameFrameTop=349,footerComImageDiv="gde_comScoreLogo",handshake_xml_url="http://a.dolimg.com/diamond/DCOM_GlobalReg_Common/Small_512x384_Black/data/handshake.xml",MESSAGE_LOGIN="com.disney.gem.messaging.DiamondLoggedInMessage",
MESSAGE_REGISTER="com.disney.gem.messaging.UserRegisteredMessage",MESSAGE_DNAME_FLOW="com.disney.gem.messaging.DNameStartFlowMessage",MESSAGE_PAUSE="com.disney.dcom.activity.PauseActivityMessage",MESSAGE_RESUME="com.disney.dcom.activity.ResumeActivityMessage",LOGGED_IN="com.disney.coretech.dfsf.messaging.RequestSessionLoginMessage",LOG_OUT="com.disney.gem.messaging.LogoutMessage";
if(typeof diamondConfigMapping=="undefined")var diamondConfigMapping=[],diamondConfigMapping=[{channelCategory:"my page",templateID:"GlobalReg_Portals_MyDisney_Login_SiteConfig"},{channelCategory:"characters",templateID:"GlobalReg_Portals_Characters_Login_SiteConfig"},{channelCategory:"activities",templateID:"GlobalReg_Portals_Create_Login_SiteConfig"},{channelCategory:"videos",templateID:"GlobalReg_Portals_Videos_Login_SiteConfig"},{channelCategory:"games",templateID:"GlobalReg_Portals_Games_Login_SiteConfig"},
{channelCategory:"my disney",templateID:"GlobalReg_Portals_MyDisney_Login_SiteConfig"},{channelCategory:"default",templateID:"GlobalReg_Portals_NoPortalSpecified_Login_SiteConfig"},{channelCategory:"--",templateID:"GlobalReg_Portals_NoPortalSpecified_Login_SiteConfig"}];
if(typeof chromeLinkMap=="undefined")var chromeLinkMap=["Activities - Apps|create|http://disney.go.com/create/apps/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Artist|create|http://disney.go.com/create/artist/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Artists|create|http://disney.go.com/create/artists/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Designer|create|http://disney.go.com/create/designer/|comscore_entertainment_8pt.gif|http://disney.go.com/create",
"Activities - Director|create|http://disney.go.com/create/director/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Galleries|create|http://disney.go.com/create/galleries/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Hall of Fame|create|http://disney.go.com/create/halloffame/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Master|create|http://disney.go.com/create/|comscore_entertainment_8pt.gif|http://disney.go.com/create",
"Activities - Musician|create|http://disney.go.com/create/musician/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - My Create|create|http://disney.go.com/create/mycreate/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Activities - Writer|create|http://disney.go.com/create/writer/|comscore_entertainment_8pt.gif|http://disney.go.com/create","Characters - All|characters|http://disney.go.com/characters/all/|comscore_entertainment_8pt.gif|http://disney.go.com/characters",
"Characters - Animated|characters|http://disney.go.com/characters/animated/|comscore_entertainment_8pt.gif|http://disney.go.com/characters","Characters - Classics|characters|http://disney.go.com/characters/classics/|comscore_entertainment_8pt.gif|http://disney.go.com/characters","Characters - Live Action|characters|http://disney.go.com/characters/liveaction/|comscore_entertainment_8pt.gif|http://disney.go.com/characters","Characters - Master|characters|http://disney.go.com/characters/|comscore_entertainment_8pt.gif|http://disney.go.com/characters",
"Characters - Music Stars|characters|http://disney.go.com/characters/musicstars/|comscore_entertainment_8pt.gif|http://disney.go.com/characters","Games - Action|games|http://disney.go.com/games/action/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - All|games|http://disney.go.com/games/more/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - Arcade|games|http://disney.go.com/games/arcade/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - Characters|games|http://disney.go.com/games/characters/|comscore_entertainment_8pt.gif|http://disney.go.com/games",
"Games - Master|games|http://disney.go.com/games/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - Puzzle|games|http://disney.go.com/games/puzzle/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - Sports|games|http://disney.go.com/games/sports/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - Video Games|games|http://disney.go.com/games/videogames/|comscore_entertainment_8pt.gif|http://disney.go.com/games","Games - Word|games|http://.disney.go.com/games/word/|comscore_entertainment_8pt.gif|http://disney.go.com/games",
"My Page - Master|my_page|http://disney.go.com/mypage/|comscore_entertainment_8pt.gif|http://disney.go.com/mypage","My Disney|my_disney|http://disney.go.com/mydisney/|comscore_entertainment_8pt.gif|http://disney.go.com/mydisney","Videos - Characters|videos|http://disney.go.com/videos/characters/|comscore_entertainment_8pt.gif|http://disney.go.com/videos","Videos - Classics|videos|http://disney.go.com/videos/classics/|comscore_entertainment_8pt.gif|http://disney.go.com/videos","Videos - Disney Channel|videos|http://disney.go.com/tv/|comscore_entertainment_8pt.gif|http://disney.go.com/videos",
"Videos - Disney XD|videos|http://disney.go.com/disneyxd/|comscore_entertainment_8pt.gif|http://disney.go.com/videos","Videos - Master|videos|http://disney.go.com/videos/|comscore_entertainment_8pt.gif|http://disney.go.com/videos","Videos - More|videos|http://disney.go.com/videos/more/|comscore_entertainment_8pt.gif|http://disney.go.com/videos","Videos - Movies|videos|http://disney.go.com/videos/movies/|comscore_entertainment_8pt.gif|http://disney.go.com/videos","Videos - Music Videos|videos|http://disney.go.com/musicvideos/|comscore_entertainment_8pt.gif|http://disney.go.com/videos",
"Videos - TV Shows|videos|http://disney.go.com/videos/tvshows/|comscore_entertainment_8pt.gif|http://disney.go.com/videos"];var isIE=!1,isIE=isInternetExplorer();function registerFramework(){frameworkRegistered=!0}function getPanelSetConfiguration(){!firstload&&!channelLoading&&(channelLoading=!0)}function onPanelSetLoaded(){}function onPanelSetShowing(){}function onTransitionComplete(){firstload&&(firstload=!1);channelLoading&&(channelLoading=!1)}
function scrollToTop(a){a==void 0&&(a=0);getYOffset()>parseInt(a)&&(window.scrollBy(0,-40),scrolldelay=setTimeout("scrollToTop("+a+")",5))}function getYOffset(){return typeof window.pageYOffset=="number"?window.pageYOffset:document.body.scrollTop}function popCopyright(){window.open("http://disney.go.com/dxd/dxd_copyright.html","copyrightPop","width=500,height=625, scrollbar=yes")}
function setWmode(a){var b=navigator.userAgent.toLowerCase(),c=b.indexOf("mac")>-1,d=b.indexOf("firefox/2")>-1,e=b.indexOf("firefox/3")>-1,b=b.indexOf("safari")>-1&&b.indexOf("applewebkit")>-1&&(b.indexOf("416")>-1||b.indexOf("412")>-1),g="Window";if(a=="true"||a)g=c&&(d||b)?"transparent":e&&c?"window":"opaque";if(getWmode()!=g)getSWF("dxdcontent").wmode=g}function getWmode(){return getSWF("dxdcontent").wmode}
function resizeDXD(a,b){getSWF("dxdcontent").style.height=Number(b);try{bumpChromeAndFooter()}catch(c){}}function repositionDXD(a,b){var c=getSWF("dxdcontent");if(a!=null&&a>=0)c.style.left=a;if(b!=null&&b>=0)c.style.top=b}function changeBackgroundColor(a){var b=navigator.appVersion.split("MSIE");parseFloat(b[1]);try{_gdeFooter.hideFooter()}catch(c){}document.body.style.backgroundColor=a}function getSWF(a){return swfobject.getObjectById(a)}
function removeResizeTimers(){for(var a in adResizeTimers)clearTimeout(adResizeTimers[a]);adResizeTimers={}}function hideAdPanels(){removeResizeTimers();adsRefreshing=!1;clearTimeout(refreshTimeout);var a=ads.length;for(i=0;i<a;i++)document.getElementById("frame").removeChild(ads[0]),ads.shift();for(;adSlugs.length>0;)document.getElementById("frame").removeChild(adSlugs[0]),adSlugs.shift()}var adsRefreshing=!1;
function refreshAd(a){adsRefreshing=!0;removeResizeTimers();a=adContentArray[a];getSWF("dxdcontent").refreshAd(a)}function adjustAdX(a){var b=parseInt((document.body.offsetWidth-flashWidth)/2);b<0&&(b=0);b+=a;return b}function bumpAdsAndGame(){bumpGame();bumpChromeAndFooter();for(var a=0;a<ads.length;a++)try{var b=ads[a].id.replace("ab_dxd_ad","");document.getElementById(ads[a].id).style.left=adjustAdX(adContentArray[b].x)+"px"}catch(c){}}
function bumpGame(){try{var a=document.getElementById("game"),b=adjustAdX((theContainerWidth-theGameWidth)/2+gameFrameLeft);isIE&&(b>gameFrameLeft+10?b-=10:b=gameFrameLeft);a.style.left=b+"px";a.style.top=(theContainerHeight-theGameHeight)/2+gameFrameTop+"px"}catch(c){}}
function bumpChromeAndFooter(){try{var a=document.getElementById(chromeDivName),b=document.getElementById(footerDivName);if(a){var c=adjustAdX(chromeWidth)-chromeWidth;isIE&&c>10&&(c-=10);a.style.marginLeft="0px";a.style.left=c+"px"}if(b){c=adjustAdX(footerWidth)-footerWidth;isIE&&c>10&&(c-=10);b.style.marginLeft="0";b.style.left=c+"px";var d=parseInt(getSWF("dxdcontent").style.height);b.style.top=d+"px";b.style.visibility="visible"}}catch(e){}}
function addAdTracking(a){if(a!=null){adz++;var b=document.createElement("div");b.setAttribute("id","ab_dxd_ad"+adz);ads.push(b);b.style.width=10;b.style.height=1;b.style.position="absolute";b.style.left=0;b.style.top=0;b.style.zIndex=adz;document.getElementById("frame").appendChild(b);var c=document.createElement("iframe");c.setAttribute("name","adframe"+adz);c.setAttribute("id","adframe"+adz);c.setAttribute("frameBorder",0);c.setAttribute("marginHeight",0);c.setAttribute("marginWidth",0);c.setAttribute("height",
10);c.setAttribute("width",10);c.setAttribute("scrolling","no");c.setAttribute("allowTransparency",!0);c.setAttribute("transparency",!0);c.setAttribute("style","background-color:transparent;filter:alpha(opacity=100)!important");c.src="about:blank";b.appendChild(c);c.contentWindow.document.open("text/html","replace");c.contentWindow.document.write('<html><head><title></title><script>function errorHandler(){return true;}; window.onerror=errorHandler<\/script></head><body id="adBody" class="adBody" style="background-color:transparent"><div id="content">'+
unescape(a)+"</div></body></html>");c.contentWindow.document.close();c.contentWindow.onerror=errorsuppressor}}function MouseMoveDelegate(a,b){this.onMouseMove=function(c){if(!(a==void 0||b==void 0)){if(!c)c=a.contentWindow.window.event;b(c)}}}
function addAdPanel(a,b,c,d,e,g,j,f,h,k,n){var s=!1;adz++;b?adContentArray[adz]={id:a,x:b,y:c,w:d,h:e,r:g,s:j,bg:f,url:h,data:k,adCategory:n}:(adContentArray[adz]={id:adContentArray[a].id,x:adContentArray[a].x,y:adContentArray[a].y,w:adContentArray[a].w,h:adContentArray[a].h,r:adContentArray[a].r,s:adContentArray[a].s,bg:adContentArray[a].bg,url:adContentArray[a].url,data:adContentArray[a].data,adCategory:adContentArray[a].adCategory},adContentArray.splice(a));b=document.createElement("div");b.setAttribute("id",
"ab_dxd_ad"+adz);ads.push(b);if(a.indexOf("Floating")>-1)s=!0,b.innerHTML=unescape(adContentArray[adz].data);g>0&&(clearTimeout(refreshTimeout),refreshTimeout=setTimeout('refreshAd("'+adz+'")',g*1E3));if(adContentArray[adz]){if(!s){b.style.width=adContentArray[adz].w-adPadding+"px";b.style.height=adContentArray[adz].h-adPadding+"px";b.style.position="absolute";b.style.textAlign="center";b.style.left=adjustAdX(adContentArray[adz].x)+"px";b.style.top=adContentArray[adz].y+"px";b.style.zIndex=adz;b.style.paddingTop=
adPadding+"px";b.style.paddingLeft=adPadding+"px";var p=document.createElement("div");p.setAttribute("id","container")}if(adContentArray[adz].data==null){if(a.indexOf("Leaderboard")>-1)makeHttpRequest(adContentArray[adz].url,"loadBanner",!1,b,!0);else if(adContentArray[adz].id.indexOf("Skyscraper")>-1)makeHttpRequest(adContentArray[adz].url,"loadBanner",!1,b,!0);else if(adContentArray[adz].id.indexOf("Rectangle")>-1)makeHttpRequest(adContentArray[adz].url,"loadBanner",!1,b,!0);else{var t="";return}if(t)b.innerHTML=
t,b.runttimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f+"',sizingMethod='scale')",b.appendChild(p)}else document.getElementById("frame").appendChild(b),setTimeout("displayAdData("+adz+")",1E3);if(adContentArray[adz].id.indexOf("Leaderboard")>-1){adContentArray[adz].type="Leaderboard";if(adContentArray[adz].s)b.style.width=adContentArray[adz].w-slugPadding+"px",b.style.paddingLeft=slugPadding+"px";if(adContentArray[adz].bg==void 0)b.style.backgroundImage=adContentArray[adz].s?
"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/728x90_holder_ADSlug.png)":"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/728x90_holder.png)";parseInt(getSWF("dxdcontent").style.height)<=800&&moveDXDSwfDownTo(115)}else if(adContentArray[adz].id.indexOf("Skyscraper")>-1){adContentArray[adz].type="Skyscraper";if(adContentArray[adz].s)b.style.height=adContentArray[adz].h-slugPadding+"px",b.style.paddingTop=slugPadding+"px";if(adContentArray[adz].bg==void 0)b.style.backgroundImage=adContentArray[adz].s?
"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/160x600_holder_ADSlug.png)":"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/160x600_holder.png)"}else if(adContentArray[adz].id.indexOf("Medium Rectangle")>-1){adContentArray[adz].type="Medium Rectangle";if(adContentArray[adz].s)b.style.height=adContentArray[adz].h-slugPadding+"px",b.style.paddingTop=slugPadding+"px";if(adContentArray[adz].bg==null)b.style.backgroundImage=adContentArray[adz].s?"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/300x250_holder_ADSlug.png)":
"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/300x250_holder.png)"}else if(adContentArray[adz].id.indexOf("Rectangle")>-1){adContentArray[adz].type="Rectangle";if(adContentArray[adz].s)b.style.height=adContentArray[adz].h-slugPadding+"px",b.style.paddingTop=slugPadding+"px";b.style.height=b.style.height+50+"px";if(adContentArray[adz].bg==null)b.style.backgroundImage=adContentArray[adz].s?"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/180x150_holder_ADSlug.png)":"url(http://a.dolimg.com/media/en-US/dxd/bitmaps/ads/180x150_holder.png)"}if(!s){if(f)b.style.backgroundImage=
"url(http://a.dolimg.com/media/en-US/dxd/"+f+")";b.style.backgroundRepeat="no-repeat"}}}var animateDXDSwf;function moveDXDSwfDownTo(a){var b=parseInt(getSWF("dxdcontent").style.marginTop)+animationStep;clearTimeout(animateDXDSwf);animateDXDSwf=setTimeout("animateDXDSwfDownTo('"+b+"','"+a+"')",20)}
function animateDXDSwfDownTo(a,b){if(parseInt(b)>parseInt(a)){getSWF("dxdcontent").style.marginTop=a+"px";var c=parseInt(getSWF("dxdcontent").style.marginTop)+animationStep;clearTimeout(animateDXDSwf);animateDXDSwf=setTimeout("animateDXDSwfDownTo('"+c+"','"+b+"')",20)}else clearTimeout(animateDXDSwf),getSWF("dxdcontent").style.marginTop=b+"px"}
function moveDXDSwfUpTo(a){var b=parseInt(getSWF("dxdcontent").style.marginTop)-animationStep;clearTimeout(animateDXDSwf);animateDXDSwf=setTimeout("animateDXDSwfUpTo('"+b+"','"+a+"')",20)}
function animateDXDSwfUpTo(a,b){if(parseInt(b)<parseInt(a)){getSWF("dxdcontent").style.marginTop=a+"px";var c=parseInt(getSWF("dxdcontent").style.marginTop)-animationStep;clearTimeout(animateDXDSwf);animateDXDSwf=setTimeout("animateDXDSwfUpTo('"+c+"','"+b+"')",20)}else clearTimeout(animateDXDSwf),getSWF("dxdcontent").style.marginTop=b+"px"}var animateChrome;
function moveChromeDownTo(a){var b=document.getElementById("GC_holder"),b=parseInt(b.style.marginTop);isNaN(b)&&(b=0);b+=animationStep;clearTimeout(animateChrome);animateChrome=setTimeout("animateChromeDownTo('"+b+"','"+a+"')",20)}
function animateChromeDownTo(a,b){if(parseInt(b)>parseInt(a)){document.getElementById("GC_holder").style.marginTop=a+"px";var c=parseInt(document.getElementById("GC_holder").style.marginTop);isNaN(c)&&(c=0);c+=animationStep;clearTimeout(animateChrome);animateChrome=setTimeout("animateChromeDownTo('"+c+"','"+b+"')",20)}else clearTimeout(animateChrome),document.getElementById("GC_holder").style.marginTop=b+"px"}
function moveChromeUpTo(a){var b=parseInt(document.getElementById("GC_holder").style.marginTop);isNaN(b)&&(b=0);b-=animationStep;clearTimeout(animateChrome);animateChrome=setTimeout("animateChromeUpTo('"+b+"','"+a+"')",20)}
function animateChromeUpTo(a,b){if(parseInt(b)<parseInt(a)){document.getElementById("GC_holder").style.marginTop=a+"px";var c=parseInt(document.getElementById("GC_holder").style.marginTop);isNaN(c)&&(c=0);c-=animationStep;clearTimeout(animateChrome);animateChrome=setTimeout("animateChromeUpTo('"+c+"','"+b+"')",20)}else clearTimeout(animateChrome),document.getElementById("GC_holder").style.marginTop=b+"px"}var mouseX,mouseY,lastMousePos;
function trackMouse(a){if(!a)a=window.event;if(a)isOverLeaderBoard=isOverSkyscraper=!1,lastMousePos=a,a.pageX||a.pageY?(mouseX=a.pageX,mouseY=a.pageY):(mouseX=a.clientX,mouseY=a.clientY)}function trackMouseIframeSkyScrapper(a){a&&(isOverSkyscraper=!0,a.pageX||a.pageY?(mouseX=lastMousePos.pageX+a.pageX,mouseY=lastMousePos.pageY+a.pageY):(mouseX=lastMousePos.clientX+a.clientX,mouseY=lastMousePos.clientY+a.clientY))}
function trackMouseIframeLeaderboard(a){a&&(isOverLeaderBoard=!0,a.pageX||a.pageY?(mouseX=lastMousePos.pageX+a.pageX,mouseY=lastMousePos.pageY+a.pageY):(mouseX=lastMousePos.clientX+a.clientX,mouseY=lastMousePos.clientY+a.clientY))}window.onresize=bumpAdsAndGame;var bSkyscraperExpanded=!1,bLeaderboardExpanded=!1,isOverSkyscraper,isOverLeaderBoard;
function iframeResizeWatcher(a,b,c){if(document.body.offsetWidth!=currentPageWidth)currentPageWidth=document.body.offsetWidth;adframe=document.getElementById("adframe"+a);addiv=document.getElementById("ab_dxd_ad"+a);var d,e;try{d=adframe.contentWindow.document.body.getElementsByTagName("embed"),e=adframe.contentWindow.document.body.getElementsByTagName("object")}catch(g){console.log("iframeResizeWatcher catch 1"+g);return}try{if(window.ActiveXObject&&!adContentArray[a].reloaded){adContentArray[a].reloaded=
!0;adframe.contentWindow.location.reload(!1);clearTimeout(adResizeTimers[a]);adResizeTimers[a]=setTimeout("iframeResizeWatcher('"+a+"', "+b+", "+c+")",iframeResizeTimer);return}if(adContentArray[a].delegate&&adframe&&adframe.contentWindow&&adframe.contentWindow.document.onmousemove!=adContentArray[a].delegate.onMouseMove)adframe.contentWindow.document.onmousemove=adContentArray[a].delegate.onMouseMove;if(adContentArray[a].type=="Leaderboard"){var j=0,f=0;if(e.length>0&&(e[0].height>c||e[0].height==
"100%"))j=e[0].height;else if(d.length>0&&(d[0].height>c||d[0].height=="100%"))j=d[0].height;f=adframe.contentWindow.document.body.scrollHeight;f=j=="100%"||j>c||isOverLeaderBoard?adframe.contentWindow.document.body.scrollHeight>c?350:c:c;if(f>=c)addiv.style.height=f+"px",adframe.style.height=f+"px",bLeaderboardExpanded=!0}else if(adContentArray[a].type=="Skyscraper"||adContentArray[a].type=="Medium Rectangle"){f=j=0;if(e.length>0&&(e[0].width>b||e[0].width=="100%"))j=e[0].width;else if(d.length>
0&&(d[0].width>b||d[0].width=="100%"))j=d[0].width;var h=adContentArray[a].type=="Medium Rectangle"?adjustAdX(adContentArray[a].x):adjustAdX(adContentArray[a].x),f=j=="100%"||j>b||isOverSkyscraper?parseInt(adframe.contentWindow.document.body.scrollWidth)>b?adframe.contentWindow.document.body.scrollWidth:b:b;if(f>b){var k=adframe.contentWindow.document.getElementById("content");if(k!=null)k.style.marginLeft=f-b+"px";addiv.style.backgroundPosition=f-b+"px 0";adframe.contentWindow.document.body.style.left=
h+(b-f)+"px";addiv.style.left=h+(b-f)+"px";addiv.style.width=f+"px";adframe.style.width=f+"px";bSkyscraperExpanded=!0}else{f=b;k=adframe.contentWindow.document.getElementById("content");if(k!=null)k.style.marginLeft=f-b+"px";addiv.style.backgroundPosition=f-b+"px 0";adframe.contentWindow.document.body.style.left=h+(b-f)+"px";addiv.style.left=h+(b-f)+"px";addiv.style.width=f+"px";adframe.style.width=f+"px";bSkyscraperExpanded=!1}}}catch(n){console.log("iframeResizeWatcher catch 3"+n)}clearTimeout(adResizeTimers[a]);
adResizeTimers[a]=setTimeout("iframeResizeWatcher('"+a+"', "+b+", "+c+")",iframeResizeTimer)}
function displayAdData(a,b){b==null&&(b=document.getElementById("ab_dxd_ad"+a));var c=document.createElement("iframe");c.setAttribute("name","adframe"+a);c.setAttribute("id","adframe"+a);c.setAttribute("frameBorder",0);c.setAttribute("height",b.style.height);c.setAttribute("width",b.style.width);c.setAttribute("marginHeight",0);c.setAttribute("marginWidth",0);c.setAttribute("scrolling","no");c.setAttribute("allowTransparency",!0);c.setAttribute("transparency",!0);c.setAttribute("style","background-color:transparent;filter:alpha(opacity=100)!important");
var d=document.getElementById("ab_dxd_ad"+a);adContentArray[a].data.replace("'","'");adContentArray[a].data.replace('"','"');if(adContentArray[a].data.toLowerCase().indexOf("script")>-1){c.src="about:blank";var e=unescape(adContentArray[a].data),g=/^[^<]*<table[^<]+<tr[^<]+<td[^>]*>(<img src="([^"]*)"[^>]*>)/,g=g.exec(e);if(g!=null){var j=g[1],f=document.createElement("div");f.setAttribute("id","ab_dxd_ad"+a+"slug");f.style.position="absolute";f.style.zIndex=a+1;f.style.left=d.style.left;f.style.top=
d.style.top;f.style.paddingLeft=d.style.paddingLeft;f.style.paddingTop=d.style.paddingTop;f.innerHTML=j;document.getElementById("frame").appendChild(f);adSlugs.push(f);var g=/^[^<]*<table[^<]+<tr[^<]+<td[^>]*>(<img src="([^"]*)"[^>]*>)[^<]*<\/td>[^<]*<\/tr>[^<]*<tr>[^<]*<td/,h=0;g.exec(e)!=null?(h=parseInt((""+f.style.paddingTop).replace("px",""))-slugWidth,h<0&&isInternetExplorer()?f.style.marginTop=h+"px":f.style.paddingTop=h+"px"):(h=parseInt((""+f.style.paddingLeft).replace("px",""))-slugWidth,
h<0&&isInternetExplorer()?f.style.marginLeft=h+"px":f.style.paddingLeft=h+"px");e=e.replace(j,"")}d.appendChild(c);c.contentWindow.document.open("text/html","replace");c.contentWindow.document.write('<html><head><title></title><script>function errorHandler(){return true;}; window.onerror=errorHandler<\/script></head><body id="adBody" class="adBody" style="background-color:transparent"><div id="content">'+e+"</div></body></html>");c.contentWindow.document.close();clearTimeout(adResizeTimers[a]);adResizeTimers[a]=
c.contentWindow.document.body.onLoad=setTimeout("iframeResizeWatcher('"+a+"', "+b.style.width.replace("px","")+", "+b.style.height.replace("px","")+")",iframeResizeTimer);adContentArray[a].type=="Medium Rectangle"||adContentArray[a].type=="Skyscraper"?(c.style.marginTop=isInternetExplorer()?adContentArray[a].type=="Medium Rectangle"?"7px":"8px":"10px",adContentArray[a].delegate=new MouseMoveDelegate(c,trackMouseIframeSkyScrapper)):(c.style.marginLeft=isInternetExplorer()?"8px":"10px",adContentArray[a].delegate=
new MouseMoveDelegate(c,trackMouseIframeLeaderboard));c.contentWindow.onerror=errorsuppressor}else b.innerHTML=unescape(adContentArray[a].data)}function adjustFrameDimensions(a){var b=document.getElementById("adframe"+a);if(window.ActiveXObject&&!adContentArray[a].reloaded)adContentArray[a].reloaded=!0,b.contentWindow.location.reload(!1)}
function makeHttpRequest(a,b,c,d){document.getElementById("frame").appendChild(d);b=document.createElement("iframe");b.setAttribute("name","adframe"+adz);b.setAttribute("id","adframe"+adz);b.setAttribute("frameborder",0);b.setAttribute("marginheight",0);b.setAttribute("marginwidth",0);b.setAttribute("height",d.style.height);b.setAttribute("width",d.style.width);b.setAttribute("scrolling","no");b.setAttribute("allowTransparency","true");document.getElementById("ab_dxd_ad"+adz);var e=!1;if(window.XMLHttpRequest)e=
new XMLHttpRequest,e.overrideMimeType&&e.overrideMimeType("text/xml");else if(window.ActiveXObject)try{e=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(j){}}if(!e)return!1;e.onreadystatechange=function(){if(e.readyState==4&&(e.status==200||e.status==0)){if(c)d.innderHTML=e.responseXML.firstChild;else if(!(e.responseText.indexOf("script")>-1))d.innerHTML=e.responseText;document.getElementById("frame").appendChild(d)}};e.open("GET",a,!0);e.send(null)}
function writeFlash(){var a=window.location.href.indexOf("?"),b=window.location.href.indexOf("#");if(b>-1){var a=a<0?"":window.location.href.substring(a+1,b),b=window.location.href.substring(b+1),c=b.lastIndexOf("/")+1;c==-1&&(c=0);b=b.substring(c);if(a.length>0)if(a.indexOf("channel")>-1){var c=a.indexOf("channel=")+1,d=a.substring(c+6),e=d.indexOf("&");if(e==-1)e=d.length;c=d.substring(c,e);a=a.split(c);a=a[0]+b+a[1]}else a=a+"&channel="+b;else a="channel="+b}else a=a<0?"":window.location.href.substr(a+
1);a=a.length>0?a+"&"+deparams:deparams;a=a.length>0?a+"&chromeData="+escape(document.location.href):"chromeData="+escape(document.location.href);a=a.length>0?a+"&basePath=":"basePath=";e=navigator.userAgent.toLowerCase();b=e.indexOf("mac")>-1;c=e.indexOf("firefox/2")>-1;d=e.indexOf("firefox/3")>-1;e=e.indexOf("safari")>-1&&e.indexOf("applewebkit")>-1&&(e.indexOf("416")>-1||e.indexOf("412")>-1);a={menu:"false",scale:"noscale",menu:"false",quality:"best",salign:"tl",base:".",align:"t",bgcolor:"#FFFFFF",
flashVars:a,allowFullScreen:"true",allowScriptAccess:"always"};a.wmode=b&&(c||e)?"Transparent":d&&b?"Window":"Opaque";swfobject.embedSWF("http://a.dolimg.com/media/en-US/dxd/DFSF.swf","flashcontent","994","700","10.0.0","http://a.dolimg.com/swf/dcom/expressInstall.swf",!1,a,{id:"dxdcontent",name:"dxdcontent"})}function onExpressInstall(){}
function onLoadEventHandler(){document.getElementById||top.location.replace("http://disney.go.com/home/html/index.html");var a=!0;country=country.toLowerCase();(cload=country=="united states"||country=="canada"||country=="puerto rico"||country=="guam"||country=="us virgin islands"||country=="american samoa"||country=="northern mariana islands"?!0:!1)||(country=="united kingdom"?document.location.replace("http://home.disney.co.uk/"):document.location.replace("http://disney.go.com/dxd/international.html"));
var b=params(document.cookie,"MODE",null);b=="1"&&(a=!1);b=="0"&&(a=!0);deparams="connection="+connection;deparams+="&country="+country;deparams+="&loaded="+a;deparams+="&cload="+cload;deparams+="&modecheck="+b;b=swfobject.getFlashPlayerVersion();a&&b.major==0&&(SetCookieUtil("return_path",document.location,oneWeek,"",".go.com",""),document.location.replace("http://disney.go.com/home/html/index.html?flash=false"));document.onmousemove=trackMouse;createTOUController();try{cto=new CTO,cto.account="disneycom",
cto.category="dcore",cto.site="dcom",cto.siteSection="",cto.pageName="play_html_wrapper",cto.contentType="regular",cto.brandSegment="play",cto.property="",cto.region="",cto.country="",cto.unit="",cto.track()}catch(c){}}document.onLoad=onLoadEventHandler();function errorsuppressor(){return!0}
var today=new Date,expire=new Date(today.getTime()-10),oneYear=new Date(today.getTime()+31536E6),oneMonth=new Date(today.getTime()+2592E6),oneWeek=new Date(today.getTime()+6048E5),twoWeek=new Date(today.getTime()+12096E5),nonbranded="http://disney.go.com/detect/nonbranded.html";function SetCookieUtil(a,b,c,d,e,g){document.cookie=a+"="+escape(b)+(c?"; expires="+c.toGMTString():"")+(d?"; path="+d:"; path=/")+(e?"; domain="+e:"; domain=.go.com")+(g?"; secure":"")}
function SetCookieUtilRaw(a,b,c,d,e,g){document.cookie=a+"="+escape(b)+(c?"; expires="+c:"")+(d?"; path="+d:"; path=/")+(e?"; domain="+e:"; domain=.go.com")+(g?"; secure":"")}function params(a,b,c){c=c==null?"":c;try{r=unescape(a.match(RegExp(b+"=+([^&;]*)"))[1])}catch(d){r=c}return r}function GetCookie(a){return params(document.cookie,a,null)}function popWindow(a,b,c){window.open(a,b,c)}
function isInternetExplorer(){var a=-1;navigator.appName=="Microsoft Internet Explorer"&&/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)!=null&&(a=parseFloat(RegExp.$1));return a==-1?!1:!0}function chromeMessage2DFSF(a){a=a.panelID?{messageType:"com.disney.coretech.dfsf.messaging.ChangeChannelMessage",channelId:a.panelID}:{messageType:"com.disney.coretech.dfsf.messaging.NavigateToUrlMessage",url:a.url};getFlashObject("dxdcontent").sendMessage(a)}
function handleDFSFMessage(a,b){var c="";if(b)switch(b){case "com.disney.coretech.dfsf.messaging.JavascriptAdapterReadyMessage":c=getFlashObject("dxdcontent");c.watchMessageType("com.disney.coretech.dfsf.messaging.ChannelChangingMessage");c.watchMessageType("com.disney.coretech.dfsf.tracking.TrackingMessage");c.watchMessageType("com.disney.coretech.dfsf.tracking.TrackLinkMessage");c.watchMessageType("com.disney.coretech.dfsf.messaging.LoginRequestMessage");c.watchMessageType("com.disney.coretech.dfsf.messaging.RegistrationRequestMessage");
c.watchMessageType("com.disney.gem.messaging.TOURequestMessage");c.watchMessageType("com.disney.gem.messaging.DNameStartFlowMessage");c.watchMessageType("com.disney.coretech.dfsf.messaging.UserLoggedOutMessage");c.watchMessageType("com.disney.coretech.dfsf.messaging.UserLoggedInMessage");break;case "com.disney.coretech.dfsf.messaging.ChannelChangingMessage":var d=a.isMasterChannel,c=0;isCDS?d="cds":d?(d="",c=108):d="legalOnly";moveChromeDownTo(c);if(_gdeFooter.footerDisplayMode!=d)_gdeFooter.footerDisplayMode=
d,_gdeFooter.setFooterDisplayState();c=a.channelCategory;c=c.split(" - ")[0];chromeButton=c.toLowerCase().replace(" ","_");_gdeChrome.highlightChromeButton(chromeButton);changeFooter(a.channelCategory);_gdeFooter.showFooter();setChannelCategory(c);_gdeChrome.regHandshakeXML=handshake_xml_url;c=getSiteConfig();_gdeChrome.regSiteConfig=c;break;case "com.disney.coretech.dfsf.tracking.TrackingMessage":if(typeof cto=="object"){cto=null;cto=new CTO;for(d in a)cto[d]=d=="siteSection"&&a[d]=="myd"&&_gdeChrome.loginStatus?
"myd:login":a[d];cto.update()}break;case "com.disney.coretech.dfsf.messaging.LoginRequestMessage":_gdeChrome.logIn();break;case "com.disney.coretech.dfsf.messaging.RegistrationRequestMessage":_gdeChrome.logIn();break;case "com.disney.gem.messaging.TOURequestMessage":touController.show();break;case "com.disney.gem.messaging.DNameStartFlowMessage":openDiamond("dname");break;case "com.disney.coretech.dfsf.tracking.TrackLinkMessage":if(c=document.getElementById("ctoDebug"))c.innerHTML="LinkID: "+a.linkId+
"<br>LinkPos: "+a.linkPosition;break;case "com.disney.coretech.dfsf.messaging.UserLoggedOutMessage":_gdeChrome.logOut();window.location.reload();break;case "com.disney.coretech.dfsf.messaging.UserLoggedInMessage":_gdeChrome.loadSessionData()}}function openDiamond(a){var b=getSiteConfig();document.body!=null&&b!=""?(_gdeChrome.openRegistration({sequenceType:a,configUrl:handshake_xml_url,siteConfig:b}),pauseSite()):setTimeout(function(){openDiamond(a)},1E3)}
function getSiteConfig(){for(var a="",b=diamondConfigMapping.length,c=0;c<b;c++)if(_channelCategory==diamondConfigMapping[c].channelCategory){a=diamondConfigMapping[c].templateID;break}return a}
function changeFooter(a){var b="//"+(window.location.protocol.toString()=="https:"?"s":"a")+".dolimg.com/en-US/dcom/media/footer/comscore/",c="comscore_entertainment_8pt.gif";if(a)for(var d=0;d<chromeLinkMap.length;d++){var e=chromeLinkMap[d].split("|");if(a==e[0]){c=e[3];break}}if(a=document.getElementById(footerComImageDiv))a.getElementsByTagName("img")[0].src=b+c}function getFlashObject(a){return getSWF(a)}function chromeMessage(a){output="";for(items in a)output+=items+": "+a[items]+"\n"}
function chromeRegEventHandler(a){var b=getFlashObject("dxdcontent");switch(a.eventType){case "openRegistration":pauseSite();break;case "closeRegistration":isLoggedIn&&b.sendMessage({messageType:LOGGED_IN});resumeSite();break;case "loginSuccess":isLoggedIn=!0;isSitePaused==!1&&b.sendMessage({messageType:LOGGED_IN});break;case "logoutSuccess":isLoggedIn=!1;window.location.reload();break;case "registrationSuccess":b.sendMessage({messageType:MESSAGE_REGISTER})}}var isLoggedIn=!1;
function checkForHighlightedButton(){var a=location.hash;a.indexOf("#/mypage")!=-1?_gdeChrome.highlightChromeButton("my_page"):a.indexOf("#/characters")!=-1?_gdeChrome.highlightChromeButton("characters"):a.indexOf("#/games")!=-1?_gdeChrome.highlightChromeButton("games"):a.indexOf("#/videos")!=-1?_gdeChrome.highlightChromeButton("videos"):a.indexOf("#/create")!=-1&&_gdeChrome.highlightChromeButton("create")}
function createTOUController(){var a=getFlashObject("dxdcontent");document.body!=null&&a!=null?touController=new TOUController(a,"http://a.dolimg.com/media/en-US/dxd/components/dcom3_tou_popover.swf","disney.go.com,a.dolimg.com"):setTimeout("createTOUController()",1E3)}var _channelCategory;function setChannelCategory(a){_channelCategory=a.toLowerCase()}var isSitePaused=!1;
function pauseSite(){if(!isSitePaused){var a=getFlashObject("dxdcontent");isSitePaused=!0;a.sendMessage({messageType:MESSAGE_PAUSE});hideAdPanels()}}function resumeSite(){if(isSitePaused){var a=getFlashObject("dxdcontent");isSitePaused=!1;a.sendMessage({messageType:MESSAGE_RESUME});refreshAd(0)}}
function TOUController(a,b,c){var d=null,e=null,g=null;this.show=function(){e==null&&(pauseSite(),e=new TOUView(b,c),g=e.getFlash(),g.addEventListener?g.addEventListener("ondataavailable",d,!1):g.attachEvent&&g.attachEvent("ondataavailable",d))};(function(){d=function(b){if(b.customEvent)switch(b.customEvent.type){case "onViewTOU":b={messageType:"com.disney.gem.messaging.TOUDisplayMessage"};a.sendMessage(b);break;case "onAcceptTOU":b={messageType:"com.disney.gem.messaging.TOUAcceptedMessage"},a.sendMessage(b),
resumeSite(),e.close(),e=null}}})()}
function TOUView(a,b){var c=null,d=null,e=null;this.getFlash=function(){return e};this.close=function(){c.hide(g)};var g=function(){c.destroy();e!=null&&e.parentNode!=null&&e.parentNode.removeChild(e);d=e=null};(function(){d=document.createElement("div");d.style.width="516";c=new Overlay(d);var g=document.createElement("div");g.setAttribute("id","touWrapper");d.appendChild(g);swfobject.embedSWF(a,"touWrapper","516","294","10.0.0","http://a.dolimg.com/swf/dcom/expressInstall.swf",{domains:b},{allowscriptaccess:"always",
wmode:"transparent"},{});e=document.getElementById("touWrapper")})()}
function Overlay(a,b,c){var d=this,e=b,g=null,j=c,f=null,h=null,k=null,n=function(a,b){document.all?a.style.filter=b<100?"alpha(opacity="+b+")":"":(a.style.opacity=b/100,a.style.MozOpacity=b/100)};this.setContent=function(a){this.removeContent();g=a;g.style.position="absolute";g.style.left="50%";g.style.marginLeft=-g.offsetWidth/2;g.style.top="300";h.appendChild(g)};this.removeContent=function(){if(g!=null)g.style.display="none",g.parentNode.removeChild(g),g=null};this.hide=function(a){f=a;t(s)};
var s=function(){h.style.display="none";f!=null&&(f(),f=null)};this.show=function(){h.style.display="block";h.style.height=Math.max(document.body.clientHeight,document.body.scrollHeight);k.style.height=h.style.height;g.style.marginLeft=-g.offsetWidth/2;var a=parseInt(getYOffset()),b=Math.max(0,parseInt("300")-100);a>b&&scrollToTop(b);p()};var p=function(a){if(a==null||a<0)a=0;a>100&&(a=100);n(h,a);a<100&&setTimeout(function(){p(a+100)},33)},t=function(a,b){if(b==null||b>100)b=100;b<0&&(b=0);n(h,b);
b>0?setTimeout(function(){t(a,b-100)},33):a()};this.destroy=function(){this.removeContent();h.parentNode.removeChild(h)};(function(a){j==null&&(j=45);e==null&&(e="black");h=document.createElement("div");h.style.position="absolute";h.style.display="none";h.style.width="100%";h.style.height=Math.max(document.body.clientHeight,document.body.scrollHeight);h.style.left="0px";h.style.top="0px";h.style.zIndex="9999";document.body.appendChild(h);k=document.createElement("div");k.style.width=h.style.width;
k.style.height=h.style.height;k.style.position="absolute";k.style.left="0px";k.style.top="0px";k.style.backgroundColor=e;n(k,j);h.appendChild(k);a!=null&&(d.setContent(a),d.show())})(a)}var g_gameHeight,g_gameWidth;function isObject(a){var b=!1;if((a=document.getElementById(a))&&(a.nodeName==="OBJECT"||a.nodeName==="EMBED"))b=!0;return b}
function removeGame(a,b){var c=document.getElementById(a);if(c){var d=document.createElement("div");c.parentNode.insertBefore(d,c);b=="unity"?unityobject!=null&&unityobject.removeSWF(a):swfobject.removeSWF(a);d.setAttribute("id",a);d.style.visibility="hidden"}}
function loadGame(a,b,c,d,e,g,j,f,h,k){if(k=="unity"&&!unityobject)if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){setTimeout("createUnityObject(); loadGame('"+a+"', '"+b+"', '"+c+"', '"+d+"', '"+e+"', '"+g+"', '"+j+"', '"+f+"', '"+h+"', '"+k+"');",5E3);return}else createUnityObject();typeof f=="undefined"&&(f="none");g_gameHeight=d;g_gameWidth=c;isObject(h)&&removeGame(h,k);if(f=="standard"||f=="xlarge")f=="standard"?(containerWidth=580,containerHeight=410):f=="xlarge"&&(containerWidth=
750,containerHeight=500),deltaWidth=containerWidth-c,deltaHeight=containerHeight-d,scaleFactor=deltaWidth<=0&&deltaHeight>=0?containerWidth/c:deltaWidth>=0&&deltaHeight<=0?containerHeight/d:deltaWidth>=0&&deltaHeight>=0?deltaWidth/containerWidth<deltaHeight/containerHeight?containerWidth/c:containerHeight/d:Math.abs(deltaWidth/containerWidth)>Math.abs(deltaHeight/containerHeight)?containerWidth/c:containerHeight/d,c*=scaleFactor,d*=scaleFactor;var n={},s={},p={};n.apiUrl=escape(e);n.apiConfigUrl=
escape(g);n.gameConfigUrl=escape(j);p={styleclass:h,wmode:"opaque"};k=="as2"||k=="as3"?(s={menu:"false",bgcolor:"#000000",quality:"high",base:b,allowScriptAccess:"always",src:a},swfobject.embedSWF(a,h,c,d,"10.0.0","expressInstall.swf",n,s,p)):k=="unity"&&(s={menu:"false",bgcolor:"#000000",quality:"high",base:b,allowScriptAccess:"always",src:a},n={},unityobject.embedSWF(a,h,c,d,"1.0.0",null,f,n,s,p));a=document.getElementById(h);a.style.left=adjustGCX(a.style.width)+"px"}
function toggleGameVisibility(a,b){var c=document.getElementById(a);b===!0?(c.style.width=g_gameWidth+"px",c.style.height=g_gameHeight+"px"):(c.style.width="1px",c.style.height="1px")}function onDestroy(a){document[a].onDestroy()}function onSetPause(a,b){document[a].onSetPause(b)}function onSetVolume(a,b){document[a].onSetVolume(b)}function getVolume(a){return document[a].getVolume()}function getUsername(a){return document[a].getUsername()}function getUserId(a){return document[a].getUserId()}
function startGame(a,b){return document[a].startGame(b)}function endGame(a,b){return document[a].endGame(b)}function startLevel(a,b){return document[a].startLevel(b)}function endLevel(a,b){return document[a].endLevel(b)}function submitGameEvent(a,b){return document[a].submitGameEvent(b)}function storeData(a,b){document[a].storeData(b)}function retrieveData(a){document[a].retrieveData()}function deleteData(a){document[a].deleteData()}function destroy(a){document[a].destroy()}
function setPause(a,b){document[a].setPause(b)}function setVolume(a,b){document[a].setVolume(b)}function onStoreData(a,b,c){document[a].onStoreData(b,c)}function onRetrieveData(a,b,c){document[a].onRetrieveData(b,c)}function onDeleteData(a,b,c){document[a].onDeleteData(b,c)}
var unity580x410InstallImage="http://a.dolimg.com/media/en-US/dxd/bitmaps/unity/dol_unity_plugin_580x410.jpg",unity580x410InstallButtonLeft=320,unity580x410InstallButtonTop=275,unity580x410InstallButtonRight=550,unity580x410InstallButtonBottom=390,unity580x410FAQButtonLeft=325,unity580x410FAQButtonTop=245,unity580x410FAQButtonRight=430,unity580x410FAQButtonBottom=260,unity580x410ContactUsButtonLeft=440,unity580x410ContactUsButtonTop=245,unity580x410ContactUsButtonRight=550,unity580x410ContactUsButtonBottom=
260,unity750x500InstallImage="http://a.dolimg.com/media/en-US/dxd/bitmaps/unity/dol_unity_plugin_750x500.jpg",unity750x500InstallButtonLeft=400,unity750x500InstallButtonTop=320,unity750x500InstallButtonRight=630,unity750x500InstallButtonBottom=430,unity750x500FAQButtonLeft=400,unity750x500FAQButtonTop=290,unity750x500FAQButtonRight=510,unity750x500FAQButtonBottom=305,unity750x500ContactUsButtonLeft=515,unity750x500ContactUsButtonTop=290,unity750x500ContactUsButtonRight=630,unity750x500ContactUsButtonBottom=
305,unityInstallUrlMacIntel="http://webplayer.unity3d.com/download_webplayer-2.x/webplayer-i386.dmg",unityInstallUrlMacPPC="http://webplayer.unity3d.com/download_webplayer-2.x/webplayer-ppc.dmg",unityInstallUrlWin="http://webplayer.unity3d.com/download_webplayer-2.x/UnityWebPlayer.exe",unityInstallLinkPosition="unity_install_image_lower",unityInstallLinkName="install_unity",unityFAQUrl="http://home.disney.go.com/guestservices/faqs#internet",unityFAQLinkPosition="unity_install_image_upper_left",unityFAQLinkName=
"faq",unityContactUsUrl="http://home.disney.go.com/guestservices/contact",unityContactUsLinkPosition="unity_install_image_upper_right",unityContactUsLinkName="contact_us",unityDateLinksLastModified="100122",unityNoPluginLinkPosition="unity_no_plugin_pos",unityNoPluginLinkName="unity_no_plugin",unityLogoImage="http://a.dolimg.com/media/en-US/dxd/bitmaps/unity/dolLogo.png",unityProgressFrameImage="http://a.dolimg.com/media/en-US/dxd/bitmaps/unity/dol_loaderBar.png",unityProgressBarImage="http://a.dolimg.com/media/en-US/dxd/bitmaps/unity/dol_loaderBarFill.png",
unityBackgroundColor="006699",unityBorderColor="006699",unityobject=null;
function createUnityObject(){unityobject=function(){function a(){if(!u){try{var a=m.getElementsByTagName("body")[0].appendChild(m.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}u=!0;for(var a=z.length,c=0;c<a;c++)z[c]()}}function b(a){u?a():z[z.length]=a}function c(a){if(typeof q.addEventListener!=o)q.addEventListener("load",a,!1);else if(typeof m.addEventListener!=o)m.addEventListener("load",a,!1);else if(typeof q.attachEvent!=o)n(q,"onload",a);else if(typeof q.onload=="function"){var b=
q.onload;q.onload=function(){b();a()}}else q.onload=a}function d(){var a=m.getElementsByTagName("body")[0],b=m.createElement(v);b.setAttribute("type",A);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=o){var f=c.GetVariable("$version");if(f)f=f.split(" ")[1].split(","),l.pv=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)]}else if(d<10){d++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;e()})()}else e()}function e(){var a=x.length;if(a>0)for(var b=0;b<
a;b++){var c=x[b].id,d=x[b].callbackFn,e={success:!1,id:c};if(l.pv[0]>0){var f=k(c);if(f)if(s(x[b].swfVersion)&&!(l.wk&&l.wk<312)){if(p(c,!0),d)e.success=!0,e.ref=g(c),d(e)}else displayAltContent(f),d&&d(e)}else if(p(c,!0),d){if((c=g(c))&&typeof c.SetVariable!=o)e.success=!0,e.ref=c;d(e)}}}function g(a){var b=null;if((a=k(a))&&a.nodeName=="OBJECT")typeof a.SetVariable!=o?b=a:(a=a.getElementsByTagName(v)[0])&&(b=a);return b}function j(a,b,c){var d,e=k(c);if(l.wk&&l.wk<312)return d;if(e){if(typeof a.id==
o)a.id=c;if(l.ie&&l.win){var g="",h;for(h in a)if(a[h]!=Object.prototype[h])h.toLowerCase()=="data"?b.movie=a[h]:h.toLowerCase()=="styleclass"?g+=' class="'+a[h]+'"':h.toLowerCase()!="classid"&&(g+=" "+h+'="'+a[h]+'"');h="";for(var j in b)b[j]!=Object.prototype[j]&&(h+='<param name="'+j+'" value="'+b[j]+'" />');h+='<param name="backgroundcolor" value="'+unityBackgroundColor+'"/>';h+='<param name="bordercolor" value="'+unityBorderColor+'"/>';h+='<param name="logoimage" value="'+unityLogoImage+'"/>';
h+='<param name="progressframeimage" value="'+unityProgressFrameImage+'"/>';h+='<param name="progressbarimage" value="'+unityProgressBarImage+'"/>';e.outerHTML='<object classid="clsid:444785F1-DE89-4295-863A-D46C3A781394"'+g+">"+h+"</object>";B[B.length]=a.id;d=k(a.id)}else{j=m.createElement(v);j.setAttribute("type",A);for(g in a)a[g]!=Object.prototype[g]&&(g.toLowerCase()=="styleclass"?j.setAttribute("class",a[g]):g.toLowerCase()!="classid"&&j.setAttribute(g,a[g]));for(var n in b)b[n]!=Object.prototype[n]&&
n.toLowerCase()!="movie"&&f(j,n,b[n]);f(j,"backgroundcolor",unityBackgroundColor);f(j,"bordercolor",unityBorderColor);f(j,"logoimage",unityLogoImage);f(j,"progressframeimage",unityProgressFrameImage);f(j,"progressbarimage",unityProgressBarImage);e.parentNode.replaceChild(j,e);d=j}}return d}function f(a,b,c){var d=m.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function h(a){var b=k(a);b&&b.nodeName=="OBJECT"?l.ie&&l.win?(b.style.display="none",function(){if(b.readyState==
4){var c=k(a);if(c){for(var d in c)typeof c[d]=="function"&&(c[d]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b):b&&b.nodeName=="DIV"&&b.parentNode.removeChild(b);(b=k("InstallerFrame"))&&b.parentNode.removeChild(b)}function k(a){var b=null;try{b=m.getElementById(a)}catch(c){}return b}function n(a,b,c){a.attachEvent(b,c);y[y.length]=[a,b,c]}function s(a){var b=l.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],
10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function p(a,b){if(C){var c=b?"visible":"hidden";if(u&&k(a))k(a).style.visibility=c}}function t(a){return/[\\\"<>\.;]/.exec(a)!=null&&typeof encodeURIComponent!=o?encodeURIComponent(a):a}var o="undefined",v="object",A="application/vnd.unity",q=window,m=document,w=navigator,D=!1,z=[function(){D?d():e()}],x=[],B=[],y=[],u=!1,C=!0,l=function(){var a=typeof m.getElementById!=o&&typeof m.getElementsByTagName!=o&&typeof m.createElement!=
o,b=w.userAgent.toLowerCase(),c=w.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,e=!+"\u000b1",f=[0,0,0],g=null;if(typeof w.plugins!=o&&typeof w.plugins["Unity Player"]==v)typeof w.mimeTypes!=o&&w.mimeTypes[A]&&!w.mimeTypes[A].enabledPlugin||(D=!0,e=!1,f[0]=1,f[1]=0,f[2]=0);else if(typeof q.ActiveXObject!=o)try{var h=new ActiveXObject("UnityWebPlayer.UnityWebPlayer.1");if(h&&(g=
h.GetPluginVersion(),g=g.replace(/^.*\s+(\S+\s+\S+$)/,"$1")))e=!0,f[0]=1,f[1]=0,f[2]=0}catch(j){}return{w3:a,pv:f,wk:b,ie:e,win:d,mac:c}}();(function(){l.w3&&((typeof m.readyState!=o&&m.readyState=="complete"||typeof m.readyState==o&&(m.getElementsByTagName("body")[0]||m.body))&&a(),u||(typeof m.addEventListener!=o&&m.addEventListener("DOMContentLoaded",a,!1),l.ie&&l.win&&(m.attachEvent("onreadystatechange",function(){m.readyState=="complete"&&(m.detachEvent("onreadystatechange",arguments.callee),
a())}),q==top&&function(){if(!u){try{m.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a()}}()),l.wk&&function(){u||(/loaded|complete/.test(m.readyState)?a():setTimeout(arguments.callee,0))}(),c(a)))})();(function(){l.ie&&l.win&&window.attachEvent("onunload",function(){for(var a=y.length,b=0;b<a;b++)y[b][0].detachEvent(y[b][1],y[b][2]);a=B.length;for(b=0;b<a;b++)h(B[b]);for(var c in l)l[c]=null;l=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,
b,c,d){if(l.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=d;x[x.length]=e;p(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(l.w3)return g(a)},embedSWF:function(a,c,d,e,f,g,h,k,m,n,q){var t={success:!1,id:c};l.w3&&!(l.wk&&l.wk<312)&&a&&c&&d&&e&&f?(p(c,!1),b(function(){d+="";e+="";var b={};if(n&&typeof n===v)for(var g in n)b[g]=n[g];b.data=a;b.width=d;b.height=e;g={};if(m&&typeof m===v)for(var l in m)g[l]=m[l];if(k&&typeof k===v)for(var u in k)typeof g.flashvars!=
o?g.flashvars+="&"+u+"="+k[u]:g.flashvars=u+"="+k[u];s(f)?(l=j(b,g,c),b.id==c&&p(c,!0),t.success=!0,t.ref=l):promptToInstallUnity(c,h);q&&q(t)})):q&&q(t)},switchOffAutoHideShow:function(){C=!1},ua:l,getFlashPlayerVersion:function(){return{major:l.pv[0],minor:l.pv[1],release:l.pv[2]}},hasFlashPlayerVersion:s,createSWF:function(a,b,c){if(l.w3)return j(a,b,c)},removeSWF:function(a){l.w3&&h(a)},addDomLoadEvent:b,addLoadEvent:c,getQueryParamValue:function(a){var b=m.location.search||m.location.hash;if(b){/\?/.test(b)&&
(b=b.split("?")[1]);if(a==null)return t(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return t(b[c].substring(b[c].indexOf("=")+1))}return""}}}()}
function promptToInstallUnity(a,b){AnalyticsTrackLink(cto.site+"_"+cto.pageName+"/"+unityNoPluginLinkPosition+"/"+unityNoPluginLinkName+"/"+unityDateLinksLastModified,unityNoPluginLinkPosition,"o");var c=document.getElementById(a);c.className=a;c.style.visibility="visible";var d=GetInstallerPath();if(d!=""){var e=cto.site+"_"+cto.pageName+"/"+unityInstallLinkPosition+"/"+unityInstallLinkName+"/"+unityDateLinksLastModified,g=cto.site+"_"+cto.pageName+"/"+unityFAQLinkPosition+"/"+unityFAQLinkName+"/"+
unityDateLinksLastModified,j=cto.site+"_"+cto.pageName+"/"+unityContactUsLinkPosition+"/"+unityContactUsLinkName+"/"+unityDateLinksLastModified;if(b=="standard")c.innerHTML="<img src='"+unity580x410InstallImage+"' border='0' usemap='#installmap'/> <map name='installmap'> <area shape='rect' coords='"+unity580x410InstallButtonLeft+","+unity580x410InstallButtonTop+","+unity580x410InstallButtonRight+","+unity580x410InstallButtonBottom+"' href='"+d+"' onClick = AnalyticsTrackLink('"+e+"','"+unityInstallLinkPosition+
"','d') /> <area shape='rect' coords='"+unity580x410FAQButtonLeft+","+unity580x410FAQButtonTop+","+unity580x410FAQButtonRight+","+unity580x410FAQButtonBottom+"' href='"+unityFAQUrl+"' onClick = AnalyticsTrackLink('"+g+"','"+unityFAQLinkPosition+"','e') /> <area shape='rect' coords='"+unity580x410ContactUsButtonLeft+","+unity580x410ContactUsButtonTop+","+unity580x410ContactUsButtonRight+","+unity580x410ContactUsButtonBottom+"' href='"+unityContactUsUrl+"' onClick = AnalyticsTrackLink('"+j+"','"+unityContactUsLinkPosition+
"','e') /> </map> \n";else if(b=="xlarge")c.innerHTML="<img src='"+unity750x500InstallImage+"' border='0' usemap='#installmap'/> <map name='installmap'> <area shape='rect' coords='"+unity750x500InstallButtonLeft+","+unity750x500InstallButtonTop+","+unity750x500InstallButtonRight+","+unity750x500InstallButtonBottom+"' href='"+d+"' onClick = AnalyticsTrackLink('"+e+"','"+unityInstallLinkPosition+"','d') /> <area shape='rect' coords='"+unity750x500FAQButtonLeft+","+unity750x500FAQButtonTop+","+unity750x500FAQButtonRight+
","+unity750x500FAQButtonBottom+"' href='"+unityFAQUrl+"' onClick = AnalyticsTrackLink('"+g+"','"+unityFAQLinkPosition+"','e') /> <area shape='rect' coords='"+unity750x500ContactUsButtonLeft+","+unity750x500ContactUsButtonTop+","+unity750x500ContactUsButtonRight+","+unity750x500ContactUsButtonBottom+"' href='"+unityContactUsUrl+"' onClick = AnalyticsTrackLink('"+j+"','"+unityContactUsLinkPosition+"','e') /> </map> \n";d=document.createElement("iframe");c.parentNode.insertBefore(d,c);d.setAttribute("name",
"InstallerFrame");d.setAttribute("id","InstallerFrame");d.style.height=0;d.style.width=0}else c.innerHTML="<a href='javascript: window.open('http://www.unity3d.com/unity-web-player-2.x'); '><img src='"+installImage+"' border='0'/></a> \n";automaticReload()}
function GetInstallerPath(){var a="";navigator.userAgent.toLowerCase().indexOf("firefox");navigator.platform=="MacIntel"?a=unityInstallUrlMacIntel:navigator.platform=="MacPPC"?a=unityInstallUrlMacPPC:navigator.platform.toLowerCase().indexOf("win")!=-1&&(a=unityInstallUrlWin);return a}
function automaticReload(){navigator.plugins.refresh();detectUnityWebPlayer()?(window.location.replace(SWFAddress.getBaseURL()+"/#"+SWFAddress.getValue()),window.location.reload()):setTimeout("automaticReload()",500)}
function detectUnityWebPlayer(){var a=!1;navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.toLowerCase().indexOf("win")!=-1?a=detectUnityWebPlayerActiveX():navigator.mimeTypes&&navigator.mimeTypes["application/vnd.unity"]&&navigator.mimeTypes["application/vnd.unity"].enabledPlugin&&navigator.plugins&&navigator.plugins["Unity Player"]&&(a=!0);return a}
function AnalyticsTrackLink(a,b,c){try{cto.linkObj=this,cto.linkId=a,cto.linkPosition=b,cto.linkType=c,cto.trackLink(),cto.linkObj="",cto.linkId="",cto.linkPosition="",cto.linkType=""}catch(d){}}function adjustGCX(){bumpGame()};

