var chromeColor="#003399";
var chromeWidth=994;
var bCrumbLevel_1="Entertainment";
var bCrumbLevel_2_text="Disney Video + DVD";
var bCrumbLevel_2_url="http://disney.go.com/disneyvideos/index.html";
var bCrumbLevel_3_text="Pirates of the Caribbean: At World's End";
var bCrumbLevel_3_url="http://disney.go.com/disneyvideos/liveaction/pirates/atworldsend/index.html";
if(location.host=="register.go.com"){var legalFooterColor="#FFF";}else{var legalFooterColor="#FFF";}
var legalFtrCpyRgt="&copy; Buena Vista Home Entertainment, Inc. All rights reserved.";
legalFooterCat="Movies";
var legalFtrOpts=["Register","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/pirates/index&name=g_legalFooter_register","Guest Services","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/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"]
window.status=bCrumbLevel_3_text+" -- The Official Website"
window.focus();

// DISCLAIMER POPUP SCRIPT
function openDisclaimer(URL){win = window.open('http://disney.go.com/disneyvideos/javascript/disclaimer/disclaimer.html?'+ URL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');}

// JOE'S QUERY SEARCH
function params(qp){try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}catch(e){r='';} return r;}

// RESIZE POPUP WHEN COMING FROM DISNEY PICTURES HOMEPAGE
// DOCTYPE NEEDS TO BE HTML FOR THIS TO WORK
function resizeMe(width,height) {
	if (window.innerWidth){
		popWidth=window.innerWidth;popHeight=window.innerHeight;
	}else{
		popWidth=document.body.clientWidth;popHeight=document.body.clientHeight;
	}
	var left=(screen.width-width)/2;var top=(screen.height-height)/2;//FIGURE THE CENTER OF THE SCREEN
	self.window.moveTo(left,top)//MOVE THE POPUP TO THE CENTER
	popWidth=width-popWidth;popHeight=height-popHeight;window.resizeBy(popWidth, popHeight);//MAKE THE POPUP THE RIGHT SIZE
}

function newWindow(url,name,width,height){window.open(url,name,'width='+width+',height='+height)}

//CODE BELOW FOR NON-POPUP DISCLAIMER
disclaimerArray=["disclaimer1","disclaimer2"];

function externalDisclaimer(name, URL, positionX, positionY){
	if (!positionX){positionX = 0;}
	if (!positionY){positionY = 0;}
	document.writeln('<div style="position:relative;width:300px;"><div class="thirdParty" style="left:'+positionX+'px;top:'+positionY+'px;" id="'+name+'"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td><strong>Ahoy Matey!</strong> Please be aware that you are about to leave Disney Online and different terms of use and privacy policy will apply.</td></tr><!--tr><td colspan="2" align="center"><a href="javascript:showhide(\''+name+'\')"><strong>cancel</strong></a></td></tr--></table></div></div>');
}
the_timeout=null;
function showhide(divID,docURL,windowName){
	if (!windowName){windowName="externalWin";}
	obj=document.getElementById(divID);
	if (!obj.style.overflow || obj.style.overflow == "hidden"){
	  for(i=0;i<disclaimerArray.length;i++){
	    if(disclaimerArray[i]!=divID){
		disc=document.getElementById(disclaimerArray[i]);
		disc.style.overflow="hidden";
		disc.style.visibility="hidden";
		if(the_timeout!=null){clearTimeout(the_timeout);}
		}
	  }
		obj.style.overflow="visible";
		obj.style.visibility="visible";
//		the_timeout=setTimeout('redirect("'+divID+'","'+docURL+'","'+windowName+'")',4000);
	} else {
		obj.style.overflow="hidden";
		obj.style.visibility="hidden";
		clearTimeout(the_timeout);
	}
}
function redirect(divID,URL,windowName){
	showhide(divID);
	win=window.open(URL,windowName,"");
	win.focus();
}

function openDisclaimer(URL){
win = window.open('http://disney.go.com/disneypictures/javascript/disclaimer/disclaimer.html?'+ URL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');}
ratingsDisclaimerFont="#000";
ratingsDisclaimerBackground="#FFF";
ratingsDisclaimerBorder="#000";

// billing block release date update
var releaseDate=new Date()
releaseDate.setFullYear(2007,4,25)
var todaysDate=new Date()
billingImage="bill";
if(releaseDate<=todaysDate)billingImage+="NP";
