
// preload =============================== 
function pathDepth(path)
	{
	preload("bt_close1",path+"bt_close_roll.gif");
	preload("bt_close",path+"bt_close.gif");
	
	preload("hd_mexico1",path+"hd_mexico_roll.gif");
	preload("hd_mexico",path+"hd_mexico.gif");
	preload("hd_peru1",path+"hd_peru_roll.gif");
	preload("hd_peru",path+"hd_peru.gif");
	preload("hd_amazonia1",path+"hd_amazonia_roll.gif");
	preload("hd_amazonia",path+"hd_amazonia.gif");
	preload("hd_namerica1",path+"hd_namerica_roll.gif");
	preload("hd_namerica",path+"hd_namerica.gif");
	
	preload("home1",path+"left_home_roll.gif");
	preload("home",path+"left_home.gif");
	preload("time1",path+"left_time_roll.gif");
	preload("time",path+"left_time.gif");
	preload("mike1",path+"left_mike_roll.gif");
	preload("mike",path+"left_mike.gif");
	preload("what1",path+"left_what_roll.gif");
	preload("what",path+"left_what.gif");
	preload("teacher1",path+"left_teach_roll.gif");
	preload("teacher",path+"left_teach.gif");
	preload("about1",path+"left_about_roll.gif");
	preload("about",path+"left_about.gif");
	preload("other1",path+"left_other_roll.gif");
	preload("other",path+"left_other.gif");
	
	preload("mexicomap1",path+"mexico_roll.gif");
	preload("mexicomap",path+"mexico_act.gif");
	preload("noamermap1",path+"noamer_roll.gif");
	preload("noamermap",path+"noamer_act.gif");
	preload("perumap1",path+"peru_roll.gif");
	preload("perumap",path+"peru_act.gif");
	preload("amazonmap1",path+"amazon_roll.gif");
	preload("amazonmap",path+"amazon_act.gif");
	
	preload("arrow1",path+"en_arrow_roll.gif");
	preload("arrow",path+"en_arrow.gif");
/*
	// mexico subheaders 
	preload("cort",path+"sh_cort.gif");
	preload("cort1",path+"sh_cort_roll.gif");
	preload("monta",path+"sh_mont.gif");
	preload("monta1",path+"sh_mont_roll.gif");
	preload("conq",path+"sh_conq.gif");
	preload("conq1",path+"sh_conq_roll.gif");
	
	// amazonia subheaders 
	preload("early",path+"sh_ama_early.gif");
	preload("early1",path+"sh_ama_early_roll.gif");
	preload("quest",path+"sh_ama_quest.gif");
	preload("quest1",path+"sh_ama_quest_roll.gif");
	preload("leg",path+"sh_ama_leg.gif");
	preload("leg1",path+"sh_ama_leg_roll.gif");

	// namerica subheaders
	preload("amer",path+"sh_dev_amer.gif");
	preload("amer1",path+"sh_dev_amer_roll.gif");
	preload("dev",path+"sh_dev_dev.gif");
	preload("dev1",path+"sh_dev_dev_roll.gif");
	preload("leg",path+"sh_dev_leg.gif");
	preload("leg1",path+"sh_dev_leg_roll.gif");
	
	// peru subheaders
	preload("inc",path+"sh_piza_inc.gif");
	preload("inc1",path+"sh_piza_inc_roll.gif");
	preload("voy",path+"sh_piza_voy.gif");
	preload("voy1",path+"sh_piza_voy_roll.gif");
	preload("leg",path+"sh_piza_leg.gif");
	preload("leg1",path+"sh_piza_leg_roll.gif");	


	// Journal subheaders
	preload("journal_amazonia",path+"journal_amazonia.gif");
	preload("journal_amazonia1",path+"journal_amazonia_roll.gif");
	preload("journal_america",path+"journal_america.gif");
	preload("journal_america1",path+"journal_america_roll.gif");
	preload("journal_mexico",path+"journal_mexico.gif");
	preload("journal_mexico1",path+"journal_mexico_roll.gif");
	preload("journal_peru",path+"journal_peru.gif");
	preload("journal_peru1",path+"journal_peru_roll.gif");

	//sub-subheaders
	preload("michaels_intro",path+"ssh_michaels_intro.gif");
	preload("michaels_intro1",path+"ssh_michaels_intro_roll.gif");
	preload("milestones",path+"ssh_milestones.gif");
	preload("milestones1",path+"ssh_milestones_roll.gif");
	preload("essays",path+"ssh_essays.gif");
	preload("essays1",path+"ssh_essays_roll.gif");

	// page numbers
	preload("page1",path+"page1.gif");
	preload("page1_roll",path+"page1_roll.gif");
	preload("page2",path+"page2.gif");
	preload("page2_roll",path+"page2_roll.gif");
	preload("page3",path+"page3.gif");
	preload("page3_roll",path+"page3_roll.gif");
	preload("page4",path+"page4.gif");
	preload("page4_roll",path+"page4_roll.gif");
	preload("page5",path+"page5.gif");
	preload("page5_roll",path+"page5_roll.gif");
	preload("page6",path+"page6.gif");
	preload("page6_roll",path+"page6_roll.gif");
	preload("page7",path+"page7.gif");
	preload("page7_roll",path+"page7_roll.gif");
	preload("page8",path+"page8.gif");
	preload("page8_roll",path+"page8_roll.gif");
	
	// about bibliography
	preload("about_site_amazonia",path+"about_site_amazonia.gif");
	preload("about_site_amazonia1",path+"about_site_amazonia_roll.gif");
	preload("about_site_mexico",path+"about_site_mexico.gif");
	preload("about_site_mexico1",path+"about_site_mexico_roll.gif");
	preload("about_site_noamer",path+"about_site_noamer.gif");
	preload("about_site_noamer1",path+"about_site_noamer_roll.gif");
	preload("about_site_peru",path+"about_site_peru.gif");
	preload("about_site_peru1",path+"about_site_peru_roll.gif");

	// about Related Sites
	preload("rel_about_site_amazonia",path+"about_site_amazonia.gif");
	preload("rel_about_site_amazonia1",path+"about_site_amazonia_roll.gif");
	preload("rel_about_site_mexico",path+"about_site_mexico.gif");
	preload("rel_about_site_mexico1",path+"about_site_mexico_roll.gif");
	preload("rel_about_site_noamer",path+"about_site_noamer.gif");
	preload("rel_about_site_noamer1",path+"about_site_noamer_roll.gif");
	preload("rel_about_site_peru",path+"about_site_peru.gif");
	preload("rel_about_site_peru1",path+"about_site_peru_roll.gif");

	// journal
	preload("journal_mike_text",path+"journal_mike_text.gif");
	preload("journal_mike_text1",path+"journal_mike_text_roll.gif");
*/	
	}

function preload(imgObj,imgSrc) 
	{
	eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
	}

// rollover function =============================== 
function changeImage(imgName,imgObj) 
	{
	document.images[imgName].src = eval(imgObj+".src")
	}


/* popup windows =============================== */
function sitesatoz() 
	{
	window.open("http://www.pbs.org/sitesa2z/", "sitesatoz", 'toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=1,width=390,height=300');
	}

function popup(html,name)
	{
	window.open(html,name,'width=375,height=475,top=30,left=30,chrome=no,resizable=yes');
	}

function overviewpop(html,name,H)
	{
	var newWindow=
	window.open(html,name,'width=490,height='+H+',top=30,left=30,chrome=no,resizable=yes,scrollbars=yes');	
	}
	
function biopop(html,name)
	{
	var newWindow=
	window.open(html,name,'width=420,height=390,top=30,left=30,chrome=no,resizable=yes');
	}

function infopop(html,name,H)
	{
	//window.open(html,name,'width=470,height=525,top=30,left=30,chrome=no,resizable=yes,scrollbars=yes');
	window.open(html,name,'width=470,height='+H+',top=30,left=30,chrome=no,resizable=yes,scrollbars=yes');
	}
	
function milestonespop(html,name)
	{
	window.open(html,name,'width=470,height=570,top=30,left=30,chrome=no,resizable=yes,scrollbars=yes');
	}

function essayspop(html,name)
	{
	window.open(html,name,'width=470,height=570,top=30,left=30,chrome=no,resizable=yes,scrollbars=yes');
	}

function flashpop(html,name)
	{
	window.open(html,name,'width=550,height=452,top=30,left=30,resizable=no,scrollbars=no');
	}

function timelinepop(html,name)
	{
	window.open(html,name,'width=600,height=377,top=30,left=30,resizable=no,scrollbars=no');
	}
	
/* headers ===================================== */
function headerMexico1(depth,linkDepth,adNum)
	{
	if (adNum == 'ad1')
		{
		var lnk1 = '<TD><A HREF="'+linkDepth+'mexico.htm"><IMG NAME="monta" SRC="'+depth+'images/sh_mont_roll.gif" WIDTH="167" HEIGHT="20" BORDER="0" ALT="Montezuma and the Aztecs"></A></TD>'
		}
	else
		{
		var lnk1 = '<TD><A HREF="'+linkDepth+'mexico.htm" onMouseOver="changeImage(\'monta\',\'monta1\')" onMouseOut="changeImage(\'monta\',\'monta\')"><IMG NAME="monta" SRC="'+depth+'images/sh_mont.gif" WIDTH="167" HEIGHT="20" BORDER="0" ALT="Montezuma and the Aztecs"></A></TD>'
		}
	if (adNum == 'ad2')
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm"><IMG NAME="cort" SRC="'+depth+'images/sh_cort_roll.gif" WIDTH="142" HEIGHT="20" BORDER="0" ALT="Cortes and the Spanish"></A></TD>'
		}
	else
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm" onMouseOver="changeImage(\'cort\',\'cort1\')" onMouseOut="changeImage(\'cort\'\,\'cort\')"><IMG NAME="cort" SRC="'+depth+'images/sh_cort.gif" WIDTH="142" HEIGHT="20" BORDER="0" ALT="Cortes and the Spanish"></A></TD>'
		}
	if (adNum == 'ad3')
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg_roll.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
	else
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm" onMouseOver="changeImage(\'leg\',\'leg1\')" onMouseOut="changeImage(\'leg\',\'leg\')"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">')
document.writeln('<TR>')
document.writeln('<TD rowspan="2"><IMG SRC="'+depth+'images/subheader_left.gif" WIDTH="70" HEIGHT="48" BORDER="0" ALT=""></TD>')
document.writeln('<TD rowspan="2" width="35"><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="10" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD align="center">')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD>')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0" align="center">')
document.writeln('<TR>')
document.writeln(lnk1)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk2)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk3)
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="5" align="center"><IMG SRC="'+depth+'images/sh_foot.gif" WIDTH="515" HEIGHT="11" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}	
	
function headerPeru(depth,linkDepth,adNum)
	{
	if (adNum == 'ad1')
		{		
		var lnk1 = '<TD><A HREF="'+linkDepth+'peru.htm"><IMG NAME="inc" SRC="'+depth+'images/sh_piza_inc_roll.gif" WIDTH="115" HEIGHT="21" BORDER="0" ALT="The Inca Empire"></A></TD>'
		}
	else
		{
		var lnk1 = '<TD><A HREF="'+linkDepth+'peru.htm" onMouseOver="changeImage(\'inc\',\'inc1\')" onMouseOut="changeImage(\'inc\',\'inc\')"><IMG NAME="inc" SRC="'+depth+'images/sh_piza_inc.gif" WIDTH="115" HEIGHT="21" BORDER="0" ALT="The Inca Empire"></A></TD>'
		}
	if (adNum == 'ad2')
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm"><IMG NAME="voy" SRC="'+depth+'images/sh_piza_voy_roll.gif" WIDTH="187" HEIGHT="21" BORDER="0" ALT="Pizarro\'s Voyage of Discovery"></A></TD>'
		}
	else
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm" onMouseOver="changeImage(\'voy\',\'voy1\')" onMouseOut="changeImage(\'voy\'\,\'voy\')"><IMG NAME="voy" SRC="'+depth+'images/sh_piza_voy.gif" WIDTH="187" HEIGHT="21" BORDER="0" ALT="Pizarro\'s Voyage of Discovery"></A></TD>'
		}
	if (adNum == 'ad3')
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg_roll.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
	else
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm" onMouseOver="changeImage(\'leg\',\'leg1\')" onMouseOut="changeImage(\'leg\',\'leg\')"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">')
document.writeln('<TR>')
document.writeln('<TD rowspan="2"><IMG SRC="'+depth+'images/subheader_left.gif" WIDTH="70" HEIGHT="48" BORDER="0" ALT=""></TD>')
document.writeln('<TD rowspan="2" width="31"><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="10" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD align="center">')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD>')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0" align="center">')
document.writeln('<TR>')
document.writeln(lnk1)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk2)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk3)
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="5" align="center"><IMG SRC="'+depth+'images/sh_foot.gif" WIDTH="515" HEIGHT="11" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}	

function headerAmazonia(depth,linkDepth,adNum)
	{
	if (adNum == 'ad1')
		{		
		var lnk1 = '<TD><A HREF="'+linkDepth+'amazonia.htm"><IMG NAME="early" SRC="'+depth+'images/sh_ama_early_roll.gif" WIDTH="97" HEIGHT="19" BORDER="0" alt="Early Amazonia"></A></TD>'
		}
	else
		{
		var lnk1 = '<TD><A HREF="'+linkDepth+'amazonia.htm" onMouseOver="changeImage(\'early\',\'early1\')" onMouseOut="changeImage(\'early\',\'early\')"><IMG NAME="early" SRC="'+depth+'images/sh_ama_early.gif" WIDTH="97" HEIGHT="19" BORDER="0" alt="Early Amazonia"></A></TD>'
		}
	if (adNum == 'ad2')
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm"><IMG NAME="quest" SRC="'+depth+'images/sh_ama_quest_roll.gif" WIDTH="155" HEIGHT="19" BORDER="0" alt="The Quest for El Dorado"></A></TD>'
		}
	else
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm" onMouseOver="changeImage(\'quest\',\'quest1\')" onMouseOut="changeImage(\'quest\'\,\'quest\')"><IMG NAME="quest" SRC="'+depth+'images/sh_ama_quest.gif" WIDTH="155" HEIGHT="19" BORDER="0" alt="The Quest for El Dorado"></A></TD>'
		}
	if (adNum == 'ad3')
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg_roll.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
	else
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm" onMouseOver="changeImage(\'leg\',\'leg1\')" onMouseOut="changeImage(\'leg\',\'leg\')"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">')
document.writeln('<TR>')
document.writeln('<TD rowspan="2"><IMG SRC="'+depth+'images/subheader_left.gif" WIDTH="70" HEIGHT="48" BORDER="0" ALT=""></TD>')
document.writeln('<TD rowspan="2" width="30"><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="10" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD align="center">')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD>')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0" align="center">')
document.writeln('<TR>')
document.writeln(lnk1)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk2)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk3)
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="5" align="center"><IMG SRC="'+depth+'images/sh_foot.gif" WIDTH="515" HEIGHT="11" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}	

function headerNamerica(depth,linkDepth,adNum)
	{
	if (adNum == 'ad1')
		{		
		var lnk1 = '<TD><A HREF="'+linkDepth+'namerica.htm"><IMG NAME="amer" SRC="'+depth+'images/sh_dev_amer_roll.gif" WIDTH="148" HEIGHT="19" BORDER="0" ALT="The American Southwest"></A></TD>'
		}
	else
		{
		var lnk1 = '<TD><A HREF="'+linkDepth+'namerica.htm" onMouseOver="changeImage(\'amer\',\'amer1\')" onMouseOut="changeImage(\'amer\',\'amer\')"><IMG NAME="amer" SRC="'+depth+'images/sh_dev_amer.gif" WIDTH="148" HEIGHT="19" BORDER="0" ALT="The American Southwest"></A></TD>'
		}
	if (adNum == 'ad2')
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm"><IMG NAME="dev" SRC="'+depth+'images/sh_dev_dev_roll.gif" WIDTH="107" HEIGHT="19" BORDER="0" ALT="Exploring America"></A></TD>'
		}
	else
		{
		var lnk2 = '<TD><A HREF="'+linkDepth+'adventure2/a1.htm" onMouseOver="changeImage(\'dev\',\'dev1\')" onMouseOut="changeImage(\'dev\'\,\'dev\')"><IMG NAME="dev" SRC="'+depth+'images/sh_dev_dev.gif" WIDTH="107" HEIGHT="19" BORDER="0" ALT="Exploring America"></A></TD>'
		}
	if (adNum == 'ad3')
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg_roll.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
	else
		{
		var lnk3 = '<TD><A HREF="'+linkDepth+'adventure3/a1.htm" onMouseOver="changeImage(\'leg\',\'leg1\')" onMouseOut="changeImage(\'leg\',\'leg\')"><IMG NAME="leg" SRC="'+depth+'images/sh_piza_leg.gif" WIDTH="143" HEIGHT="21" BORDER="0" ALT="Legacy of the Conquest"></A></TD>'
		}
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">')
document.writeln('<TR>')
document.writeln('<TD rowspan="2"><IMG SRC="'+depth+'images/subheader_left.gif" WIDTH="70" HEIGHT="48" BORDER="0" ALT=""></TD>')
document.writeln('<TD rowspan="2" width="30"><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="10" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD align="center">')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD>')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0" align="center">')
document.writeln('<TR>')
document.writeln(lnk1)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk2)
document.writeln('<TD><IMG SRC="'+depth+'images/sh_tilde.gif" WIDTH="11" HEIGHT="20" BORDER="0" ALT=""></TD>')
document.writeln(lnk3)
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="5" align="center"><IMG SRC="'+depth+'images/sh_foot.gif" WIDTH="515" HEIGHT="11" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}

	
function headerJournal(jRoll)
	{
	if (jRoll == 'mexico')
		{		
		var lnk1 = '<TD><A HREF="m1.htm"><IMG name="journal_mexico" SRC="../images/journal_mexico_roll.gif" WIDTH="48" HEIGHT="17" BORDER="0" ALT="Mexico Journal"></A></TD>'
		}
	else
		{
		var lnk1 = '<TD><A HREF="m1.htm" onMouseOver="changeImage(\'journal_mexico\',\'journal_mexico1\')" onMouseOut="changeImage(\'journal_mexico\',\'journal_mexico\')"><IMG name="journal_mexico" SRC="../images/journal_mexico.gif" WIDTH="48" HEIGHT="17" BORDER="0" ALT="Mexico Journal"></A></TD>'
		}
	if (jRoll == 'peru')
		{		
		var lnk2 = '<TD><A HREF="p1.htm"><IMG name="journal_peru" SRC="../images/journal_peru_roll.gif" WIDTH="34" HEIGHT="17" BORDER="0" ALT="Peru Journal"></A></TD>'
		}
	else
		{
		var lnk2 = '<TD><A HREF="p1.htm" onMouseOver="changeImage(\'journal_peru\',\'journal_peru1\')" onMouseOut="changeImage(\'journal_peru\',\'journal_peru\')"><IMG name="journal_peru" SRC="../images/journal_peru.gif" WIDTH="34" HEIGHT="17" BORDER="0" ALT="Peru Journal"></A></TD>'
		}
	if (jRoll == 'amazonia')
		{		
		var lnk3 = '<TD><A HREF="a1.htm"><IMG name="journal_amazonia" SRC="../images/journal_amazonia_roll.gif" WIDTH="60" HEIGHT="17" BORDER="0" ALT="Amazonia Journal"></A></TD>'
		}
	else
		{
		var lnk3 = '<TD><A HREF="a1.htm" onMouseOver="changeImage(\'journal_amazonia\',\'journal_amazonia1\')" onMouseOut="changeImage(\'journal_amazonia\',\'journal_amazonia\')"><IMG name="journal_amazonia" SRC="../images/journal_amazonia.gif" WIDTH="60" HEIGHT="17" BORDER="0" ALT="Amazonia  Journal"></A></TD>'
		}
	if (jRoll == 'namerica')
		{		
		var lnk4 = '<TD><A HREF="n1.htm"><IMG name="journal_america" SRC="../images/journal_america_roll.gif" WIDTH="53" HEIGHT="17" BORDER="0" ALT="North America Journal"></A></TD>'
		}
	else
		{
		var lnk4 = '<TD><A HREF="n1.htm" onMouseOver="changeImage(\'journal_america\',\'journal_america1\')" onMouseOut="changeImage(\'journal_america\',\'journal_america\')"><IMG name="journal_america" SRC="../images/journal_america.gif" WIDTH="53" HEIGHT="17" BORDER="0" ALT="North America Journal"></A></TD>'
		}
	
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD><IMG SRC="../images/shim.gif" WIDTH="45" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD>')
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0" align="center">')
document.writeln('<TR>')
document.writeln(lnk1)
document.writeln('<TD><IMG SRC="../images/journal_squiggle.gif" WIDTH="11" HEIGHT="17" BORDER="0" ALT=""></TD>')
document.writeln(lnk2)
document.writeln('<TD><IMG SRC="../images/journal_squiggle.gif" WIDTH="11" HEIGHT="17" BORDER="0" ALT=""></TD>')
document.writeln(lnk3)
document.writeln('<TD><IMG SRC="../images/journal_squiggle.gif" WIDTH="11" HEIGHT="17" BORDER="0" ALT=""></TD>')
document.writeln(lnk4)
document.writeln('</TR>')
document.writeln('</TABLE>')
document.writeln('</TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD><IMG SRC="../images/shim.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD align="center"><IMG SRC="../images/sh_foot.gif" WIDTH="326" HEIGHT="11" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}

//  sub-sub-headers ==================================	
function subsubheader1(imgDepth,pathDepth)
	{
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD><IMG SRC="'+imgDepth+'images/shim.gif" WIDTH="53" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD><A HREF="javascript:void(0)" onClick="flashpop(\''+pathDepth+'mw_intro.htm\',\'flashWin\')" onMouseOver="changeImage(\'michaels_intro\',\'michaels_intro1\')" onMouseOut="changeImage(\'michaels_intro\',\'michaels_intro\')"><IMG NAME="michaels_intro" SRC="'+imgDepth+'images/ssh_michaels_intro.gif" WIDTH="127" HEIGHT="44" BORDER="0" ALT="Michael\'s Introduction"></A></TD>')
document.writeln('<TD><A HREF="javascript:void(0)" onClick="milestonespop(\''+pathDepth+'pop-milestones.htm\',\'msWin\')" onMouseOver="changeImage(\'milestones\',\'milestones1\')" onMouseOut="changeImage(\'milestones\',\'milestones\')"><IMG name="milestones" SRC="'+imgDepth+'images/ssh_milestones.gif" WIDTH="105" HEIGHT="44" BORDER="0" ALT="Milestones"></A></TD>')
document.writeln('<TD><A HREF="javascript:void(0)" onClick="essayspop(\''+pathDepth+'pop-essays.htm\',\'essaysWin\')" onMouseOver="changeImage(\'essays\',\'essays1\')" onMouseOut="changeImage(\'essays\',\'essays\')"><IMG name="essays" SRC="'+imgDepth+'images/ssh_essays.gif" WIDTH="78" HEIGHT="44" BORDER="0" ALT="Essays"></A></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}

function subsubheader2(imgDepth,pathDepth)
	{
document.writeln('<TABLE border="0" cellspacing="0" cellpadding="0">')
document.writeln('<TR>')
document.writeln('<TD><IMG SRC="'+imgDepth+'images/shim.gif" WIDTH="92" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('<TD><A HREF="javascript:void(0)" onClick="flashpop(\''+pathDepth+'mw_intro.htm\',\'flashWin\')" onMouseOver="changeImage(\'michaels_intro\',\'michaels_intro1\')" onMouseOut="changeImage(\'michaels_intro\',\'michaels_intro\')"><IMG NAME="michaels_intro" SRC="'+imgDepth+'images/ssh_michaels_intro.gif" WIDTH="127" HEIGHT="44" BORDER="0" ALT="Michael\'s Introduction"></A></TD>')
document.writeln('<TD><A HREF="javascript:void(0)" onClick="milestonespop(\''+pathDepth+'pop-milestones.htm\',\'msWin\')" onMouseOver="changeImage(\'milestones\',\'milestones1\')" onMouseOut="changeImage(\'milestones\',\'milestones\')"><IMG name="milestones" SRC="'+imgDepth+'images/ssh_milestones.gif" WIDTH="105" HEIGHT="44" BORDER="0" ALT="Milestones"></A></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}
	
/* footers ====================================== */
function footer(depth)
		{
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center">')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="3"><IMG SRC="'+depth+'images/shim.gif" WIDTH=2 HEIGHT=5 BORDER=0 ></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="10" HEIGHT="1" BORDER="0" ALT=""></TD>')
//document.writeln('<TD ALIGN="CENTER" NOWRAP><A HREF="'+depth+'index.html">Home</A>&nbsp;|&nbsp;<A HREF="'+depth+'timeline/timeline.htm">Timeline</A>&nbsp;|&nbsp;<A HREF="'+depth+'journal/journal.htm">Journal</A>&nbsp;|&nbsp;<A HREF="'+depth+'forum/forum.htm">What do you Think?</A>&nbsp;|&nbsp;<A HREF="'+depth+'teachers/teachers.htm">Teaching Guide</A>&nbsp;|&nbsp;<A HREF="'+depth+'about/about.htm">About Conquistadors</A>&nbsp;|&nbsp;<A HREF="'+depth+'other/other.htm">Resources</A></TD>')
document.writeln('<TD ALIGN="CENTER"  class="txt" NOWRAP><A HREF="'+depth+'index.html"><SPAN class="smtxt">Home</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="javascript:void(0)" onClick="timelinepop(\''+depth+'timeline/timeline.htm\',\'timeline\')"><SPAN class="smtxt">Timeline</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'journal/journal.htm" target="_top"><SPAN class="smtxt">Journal</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'forum/forum.htm" target="_top"><SPAN class="smtxt">What do you Think?</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'teachers/teachers.htm" target="_top"><SPAN class="smtxt">Teaching Guide</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'about/about.htm" target="_top"><SPAN class="smtxt">About the Site</SPAN></A></TD>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="10" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="3"><IMG SRC="'+depth+'images/shim.gif" WIDTH="1" HEIGHT="20" BORDER="0"></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
		}
		
function footerAdventures(depth)
		{
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center">')
document.writeln('<TR>')
document.writeln('<TD colspan="3"></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD COLSPAN="3"><IMG SRC="'+depth+'images/shim.gif" WIDTH=1 HEIGHT=15 BORDER=0 ></TD>')
document.writeln('</TR>')
document.writeln('<TR>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="10" HEIGHT="1" BORDER="0" ALT=""></TD>')
//document.writeln('<TD NOWRAP><A HREF="'+depth+'mexico/mexico.htm">Mexico (The Aztecs)</A>&nbsp;|&nbsp;<A HREF="'+depth+'peru/peru.htm">Peru (The Incas)</A>&nbsp;|&nbsp;<A HREF="'+depth+'amazonia/amazonia.htm">Amazonia</A>&nbsp;|&nbsp;<A HREF="'+depth+'namerica/namerica.htm">North America</A></TD>')
document.writeln('<TD class="txt" NOWRAP><A HREF="'+depth+'mexico/mexico.htm" target="_top"><SPAN class="smtxt">Mexico (The Aztecs)</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'peru/peru.htm" target="_top"><SPAN class="smtxt">Peru (The Incas)</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'amazonia/amazonia.htm" target="_top"><SPAN class="smtxt">Amazonia</SPAN></A> <SPAN class="smtxt">|</SPAN> <A HREF="'+depth+'namerica/namerica.htm" target="_top"><SPAN class="smtxt">North America</SPAN></A></TD>')
document.writeln('<TD><IMG SRC="'+depth+'images/shim.gif" WIDTH="10" HEIGHT="1" BORDER="0" ALT=""></TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
		}	
		
function footFoot(depth)
	{
document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="5" ALIGN="center">')
document.writeln('<TR>')
document.writeln('<TD class="smtxt">Copyright © 2000 Oregon Public Broadcasting and PBS Online</TD>')
document.writeln('</TR>')
document.writeln('</TABLE>')
	}	