var chromeColor="#333333";
var chromeWidth=770;
var bCrumbLevel_1="Entertainment";
var bCrumbLevel_2_text="Disney's Soda Fountain and Studio Store";
var bCrumbLevel_2_url="http://disney.go.com/disneypictures/el_capitan/soda_fountain/index.html";
var bCrumbLevel_3_text=null;
var bCrumbLevel_3_url=null;
var legalFooterColor="#FFFFFF";
var legalFtrOpts=["Register","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/chooseAge&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://home.disney.go.com/guestservices/faqs"]
function params(qp){try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}catch(e){r='';} return r;}

//	POP WINDOWS
function popup(pop_url,winname,windowWidth,windowHeight,scrollbars,toolbar,location,resizable){window.open(pop_url,winname,"scrollbars="+scrollbars+",width="+windowWidth+",height="+windowHeight+",toolbar="+toolbar+",location="+location+",resizable="+resizable);}

function popupFull(pop_url){window.open(pop_url,"full_pop");}

function openDisclaimer(){ // DISCLAIMER POPUP SCRIPT
	win=window.open('http://disney.go.com/disneypictures/javascript/disclaimer/disclaimer.html?http://www.narnia.com',  'intermediate','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');
}

// CHANGE PAGES
function openPage(URL) {//alert(URL);
	if (URL=="menu") {
		popup('http://adisney.go.com/disneypictures/el_capitan/soda_fountain/a/menu.pdf','menu',770,520,1,1,0,1)
	} else if (URL=="limited") {
		if(screen.height<=600){popup(URL+'.html',URL,417,520,1,0,0,0)}else{popup(URL+'.html',URL,400,629,0,0,0,0)}
	} else if (URL=="pin") {
//		popup(URL+'.html','newWin',400,400,0,0,0,0)
		window.open('http://adisney.go.com/disneypictures/el_capitan/soda_fountain/a/pintrading.pdf','pdf');
	} else if (URL=="flyer") {
		popup(URL+'.html','flyer',613,810,0,0,0,0);
	} else if (URL=="booksigning") {
		popup(URL+'.html','booksigning',613,810,0,0,0,0);
	} else if (URL=="pirates") {
		popup(URL+'.html','pirates',574,770,0,0,0,0);
	} else if (URL=="nightmare_event") {
		popup(URL+'.html','nightmare',870,700,1,0,0,0);
	} else {
		location.href=URL+'.html';
	}
}
// FLASH NAV WIDTH AND HEIGHT
navWidth=186;navHeight=500;

function getPDF(doh) {
	pdf=window.open('a/'+doh+'.pdf','newWin');
	pdf.focus();return false;
}

window.focus();
window.status=bCrumbLevel_2_text;

// 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
}