if(typeof COUNTRYLIST=="undefined")var COUNTRYLIST=["united states","puerto rico","guam","us virgin islands","american samoa","northern mariana islands"];typeof INTERNATIONALSITE=="undefined"&&(INTERNATIONALSITE="http://home.disney.go.com/guestservices/international");
if(typeof REDIRECTCOUNTRY=="undefined")var REDIRECTCOUNTRY=["australia||http://www.disneyjunior.com.au/","japan||http://www.disneychannel.jp/disneych/program/junior/","united kingdom||http://disney.co.uk/disney-junior/","new zealand||http://www.disneyjunior.co.nz/","italy,holy see (vatican city state),malta||http://disney.it/disney-junior/","spain||http://www.disney.es/disney-junior/","anguilla,antigua and barbuda,Antigua y Barbuda,argentina,aruba,bahamas,barbados,belice,belize,bermudas,bolivia,British Virgin Islands,chile,colombia,costa rica,cuba,dominica,dominican republic,ecuador,el salvador,granada,guadalupe,guatemala,guayana,Guayana Francesa,guyana,haiti,honduras,jamaica,martinica,mexico,montserrat,nicaragua,panama,paraguay,peru,Reino Unido,Republica Dominicana,Saint Kitts y Nevis,San Vicente and Granadinas,Santa Lucia,Surinam,Trinidad and Tobago,Turks and Caicos Islands,United States Virgin Islands,uruguay,venezuela||http://www.disneylatino.com/disneyjunior",
"canada||http://www.disneyjunior.ca/","south africa||http://disney.co.za/disney-junior/","france||http://disney.fr/disney-junior/","turkey||http://disneyturkiye.com.tr/disney-junior","brazil||http://www.disney.com.br/disneyjunior","algeria,bahrain,cyprus,eqypt,iran (islamic republic of),iraq,israel,jordan,kuwait,lebanon,maldives,morocco,oman,pakistan,palestinian territories,qatar,saudi arabia,sudan,syrian arab republic,tunisia,united arab emirates,yemen||http://disneyme.com/disney-junior/","greece||http://disney.gr/disney-junior/",
"poland||http://disney.pl/disney-junior/","germany||http://disney.de/disney-junior/","india||http://www.disney.in/disneyjunior","brunei darussalam,cambodia,hong kong,indonesia,malaysia,palau,papua new guinea,philippines,singapore,korea - south,thailand,viet nam||http://www.disneyjunior-asia.com/","norway||http://disney.no/disney-junior/","sweden||http://disney.se/disney-junior/","denmark||http://disney.dk/disney-junior/","belgium||http://disney.be/disney-junior/","netherlands||http://disney.nl/disney-junior/",
"japan||http://www.disneychannel.jp/disneych/program/junior/","korea||http://www.disney.co.kr/junior/","bulgaria||http://www.disney.bg/disney-tv/","czech republic||http://www.disney.cz/disney-channel/","hungary||http://www.disney.hu/disney-csatorna/","romania||http://www.disney.ro/disney-channel/","portugal||http://www.disney.pt/disney-channel/","finland||http://www.disney.fi/disney-junior/"];typeof FLASHUPGRADEURL=="undefined"&&(FLASHUPGRADEURL="http://disney.go.com/home/html/index.html?flash=false");
var okToLoad=!1;try{for(var i=0;i<COUNTRYLIST.length;i++)if(country==COUNTRYLIST[i]){okToLoad=!0;break}if(okToLoad==!1){for(var redirected=0,i=0;i<REDIRECTCOUNTRY.length;i++)for(var countryparts=REDIRECTCOUNTRY[i].split("||"),countrynames=countryparts[0].split(","),j=0;j<countrynames.length;j++)if(country.toLowerCase()==countrynames[j].toLowerCase()){document.location.replace(countryparts[1]);redirected=1;break}redirected===0&&document.location.replace(INTERNATIONALSITE)}}catch(e$$5){}
if(typeof NOFLASHOKUSERAGENTS=="undefined")var NOFLASHOKUSERAGENTS="iphone,ipod,ipad";for(var theUserAgent=navigator.userAgent,OKWITHOUTFLASH=!1,noFlashOKUserAgents=NOFLASHOKUSERAGENTS.split(","),j=0;j<noFlashOKUserAgents.length;j++)if(theUserAgent.toLowerCase().indexOf(noFlashOKUserAgents[j].toLowerCase())>-1){OKWITHOUTFLASH=!0;break}dojo.addOnLoad(function(){typeof swfobject!="undefined"&&swfobject.getFlashPlayerVersion().major<10&&OKWITHOUTFLASH==!1&&document.location.replace(FLASHUPGRADEURL)});
function triggerLightBox(b,c,k,o){b=dojo.byId(b);dojo.connect(b,"onmouseover",function(){dojo.style(b,"cursor","pointer")});dojo.connect(b,"onclick",function(){var b=dojo.create("div",{innerHTML:"&nbsp;"},dojo.body(),"first");dojo.style(b,{width:"100%",height:"100%",border:"0",position:"absolute",left:"0",top:"0",zIndex:"100000001"});var e=dojo.create("div",null,b,"first");dojo.style(e,{backgroundColor:"#000000",filter:"alpha(opacity=70)",opacity:"0.7",width:"100%",height:"100%",border:"0",position:"fixed",
left:"0",top:"0",zIndex:"1"});e=dojo.create("div",null,b,"last");dojo.style(e,{height:"530px",width:"500px",background:"url(http://a.dolimg.com/en-US/disneyjunior/media/lightbox/background.png)",margin:"auto",opacity:"1",position:"absolute",top:"100px",zIndex:"2",left:"50%",marginLeft:"-250px"});var f=dojo.create("div",{innerHTML:k},e,"first");dojo.style(f,{left:"40px",top:"30px",position:"absolute",color:"#797979",fontFamily:"Arial, Helvetica, Verdana, sans-serif",fontSize:"28px",fontWeight:"bold"});
f=dojo.create("div",{innerHTML:"<img src='"+c+"' alt='"+o+"' />"},e,"last");dojo.style(f,{height:"420px",width:"420px",position:"absolute",left:"40px",top:"72px"});f=dojo.create("div",{innerHTML:"CLOSE"},e,"last");dojo.style(f,{right:"40px",top:"22px",position:"absolute",color:"#797979",fontFamily:"Arial, Helvetica, Verdana, sans-serif",fontSize:"12px",fontWeight:"bold"});var g=dojo.create("div",{innerHTML:"X"},e,"last");dojo.style(g,{right:"20px",top:"19px",position:"absolute",color:"#797979",fontFamily:"Arial, Helvetica, Verdana, sans-serif",
fontSize:"16px",fontWeight:"bold"});dojo.connect(g,"onmouseover",function(){dojo.style(g,"cursor","pointer")});dojo.connect(g,"onclick",function(){dojo.destroy(b)})})}
function carouselControl(b,c,k){function o(b,c){f=0;e(b,c)}function p(){f=1;e()}function e(b,c){b=="left"?c==0&&(dojo.style(h,"cursor","default"),dojo.style(h,"backgroundPosition","-250px 0")):b=="right"&&c==g&&(dojo.style(d,"cursor","default"),dojo.style(d,"backgroundPosition","-300px 0"))}var f=1,g=(k-c)*-168,l=dojo.byId("imageHolder"+b),h=dojo.byId("leftCarouselButton"+b),d=dojo.byId("rightCarouselButton"+b);dojo.connect(h,"onmouseover",function(){dojo.style(l,"left")<0?(dojo.style(h,"cursor",
"pointer"),dojo.style(h,"backgroundPosition","0 0")):dojo.style(h,"cursor","default")});dojo.connect(h,"onmouseout",function(){dojo.style(l,"left")<0?dojo.style(h,"backgroundPosition","-50px 0"):dojo.style(h,"backgroundPosition","-250px 0")});dojo.connect(h,"onclick",function(){var b=dojo.style(l,"left"),c=parseInt(b)+168;f==1&&(b<0&&dojo.fx.slideTo({node:l,top:"0",left:c,onBegin:o("left",c),onEnd:p}).play(),dojo.style(l,"left")>=g&&0!=g&&dojo.style(d,"backgroundPosition","-150px 0"))});dojo.connect(h,
"ondblclick",function(){h.focus()});dojo.connect(d,"onmouseover",function(){dojo.style(l,"left")>g?(dojo.style(d,"cursor","pointer"),dojo.style(d,"backgroundPosition","-100px 0")):dojo.style(d,"cursor","default")});dojo.connect(d,"onmouseout",function(){dojo.style(l,"left")<=g?dojo.style(d,"backgroundPosition","-300px 0"):dojo.style(d,"backgroundPosition","-150px 0")});dojo.connect(d,"onclick",function(){var b=dojo.style(l,"left"),c=parseInt(b)-168;b>g&&f==1&&(dojo.fx.slideTo({node:l,top:"0",left:c,
onBegin:o("right",c),onEnd:p}).play(),dojo.style(h,"backgroundPosition","-50px 0"))});dojo.connect(d,"ondblclick",function(){d.focus()})}
function photoGalleryControl(b,c){function k(a,b){for(var c=a.length,d=0;d<c;d++)d===b?dojo.style(a[d],"display","list-item"):dojo.style(a[d],"display","none")}function o(a,b,c,d){var a=dojo.query("li img",a),e="",f="";d>1&&(e=dojo.attr(a[d-2],"alt"));d<a.length&&(f=dojo.attr(a[d],"alt"));dojo.attr(b,"alt",e);dojo.attr(b,"title",e);dojo.attr(c,"alt",f);dojo.attr(c,"title",f)}function p(){if(w){var a=dojo.attr(w,"src");w.src=a}if(x)a=dojo.attr(x,"src"),x.src=a}var e=dojo.byId("photoGalleryMainImagePrevious"+
b),f=dojo.byId("photoGalleryMainImageNext"+b),g=dojo.byId("photoGalleryMainImageHolder"+b),l=dojo.query(".mainPhotoGalleryCounter")[0],h=dojo.byId("thumbnailSelectedItemNumber");dojo.byId("photoGalleryThumbnailWrapper"+b);var d=dojo.byId("photoGalleryThumbnailSlider"+b),v=dojo.query("ul#PGfeaturedArea"+b+" li"),w=dojo.byId("PhotoGalleryLeftNavAdIFrame"),x=dojo.byId("PhotoGalleryRightAdIFrame"),q=dojo.byId("leftThumbnailOverlay"),t=void 0;q&&(t=dojo.query("img",q)[0]);var s=dojo.byId("rightThumbnailOverlay"),
u=void 0;s&&(u=dojo.query("img",s)[0]);dojo.style(d,"width",c*95+"px");dojo.connect(e,"onclick",function(){var a=dojo.style(g,"left"),a=parseInt(a)+422;dojo.style(g,"left",a+"px");a=a/422*-1+1;l.innerHTML=a+" of "+c;k(v,a-1);p();if(h){h.innerHTML=a;dojo.style(m,"backgroundPosition","-27px 0");dojo.style(s,"display","block");a==1&&(dojo.style(n,"backgroundPosition","0 -35px"),dojo.style(q,"display","none"));var b=dojo.style(d,"left"),b=parseInt(b)+95;dojo.fx.slideTo({node:d,top:"0",left:b}).play();
o(d,t,u,a)}a==1&&dojo.style(e,"display","none");dojo.style(f,"display")=="none"&&dojo.style(f,"display","block")});dojo.connect(e,"onmouseover",function(){dojo.style(e,"cursor","hand");dojo.style(e,"cursor","pointer");var a=dojo.style(e,"backgroundImage");a.indexOf("ON")==-1&&(a=a.replace(".png","ON.png"),dojo.style(e,"backgroundImage",a))});dojo.connect(e,"onmouseout",function(){var a=dojo.style(e,"backgroundImage");a.indexOf("ON")!=-1&&(a=a.replace("ON.png",".png"),dojo.style(e,"backgroundImage",
a))});dojo.connect(f,"onclick",function(){var a=dojo.style(g,"left"),a=parseInt(a)-422;dojo.style(g,"left",a+"px");dojo.style(e,"display")=="none"&&dojo.style(e,"display","block");a=a/422*-1+1;l.innerHTML=a+" of "+c;k(v,a-1);a==c&&dojo.style(f,"display","none");p();if(h){h.innerHTML=a;dojo.style(n,"backgroundPosition","0 0");dojo.style(q,"display","block");a==c&&(dojo.style(m,"backgroundPosition","-27px -35px"),dojo.style(s,"display","none"));var b=dojo.style(d,"left"),b=parseInt(b)-95;dojo.fx.slideTo({node:d,
top:"0",left:b}).play();o(d,t,u,a)}});dojo.connect(f,"onmouseover",function(){dojo.style(f,"cursor","hand");dojo.style(f,"cursor","pointer");var a=dojo.style(f,"backgroundImage");a.indexOf("ON")==-1&&(a=a.replace(".png","ON.png"),dojo.style(f,"backgroundImage",a))});dojo.connect(f,"onmouseout",function(){var a=dojo.style(f,"backgroundImage");a.indexOf("ON")!=-1&&(a=a.replace("ON.png",".png"),dojo.style(f,"backgroundImage",a))});if(h){var n=dojo.byId("thumbnailLeftArrow"+b),m=dojo.byId("thumbnailRightArrow"+
b);dojo.connect(n,"onclick",function(){var a=dojo.style(g,"left");if(a!=0){a=parseInt(a)+422;dojo.style(g,"left",a+"px");a=a/422*-1+1;l.innerHTML=a+" of "+c;dojo.style(m,"backgroundPosition","-27px 0");dojo.style(s,"display","block");if(h)h.innerHTML=a;a==1&&(dojo.style(e,"display","none"),dojo.style(q,"display","none"));dojo.style(f,"display")=="none"&&dojo.style(f,"display","block");h.innerHTML=a;p();k(v,a-1);a==1&&(dojo.style(n,"cursor","default"),dojo.style(n,"backgroundPosition","0 -35px"));
var b=dojo.style(d,"left"),b=parseInt(b)+95;dojo.fx.slideTo({node:d,top:"0",left:b}).play();o(d,t,u,a)}});dojo.connect(n,"onmouseover",function(){dojo.style(g,"left")/422*-1+1!=1?(dojo.style(n,"cursor","hand"),dojo.style(n,"cursor","pointer"),dojo.style(n,"backgroundPosition","0 -70px")):dojo.style(n,"cursor","default")});dojo.connect(n,"onmouseout",function(){dojo.style(g,"left")/422*-1+1!=1&&dojo.style(n,"backgroundPosition","0 0")});rightClicker=dojo.connect(m,"onclick",function(){var a=dojo.style(g,
"left");if(a/422*-1+1<c){a=parseInt(a)-422;dojo.style(g,"left",a+"px");var b=dojo.style(e,"display");dojo.style(n,"backgroundPosition","0 0");dojo.style(q,"display","block");b=="none"&&dojo.style(e,"display","block");a=a/422*-1+1;l.innerHTML=a+" of "+c;a==c&&(dojo.style(f,"display","none"),dojo.style(m,"cursor","default"),dojo.style(m,"backgroundPosition","-27px -35px"),dojo.style(s,"display","none"));h.innerHTML=a;p();k(v,a-1);b=dojo.style(d,"left");b=parseInt(b)-95;dojo.fx.slideTo({node:d,top:"0",
left:b}).play();o(d,t,u,a)}});dojo.connect(m,"onmouseover",function(){dojo.style(g,"left")/422*-1+1!=c?(dojo.style(m,"cursor","hand"),dojo.style(m,"cursor","pointer"),dojo.style(m,"backgroundPosition","-27px -70px")):dojo.style(m,"cursor","default")});dojo.connect(m,"onmouseout",function(){dojo.style(g,"left")/422*-1+1!=c&&dojo.style(m,"backgroundPosition","-27px 0")});dojo.connect(q,"onclick",function(){var a=dojo.style(g,"left");if(a!=0){a=parseInt(a)+422;dojo.style(g,"left",a+"px");a=a/422*-1+
1;l.innerHTML=a+" of "+c;dojo.style(m,"backgroundPosition","-27px 0");dojo.style(s,"display","block");if(h)h.innerHTML=a;a==1&&(dojo.style(e,"display","none"),dojo.style(q,"display","none"));dojo.style(f,"display")=="none"&&dojo.style(f,"display","block");h.innerHTML=a;p();k(v,a-1);a==1&&(dojo.style(n,"cursor","default"),dojo.style(n,"backgroundPosition","0 -35px"));var b=dojo.style(d,"left"),b=parseInt(b)+95;dojo.fx.slideTo({node:d,top:"0",left:b}).play();o(d,t,u,a)}});dojo.connect(s,"onclick",function(){var a=
dojo.style(g,"left");if(a/422*-1+1<c){a=parseInt(a)-422;dojo.style(g,"left",a+"px");var b=dojo.style(e,"display");dojo.style(n,"backgroundPosition","0 0");dojo.style(q,"display","block");b=="none"&&dojo.style(e,"display","block");a=a/422*-1+1;l.innerHTML=a+" of "+c;a==c&&(dojo.style(f,"display","none"),dojo.style(m,"cursor","default"),dojo.style(m,"backgroundPosition","-27px -35px"),dojo.style(s,"display","none"));h.innerHTML=a;p();k(v,a-1);b=dojo.style(d,"left");b=parseInt(b)-95;dojo.fx.slideTo({node:d,
top:"0",left:b}).play();o(d,t,u,a)}})}}function thisAudioMovie(b){return navigator.appName.indexOf("Microsoft")!=-1?window[b]:document[b]}function launchAudio(b,c){document.getElementById(b).style.display="block";setTimeout(function(){launchPause(c);c=null},1E3)}function launchPause(b){document.getElementById(b).style.display="block"}function audioLoadCompleteHandler(){}
function getAudioMovie(b){var c=thisAudioMovie("audioPlayer");b=="audioBackground"&&(c=thisAudioMovie("audioPlayer2"));return c}function triggerSetAudioFunctionName(b){var c=getAudioMovie(b);try{c.setFunctionName(b)}catch(k){}}function triggerLoadAudioById(b){var c=getAudioMovie(b);try{c.loadAudioById(b)}catch(k){}}function triggerAudioById(b){var c=getAudioMovie(b);try{c.playAudioById(b)}catch(k){}}function triggerPauseAudioById(b){var c=getAudioMovie(b);try{c.pauseAudioById(b)}catch(k){}}
function onVideoCompanionAd(b){var c=dojo.query(".Fright")[0],k=dojo.byId("rightVideoAd");k&&dojo.destroy(k);var o="<a href='"+b.clickUrl+"' target='_blank'><img src='"+b.assetUrl+"' alt='advertisement' /></a>",k=dojo.create("div",{id:"rightVideoAd"},c,"first");dojo.create("img",{id:"rightVideoAdAdSlug",src:"http://a.dolimg.com/en-US/disneyjunior/media/adslugs/adflag.png",alt:"Ad"},k);dojo.create("div",{id:"rightVideoAdImage",innerHTML:o},k,"last");fireImpressionUrl(b.impressionUrl)}
function fireImpressionUrl(b){dojo.require("dojo.io.iframe");dojo.ready(function(){dojo.io.iframe.send({url:b,handleAs:"text"})})}function AnalyticsTrackLink(b,c){try{b.substr(b.length-4).toLowerCase()==".pdf"&&(b="print_track:"+b),cto.linkId=b,cto.linkPosition=c,cto.linkType="",cto.trackLink(),cto.linkId="",cto.linkPosition="",cto.linkType=""}catch(k){}}function params(b){try{r=unescape(location.search.match(RegExp(b+"=+([^&]*)"))[1])}catch(c){r=""}return r}chromeWidth=996;
function MM_openBrWindow(b,c,k){window.open(b,c,k)}function openBrowserWindow(b){window.open(b,"rulesWindow","resizable=false,width=600,height=600,left=100,top=50,scrollbars=1,menubar=false,toolbar=false,status=false")};
