// This sets the footer font color to black if no color is defined.
try{
	if(!legalFooterColor){var legalFooterColor = "#000000";}
}catch(e){
	var legalFooterColor = "#000000";
}
var cameFromURL = location.href;
var ppLink = "";
function cameFrom(identifier){return (cameFromURL.indexOf(identifier) != -1) ? true : false;}

if( cameFrom("disney.go.com/disneychannel") || cameFrom("disney.go.com/playhouse") || cameFrom("psc.disney.go.com/abcnetworks/toondisney") || cameFrom("register.go.com/disneychannel/") ){
	ppQuery = "pp_abccng";
}else if( cameFrom("disney.go.com/visa") ){
	ppQuery = "pp_dccs";
}else if( cameFrom("disney.go.com/disneytheatrical") || cameFrom("disney.go.com/disneyonice") || cameFrom("register.go.com/disneytheatrical") || cameFrom("register.go.com/disney/disneyonice/") ){
	ppQuery = "pp_bvtg";
}else if( cameFrom("disney.go.com/disneyartclassics") ){
	ppQuery = "pp_ddrp";
}else if( cameFrom("disneyvideos.disney.go.com") || cameFrom("register.go.com/bvhe/") ){
	ppQuery = "pp_bvhe";
}else if( cameFrom("disney.go.com/disneyadventures") || cameFrom("disney.go.com/disneymagazine") ){
	ppQuery = "pp_bvm";
}else if( cameFrom("eventservices.disney.go.com") || cameFrom("disney.go.com/eventservices") ){
	ppQuery = "pp_wdpro";
}else{
	ppQuery = "pp_wdig";
}
ppLink = "http://disney.go.com/corporate/privacy/pp_wdpro.html"
//This portion of the legal footer is solely for the use of BVPM and BVHE.
//This is to determine the Copyright info to be displayed on the page.
var copyRight = ""
var copyRightType = "";
var ftTransfer = "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=";
if(legalFooterColor.indexOf("&") != -1){
	dvMarker = legalFooterColor.indexOf("&");
	copyRightType = legalFooterColor.substring(dvMarker+1, legalFooterColor.length);
	legalFooterColor = legalFooterColor.substring(0, dvMarker);
}

try{
	if(legalFtrCpyRgt){
		copyRight = legalFtrCpyRgt;
	}
}catch(e){
	switch (copyRightType){
	case "bvhe" :
		copyRight = "&copy; Buena Vista Home Entertainment, Inc. All rights reserved."; break;
	case "pixar" :
		copyRight = "&copy; Disney Enterprises, Inc./Pixar Animation Studios. All Rights Reserved."; break;
	case "bvpdwm" :
		copyRight = "&copy; Buena Vista Pictures Distribution and Walden Media LLC. All rights reserved."; break;
	case "bvpd" :
		copyRight = "&copy; Buena Vista Pictures Distribution. All rights reserved."; break;
	case "bruckheimer" :
		copyRight = "&copy; Disney Enterprises, Inc. and Jerry Bruckheimer, Inc. All rights reserved."; break;
	case "erichill" :
		copyRight = "&copy; Eric Hill/Salspot Ltd 2003 &copy; Buena Vista Home Entertainment, Inc."; break;
	case "rolie" :
		copyRight = "&copy; Rolie Polie Olie &copy; Nelvana In Trust. &copy; Disney Enterprises, Inc."; break;
	case "imax" :
		copyRight = "&copy; Disney Enterprises, Inc. IMAX &copy; Imax Corporation."; break;
	case "phd" :
		copyRight = "&copy; Disney, &copy; The Jim Henson Company, &copy; Jumbo, &copy; Nelvana in Trust, &copy; 2003 Spellbound Entertainment Limited & Famous Flying Films Limited. All rights reserved."; break;
	case "magicbowling" :
		copyRight = "&copy; Disney Enterprises, Inc./Pixar Animation Studios. All rights reserved.<br>Viz-A-Ball is a registered trademark of the Brunswick Bowling & Billiards Corporation. U.S. Patent No. 6,524,419"; break;
	case "burroughs" :
		copyRight = "&copy; Burroughs and Disney. All rights reserved."; break;
	case "bankone" :
		copyRight = "&copy 2003 Disney as to Disney elements. All rights reserved. <br>&copy 2003 Bank One."; break;
	case "wde" :
		copyRight = "&copy Walt Disney Enterprises, Inc."; break;
	default :
		copyRight = "&copy; Disney. All rights reserved."; break;
	}
}

//Spit out the legal footer...
function isThisPage(identifier){var locTemp=location.href; return (locTemp.indexOf(identifier) != -1) ? true : false;}

document.write('<TABLE border="0" cellspacing="12" cellpadding="0" align="center" background="">')
if(isThisPage("disney.go.com/home/today") || isThisPage("disney.go.com/playhouse/today") || isThisPage("disney.go.com/kids/today") || isThisPage("disney.go.com/entertainment/today") || isThisPage("disney.go.com/inside/today") || isThisPage("disney.go.com/familyfun/today")){
	document.write('<TR><TD align="center"><FONT face="verdana" size="2" color="'+legalFooterColor+'"><A href="'+ftTransfer+'http://disney.go.com/guestservices/index.html&name=g_legalFooter_guestservices" target="_top"><FONT color="'+legalFooterColor+'">Guest Services</FONT></A>&nbsp;|&nbsp;<A href="'+ftTransfer+'https://register.go.com/disney/indexhome&name=g_legalFooter_register" target="_top"><FONT color="'+legalFooterColor+'">Register</FONT></A>&nbsp;|&nbsp;<A href="'+ftTransfer+'http://psc.disney.go.com/guestservices/index.html&name=g_legalFooter_help" target="_top"><FONT color="'+legalFooterColor+'">Help</FONT></A></FONT></TD></TR>');
}
else{
	try{
		if(legalFtrOpts){
			document.write('<TR><TD align="center"><FONT face="verdana" size="2" color="'+legalFooterColor+'">');
			for(i=0 ; i<legalFtrOpts.length ; i+=2){
				document.write('<A href="'+legalFtrOpts[i+1]+'" target="_top"><FONT color="'+legalFooterColor+'">'+legalFtrOpts[i]+'</FONT></A>');
				if(i<legalFtrOpts.length-2)
					document.write('&nbsp;|&nbsp;');
			}
			document.write('</FONT></TD></TR>');
		}	
	}catch(e){}
}
document.write('<tr><td align="center"><FONT face="verdana" size="2" color="'+legalFooterColor+'"><A href="'+ftTransfer+'http://disney.go.com/corporate/privacy/safety.html%3FppLink='+ppQuery+'&name=g_legalFooter_internetsafety" target="_top"><FONT color="'+legalFooterColor+'">Internet Safety</FONT></A>&nbsp;|&nbsp;<A href="'+ftTransfer+ppLink+'&name=g_legalFooter_privacypolicy" target="_top"><FONT color="'+legalFooterColor+'">Privacy Policy/Your California Privacy Rights</FONT></A>&nbsp;|&nbsp;<A href="'+ftTransfer+'http://disney.go.com/corporate/privacy/terms.html%3FppLink='+ppQuery+'&name=g_legalFooter_termsofuse" target="_top"><FONT color="'+legalFooterColor+'">Terms of Use</FONT></A></FONT><BR><FONT face="verdana" size="1" color="'+legalFooterColor+'">'+copyRight+'</FONT></td></tr></table><br>');
