window.onerror=function(){ return true; };

styles=[
[".even","padding:0; margin:3px 3px 3px 18px;"],
["form, body","margin:0; padding:0;"],
["td","vertical-align:top; font:12px arial;"],
["#SPOTLIGHT_TITLE a","color:#004984; font:bold 14px arial;"],
["#SPOTLIGHT_ITEM","color:#313029; font:12px arial;"],
["#SPOTLIGHT_TABLE td","vertical-align:top;"],
["#OTHER_NEWS_DIV, #OTHER_NEWS_DIV a","color:white; font:12px arial;"],
[".teal, a","color:#004984; text-decoration:none;"],
[".qna","font:bold 13px arial;"],
[".event","color:#00D7FF; font:bold 12px arial;"]
];

if (navigator.userAgent.indexOf('Mozilla')!=-1 && navigator.userAgent.indexOf('Macintosh')!=-1){
styles.push([".tranny","position:absolute; top:0; left:0; width:100%; height:100%;"]);
} else {
styles.push([".tranny","opacity:.6; filter:alpha(opacity=60, style=0); -moz-opacity:.6; background-color:#000000; position:absolute; top:0; left:0; width:100%; height:100%;"]);
}

document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');

var chromeWidth="994";
var legalFooterColor="#ffffff";
var legalFtrOpts = ["Contact Us","http://d23.disney.go.com/contactus.html","FAQ","http://d23.disney.go.com/faq.html" ];

document.writeln('<scr'+'ipt language="javascript" src="//disney.go.com/detect/scripts/master_flash_light.js"><\/scr'+'ipt>');

try{ _gpn=/([\w-~]*)(\.htm|$|\?|\#|\.cgi\.asp)/i.exec(location.href)[1]; } catch(pn){ _gpn='home'; } if (_gpn=="" || _gpn=="index"){ _gpn="home"; }
if (_gpn.length>25){ _gpn=_gpn.substring(0,25); }


function params(wut,qp,dflt){ dflt=(dflt==null)?'':dflt; try{r=unescape(wut.match(new RegExp(qp+"=+([^&;]*)"))[1]);}catch(qp){r=dflt;} return r; }
function addZero(vNumber){ return ((vNumber<10)?"0":"")+vNumber; }
function gid(_id){ return document.getElementById(_id); }
function inner(_gid,_text){ gid(_gid).innerHTML=_text; }
function show(){ for (i=0; i<show.arguments.length; i++){ gid(show.arguments[i]).style.display='block'; }}
function hide(){ for (i=0; i<hide.arguments.length; i++){ gid(hide.arguments[i]).style.display='none'; }}

function AddEvent(obj, evType, fn){ 
if (obj.addEventListener){ obj.addEventListener(evType, fn, false); return true; }
else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r; }
else { return false; } 
}


function $flash(ef){ //new $flash({ movie:'', w:'100%', h:'173', bgcolor:'', base:'', vars:'', id:'' }).render();
ef.w=(ef.w==null)?'590':ef.w; ef.h=(ef.h==null)?'450':ef.h; ef.id=(ef.id==null)?'flashmovie':ef.id; ef.wmode=(ef.wmode==null)?'transparent':ef.wmode;
sendback={}
flashstr='<object id="'+ef.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ef.w+'" height="'+ef.h+'"><param name="movie" value="'+ef.movie+((ef.vars!=null)?'?'+ef.vars:'')+'"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="'+ef.wmode+'"><param name="scale" value="noscale"><param name="allowScriptAccess" value="always"><param name="show" value="#ffffff"><param name="allowFullScreen" value="true">';
if (ef.base!=null){flashstr+='<param name="base" value="'+ef.base+'">'; }
if (ef.salign!=null){flashstr+='<param name="salign" value="'+ef.salign+'">'; }
if (ef.bgcolor!=null){flashstr+='<param name="bgcolor" value="'+ef.bgcolor+'">'; }
if (ef.vars!=null){flashstr+='<param name="flashVars" value="'+ef.vars+'">'; }
flashstr+='<embed name="'+ef.id+'" id="'+ef.id+'" src="'+ef.movie+((ef.vars!=null)?'?'+ef.vars:'')+'" menu="false" quality="high" pluginspage="//www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ef.w+'" height="'+ef.h+'" swLiveConnect="true" wmode="'+ef.wmode+'" scale="noscale" allowScriptAccess="always" allowFullScreen="true"';
if (ef.base!=null){flashstr+=' base="'+ef.base+'"'; }
if (ef.salign!=null){flashstr+=' salign="'+ef.salign+'"'; }
if (ef.bgcolor!=null){flashstr+=' bgcolor="'+ef.bgcolor+'"'; }
if (ef.vars!=null){flashstr+=' FlashVars="'+ef.vars+'"'; }
flashstr+='></embed></object>';
sendback.toString=function(){ return flashstr; }
sendback.render=function(){ document.writeln(flashstr); }
sendback.inner=function(targetgid){ gid(targetgid).innerHTML=flashstr; }
return sendback;
}


function DoFlashDetection(){ CreateInterface(); DetectFlash(); }



function rollins(e){ /*---ROLLOVER FUNCTIONS---*/
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (j=0;j<myArraySet.length;j++){ if (myArraySet[j][0]==thislink.id+'_over'){document.getElementById(thislink.id).src=myArraySet[j][1].src; break;}}}
function unrollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (k=0;k<myArraySet.length;k++){ if (myArraySet[k][0]==thislink.id){ document.getElementById(thislink.id).src=myArraySet[k][1].src; break;}}}
function rolloverInit(){
myArraySet=new Array(); myImages=new Array(); count=-1;
for (i=0;i<document.links.length;i++){
elk=document.links[i];
if (elk.id!=""){
bob=document.getElementById('i'+elk.id); if (bob!=null){ unName=bob.src; count++;
c3=bob.src.replace(/_off\./gi,'_ovr.').replace(/_on\./gi,'_ovr.').replace(/-off\./gi,'-on.').replace(/-1\./gi,'-2.');
thisImage=new Image(); thisImage.src=c3; myArraySet[count]=new Array(bob.id+'_over',thisImage);
elk.onmouseover=rollins; count++; thisImage=new Image(); thisImage.src=unName; myArraySet[count]=new Array(bob.id,thisImage);elk.onmouseout=unrollins;
bob.src=c3; bob.src=unName; //FLIP REAL QUICK TO PRELOAD
}}}}


/*---XML IMPORT/PARSING FUNCTIONS---*/
isSafari=(navigator.appVersion.match(/safari/gi)!=null);
function nval(_wut){ try{
returnValue=((isSafari)?((_wut.childNodes.length>0)?_wut.firstChild.nodeValue:_wut.nodeValue):((navigator.appName=="Netscape")?_wut.textContent:_wut.text)); return (returnValue!=null)?returnValue:''; }catch(nov){ return ''; }}
function gtn(_wut,_tag,index){ rt=_wut.getElementsByTagName(_tag);
return ((rt.length>1)?((index!=null)?nval(rt[index]):rt):((rt.length==0)?'':((index!=null)?rt:nval(rt[0])))); }
function gtn0(_wut,_tag){ tempgtn=gtn(_wut,_tag); if (typeof(tempgtn)=='string'){ tempgtn=gtn(_wut,_tag,0); }  return tempgtn; }
function importXML(xmlobj){
_xmlfile=xmlobj.url; _xmlRtn=xmlobj.obj; _act=xmlobj.action;

if (window.XMLHttpRequest && !(window.ActiveXObject)){
xmlDoc=new XMLHttpRequest(); xmlDoc.onreadystatechange=function(){ if (xmlDoc.readyState==4){ eval(_xmlRtn+"=xmlDoc.responseXML"); eval(_act); }}
xmlDoc.open("GET",_xmlfile,true); xmlDoc.send(null);
} else if (document.implementation && document.implementation.createDocument){
xmlDoc=document.implementation.createDocument("","",null); xmlDoc.onload=function(){ eval(_xmlRtn+"=xmlDoc"); eval(_act); }
xmlDoc.load(_xmlfile);
} else if (window.ActiveXObject){
xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.onreadystatechange=function(){ if (xmlDoc.readyState==4){ eval(_xmlRtn+"=xmlDoc"); eval(_act); }}
xmlDoc.load(_xmlfile);
} else  { return; }
//xmlDoc.load(_xmlfile);

}
function getAtt(_wut,_att){ return _wut.getAttribute(_att); }
function getIndexByAttribute(_wut,_att,_val){ ri=-1; if (_wut.length>0){ for (i=0; i<_wut.length; i++){ if (getAtt(_wut[i],_att)==_val){ ri=i; break; }}} return ri; }
/*---END XML IMPORT/PARSING FUNCTIONS---*/


function Joiterator(joey){
this.items=joey.items; this.count=joey.items.length; this.numshow=joey.numshow; this.currentItem=this.items[0]; this.currentPage=0;
if (this.numshow=="all"){ this.numshow=this.count; }
try{ this.pageCount=Math.floor(joey.items.length/joey.numshow)+1; }catch(j){ this.pageCount=1; }
var jtp=[]; var jtcp=-1;
for (jj=0; jj<this.count; jj++){
if (jj%this.numshow==0 || isNaN(jj%this.numshow)){ jtcp++; jtp[jtp.length]=[]; }
this.items[jj].index=jj; jtp[jtcp][jtp[jtcp].length]=this.items[jj];
}
this.pages=jtp; this.pageCount=this.pages.length;
this.isFirst=function(){ return (this.currentPage==0 || this.count==0); }
this.isLast=function(){ return (this.currentPage==this.pageCount-1 || this.count==0); }
this.next=function(){ if (!this.isLast()){ this.currentPage++; this.currentItem=this.pages[this.currentPage][0]; }}
this.back=function(){ if (!this.isFirst()){ this.currentPage--; this.currentItem=this.pages[this.currentPage][0]; }}
this.setPage=function(_pageToGet){ if (!isNaN(_pageToGet) && _pageToGet>=0 && _pageToGet<this.pageCount){ this.currentPage=_pageToGet; this.currentItem=this.pages[this.currentPage][0]; }}
return this;
}



function sortByNumber(_ary,reverse){ if (reverse){ return _ary.sort(function(a,b){return(b-a)}); } else { return _ary.sort(function(a,b){return(a-b)}); }}
function randomSort(_ary){ return _ary.sort(function(){ return (Math.round(Math.random())-0.5) }) }
function randy(hi,lo){ lo=(lo==null)?1:lo;hi=(hi==null)?10:hi; do{ randall=Math.floor(Math.random()*(hi+1)); } while(!((randall>=lo)&&(randall<=hi))); return randall; }




function writeFooter(){ rolloverInit(); }

function GOurl(url){
url=url.replace(/ *$/mg,'').replace(/^ */mg,'');
if (url.indexOf('http')==-1){ url="http://"+url; }
window.open("http://home.disney.go.com/guestservices/disclaimers/redirect?destination="+escape(url));

}


function writeSpotlightItem(spot){
document.writeln('<div style="background:url(http://d23.disney.go.com/images/spotlight-background.jpg) bottom center no-repeat; width:414px;">\
<table border="0" cellspacing="5" cellpadding="5" id="SPOTLIGHT_TABLE">\
<tr>');
if (spot.thumbnail!=null && spot.thumbnail!=""){
document.writeln('<td>\
<div style="position:relative; width:74px; height:59px;">\
<div style="position:absolute; left:0; top:0; width:74px; height:59px; overflow:hidden;"><img src="'+spot.thumbnail+'" border="0" alt=""></div>\
<div style="position:absolute; left:0; top:0; width:74px; height:59px; overflow:hidden;"><a href="'+spot.href+'"><img src="http://d23.disney.go.com/images/spotlight-frame.gif" width="74" height="59" border="0" alt=""></a></div>\
</div>\
</td>');
}
document.writeln('<td>\
<div id="SPOTLIGHT_TITLE"><a href="'+spot.href+'">'+spot.title+'</a></div>\
<div id="SPOTLIGHT_ITEM">'+spot.text+'</div>\
</td></tr>\
</table>\
</div>');
}


function writeLeftNav(){

document.writeln('<a href="http://disneyshopping.go.com/transfer/438386/disney/store/DSIProductDisplay?catalogId=10002&storeId=10051&productId=1242507&langId=-1&categoryId=66520&CMP=OTL-DOL&att=D23" id="nav-joind23" name="&lid=left_nav/1/join_d23&lpos=left_nav/1"><img id="inav-joind23" src="http://d23.disney.go.com/images/nav-joind23.jpg" width="197" height="62" border="0" alt="Join D23"></a><br>\
<img src="http://d23.disney.go.com/images/nav-separator.jpg" width="197" height="12" border="0" alt=""><br>');
if (_gpn=="newsfeatures"){
document.writeln('<img src="http://d23.disney.go.com/images/nav-newsfeatures-on.jpg" width="197" height="51" border="0" alt="News & Features"><br>');
} else {
document.writeln('<a id="nav-newsfeatures" href="http://d23.disney.go.com/newsfeatures.html" name="&lid=left_nav/2/news_and_features&lpos=left_nav/2"><img id="inav-newsfeatures" src="http://d23.disney.go.com/images/nav-newsfeatures-off.jpg" width="197" height="51" border="0" alt="News & Features"></a><br>');
}
if (_gpn=="wdarchives"){
document.writeln('<img src="http://d23.disney.go.com/images/nav-wdarchives-on.jpg" width="197" height="47" border="0" alt="Walt Disney Archives"><br>');
} else {
document.writeln('<a id="nav-wdarchives" href="http://d23.disney.go.com/wdarchives.html" name="&lid=left_nav/3/walt_disney_archives&lpos=left_nav/3"><img id="inav-wdarchives" src="http://d23.disney.go.com/images/nav-wdarchives-off.jpg" width="197" height="47" border="0" alt="Walt Disney Archives"></a><br>');
}
if (_gpn=="expo"){
document.writeln('<img src="http://d23.disney.go.com/images/nav-expo-on.jpg" width="197" height="48" border="0" alt="Expo & Events"><br>');
} else {
document.writeln('<a id="nav-expo" href="http://d23.disney.go.com/expo.html" name="&lid=left_nav/4/expo_and_events&lpos=left_nav/4"><img id="inav-expo" src="http://d23.disney.go.com/images/nav-expo-off.jpg" width="197" height="48" border="0" alt="Expo & Events"></a><br>');
}
if (_gpn=="inthisissue"){
document.writeln('<img src="http://d23.disney.go.com/images/nav-disneytwentythree-on.jpg" width="197" height="48" border="0" alt="Disney twenty-three"><br>');
} else {
document.writeln('<a id="nav-disneytwentythree" href="http://d23.disney.go.com/inthisissue.html" name="&lid=left_nav/5/disney_twenty_three&lpos=left_nav/5"><img id="inav-disneytwentythree" src="http://d23.disney.go.com/images/nav-disneytwentythree-off.jpg" width="197" height="48" border="0" alt="Disney twenty-three"></a><br>');
}
document.writeln('<a id="nav-boutique23" href="http://disneyshopping.go.com/disney/store/CategoryDisplay?Nu=p_productID&Nty=1&Ntx=mode+matchallpartial&Nr=AND%28OR%28pStoreID%3A10051%2CpStoreID%3A10601%2CpStoreID%3A10052%29%2CpPublished%3A1%29&langId=-1&Ntt=14479&categoryId=14479&N=0&catalogFromSearch=10002&lid=search_submit&Ntk=p_categoryID&Searchstr=d23&selectedOption=All+of+Disney+Shopping&Search.y=15&Search.x=24&D=d23&Dx=mode+matchallpartial&Dr=AND%28OR%28pStoreID%3A10051%2CpStoreID%3A10601%2CpStoreID%3A10052%29%2CpPublished%3A1%29&catalogId=10002&Dn=0&storeId=10051" name="&lid=left_nav/6/boutique_23&lpos=left_nav/6"><img id="inav-boutique23" src="http://d23.disney.go.com/images/nav-boutique23-off.jpg" width="197" height="54" border="0" alt="Boutique 23"></a><br>');

}


/*---EASY PRINTABLE FUNCTION---*/
function popPrintable(){
filltext=gid('PRINTABLE-AREA').innerHTML.replace(new RegExp("<a +[^>]*>",'gi'),'').replace(/<\/a>/gi,'');
eve=window.open('','printwindow','width=640, height=600, left=1, top=1, scrollbars=1, resizable=1, statusbar=1, menubar=0, toolbar=0');
eve.document.writeln('<html><head><title>'+document.title+'</title><style>.even{ padding:0; margin:3px 3px 3px 18px; }</style>');
eve.document.writeln('</head><body style="margin:0; padding:1px; background:white; font:11px verdana; text-align:center;" onload="window.print()"><div style="text-align:left; width:592px; margin:0 auto 0 auto; "><img src="http://d23.disney.go.com/images/printable-logo.gif" border="0" width="592" height="83" alt=""><br><br>');
eve.document.writeln(filltext);
eve.document.writeln('</div></body></html>');
eve.document.close();
}

/*---SLIDESHOW STUFF---*/
function showPhoto(xmlurl){
gid('flashtarget').style.top=document.body.scrollTop+150;
gid('flashtarget').style.width=document.body.clientWidth;
gid('shadediv').style.height=document.body.scrollHeight;
show('flashtarget','shadediv');
new $flash({ movie:"../photo-gallery.swf", w:"477", h:"561", vars:"xmlURL="+xmlurl }).inner('flashtarget');
document.body.onkeypress=function(e){ slideShowKeyPressHandler(e) }
}
function showComic(xmlurl){
gid('flashtarget').style.top=document.body.scrollTop+150;
gid('flashtarget').style.width=document.body.clientWidth;
gid('shadediv').style.height=document.body.scrollHeight;
show('flashtarget','shadediv');
new $flash({ movie:"http://d23.disney.go.com/comics.swf", w:"987", h:"426", vars:"xmlURL="+xmlurl }).inner('flashtarget');
document.body.onkeypress=function(e){ slideShowKeyPressHandler(e) }
}
function hidePhoto(){
inner('flashtarget',''); hide('flashtarget','shadediv');
document.body.onkeypress=null;
}

function slideShowKeyPressHandler(e) {
var kC=(window.event)?event.keyCode:e.keyCode;
var Esc=(window.event)?27:e.DOM_VK_ESCAPE;
if(kC==Esc){ hidePhoto() }
}
/*---END SLIDESHOW STUFF---*/

function popSendAFriend(){ window.open("","sendafriend","width=600,height=400,resizable=false,scrollbars=false"); gid('sendafriendform').submit(); }