chromeFoo = false;
chrome_location = window.location.toString();
if(chrome_location.indexOf("disney.videos.go.com") != -1)isMovieClub = true;
else isMovieClub=false;
if(chrome_location.indexOf("http://disney.go.com/home/html/index.html") != -1 || chrome_location.indexOf("http://disney.go.com/guestservices/upgrade/") != -1)chromeFoo = true;
if (!document.getElementById && chromeFoo != true) top.location.replace("http://disney.go.com/home/html/index.html");
if(!chromeColor){chromeColor = "#003399";}
if(!chromeWidth){chromeWidth = "770";}
if(!legalFooterColor){legalFooterColor = "#FFFFFF";}
prot = window.location.protocol;
prot = prot.toString();
if(prot == "https:"){
	call_sign = "s";
}
else {
	call_sign = "";
}

var breadCrumb = "";
var bCrumbGr = "&nbsp;&nbsp;&gt;&nbsp;&nbsp;";
var bCrumbFt = "<font color='#ffffff' face='arial,helvetica' size='-2'>";
var bCrumbTr = "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=";
var bCrumbLv1 = "";
var searchQuery = "";
var pwdByLogo = '<A HREF="javascript:void(0);" onClick="window.open(\'http://log.go.com/log?srvc=dis&guid=F164C41F-DFE0-424B-ACB7-729C4B8536FC&drop=0&addata=804:53734:173756:53734&a=1&goto=http://disney.go.com/globalmedia/chrome/interstitial/hp_disclaimer.html\',\'disclaimerWindow\',\'toolbar=no,scrollbars=no,location=no,width=370,height=210\')"><img src="http://log.go.com/log?&amp;srvc=dis&amp;addata=804:53734:173756:53734&amp;target=&amp;method=GET&amp;svr=ntweb-14&amp;host=adisney.go.com&amp;guid=F164C41F-DFE0-424B-ACB7-729C4B8536FC&amp;goto=http://adimages.go.com/ad/sponsors/hp/Nov_2003/hewl-82x23-0002.gif" border="0" width=82 height=23></A>';
if(call_sign == "s"){
	if(pwdByLogo.indexOf("goto=http://adimages.go.com/") != -1){
		pwdByLogo = pwdByLogo.replace("goto=http://adimages.go.com/", "goto=https://adimages.go.com/")
	}
	if(pwdByLogo.indexOf("goto=http://Adsatt.Disney.starwave.com") != -1)
		pwdByLogo = pwdByLogo.replace("goto=http://Adsatt.Disney.starwave.com", "goto=https://Adsatt.Disney.starwave.com")
}
document.writeln("<style>\
								.dolChrome { font-family: arial, helvetica !important; color: #333333 !important; font-size: 10px !important;}\
								a.dolChrome,a.dolChrome:hover, a.dolChrome:active { background-color: transparent !important; text-decoration: underline !important;}\
								.chromeTable{background-image : url(http://disney.go.com/disneypictures/narnia/images/chromeBG.jpg);background-repeat : repeat-x;}\
								.chromePulldown { font-family : Arial, Helvetica, sans-serif; font-size : 10px; color : #333333; }\
								.chromeDiv {width:100%;height:27px;background-image : url(http://disney.go.com/disneypictures/narnia/images/chromeBG.jpg);background-repeat : repeat-x;}\
								</sty"+"le>");
//exception for movieclub
if(isMovieClub)addSearch="";
else{addSearch='<a href="'+bCrumbTr+'http://search.disney.go.com/index.html'+searchQuery+'&name=g_micChrome_search" class="dolChrome" target="_top"><b>Search Disney</b></a>';}

var replaceStyleClass = new RegExp ('><img src=', 'gi');
var pwdByLogo2 = pwdByLogo.replace(replaceStyleClass, ' class="dolChrome"><img src=');

if(bCrumbLevel_1)
	bCrumbLv1 = bCrumbLevel_1.toLowerCase();
	
if(bCrumbLv1 == "destinations" || bCrumbLv1 == "vacations" || bCrumbLv1 == "store")
	searchQuery = "%3Ftype%3Dnsl";

// DISCLAIMER POPUP SCRIPT
function openHPdisclaimer(){
	win = window.open('http://disney.go.com/globalmedia/chrome/interstitial/hp_disclaimer.html', 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');
}

function writeChrome(){
	document.writeln('<div class="chromeDiv"><table class="chromeTable" width="'+chromeWidth+'" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="'+chromeColor+'"><form method="post" target="_top"><tr>\
	<td width="100"><a href="'+bCrumbTr+'http://disney.go.com/&name=g_micChrome_dlogo" class="dolChrome" target="_top"><img src="http'+call_sign+'://disney.go.com/disneypictures/narnia/images/disney_logo.gif" width="100" height="25" alt="Disney Online" border="0"></a></td>\
	<td align="left" width="360" class="dolChrome">'+breadCrumb+'</td>\
	<td width="110"><select class="chromePulldown" name="navigation" size="1" onchange="if (this.form.navigation.options[this.form.navigation.selectedIndex].value) top.location.href=this.form.navigation.options[this.form.navigation.selectedIndex].value;">\
	<option selected>Narnia Links</option>\
	<option value="http://disney.go.com/disneypictures/narnia">Narnia.com</option>\
	<option value="http://disney.go.com/disneypictures/narnia/index.html?deeplink=production">The Movie</option>\
	<option value="javascript:popChrome(\'books\');">The Books</option>\
	<option value="javascript:popChrome(\'discover\');">Discover Narnia</option>\
	</select></td>\
	<td width="100" align="top">'+addSearch+'</td>\
	</tr></form></table></div>');
}
function doCrumb(goTo,tName,text){

	if(tName == "" && goTo == ""){
		breadCrumb = bCrumbGr+text;
	}else{

		breadCrumb = bCrumbGr+"<a href='"+bCrumbTr+goTo+"&name="+tName+"' class='dolChrome' target='_top'>"+text+"</a>";
		if(bCrumbLevel_2_text){
			breadCrumb += bCrumbGr;
			if(bCrumbLevel_2_url){breadCrumb += "<a href='"+bCrumbLevel_2_url+"' class='dolChrome' target='_top'>";}
			breadCrumb += bCrumbLevel_2_text;
			if(bCrumbLevel_2_url){breadCrumb += "</a>";}
		}
		if(bCrumbLevel_2_url){
			if(bCrumbLevel_3_text){
				breadCrumb += bCrumbGr;
				if(bCrumbLevel_3_url){breadCrumb += "<a href='"+bCrumbLevel_3_url+"' class='dolChrome' target='_top'>";}
				breadCrumb += bCrumbLevel_3_text;
				if(bCrumbLevel_3_url){breadCrumb += "</a>";}
			}
		}
	}
	bCrumbLevel_1 = text;
writeChrome();	
}

switch (bCrumbLv1){
case "entertainment" :
	doCrumb('http://disney.go.com/entertainment/today/index.html', 'g_micChrome_bc_entertainment', 'Entertainment'); break;
default :
	breadCrumb = "<span class='dolChrome'>&nbsp;&nbsp;&gt;&nbsp;&nbsp;Where the Magic Comes to You!</span>"; writeChrome(); break;
}


