function subSitePreloads (depth)
	{
/*	
	preload('hh',depth+'pix/hh.gif');
	preload('hh_roll',depth+'pix/hh_roll.gif');	
*/	
	preload('s_arrow',depth+'pix/s_arrow.gif');
	preload('s_arrow_roll',depth+'pix/s_arrow_roll.gif');	

	preload('s_bn_topics',depth+'pix/s_bn_topics.gif');
	preload('s_bn_topics_roll',depth+'pix/s_bn_topics_roll.gif');	

	preload('s_bn_n_stories',depth+'pix/s_bn_n_stories.gif');
	preload('s_bn_n_stories_roll',depth+'pix/s_bn_n_stories_roll.gif');	

	preload('s_bn_n_hospital',depth+'pix/s_bn_n_hospital.gif');
	preload('s_bn_n_hospital_roll',depth+'pix/s_bn_n_hospital_roll.gif');	

	preload('s_bn_n_families',depth+'pix/s_bn_n_families.gif');
	preload('s_bn_n_families_roll',depth+'pix/s_bn_n_families_roll.gif');	

	preload('s_bn_n_parents',depth+'pix/s_bn_n_parents.gif');
	preload('s_bn_n_parents_roll',depth+'pix/s_bn_n_parents_roll.gif');	

	preload('s_bn_n_about',depth+'pix/s_bn_n_about.gif');
	preload('s_bn_n_about_roll',depth+'pix/s_bn_n_about_roll.gif');	

	preload('s_bn_n_classroom',depth+'pix/s_bn_n_classroom.gif');
	preload('s_bn_n_classroom_roll',depth+'pix/s_bn_n_classroom_roll.gif');	

	preload('s_bn_back',depth+'pix/s_bn_back.gif');
	preload('s_bn_back_roll',depth+'pix/s_bn_back_roll.gif');	

	preload('s_bn_next',depth+'pix/s_bn_next.gif');
	preload('s_bn_next_roll',depth+'pix/s_bn_next_roll.gif');	
	}

// includes ======================================================
function header(depth,section,lang)
	{
document.writeln('<table border="0" cellspacing="0" cellpadding="0" align="center" width="739" class="tblbg1">');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="15" height="1" border="0" alt=""></td>');
document.writeln('		<td>');
		
document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="709">');
document.writeln('	<tr>');
document.writeln('		<td><a href="'+depth+'index.html"><img src="'+depth+'pix/s_head1.gif" alt="Children\'s Hopital" width="250" height="59" border="0"></a></td>');

if (section == "parents")
	{
	if (lang != "english" || lang != "spanish") {lang = "english";}
	if (!lang || lang == "english") {document.writeln('		<td><img src="'+depth+'pix/s_head_pc.gif" alt="Parent Center" width="296" height="59" border="0"></td>');}
	else if (lang == "spanish") {document.writeln('		<td><img src="'+depth+'pix/s_head_pc_spanish.gif" alt="Centro Para Padres" width="296" height="59" border="0"></td>');}
	}
else {document.writeln('		<td><img src="'+depth+'pix/s_head2.gif" alt="" width="296" height="59" border="0"></td>');}

document.writeln('		<td><img name="s_bn_topics" src="'+depth+'pix/s_bn_topics.gif" alt="See All Topics" width="163" height="59" border="0" usemap="#s_bn_topics"><map name="s_bn_topics"><area href="'+depth+'topics/index.html" onMouseOver="changeImage(\'\',\'s_bn_topics\',\'s_bn_topics_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_topics\',\'s_bn_topics\',\'\')" alt="See All Topics" coords="22,2,173,40"></map></td>');
document.writeln('	</tr>');
document.writeln('</table>');

document.writeln('		</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="15" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('</table>');
	}

function sideNav(depth,section,lang)
	{
document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="155" class="tblbg1">');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="12" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('</table>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="155" class="tblbg2">');
document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="155" height="5" border="0" alt=""></td>');
document.writeln('	</tr>');

// stories
if (section == "stories")
	{
	var arrow = '<img src="'+depth+'pix/ln_arrow.gif" width="10" height="23" border="0" alt="">';
	var bn = '<a href="'+depth+'stories/index.html"><img src="'+depth+'pix/s_bn_n_stories_static.gif" alt="See All Stories" width="127" height="23" border="0"></a>';
	}
else
	{
	var arrow = '<img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt="">';
	var bn = '<a href="'+depth+'stories/index.html" onMouseOver="changeImage(\'\',\'s_bn_n_stories\',\'s_bn_n_stories_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_n_stories\',\'s_bn_n_stories\',\'\')"><img name="s_bn_n_stories" src="'+depth+'pix/s_bn_n_stories.gif" alt="See All Stories" width="127" height="23" border="0"></a>';
	}
document.writeln('	<tr>');
document.writeln('		<td>'+arrow+'</td>');
document.writeln('		<td>'+bn+'</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
// /stories

document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
document.writeln('	</tr>');

// hospital
if (section == "hospital")
	{
	var arrow = '<img src="'+depth+'pix/ln_arrow.gif" width="10" height="23" border="0" alt="">';
	var bn = '<a href="'+depth+'hospital/index.html"><img src="'+depth+'pix/s_bn_n_hospital_static.gif" alt="The Hospital" width="127" height="23" border="0"></a>';
	}
else
	{
	var arrow = '<img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt="">';
	var bn = '<a href="'+depth+'hospital/index.html" onMouseOver="changeImage(\'\',\'s_bn_n_hospital\',\'s_bn_n_hospital_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_n_hospital\',\'s_bn_n_hospital\',\'\')"><img name="s_bn_n_hospital" src="'+depth+'pix/s_bn_n_hospital.gif" alt="The Hospital" width="127" height="23" border="0"></a>';
	}
document.writeln('	<tr>');
document.writeln('		<td>'+arrow+'</td>');
document.writeln('		<td>'+bn+'</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
// /hospital

document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
document.writeln('	</tr>');

// families
if (section == "families")
	{
	var arrow = '<img src="'+depth+'pix/ln_arrow.gif" width="10" height="23" border="0" alt="">';
	var bn = '<a href="'+depth+'families/index.html"><img src="'+depth+'pix/s_bn_n_families_static.gif" alt="The Children" width="127" height="23" border="0"></a>';
	}
else
	{
	var arrow = '<img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt="">';
	var bn = '<a href="'+depth+'families/index.html" onMouseOver="changeImage(\'\',\'s_bn_n_families\',\'s_bn_n_families_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_n_families\',\'s_bn_n_families\',\'\')"><img name="s_bn_n_families" src="'+depth+'pix/s_bn_n_families.gif" alt="The Children" width="127" height="23" border="0"></a>';
	}
document.writeln('	<tr>');
document.writeln('		<td>'+arrow+'</td>');
document.writeln('		<td>'+bn+'</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
// /families

document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
document.writeln('	</tr>');

// parent & subparents variables
if (!lang || lang != "english")
	{
	if (!lang || lang != "spanish") {lang = "english";}
	}
if (lang == "english")
	{
	var dir = "parents";
	var caring = "Caring for Kids";
	var injuries = "Injuries";
	var support = "Finding Support";
	var decisions = "Making Decisions";
	var resources = "Resources";
	}
else if (lang == "spanish")
	{
	var dir = "parents_spanish";
	var caring = "El cuidado de los ni&#241;os";
	var injuries = "Heridas";
	var support = "B&#249;squeda de apoyo";
	var decisions = "Toma de decisiones";
	var resources = "Resources";
	}
// /parent & subparents variables

// parents
if (section == "parents")
	{
	var arrow = '<img src="'+depth+'pix/ln_arrow.gif" width="10" height="23" border="0" alt="">';
	var bn = '<a href="'+depth+''+dir+'/index.html"><img src="'+depth+'pix/s_bn_n_parents_static.gif" alt="Parent Center" width="127" height="23" border="0"></a>';
	}
else
	{
	var arrow = '<img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt="">';
	var bn = '<a href="'+depth+''+dir+'/index.html" onMouseOver="changeImage(\'\',\'s_bn_n_parents\',\'s_bn_n_parents_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_n_parents\',\'s_bn_n_parents\',\'\')"><img name="s_bn_n_parents" src="'+depth+'pix/s_bn_n_parents.gif" alt="Parent Center" width="127" height="23" border="0"></a>';
	}
document.writeln('	<tr>');
document.writeln('		<td>'+arrow+'</td>');
document.writeln('		<td>'+bn+'</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
// /parents

document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="5" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td>');

// sub-parents
document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="142">');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="15" height="1" border="0" alt=""></td>');
document.writeln('		<td><a href="'+depth+''+dir+'/caring/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'1\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'1\')"><img name="s_arrow1" src="'+depth+'pix/s_arrow.gif" alt="" width="8" height="7" border="0"></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('		<td nowrap><a href="'+depth+''+dir+'/caring/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'1\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'1\')"><span class="link2">'+caring+'</span></a></td>');
document.writeln('		<td width="2000"><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td colspan="5"><img src="'+depth+'pix/shim.gif" width="1" height="5" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td><a href="'+depth+''+dir+'/accidents/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'2\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'2\')"><img name="s_arrow2" src="'+depth+'pix/s_arrow.gif" alt="" width="8" height="7" border="0"></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td nowrap><a href="'+depth+''+dir+'/accidents/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'2\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'2\')"><span class="link2">'+injuries+'</span></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td colspan="5"><img src="'+depth+'pix/shim.gif" width="1" height="5" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td><a href="'+depth+''+dir+'/support/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'3\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'3\')"><img name="s_arrow3" src="'+depth+'pix/s_arrow.gif" alt="" width="8" height="7" border="0"></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td nowrap><a href="'+depth+''+dir+'/support/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'3\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'3\')"><span class="link2">'+support+'</span></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td colspan="5"><img src="'+depth+'pix/shim.gif" width="1" height="5" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td><a href="'+depth+''+dir+'/decisions/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'4\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'4\')"><img name="s_arrow4" src="'+depth+'pix/s_arrow.gif" alt="" width="8" height="7" border="0"></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td nowrap><a href="'+depth+''+dir+'/decisions/index.html" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'4\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'4\')"><span class="link2">'+decisions+'</span></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');

document.writeln('	<tr>');
document.writeln('		<td colspan="5"><img src="'+depth+'pix/shim.gif" width="1" height="5" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td><a href="'+depth+''+dir+'/resources.htm" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'4r\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'4r\')"><img name="s_arrow4r" src="'+depth+'pix/s_arrow.gif" alt="" width="8" height="7" border="0"></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('		<td nowrap><a href="'+depth+''+dir+'/resources.htm" onMouseOver="changeImage(\'\',\'s_arrow\',\'s_arrow_roll\',\'4r\')" onMouseOut="changeImage(\'\',\'s_arrow\',\'s_arrow\',\'4r\')"><span class="link2">'+resources+'</span></a></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('</table>');
// /sub-parents

document.writeln('		</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
document.writeln('	</tr>');

// about
if (section == "about")
	{
	var arrow = '<img src="'+depth+'pix/ln_arrow.gif" width="10" height="23" border="0" alt="">';
	var bn = '<a href="'+depth+'about/index.html"><img src="'+depth+'pix/s_bn_n_about_static.gif" alt="About The Series" width="127" height="23" border="0"></a>';
	}
else
	{
	var arrow = '<img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt="">';
	var bn = '<a href="'+depth+'about/index.html" onMouseOver="changeImage(\'\',\'s_bn_n_about\',\'s_bn_n_about_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_n_about\',\'s_bn_n_about\',\'\')"><img name="s_bn_n_about" src="'+depth+'pix/s_bn_n_about.gif" alt="About The Series" width="127" height="23" border="0"></a>';
	}
document.writeln('	<tr>');
document.writeln('		<td>'+arrow+'</td>');
document.writeln('		<td>'+bn+'</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
// /about

document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
document.writeln('	</tr>');

// classroom
if (section == "classroom")
	{
	var arrow = '<img src="'+depth+'pix/ln_arrow.gif" width="10" height="23" border="0" alt="">';
	var bn = '<a href="'+depth+'classroom/index.html"><img src="'+depth+'pix/s_bn_n_classroom_static.gif" alt="For Teachers" width="127" height="23" border="0"></a>';
	}
else
	{
	var arrow = '<img src="'+depth+'pix/shim.gif" width="1" height="1" border="0" alt="">';
	var bn = '<a href="'+depth+'classroom/index.html" onMouseOver="changeImage(\'\',\'s_bn_n_classroom\',\'s_bn_n_classroom_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_n_classroom\',\'s_bn_n_classroom\',\'\')"><img name="s_bn_n_classroom" src="'+depth+'pix/s_bn_n_classroom.gif" alt="For Teachers" width="127" height="23" border="0"></a>';
	}
document.writeln('	<tr>');
document.writeln('		<td>'+arrow+'</td>');
document.writeln('		<td>'+bn+'</td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
// /classroom

document.writeln('	<tr>');
document.writeln('		<td colspan="3"><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('</table>');
	}

function backNext(depth,page,pageTotal)
	{
	document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
	document.writeln('	<tr>');
	
	if (page != 1) {document.writeln('		<td><a href="page'+(parseInt(page)-1)+'.htm" onMouseOver="changeImage(\'\',\'s_bn_back\',\'s_bn_back_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_back\',\'s_bn_back\',\'\')"><img name="s_bn_back" src="'+depth+'pix/s_bn_back.gif" alt="back" width="49" height="14" border="0"></a></td>');}
	
	if (page == pageTotal) {document.writeln('<td><img src="'+depth+'pix/shim.gif" width="43" height="14" border="0" alt=""></td>');}
	else {document.writeln('		<td><a href="page'+(parseInt(page)+1)+'.htm" onMouseOver="changeImage(\'\',\'s_bn_next\',\'s_bn_next_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_next\',\'s_bn_next\',\'\')"><img name="s_bn_next" src="'+depth+'pix/s_bn_next.gif" alt="next" width="43" height="14" border="0"></a></td>');}
	document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="20" height="1" border="0" alt=""></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
	}

function backNextv2(depth,name,page,pageTotal)
	{
	document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
	document.writeln('	<tr>');
	
	if (page != 0) {document.writeln('		<td><a href="'+name+(parseInt(page)-1)+'.htm" onMouseOver="changeImage(\'\',\'s_bn_back\',\'s_bn_back_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_back\',\'s_bn_back\',\'\')"><img name="s_bn_back" src="'+depth+'pix/s_bn_back.gif" alt="back" width="49" height="14" border="0"></a></td>');}
	
	if (page == pageTotal) {document.writeln('<td><img src="'+depth+'pix/shim.gif" width="43" height="14" border="0" alt=""></td>');}
	else {document.writeln('		<td><a href="'+name+(parseInt(page)+1)+'.htm" onMouseOver="changeImage(\'\',\'s_bn_next\',\'s_bn_next_roll\',\'\')" onMouseOut="changeImage(\'\',\'s_bn_next\',\'s_bn_next\',\'\')"><img name="s_bn_next" src="'+depth+'pix/s_bn_next.gif" alt="next" width="43" height="14" border="0"></a></td>');}
	document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="20" height="1" border="0" alt=""></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
	}
// /includes ======================================================