var chromeColor="#000000";
if(location.protocol=="https:"){var chromeWidth=770;}else{var chromeWidth=994;}
var bCrumbLevel_1="Entertainment";
var bCrumbLevel_2_text="Walt Disney Pictures";
var bCrumbLevel_2_url="http://disney.go.com/disneypictures/";
var bCrumbLevel_3_text="Ratatouille";
var bCrumbLevel_3_url="http://disney.go.com/disneypictures/ratatouille/";
var legalFooterColor="#FFFFFF";

var legalFtrCpyRgt="&copy; Disney/Pixar. Todos los derechos reservados.";
window.status=bCrumbLevel_3_text+" : El sitio web oficial"
window.focus();

var legalFtrOpts=["Register","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/chooseAge?appRedirect=http://www.ratatouille.com&name=g_legalFooter_register","Guest Services","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/lists?appRedirect=http://www.ratatouille.com&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"]

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

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');}

// 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-20)//MOVE THE POPUP TO THE CENTER
	popWidth=width-popWidth;popHeight=height-popHeight;window.resizeBy(popWidth, popHeight);//MAKE THE POPUP THE RIGHT SIZE
}
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";

function externalDisclaimer(name,positionX,positionY){
	if (!positionX){positionX=0;}
	if (!positionY){positionY=0;}
	document.write('<div align="center"><div style="position:relative;width:300px;"><div class="ratingsDisclaimerStyle" style="left:'+positionX+'px;top:'+positionY+'px;" id="'+name+'"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr align="center"><td id="ratingsInfo" style="color:'+ratingsDisclaimerFont+';">Please be aware that you are about to leave Disney Online and different terms of use and privacy policy will apply.</td></tr></table></div></div></div>');
}

if(location.search=="?player"){window.open('http://disney.go.com/disneypictures/popups/embed/ratatouilleplayer.html?eclipid=b10021','player','width=950,height=540')}

function stopVid(){document.getElementById('trailerMediaPlayer').innerHTML='<img src="http://disney.go.com/disneypictures/ratatouille/trailer/images/pause.jpg" alt="" width="480" height="224" border="0" title="LOADING HI-DEFINITION VIDEO">'}

