

var whichFooter = '';
var omniture = '';
var currentPage = location.pathname;

var arrFooterLinks = [];
var daYear = new Date();
daYear = daYear.getFullYear();
arrFooterLinks[0] = ["PRIVACY POLICY","http://www.scholastic.com/privacy.htm"];
arrFooterLinks[1] = ["Terms of Use","http://www.scholastic.com/terms.htm"];
arrFooterLinks[2] = ["Scholastic Inc.","http://www2.scholastic.com/browse/index.jsp?c=y"];
arrFooterLinks[3] = ["Customer Service","http://www.scholastic.com/custsupport/"];
arrFooterLinks[4] = ["About Scholastic","http://www.scholastic.com/aboutscholastic/"];
arrFooterLinks[5] = ["Careers","http://www.scholastic.com/aboutscholastic/job/"];
arrFooterLinks[6] = ["Investor Relations","http://www.scholastic.com/investorrelations"];
arrFooterLinks[7] = ["International","http://www.scholastic.com/international/"];
arrFooterLinks[8] = ["Scholastic en Espa&ntilde;ol","http://www.scholastic.com/aboutscholastic/espanol/"];
var strCopyright = "TM &reg; &amp; &copy; " + daYear + "-1996 Scholastic Inc. All Rights Reserved.";


var strFooter = '<ul>';
for ( var i = 0, num = arrFooterLinks.length; i < num; i++ ) {
	if ( arrFooterLinks[i][0] == "PRIVACY POLICY" ) {
		strFooter += '<li class="pp"><a href="' + arrFooterLinks[i][1] + '">' + arrFooterLinks[i][0] + '</a></li>';			
	}
	else if ( i == num - 1 ) {
		strFooter += '<li class="last"><a href="' + arrFooterLinks[i][1] + '">' + arrFooterLinks[i][0] + '</a></li>';	
	}
	else {
		strFooter += '<li><a href="' + arrFooterLinks[i][1] + '">' + arrFooterLinks[i][0] + '</a></li>';
	}
}
strFooter += '</ul>';
strFooter += '<div class="copyright">' + strCopyright + '</div>';

var commonFooter = '\n\n</div><!-- /schlContent -->';
commonFooter += '\n</div><!-- /schlMainContent -->';
commonFooter += '\n</div><!-- /schlPageContent -->';
commonFooter += '\n\n<div style="padding-left: 25px;padding-right: 25px;"><!-- extra div to fix IE\'s quirks mode box model -->';
commonFooter += '\n<div id="schlFooter">';
commonFooter += strFooter;
commonFooter += '</div>';
commonFooter += '\n</div>';
commonFooter += '\n</div><!-- /schlPageWrapper -->';
if ( whichHeader == "tweens" ) commonFooter += '\n</td></tr></table>';

if ( whichFooter == "kids" ) { // old kids nav
	positionAds();
	document.write('\n<!-- BEGIN footer --><noindex>');
	document.write('\n<table width="720" border="0" cellspacing="0" cellpadding="5"><tr valign="top" bgcolor="#003366">');
	document.write('\n<td class="navTxt">TM <sup>&reg;</sup> &amp; <sup>&copy;</sup> 2008-1996 Scholastic Inc. All Rights Reserved.<br />Read our <a href="http://www.scholastic.com/privacy.htm">Privacy Policy Statement</a> | <a href="http://www.scholastic.com/terms.htm">Terms of Use</a></td></tr></table></noindex>');
	document.write('\n<!-- END footer-->');
	document.write('\n</div>');
}
else if ( whichFooter == "standalone" ) {
	var schlProtocol = "http://www.scholastic.com";
	document.writeln('<link rel="stylesheet" href="' + schlProtocol + '/menu/css/footer.css" type="text/css">');
	document.writeln('<st' + 'yle type="text/css">');
	document.writeln('#schlFooter { background: url(' + schlProtocol + '/menu/images/nav3.o/footer_bg.gif) no-repeat #D3ECFB; }');
	document.writeln('</style>');
	document.writeln('<div id="schlFooter">');
	document.write('<a href="http://www.scholastic.com/aboutscholastic/">About Scholastic</a> <a href="http://www.scholastic.com/aboutscholastic/job/">Careers</a> <a href="http://phx.corporate-ir.net/phoenix.zhtml?c=85107&p=irol-irhome">Investor Relations</a> <a href="http://www.scholastic.com/aboutscholastic/worldwide/">International</a> <a href="http://www.scholastic.com/aboutscholastic/espanol/">Scholastic en Espa&ntilde;ol</a> <a href="http://www.scholastic.com/privacy.htm">Privacy Policy</a> <a href="http://www.scholastic.com/terms.htm">Terms of Use</a>  TM &reg; &amp; &copy; 2008-1996 Scholastic Inc. All Rights Reserved.');
	document.write('</div>');
}
else { // wrapper for legacy and new wide pages
	document.write('\n<!--end page content-->');
	if ( whichFooter == "wrapper30" || wide == "true" ) {
		document.write('\n</div><!-- /schl3o -->');
	}
	else {
		document.write('\n</div><!-- /box743Borders -->');	
		document.write('\n<div style="float: left;"><img src="' + schlProtocol + '/menu/images/nav3.o/wrapper_box_btm.jpg" width="743" height="12" alt="" class="dBlock" /></div>');
		document.write('\n</div><!-- /schlLegacy -->');
	}
	document.write(commonFooter);
}

if ( omniture == "yes" ) {
	document.write('\n<scr'+'ipt type="text/javascript" src="' + schlProtocol + '/menu/templates/s_code_30.js"></scr'+'ipt>');
	}