



function create_header(pPageName)

{

	document.write('<TABLE WIDTH=691 BORDER=0 CELLPADDING=0 CELLSPACING=0>')

	document.write("<TR>")

	document.write("<TD BGCOLOR='#000000'><IMG SRC='/Environment/BirdMigration/images/nav/bot_left.gif' WIDTH=116 HEIGHT=24></TD>")



	create_header_help(pPageName, "migration_facts", "Image1", "image1on", "image1off", "mig_on.gif", "mig_off.gif", "107" , "24")

	create_header_help(pPageName, "birds_of_chicago", "Image2", "image2on", "image2off", "bir_on.gif", "bir_off.gif", "100" , "24")

	create_header_help(pPageName, "lights_out_chicago", "Image3", "image3on", "image3off", "lig_on.gif", "lig_off.gif", "119" , "24")

	create_header_help(pPageName, "bird_protection", "Image4", "image4on", "image4off", "pro_on.gif", "pro_off.gif", "113" , "24")

	create_header_help(pPageName, "education_resources", "Image5", "image5on", "image5off", "edu_on.gif", "edu_off.gif", "132" , "24")

	

	document.write("</TR></TABLE>")



	document.write("<TABLE WIDTH=691 BORDER=0 CELLPADDING=0 CELLSPACING=0>")

	document.write("<TR>")

	document.write("<TD BGCOLOR='#000000' VALIGN='top'><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=1 HEIGHT=1></TD>")

	document.write("<TD BGCOLOR='#006600' VALIGN='top'><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=3 HEIGHT=1></TD>")

	document.write("<TD BGCOLOR='#FFFFFF' VALIGN='top'>")



}



function create_header_help(pPageName, pPageCheck, pImage, pImageon, pImageoff, pGifon, pGifoff, pWidth, pHeight) {

		if (pPageName == pPageCheck) {	

			document.write("<TD BGCOLOR='#000000'><A HREF='/Environment/BirdMigration/espanol/sub/" + pPageCheck + ".html'><IMG SRC='/Environment/BirdMigration/espanol/images/nav/" + pGifon + "' WIDTH=" + pWidth + " HEIGHT=" + pHeight + " BORDER=0></A></TD>")

		} else {

			document.write("<TD BGCOLOR='#000000'><A HREF='/Environment/BirdMigration/espanol/sub/" + pPageCheck + ".html' onmouseover=\"changeImages('" + pImage + "', '" + pImageon + "')\" onmouseout=\"changeImages('" + pImage + "', '" + pImageoff + "')\"><IMG SRC='/Environment/BirdMigration/espanol/images/nav/" + pGifoff + "' WIDTH=" + pWidth + " HEIGHT=" + pHeight + " BORDER=0 NAME='" + pImage + "'></A></TD>")

		}

}



function create_menu(pPageName, pSubPageName)

{

	document.write("<TABLE WIDTH=140 BORDER=0 CELLPADDING=1 CELLSPACING=0>")

	document.write("<TR><TD VALIGN='top' COLSPAN=3><IMG SRC='/Environment/BirdMigration/images/nav_dots.gif' WIDTH=138 HEIGHT=11></TD></TR>")

	document.write("<TR><TD VALIGN='top'><IMG SRC='/Environment/BirdMigration/images/nav_bullet.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top' WIDTH=114 COLSPAN=2><A HREF='/Environment/BirdMigration/espanol/sub/main.html' CLASS='leftlink'>Página Principal</A></TD></TR>")

	if (pPageName == "migration_facts") {

		create_menu_help(pSubPageName, "migration_facts", "Datos Básicos Sobre La Migración")

		if (pSubPageName == "migration_research" || pSubPageName == "radar_studies") {

			create_menu_help(pSubPageName, "migration_research", "Estudio de la Migración")

			create_submenu_help(pSubPageName, "radar_studies", "Estudios Migratorios a Base de Radar")

		} else {

			create_menu_help(pSubPageName, "migration_research", "Estudio de la Migración")		

		}

		create_menu_help(pSubPageName, "why_birds_migrate", "¿Por Qué Migran las Aves?")

		create_menu_help(pSubPageName, "when_birds_migrate", "¿Cuándo Migran las Aves?")

		if (pSubPageName == "navigation_routes" || pSubPageName == "na_flyways" || pSubPageName == "miss_flyway") {

			create_menu_help(pSubPageName, "navigation_routes", "Navegación y Rutas")

			create_submenu_help(pSubPageName, "na_flyways", "Rutas Migratorias de América del Norte")

			create_submenu_help(pSubPageName, "miss_flyway", "La Ruta Migratoria del Misisipí")

		} else {

			create_menu_help(pSubPageName, "navigation_routes", "Navegación y Rutas")		

		}

		if (pSubPageName == "speed_distance_altitude" || pSubPageName == "speed" || pSubPageName == "distance" || pSubPageName == "altitude") {

			create_menu_help(pSubPageName, "speed_distance_altitude", "Velocidad, Distancia y Altura")

			create_submenu_help(pSubPageName, "speed", "Velocidad")

			create_submenu_help(pSubPageName, "distance", "Distancia")

			create_submenu_help(pSubPageName, "altitude", "Altura")

		} else {

			create_menu_help(pSubPageName, "speed_distance_altitude", "Velocidad, Distancia y Altura")		

		}

		create_menu_help(pSubPageName, "flocking", "Bandadas")

		if (pSubPageName == "laws_treaties" || pSubPageName == "treaty_orgs") {

			create_menu_help(pSubPageName, "laws_treaties", "Leyes y Tratados")

			create_submenu_help(pSubPageName, "treaty_orgs", "Organizaciones del Tratado")

		} else {

			create_menu_help(pSubPageName, "laws_treaties", "Leyes y Tratados")		

		}

	} else if (pPageName == "birds_of_chicago") {

		create_menu_help(pSubPageName, "birds_of_chicago", "Aves de Chicago")

		create_menu_help(pSubPageName, "bird_gallery", "Galería de Aves")

		if (pSubPageName == "live_nest_cams" || pSubPageName == "cam_npvnc" || pSubPageName == "cam_ch1" || pSubPageName == "cam_ch2") {

			create_menu_help(pSubPageName, "live_nest_cams", "Cámaras en Vivo")

			create_submenu_help(pSubPageName, "cam_npvnc", "Cámara en el Centro de Naturaleza North Park Village")

			create_submenu_help(pSubPageName, "cam_ch2", "Cámara en el Jardín de la Azotea")

		} else {

			create_menu_help(pSubPageName, "live_nest_cams", "Cámaras en Vivo")		

		}

		if (pSubPageName == "chicago_migrants" || pSubPageName == "capitalization_rules" || pSubPageName == "scientific_names" || pSubPageName == "chicago_bird_checklist") {

			create_menu_help(pSubPageName, "chicago_migrants", "Migradoras de Chicago")

			create_submenu_help(pSubPageName, "scientific_names", "Nombres Científicos")

			create_submenu_help(pSubPageName, "chicago_bird_checklist", "Lista de Aves de Chicago")

		} else {

			create_menu_help(pSubPageName, "chicago_migrants", "Migradoras de Chicago")		

		}

		create_menu_help(pSubPageName, "chicago_bird_habitats", "Hábitats de las Aves en Chicago")

		if (pSubPageName == "chicago_birding_sites" || pSubPageName == "chicago_birding_map" || pSubPageName == "chicago_weather") {

			create_menu_help(pSubPageName, "chicago_birding_sites", "Observando Aves en Chicago")

			create_submenu_help(pSubPageName, "chicago_birding_map", "Mapa de Avistaje de Aves")

			create_submenu_help(pSubPageName, "chicago_weather", "La Temperatura en Chicago")

		} else {

			create_menu_help(pSubPageName, "chicago_birding_sites", "Observando Aves en Chicago")		

		}

		create_menu_help(pSubPageName, "other_migration_sites", "¿Otros Sitios de Migración Cerca de Chicago?")

	} else if (pPageName == "lights_out_chicago") {

		create_menu_help(pSubPageName, "lights_out_chicago", "¡Amenore las Luces!")

		
		create_menu_help(pSubPageName, "bird_protection", "¿Qué puedo hacer para proteger los pájaros?")

	} else if (pPageName == "bird_protection") {

		create_menu_help(pSubPageName, "bird_protection", "Protección de las Aves")

		create_menu_help(pSubPageName, "landscaping", "Proyecte su Jardín Pensando en las Aves")

		create_menu_help(pSubPageName, "avoid_pesticides", "Evite el Uso de Plaguicidas")

		create_menu_help(pSubPageName, "keep_cats_indoors", "Mantenga los Gatos en el Interior de su Casa")

		create_menu_help(pSubPageName, "modify_hazardous_windows", "Modifique las Ventanas Peligrosas")

		create_menu_help(pSubPageName, "finding_injured_dead_bird", "Hallazgo de un ave Herida o Muerta")

		create_menu_help(pSubPageName, "lights_out_chicago", "¡Amenore las Luces!")

	} else if (pPageName == "education_resources") {

		create_menu_help(pSubPageName, "education_resources", "Educación y Recursos")

		create_menu_help(pSubPageName, "lesson_plans", "Planes de Cursos")

		create_menu_help(pSubPageName, "other_education_programs", "Otros Programas Educacionales")

		create_menu_help(pSubPageName, "cpl_library_resources", "Recursos de la Biblioteca Pública de Chicago")

		create_menu_help(pSubPageName, "publications", "Publicaciones")

		create_menu_help(pSubPageName, "useful_websites", "Sitios Web de Utilidad")

		create_menu_help(pSubPageName, "join_email_list", "Listas de Correo Electrónico")

		create_menu_help(pSubPageName, "bird_hotlines", "Líneas Directas sobre Aves")

		create_menu_help(pSubPageName, "acknowledgements", "Agradecimientos")

		create_menu_help(pSubPageName, "bibliography", "Bibliografía")

	} else if (pPageName == "misc") {

		create_menu_help(pSubPageName, "mayors_letter", "Carta del Alcalde Richard M. Daley")

	}

	document.write("<TR><TD VALIGN='top' COLSPAN=3><IMG SRC='/Environment/BirdMigration/images/nav_dots.gif' WIDTH=138 HEIGHT=11></TD></TR>")

	document.write("&nbsp;<BR><TR><TD COLSPAN=3>&nbsp;&nbsp;<A HREF='/Environment/BirdMigration/sub/" + pSubPageName + ".html'><B>English Version</B></A><BR><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=1 HEIGHT=4></TD></TR>")

	document.write("<TR><TD><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=10 HEIGHT=1></TD><TD><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=10 HEIGHT=1></TD><TD><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=114 HEIGHT=1></TD></TR>")

	document.write("</TABLE>")

}



function create_menu_help(pPageName, pPageCheck, pTitle) {

		if (pPageName == pPageCheck) {	

			document.write("<TR><TD VALIGN='top' WIDTH=10><IMG SRC='/Environment/BirdMigration/images/nav_bullet.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top' CLASS='leftlinkactive' COLSPAN=2>" + pTitle + "</TD></TR>")

		} else {

			document.write("<TR><TD VALIGN='top' WIDTH=10><IMG SRC='/Environment/BirdMigration/images/nav_bullet.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top' COLSPAN=2><A HREF='/Environment/BirdMigration/espanol/sub/" + pPageCheck + ".html' CLASS='leftlink'>" + pTitle + "</A></TD></TR>")

		}

}



function create_submenu_help(pPageName, pPageCheck, pTitle) {

		if (pPageName == pPageCheck) {	

			document.write("<TR><TD WIDTH=10><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top' WIDTH=10><IMG SRC='/Environment/BirdMigration/images/nav_indent.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top' CLASS='leftlinkactive'>" + pTitle + "</TD></TR>")

		} else {

			document.write("<TR><TD WIDTH=10><IMG SRC='/Environment/BirdMigration/images/b.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top' WIDTH=10><IMG SRC='/Environment/BirdMigration/images/nav_indent.gif' WIDTH=10 HEIGHT=8></TD><TD VALIGN='top'><A HREF='/Environment/BirdMigration/espanol/sub/" + pPageCheck + ".html' CLASS='leftlink'>" + pTitle + "</A></TD></TR>")

		}

}