WDPRO_LOADER.require("connection");DisneyParks={contentData:null,flashVersionRequired:8,hbxData:null,hbxMlcFilter:new RegExp("hbx.mlc=[^&]*"),hbxPageNameFilter:new RegExp("hbx.pn=[^&]*"),s_codeHeir1Filter:new RegExp("s_code.heir1=[^&]*"),s_codePageNameFilter:new RegExp("s_code.pn=[^&]*"),s_codeEpisodeNameFilter:new RegExp("s_code.en=[^&]*"),nameFilter:new RegExp("name=[^&]*"),videoFilter:new RegExp("video=[^&]*"),rootFilter:new RegExp("cRoot=[^&]*"),getVideo:function(c){if(DisneyParks.VideoFeed&&(window.location.toString().indexOf("Printable")!=-1&&c.indexOf("Printable")!=-1)||(window.location.toString().indexOf("Printable")==-1&&c.indexOf("Printable")==-1)){var a=c.match(this.nameFilter).toString().replace("name=","");var e=c.match(this.videoFilter).toString().replace("video=","");var b=c.match(this.rootFilter).toString().replace("cRoot=","");var d={handleSuccess:function(n){var h=document.getElementById("videoPlayerContainer");if(h){h.innerHTML=n.responseText.replace(/writeContent\(\'/g,"<\/script>").replace(/\'\)\;\<\/script\>/g,"")}if(typeof _hbPageView=="function"){var m=hbx.pn;var g=hbx.mlc;var k=false;if(c.match(DisneyParks.hbxPageNameFilter)){m=c.match(DisneyParks.hbxPageNameFilter).toString().replace("hbx.pn=","");k=true}if(c.match(DisneyParks.hbxMlcFilter)){g=c.match(DisneyParks.hbxMlcFilter).toString().replace("hbx.mlc=","");k=true}if(k){_hbPageView(m,g)}}if(typeof s_wdpro=="object"){var l=false;if(c.match(DisneyParks.s_codeHeir1Filter)){s_wdpro.hier1=c.match(DisneyParks.s_codeHeir1Filter).toString().replace("s_code.heir1=","");l=true}if(c.match(DisneyParks.s_codeEpisodeNameFilter)){var j="vid:"+c.match(DisneyParks.s_codeEpisodeNameFilter).toString().replace("s_code.en=","");s_wdpro.eVar2=j;s_wdpro.prop3=j;s_wdpro.events="event1";l=true}if(c.match(DisneyParks.s_codePageNameFilter)){s_wdpro.pageName=s_wdpro.hier1+"/"+c.match(DisneyParks.s_codePageNameFilter).toString().replace("s_code.pn=","");l=true}if(l){var i=s_wdpro.t();if(i){document.write(i)}}}},handleFailure:function(g){},startRequest:function(){YAHOO.util.Connect.asyncRequest("GET",DisneyParks.VideoFeed+"?name="+a+"&video="+e+"&cRoot="+b,f,null)}};var f={success:d.handleSuccess,failure:d.handleFailure,scope:d};d.startRequest()}else{window.location=c}}};