<% Response.ContentType = "text/javascript" %>

var whichFooter = '<%= Request.QueryString("type") %>';
var omniture = '<%= Request.QueryString("omniture") %>';
var currentPage = location.pathname;
var commonFooter = '', commonFooter2 = '';
if (whichHeader == "parents") whichFooter = "parents";

if ( whichHeader == "tweens" && !wide ) commonFooter += '\n</div><!-- /schlLegacyTweens -->';
commonFooter += '\n\n</div><!-- /schlContent -->';
commonFooter += '\n</div><!-- /schlMainContent -->';
<!--if ( whichHeader == "tweens" && !wide ) commonFooter += '\n<div id="gStacksLegal">This site contains information and advertising about Scholastic and third party products.</div><div id="yawyr" title="SCHOLASTIC | Read Every Day. Lead a Better Life."></div>';-->
commonFooter += '\n</div><!-- /schlPageContent -->';
commonFooter2 += '\n</div><!-- /schlPageWrapper -->';
if ( whichHeader == "tweens" ) commonFooter2 += '\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 if ( whichFooter == "parents" ) {
	document.write("<!--end page content--></div></div></div></div>");
	document.write(unescape("%3Cscript src='" + schlProtocol + "/global_resources/universal/footer/3.0/footer.js" + schl_version + "' type='text/javascript'%3E%3C/script%3E"));

	jQuery(function(){
		jQuery.get(  
            "/global_components/parents/head",  
            function(responseText){  
                jQuery('head').append(responseText); 
                jQuery('.pfouc').removeClass('pfouc');
            },  
            "html"  
        );

	});

	document.write("</div><!-- /schlPageWrapper -->");
}
else { // wrapper for legacy and new wide pages
	document.write('\n<!--end page content-->');
	if ( whichFooter == "wrapper30" || wide == "true" ) {
		<!-- if ( whichHeader == "tweens" ) document.write('\n<div id="gStacksLegal">This site contains information and advertising about Scholastic and third party products.</div><div id="yawyr" title="SCHOLASTIC | Read Every Day. Lead a Better Life."></div>');-->
		document.write('\n</div><!-- /schl3o -->');
	}
	else if ( whichHeader != "tweens" ) {
		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);
	document.write(unescape("%3Cscript src='" + schlProtocol + "/global_resources/universal/footer/3.0/footer.js" + schl_version + "' type='text/javascript'%3E%3C/script%3E"));
	document.write(commonFooter2);
}
if ( omniture == "yes" ) { document.write('\n<scr'+'ipt type="text/javascript" src="' + schlProtocol + '/menu/templates/s_code_30.js"></scr'+'ipt>'); }

document.writeln('<scr'+'ipt type="text/javascript" src="//ltm.scholastic.com/ltm/resources/tag/footer.js"></scr'+'ipt>');