// mouseover functions ============================================
function sitePreloads (depth)
	{
/*	
	preload('hh',depth+'pix/hh.gif');
	preload('hh_roll',depth+'pix/hh_roll.gif');	
*/	
	preload('arrow',depth+'pix/arrow.gif');
	preload('arrow_roll',depth+'pix/arrow_roll.gif');	
	}
	
function preload(imgObj,imgSrc) 
	{
	eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
	}

function changeImage(divName,imgName,imgObj,num)
	{
	if (divName != "" && document.layers) {var div = "document."+divName+".";}
	else {var div = "";}
	eval(div+"document").images[imgName+num].src = eval(imgObj+".src");
	}
// /mouseover functions ============================================

// popup window functions ==========================================
function popFlex(URL, winName,W,H,scroll)
	{
	if (scroll == "no")
		{scroll = "scrollbars=no"}
	else if (scroll == "yes")
		{scroll = "scrollbars"}
	window.open(URL, winName,"top=0,left=30,width="+W+",height="+H+",resizable=no,"+scroll+"")
	}	

function popMain(URL, winName)
	{
	window.open(URL, winName,"top=0,left=0,width=754,height=420,resizable=no,scrollbars");
	}	

function popPC(URL,winName)
	{
	window.open(URL, winName,"top=30,left=30,width=592,height=345,resizable=no,scrollbars=no");
	}	
// /popup window functions ==========================================

// includes ======================================================
function lineodots(depth,num)
	{
	document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
	document.writeln('	<tr>');
	for (var n=0; n < parseInt(num); n++)
		{
		document.writeln('		<td><img src="'+depth+'pix/dot.gif" alt="" width="4" height="4" border="0"></td>');
		document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="8" height="1" border="0" alt=""></td>');
		}
	document.writeln('		<td><img src="'+depth+'pix/dot.gif" alt="" width="4" height="4" border="0"></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
	}

function footer(depth,section,lang)
	{
	if (!lang || lang != "english")
		{
		if (!lang || lang != "spanish") {lang = "english";}
		}
	if (lang == "english")
		{
		var dir = "parents";
		var dirtxt = "Parent Center";
		var disclaimer = "This information is not intended to be a substitute for professional medical advice.<br>Please consult your healthcare provider about diagnosing or treating health care problems.";
		}
	else if (lang == "spanish")
		{
		var dir = "parents_spanish";
		var dirtxt = "Centro Para Padres";
		var disclaimer = "Con la presente informaci&#243;n no se pretende substituir el consejo m&#233;dico profesional. Consulte a su proveedor de atenci&#243;n m&#233;dica sobre el diag&#243;stico o tratamiento de problemas de salud.";
		}
	document.writeln('<table border="0" cellspacing="0" cellpadding="0" align="center" width="739" class="tblbg1">');
	document.writeln('	<tr>');
	document.writeln('		<td><img src="../pix/shim.gif" width="15" height="1" border="0" alt=""></td>');
	document.writeln('		<td width="734" align="center">');
	
	document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="699">');
	document.writeln('	<tr>');
	document.writeln('		<td><img src="'+depth+'pix/hm_btm_line.gif" alt="" width="579" height="29" border="0"></td>');
	
	document.writeln('		<td><img src="'+depth+'pix/hm_btm_line2.gif" alt="" width="120" height="29" border="0"></td>');

	document.writeln('	</tr>');
	document.writeln('</table>');

	document.writeln('<span class="footertxt">');
	document.writeln('<a href="'+depth+'index.html"><span class="footertxt">Home</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+'stories/index.html"><span class="footertxt">All Stories</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+'hospital/index.html"><span class="footertxt">The Hospital</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+'families/index.html"><span class="footertxt">The Children</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+''+dir+'/index.html"><span class="footertxt">'+dirtxt+'</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+'about/index.html"><span class="footertxt">About the Series</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+'classroom/index.html"><span class="footertxt">For Teachers</span></a>');
	document.writeln('<b>&nbsp;|&nbsp;</b>');
	document.writeln('<a href="'+depth+'topics/index.html"><span class="footertxt">All Topics</span></a>');
	document.writeln('</span>');
	
	document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="1">');
	document.writeln('	<tr>');
	document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="5" border="0" alt=""></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');

	document.writeln('<span class="footertxt">&copy; 2002 OPB</span>');
			
	document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="1">');
	document.writeln('	<tr>');
	document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');

	document.writeln('<span class="smtxt"><i>'+disclaimer+'</i></span>');

	document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="1">');
	document.writeln('	<tr>');
	document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="1" height="10" border="0" alt=""></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 popOrNot(destLoc)
	{
	if (!window.opener) {document.writeln('<div align="right"><a href="'+destLoc+'" target="fred">Go to Children\'s Hospital</a></div>');}
	}
// /includes ======================================================