/* This creates the menu for all pages (Blackett activity-2)
Alos creates (footer)button section by calling ../footer.JS 

omit = current page/option, link must be omitted from 1st footer (links menu)

*/

function activmenu(omit) {

var opt = new Array(10)
var lnk = new Array(10)
//Introducción 
opt[0] = 'Resumen'
lnk[0] = 'overview.html'
opt[1] = 'STR'
lnk[1] = 'str_description.html'
opt[2] = 'CODIS'
lnk[2] = 'str_codis.html'
opt[3] = 'An&aacute;lisis'
lnk[3] = 'str_analysis.html'
opt[4] = 'An&aacute;lisis'
lnk[4] = 'str_analysis.html'
opt[4] = 'Herencia'
lnk[4] = 'str_inheritance.html'
opt[5] = 'C&aacute;lculo&nbsp;Frec.'
lnk[5] = 'str_frequency.html'

//Actividades 
opt[6] = '&Aacute;rbol'
lnk[6] = 'act_pedigree1.html'
opt[7] = 'Toma&nbsp;de&nbsp;datos'
lnk[7] = 'act_data1.html'
opt[8] = 'Paternidad'
lnk[8] = 'act_paternity1.html'
opt[9] = 'Persona&nbsp;desap.'
lnk[9] = 'act_steve.html'
opt[10] = 'C&aacute;lculo&nbsp;Frec.'
lnk[10] = 'act_probability1.html'


var tex ='<hr><center><font size=-1>'

// First and second row of links (introductory sections and activity sections)

tex += 'Introducci&oacute;n: &nbsp; &nbsp;'

for (var i=0;i<=10;i++) {
	if (i!=omit) {	
		tex += "<a href='" + lnk[i] + "'>" + opt[i] + "</a> &nbsp;"
	}
	else {
		tex += "<b>" + opt[i] + "</b> &nbsp;"
	}
	if (i!=5 && i!=10) {tex += "|&nbsp; "}
	if (i==5) {tex += '<br><br>Actividades: &nbsp; &nbsp;'}
  }

document.write(tex)

// Third row of links (buttons) is common to Blackett nr.1 Activity, goes in another JS file
document.write("<p>")
buttons(2)


tex = ""
tex += '<hr>'
tex += '<a href="http://www.biologia.arizona.edu/default.html">El Proyecto Biol&oacute;gico</a>'
tex += '<br>University of Arizona<br>Revised: October 27, 2000'
tex += '<br>Traducido: Marzo 2004<br>'
tex += '<a href="http://www.biology.arizona.edu/contact/">Contact the Development Team</a>'
tex += '<br>http://www.biologia.arizona.edu<br>All contents copyright &copy; 1996 - 2004.'
tex += ' All rights reserved.<br>'
tex += '<a href="credits.html">Cr&eacute;ditos</a>'

tex += '</font></center>'
document.write(tex)
document.close()
}