// INDEXING MATRIX SCRIPT 
// (matrix generation)

// JavaScript by: Steven Garner
// October 01, 2005
// Natural Mathematics v2.5+
// www.naturalmathematics.com

// Variables used:
// m, n, p, r, s, t
// i, j, k, 
// t0, t1, t2, t3


// -----------------------------------
// Construction on the Indexing Matrix
// -----------------------------------


var m = 4	// Number of Rows (sections) for the Indexing Matrix
var n = 8	// Number of Columns (topics) for the Indexing Matrix
var p = 9	// Number of Parameters for each Indexing Matrix element

var I_Matrix = new Array(m)	// Generation of the Indexing Matrix
for (i = 0; i < m; i++)
{
I_Matrix[i] = new Array(n)
	for (j = 0; j < n; j++)
	{
	I_Matrix[i][j] = new Array(p)
	}
}



// ---------------------------------
// Population of the Indexing Matrix
// ---------------------------------

var r = 0	// Record Counter (total entries)
var s = 0	// Section Number
var t = 0	// Topic Number


// Section 0


	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = " "
	I_Matrix[s][t][2] = ""
	I_Matrix[s][t][3] = "COVER"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/index.html"
	I_Matrix[s][t][5] = "July 6, 2004"
	I_Matrix[s][t][6] = "Go to Homepage"
	I_Matrix[s][t][7] = "Introductions"
	I_Matrix[s][t][8] = "../images/sections/home.jpg"
	I_Matrix[s][t][9] = "../images/sections/home_sml.jpg"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = " "
	I_Matrix[s][t][2] = ""
	I_Matrix[s][t][3] = "PREFACE"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/01_initial/preface.html"
	I_Matrix[s][t][5] = "October 1, 2005"
	I_Matrix[s][t][6] = "Preface"
	I_Matrix[s][t][7] = "Of Mathematics & Nature"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = " "
	I_Matrix[s][t][2] = ""
	I_Matrix[s][t][3] = "CONTENT"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/01_initial/table_of_contents.html"
	I_Matrix[s][t][5] = "April 15, 2006"
	I_Matrix[s][t][6] = "Table of Contents"
	I_Matrix[s][t][7] = "The complete index of all topics and articles"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = " "
	I_Matrix[s][t][2] = ""
	I_Matrix[s][t][3] = "HELP"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/01_initial/help.html"
	I_Matrix[s][t][5] = "April 10, 2006"
	I_Matrix[s][t][6] = "Help Topics"
	I_Matrix[s][t][7] = "How to get the most out of your visit"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = " "
	I_Matrix[s][t][2] = ""
	I_Matrix[s][t][3] = "DEDICATE"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/01_initial/dedications.html"
	I_Matrix[s][t][5] = "June 20, 2006"
	I_Matrix[s][t][6] = "Dedications"
	I_Matrix[s][t][7] = "inspiration and support"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = " "
	I_Matrix[s][t][2] = ""
	I_Matrix[s][t][3] = "AUTHOR"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/01_initial/author.html"
	I_Matrix[s][t][5] = "June 20, 2006"
	I_Matrix[s][t][6] = "About the Author"
	I_Matrix[s][t][7] = "Contact information and short biographical"
	r++
	t++
	var t0 = t


// Section 1
s++
t=0
	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "SECTION1"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/section1.html"
	I_Matrix[s][t][5] = "March 30, 2006"
	I_Matrix[s][t][6] = "Section 1"
	I_Matrix[s][t][7] = "Historical Mathematics"
	I_Matrix[s][t][8] = "../images/sections/hieroglyphs.jpg"
	I_Matrix[s][t][9] = "../images/sections/hieroglyphs_sml.jpg"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "Prehistoric"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/2006_06_21/"
	I_Matrix[s][t][5] = "June 21, 2006"
	I_Matrix[s][t][6] = "Prehistoric Mathematics"
	I_Matrix[s][t][7] = "Evidence for Mathematics Before Civilization"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = ""
	r++
	t++
	var t1 = t

// Section 2
s++
t=0
	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "SECTION2"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/section2.html"
	I_Matrix[s][t][5] = "February 30, 2005"
	I_Matrix[s][t][6] = "Section 2"
	I_Matrix[s][t][7] = " Mathematic Structures"
	I_Matrix[s][t][8] = "../images/sections/quartz.jpg"
	I_Matrix[s][t][9] = "../images/sections/quartz_sml.jpg"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "DNA"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/2006_03_20/"
	I_Matrix[s][t][5] = "October 20, 2005"
	I_Matrix[s][t][6] = "The Double Helix"
	I_Matrix[s][t][7] = "Generation of the double spiral"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = "86 KB"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "Mountain"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/2006_06_27/"
	I_Matrix[s][t][5] = "June 27, 2006"
	I_Matrix[s][t][6] = "Fractal Mountains"
	I_Matrix[s][t][7] = "Randomized Rugged Terrain"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = "662 KB"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "2Dwave"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/2006_05_25/"
	I_Matrix[s][t][5] = "May 25, 2006"
	I_Matrix[s][t][6] = "2D Wave Equation"
	I_Matrix[s][t][7] = "General Solution and Features"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = "68 KB"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "Bucky"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/2006_06_05/"
	I_Matrix[s][t][5] = "June 05, 2006"
	I_Matrix[s][t][6] = "Bucky-Ball"
	I_Matrix[s][t][7] = "Buckminster-Fuller Carbon Molecule"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = "6 KB"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = s
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "Sponge"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/02_content/2006_05_30/"
	I_Matrix[s][t][5] = "May 30, 2006"
	I_Matrix[s][t][6] = "Sierpinski Sponge"
	I_Matrix[s][t][7] = "An interesting 3D fractal cube"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = "1,290 KB"
	r++
	t++
	var t2 = t


// Section 3
s++
t=0
	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = "A"
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "APPX"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/03_appx/index.html"
	I_Matrix[s][t][5] = "October 1, 2005"
	I_Matrix[s][t][6] = "Appendix"
	I_Matrix[s][t][7] = "Supplemental Information"
	I_Matrix[s][t][8] = "../images/sections/books.jpg"
	I_Matrix[s][t][9] = "../images/sections/books_sml.jpg"
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = "A"
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "WORKS"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/03_appx/works.html"
	I_Matrix[s][t][5] = "October 1, 2005"
	I_Matrix[s][t][6] = "Recommended Works"
	I_Matrix[s][t][7] = "A list of relevant literature on paper and PC"
	I_Matrix[s][t][8] = "../images/sections/puzzle.jpg"
	I_Matrix[s][t][9] = ""
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = "A"
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "REV-HIST"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/03_appx/rev_hist.html"
	I_Matrix[s][t][5] = "October 1, 2005"
	I_Matrix[s][t][6] = "Revision History"
	I_Matrix[s][t][7] = "A record of this website's life and development"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = ""
	r++
	t++

	I_Matrix[s][t][0] = r
	I_Matrix[s][t][1] = "A"
	I_Matrix[s][t][2] = t
	I_Matrix[s][t][3] = "RIGHTS"
	I_Matrix[s][t][4] = "http://www.naturalmathematics.com/web/03_appx/copyright.html"
	I_Matrix[s][t][5] = "October 1, 2005"
	I_Matrix[s][t][6] = "Copyright Statement"
	I_Matrix[s][t][7] = "Terms of use"
	I_Matrix[s][t][8] = ""
	I_Matrix[s][t][9] = ""
	r++
	t++
	var t3 = t


