var chromeColor = "#3C0000";
var chromeWidth = 770;

var bCrumbLevel_1 = "Entertainment";

var bCrumbLevel_2_text = "Walt Disney Pictures";
var bCrumbLevel_2_url = "http://disney.go.com/disneypictures/index.html";

var bCrumbLevel_3_text = "Cars";
var bCrumbLevel_3_url = "http://disney.go.com/disneypictures/cars/index.html";

var legalFooterColor = "#000";

var legalFtrCpyRgt = "&copy; 2006 Disney/Pixar. All rights reserved.";
window.status="Cars :: The Official Movie Website"
window.focus();

var legalFtrOpts = ["Register","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/cars/index&name=g_legalFooter_register","Guest Services","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/cars/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"]

// 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 resizeThis(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 params(qp){ try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}catch(e){r='';} return r; }

function getQuickTime() {
	try { // OPEN SOFTWARE CENTER IN THE OPENER IF IT EXISTS
		opener.location ='http://disney.go.com/help/software_center/index.html#quicktime';
	}
	catch (e) {
		window.open('http://disney.go.com/help/software_center/index.html#quicktime');
	}
}

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";

// DISCLAIMER POPUP SCRIPT
function openDisc(URL){win=window.open('http://disney.go.com/disneypictures/javascript/disclaimer/disclaimer.html?'+ URL,'intermediate','width=370,height=210');}
/*
DEEPLINK LEVEL 1:
?sec=1 showroom
?sec=2 models
?sec=3 viewads
?sec=4 about cars
?sec=5 accessories

DEEPLINK LEVEL 2:
?subsec=1 first subsection or content
?subsec=2 second subsection or content

DEEPLINKS DIRECTLY TO CAR (in showroom):
?car=1 mcqueen
?car=2 mater
?car=3 sally
?car=4 doc
?car=5 ramone
?car=6 flo
?car=7 sarge
?car=8 fillmore
?car=9 chick
?car=10 king
?car=11 guido
?car=12 luigi

Examples: 
To go to Sally directly in showroom, add deeplink: ?car=3
But to go to Sally in Models, add deeplink: ?sec=2&car=3

The ?subsec= code refers to the various submenus or options within Level 1 sections.

Examples: 
For Maters gallery (because Gallery is #2 submenu), add deeplink: ?sec=2&car=2&subsec=2
For trailer (first video in View Ads), add deeplink: ?sec=3&subsec=13
*/