function handleError() { return true; } window.onerror=handleError;
try{ var addMe=(document.location.href.indexOf('.go.com')==-1)?'disney-tsdev.online.disney.com':'disney.go.com'; }
catch(add){var addMe='disney-tsdev.online.disney.com';}
var root='http://'+addMe+'/theatre';

// Javascript Global code for DOB - First Edition October 2002
//window.name="DisneyTheatrical";
// START CHROME 
var breadCrumb = "<font color=#ffffff face=arial,helvetica size=-2>&nbsp;&gt;</font> <a href=http://disney.go.com/park/bases/studiobase/today/flash/index.html target=_top><font color=#ffffff face=arial,helvetica size=-2>Entertainment</font></a><font color=#ffffff face=arial,helvetica size=-2>&nbsp;&gt;</font> <a href=http://disney.go.com/theatre target=_top><font color=#ffffff face=arial,helvetica size=-2>Theatre</font></a>";
// END CHROME

// link disclaimer
function GOurl(url) { GOurl2(url); }
// the non-Joe Disney version
function OpenTheWindow(url){
	this.win=window.open(url,"amazon")
	this.win.focus()

}
function GOurl2(url){
var popDisclaimer=window.open("","disclaimer","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=370,height=240,top=100,left=150,screenX=180,screenY=100");
popDisclaimer.document.writeln('<html><head><title>Disney on Broadway - Disclaimer</title>\
<SCR'+'IPT TYPE="text/javascript" LANGUAGE="JavaScript">\
sendTimer = setTi'+'meout("sendToClientSide()",1500);closeTimer = setTi'+'meout("window.close()",15000);\
func'+'tion sendToCl'+'ientSide(){try{if(opener){opener.OpenTheWindow("'+url+'")}}catch(e){}}\
</scr'+'ipt>\
</head>\
<body bgcolor="#FFFFFF" text="#0065CE" link="#FFFF80" vlink="#FFFF80" alink="#FFFF80" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload="window.focus();">\
<table width="370" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://disney.go.com/theatre/images/disclaimer.jpg" border="0" width="370" height="240" alt="You are now leaving disneyonbroadway.com.  Thank you for visiting." usemap="#goMap"></td></tr></table>\
<map name="goMap"><area alt="Click Here to Continue" coords="109,179,263,200" href="javascript:sendToCl'+'ientSide()"></map>\
</body></html>');
popDisclaimer.document.close();
}
// end link disclaimer

// Once-a-Day Popup code
function checkDailyCookie(cookieCheck){ if (document.cookie.indexOf(cookieCheck) >= 0){ return true; } else { return false; } }
function plantDailyCookie(cookiePlant){ 
thedate = new Date(); newhours=thedate.getHours()+24; thedate.setHours(newhours);
document.cookie = cookiePlant +"=1;expires="+thedate+";"
}
function checkSessionCookie(cookieCheck){
if (document.cookie.indexOf(cookieCheck) >= 0){ return true; } else { document.cookie=cookieCheck+'=1'; return false; }
}

// Footer
function writeFooter(){
document.writeln('<table width="640" border="0" align="center"><tr><td align="center"><CENTER><font face="verdana, arial, helvetica, sans-serif" size="1"><p><a href="http://disney.go.com/guestservices/index.html" target="_blank">Guest Services</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://disney.go.com/legal/privacy_policy.html" target="_blank">Privacy Policy</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://disney.go.com/legal/internet_safety.html" target="_blank">Internet Safety</a></font><br><font face="verdana, arial, helvetica, sans-serif" size="1">Use of this site signifies your agreement to the <a href="http://disney.go.com/legal/conditions_of_use.html" target="_blank">terms of use</a>.<br>&copy; Disney. All rights reserved.</p></font></CENTER></td></tr></table><br>');
}


//Send-a-Friend
function openSendFriendGlobal(){
width=430, height=500;
if ((navigator.appName == "Netscape") && (navigator.appVersion.substring(0,1) == "4")) { width=510; }
openSendFriend('http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=theatre/sendpage.tpl','send',width,height);
}

function openSendFriend(theURL,winName,width,height) {
name = null;
window.open(theURL,winName,'width='+ width +' ,height='+ height);
}


function getCookie (name){
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen)
	{
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
		return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return -1;
}

// Global opening a popupwindow code
function popWin (url, name, width, height, scroller ) { var outStr = 'height=' + height + ',width=' + width; if (scroller != 'true') { outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no'; } else { outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no'; } window.open(url, name, outStr); }

leftPos=1, topPos=1, popW=1, popH=1;
popDimensions = "";
function centerIt(popW,popH,urlToCenter,centeredWinName,doreturn){
var w = 800, h = 600;
if (document.all || document.layers || document.getElementById) {  w = screen.availWidth; h = screen.availHeight; }
leftPos = (w-popW)/2, topPos = (h-popH)/2;
popDimensions = 'width='+popW+',height='+popH+',left='+leftPos+',top='+topPos+',scrollbars=0,menubar=0,statusbar=0,resizable=0';
if (urlToCenter != null){ if (doreturn){ return window.open(urlToCenter,centeredWinName,popDimensions); } else { window.open(urlToCenter,centeredWinName,popDimensions); }}
}
function upperRight(popW,popH,urlToOpen,rightWinName,otherProperties){
var w = 800, h = 600;
if (document.all || document.layers || document.getElementById) {  w = screen.availWidth; h = screen.availHeight; }
leftPos = (w-popW-10), topPos = 1;
popDimensions = 'width='+popW+',height='+popH+',left='+leftPos+',top='+topPos;
if (otherProperties != null){ popDimensions+=','+otherProperties; }
if (urlToOpen != null){ window.open(urlToOpen,rightWinName,popDimensions); }
}

function writeFlashAd(ad){
//if (ad=="home"){ mrad='<img src="'+root+'/images/homepage/snow_728x90.jpg" width="728" height="90" alt="Despite the anticipated inclement weather forecasted for New York City, please note that Disney\'s Beauty and the Beast and The Lion King will perform as scheduled." border="0">'; } else {
//admovie='ad_compass_728x90.swf';
//mrad='<object id="site" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" border="0" width="728" height="90"><param name="movie" value="http://disney.go.com/theatre/flash/ad/'+admovie+'"><param name="menu" value="false"><param name="quality" value="best"><param name="bgcolor" value="#313031"><embed SRC="http://disney.go.com/theatre/flash/ad/'+admovie+'" NAME=site WIDTH="728" HEIGHT="90" QUALITY="best" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" menu="false" bgcolor="#313031"></object>';
//}
//document.writeln('<table width="770" border="0" cellspacing="0" cellpadding="2" align="center" bgcolor="#313031"><tr><td align="center">'+mrad+'</td></tr></table>');
}
//chrome stuff
var chromeColor = "#000000";
var chromeWidth = 770;
var bCrumbLevel_1 = "Entertainment";
var bCrumbLevel_2_text = "Theatre";
var bCrumbLevel_2_url = "http://disney.go.com/theatre/";
var bCrumbLevel_3_text = "";
var bCrumbLevel_3_url = "";
var legalFooterColor = "#ffffff";
/*var legalFtrOpts = ["REGISTER" , "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/disneytheatrical/chooseAge&name=g_legalFooter_register", "GUEST SERVICES","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/disneytheatrical/lists&name=g_legalFooter_guestservices" , "HELP", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://psc.disney.go.com/guestservices/index.html&name=g_legalFooter_help"];*/

var chDDSelect = ["More Shows", "", "Disney on Broadway Home", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre&name=DOB_home_nav", "break", "Beauty and the Beast", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre/beautyandthebeast&name=beautyandthebeast_nav", "Mary Poppins", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre/marypoppins&name=marypoppins_nav", "Tarzan", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre/tarzan&name=tarzan_nav", "The Lion King", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre/thelionking&name=lionking_nav", "International Productions", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre/international&name=internationalproductions_nav", "U.S. Tours", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/theatre/thelionking/tour/index.html&name=ustours_nav"]

var _gmlc="/theatre";
//var _gacct="DM5103120MSF93EN3;DM510612FMNS38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";
var _gacct="DM560104N7AN38EN3;DM510612FMNS38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";
try{ _gpn=location.href.match(/([\w-]*).htm/i)[1]; } catch(pn){ _gpn='index'; }

function roll(e){
if (window.event) { thisimg = window.event.srcElement; } else if (e.target) { thisimg = e.target; } else { return; }
for (j=0;j<myArraySet.length;j++){ if (myArraySet[j][0]==thisimg.name+'_over'){ thisimg.src=myArraySet[j][1].src; break;}}}
function unroll(e){
if (window.event) { thisimg = window.event.srcElement; } else if (e.target) { thisimg = e.target; } else { return; }
for (k=0;k<myArraySet.length;k++){ if (myArraySet[k][0]==thisimg.name){ thisimg.src=myArraySet[k][1].src; break;}}}
function init(){
myArraySet=new Array(); myImages=new Array(); count=-1;
for (i=0;i<document.images.length;i++){
bob=document.images[i];
if ((bob.name!="") && (bob.name.indexOf('roll-')>-1)){
unName=bob.src; count++;
c1=bob.src.substring(0,bob.src.length-4); c2=bob.src.substring(bob.src.length-4,bob.src.length); c3=c1+'_over'+c2;
thisImage=new Image(); thisImage.src=c3; myArraySet[count]=new Array(bob.name+'_over',thisImage);
bob.onmouseover=roll; count++; thisImage=new Image(); thisImage.src=unName; myArraySet[count]=new Array(bob.name,thisImage);
bob.onmouseout=unroll;
}}}

//Popup win
function popwin (url, name, width, height, scroller ) { var outStr = 'height=' + height + ',width=' + width; if (scroller != 'true') { outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no'; } else { outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no'; } window.open(url, name, outStr); }

//generic open new window
function openWinNew(new_url) {
	var url = new_url;
	regwindow = window.open (url , 'regwindow')
regwindow.focus();
}

//open Mary Poppins International
function popmpINT(pop_url) {
	var url = pop_url;
	regwindow = window.open (url , 'regwindow')
regwindow.focus();
}