// flag indicating file is finished loading
gf_js_shell_config = false;

var SECTEMPLATES = new Array();

var s_ISBN				= "";
var s13_ISBN			= "";
var cd_ISBN				= "";
var s_COPYRIGHTYEAR		= ""
var s_BOOKCODE			= "hms_ca_math_g6_conversion";
var ii_BOOKCODE         = "hms_ca_math_g6_conversion";
var mm_EDITION			="";
var mm_TITLE			="Houghton Mifflin School, California Math Grade Six";
var mm_AUTHOR			="McDougal Littell";
var s_TITLE				= mm_AUTHOR +" - " + mm_TITLE;

var IP_CREDITS			= "";
var IP_BOOK_DESCRIPTION	= "";
var IP_AUTHORS			= "";
var IP_BOOK_LINK		= "";
var IP_COLOR			= "";


var NCHAPTERS=24; // count only existing chapters
var SECTITLES = new Array(); 
var NSECTIONS = new Array(30,4,4,3,4,5,3,4,3,3,2,3,3,4,3,3,2,3,3,3,4,3,2,4); // comma separeted list. Include 0 for skipped chapters (chap0)

var mm_eProfs=new Array(
	[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[],[2],[2],[],[],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],  // chap0
	[2],[2],[2],[2],  // chap1
	[2],[2],[2],[2],  // chap2
	[],[],[],  // chap3
	[],[],[],[],  // chap4
	[2],[2],[2],[2],[2],  // chap5
	[2],[2],[2],  // chap6
	[2],[2],[2],[2],  // chap7
	[2],[2],[2],  // chap8
	[2],[2],[2],  // chap9
	[2],[2],  // chap10
	[2],[2],[2],  // chap11
	[2],[2],[2],  // chap12
	[2],[],[2],[2],  // chap13
	[2],[2],[2],  // chap14
	[2],[],[2],  // chap15
	[2],[2],  // chap16
	[2],[2],[2],  // chap17
	[2],[2],[2],  // chap18
	[2],[2],[],  // chap19
	[2],[2],[2],[2],  // chap20
	[2],[2],[2],  // chap21
	[2],[2],  // chap22
	[2],[2],[2],[2]  // chap23
	);

var  CHAPTITLES = new Array(
	"Standards Review Handbook",  // chap0  
	"Number Patterns and Fractions",  // chap1  
	"Compare and Order Numbers",  // chap2  
	"Add and Subtract Fractions and Mixed Numbers",  // chap3  
	"Multiply and Divide Fractions and Decimal Operations",  // chap4  
	"Operations with Integers",  // chap5  
	"Order of Operations and Properties",  // chap6  
	"Expressions and Formulas",  // chap7  
	"Solve Equations",  // chap8  
	"Ratios, Rates, and Proportions",  // chap9  
	"Solving Proportions",  // chap10  
	"Percents and Decimals, Fractions, and Proportions",  // chap11  
	"Using Percents",  // chap12  
	"Collecting and Organizing Data",  // chap13  
	"Data Displays",  // chap14  
	"Finding Probability and Outcomes",  // chap15  
	"Disjoint, Independent, and Dependent Events",  // chap16  
	"Angles and Triangles",  // chap17  
	"Polygons",  // chap18  
	"Converting Measurements",  // chap19  
	"Area and Circumference",  // chap20  
	"Surface Area of Prisms and Cylinders",  // chap21  
	"Volume of Prisms and Cylinders",  // chap22  
	"Graphing: Review and Preview"  // chap23  
);

var mm_numTempl=new Array (
	[-1,10,10,5,10,10,10,10,10,10,8,8,10,0,8,6,0,0,9,10,22,10,6,10,10,5,7,6,9,35,7]	//chap0
	,[-1,6,6,6,5]	//chap1
	,[-1,5,5,6,3]	//chap2
	,[-1,6,8,5]	//chap3
	,[-1,6,5,5,10]	//chap4
	,[-1,5,6,6,6,5]	//chap5
	,[-1,8,8,4]	//chap6
	,[-1,5,9,5,6]	//chap7
	,[-1,16,5,5]	//chap8
	,[-1,5,5,5]	//chap9
	,[-1,5,5]	//chap10
	,[-1,5,5,5]	//chap11
	,[-1,5,5,5]	//chap12
	,[-1,5,0,7,5]	//chap13
	,[-1,5,5,15]	//chap14
	,[-1,4,1,5]	//chap15
	,[-1,5,5]	//chap16
	,[-1,5,5,5]	//chap17
	,[-1,5,6,2]	//chap18
	,[-1,6,6,0]	//chap19
	,[-1,5,5,6,5]	//chap20
	,[-1,6,5,5]	//chap21
	,[-1,5,5]	//chap22
	,[-1,6,5,5,5]	//chap23
	);

SECTITLES[0] = new Array("",
	"Adding and Subtracting Whole Numbers", // sect 0.1
	"Multiplying Whole Numbers", // sect 0.2
	"Powers and Exponents", // sect 0.3
	"Dividing Whole Numbers", // sect 0.4
	"Rounding Whole Numbers", // sect 0.5
	"Estimating Sums", // sect 0.6
	"Estimating Differences", // sect 0.7
	"Estimating Products", // sect 0.8
	"Estimating Quotients", // sect 0.9
	"Using Addition and Subtraction", // sect 0.10
	"Using Multiplication and Division", // sect 0.11
	"Modeling Fractions", // sect 0.12
	"Graphing Decimals and Fractions", // sect 0.13
	"Rounding Decimals", // sect 0.14
	"Comparing Decimals", // sect 0.15
	"Properties of Addition", // sect 0.16
	"Properties of Multiplication", // sect 0.17
	"Points in a Coordinate Plane", // sect 0.18
	"Units of Time", // sect 0.19
	"Units of Measure", // sect 0.20
	"Using a Ruler", // sect 0.21
	"Using a Compass", // sect 0.22
	"Points and Lines", // sect 0.23
	"Perimeter Concepts", // sect 0.24
	"Area Concepts", // sect 0.25
	"Reading and Making Line Plots", // sect 0.26
	"Reading and Making Bar Graphs", // sect 0.27
	"Reading Line Graphs", // sect 0.28
	"Problem Solving Strategies", // sect 0.29
	"Venn Diagrams and Logical Reasoning" // sect 0.30
);
SECTITLES[1] = new Array("",
	"Prime Factorization", // sect 1.1
	"Greatest Common Factor", // sect 1.2
	"Equivalent Fractions", // sect 1.3
	"Least Common Multiple" // sect 1.4
);
SECTITLES[2] = new Array("",
	"Comparing and Ordering Fractions", // sect 2.1
	"Comparing Fractions and Mixed Numbers", // sect 2.2
	"Ordering Fractions and Decimals", // sect 2.3
	"Problem Solving Plan" // sect 2.4
);
SECTITLES[3] = new Array("",
	"Adding and Subtracting Fractions", // sect 3.1
	"Using a Common Denominator", // sect 3.2
	"Adding and Subtracting Mixed Numbers" // sect 3.3
);
SECTITLES[4] = new Array("",
	"Multiplying Fractions and Mixed Numbers", // sect 4.1
	"Dividing Fractions and Mixed Numbers", // sect 4.2
	"Adding and Subtracting Decimals", // sect 4.3
	"Multiplying and Dividing Decimals" // sect 4.4
);
SECTITLES[5] = new Array("",
	"Ordering Integers on a Number Line", // sect 5.1
	"Adding Integers", // sect 5.2
	"Subtracting Integers", // sect 5.3
	"Multiplying Integers", // sect 5.4
	"Dividing Integers" // sect 5.5
);
SECTITLES[6] = new Array("",
	"Order of Operations", // sect 6.1
	"Rational Numbers and Their Properties", // sect 6.2
	"The Distributive Property" // sect 6.3
);
SECTITLES[7] = new Array("",
	"Evaluating Expressions", // sect 7.1
	"Writing Expressions", // sect 7.2
	"Simplifying Expressions", // sect 7.3
	"Using Familiar Formulas" // sect 7.4
);
SECTITLES[8] = new Array("",
	"Equations and Mental Math", // sect 8.1
	"Solving Addition and Subtraction Equations", // sect 8.2
	"Solving Multiplication and Division Equations" // sect 8.3
);
SECTITLES[9] = new Array("",
	"Ratios", // sect 9.1
	"Rates", // sect 9.2
	"Writing and Solving Proportions" // sect 9.3
);
SECTITLES[10] = new Array("",
	"Solving Proportions Using Cross Products", // sect 10.1
	"Scale Drawings and Models" // sect 10.2
);
SECTITLES[11] = new Array("",
	"Percents and Fractions", // sect 11.1
	"Percents and Proportions", // sect 11.2
	"Percents and Decimals" // sect 11.3
);
SECTITLES[12] = new Array("",
	"The Percent Equation", // sect 12.1
	"Discounts, Markups, Tips and Sales Tax", // sect 12.2
	"Simple Interest" // sect 12.3
);
SECTITLES[13] = new Array("",
	"Sampling Methods", // sect 13.1
	"Sampling Errors", // sect 13.2
	"Mean, Median, and Mode", // sect 13.3
	"Range and Outliers" // sect 13.4
);
SECTITLES[14] = new Array("",
	"Histograms", // sect 14.1
	"Circle Graphs", // sect 14.2
	"Choosing and Analyzing Data Displays" // sect 14.3
);
SECTITLES[15] = new Array("",
	"Introduction to Probability", // sect 15.1
	"Experimental Probability", // sect 15.2
	"Finding Outcomes" // sect 15.3
);
SECTITLES[16] = new Array("",
	"Compound Events", // sect 16.1
	"Independent and Dependent Events" // sect 16.2
);
SECTITLES[17] = new Array("",
	"Angles", // sect 17.1
	"Special Pairs of Angles", // sect 17.2
	"Triangles" // sect 17.3
);
SECTITLES[18] = new Array("",
	"Quadrilaterals and Other Polygons", // sect 18.1
	"Similar and Congruent Polygons", // sect 18.2
	"Using Proportions with Similar Polygons" // sect 18.3
);
SECTITLES[19] = new Array("",
	"Converting Metric Units", // sect 19.1
	"Converting Customary Units", // sect 19.2
	"Converting Between Systems" // sect 19.3
);
SECTITLES[20] = new Array("",
	"Area of a Parallelogram", // sect 20.1
	"Areas of Triangles and Trapezoids", // sect 20.2
	"Circumference of a Circle", // sect 20.3
	"Area of a Circle" // sect 20.4
);
SECTITLES[21] = new Array("",
	"Visualizing Solids", // sect 21.1
	"Surface Area of Prisms", // sect 21.2
	"Surface Area of Cylinders" // sect 21.3
);
SECTITLES[22] = new Array("",
	"Volume of Prisms", // sect 22.1
	"Volume of Cylinders" // sect 22.2
);
SECTITLES[23] = new Array("",
	"The Coordinate Plane", // sect 23.1
	"Functions and Equations", // sect 23.2
	"Graphing Functions", // sect 23.3
	"Slope" // sect 23.4
);


  // 0 element in sortedCHAPTITLES is chapter 0
  var sortedCHAPTITLES = new Array();
      sortedCHAPTITLES[0] = 0;
      sortedCHAPTITLES[1] = 1;
      sortedCHAPTITLES[2] = 2;
      sortedCHAPTITLES[3] = 3;
      sortedCHAPTITLES[4] = 4;
      sortedCHAPTITLES[5] = 5;
      sortedCHAPTITLES[6] = 6;
      sortedCHAPTITLES[7] = 7;
      sortedCHAPTITLES[8] = 8;
      sortedCHAPTITLES[9] = 9;
      sortedCHAPTITLES[10] = 10;
      sortedCHAPTITLES[11] = 11;
      sortedCHAPTITLES[12] = 12;
      sortedCHAPTITLES[13] = 13;
      sortedCHAPTITLES[14] = 14;
      sortedCHAPTITLES[15] = 15;
      sortedCHAPTITLES[16] = 16;
      sortedCHAPTITLES[17] = 17;
      sortedCHAPTITLES[18] = 18;
      sortedCHAPTITLES[19] = 19;
      sortedCHAPTITLES[20] = 20;

  var NLESSONS = null;// 2 dimensional array specifying # of lessons per section
  var LESSONTITLES = null; // 3 dimensional array [CHAP][SEC][LESSON]
  var CHAP0 = true;   // start numbering chapters at 0  true or false
  var CHAP0NUM = "0";  // Displayed number for chapter 0
  var SEC0 = false;    // start section numbering at 0
  var SEC0NUM = "0";  // Displayed number for chapter 0
  var LESS0 = false;    // start section numbering at 0
  var LESS0NUM = "0";  // Displayed number for chapter 0
  var STCHAP, STSEC, STLESS;  // start chapter, section, lesson numbers

  if (CHAP0) STCHAP=0;else STCHAP=1;
  if (SEC0)  STSEC =0;else STSEC =1;
  if (LESS0) STLESS=0;else STLESS=1;

var PREBOOKTITLES = SECTITLES[0];

var PREBOOKIIS = new Array("",
["2.2","4.3"],
["1.3","4.4"],
["1.2","5.5"],
["2.1","2.2","4.4","8.2"],
["1.1","4.3"],
["2.3"],
[],
["1.1"],
["1.1"],
["1.4","2.1","3.1","3.2","3.3","5.1","5.2","5.3","6.1","7.1","7.2","7.3","8.2"],
["1.1","1.2","4.1","4.2","5.4","5.5","6.1","7.1","7.2","7.3","8.3","9.1","9.2","9.3","10.1"],
["1.1","1.3","2.3","3.3","4.1","6.2","11.1"],
[],
[],
["2.3","4.3","11.3"],
[],
[],
["14.3","23.1"],
[],
["19.1","17.1","19.2","19.3"],
[],
["14.2"],
["17.2","17.3","23.2","23.3","23.4"],
["7.4","17.1","19.1","23.1","7.2","18.1","18.2","18.3"],
["6.3","7.2","7.4","18.2","20.1","20.2","20.3","20.4","21.1","21.2","21.3","22.1","22.2"],
["14.3","14.1"],
["14.3"],
["14.3","14.1"],
["2.4","7.2","7.3","7.4","8.1","10.2","12.3","14.3","16.1","16.2"],
["15.1","13.1","13.2","13.3","13.4","14.2","15.2","15.3"]
);

var ii_BOOKCODE          = "hms_ca_math_g6_conversion";

var mm_animations = new Array(
[0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1] //chapter 0
,[0,1,1,1,1] //chapter 1
,[0,1,1,1,1] //chapter 2
,[0,0,0,0] //chapter 3
,[0,0,0,0,0] //chapter 4
,[0,1,1,1,1,1] //chapter 5
,[0,1,1,1] //chapter 6
,[0,1,1,1,1] //chapter 7
,[0,1,1,1] //chapter 8
,[0,1,1,1] //chapter 9
,[0,1,1] //chapter 10
,[0,1,1,1] //chapter 11
,[0,1,1,1] //chapter 12
,[0,1,0,1,1] //chapter 13
,[0,1,1,1] //chapter 14
,[0,1,0,1] //chapter 15
,[0,1,1] //chapter 16
,[0,1,1,1] //chapter 17
,[0,1,1,1] //chapter 18
,[0,1,1,0] //chapter 19
,[0,1,1,1,1] //chapter 20
,[0,1,1,1] //chapter 21
,[0,1,1] //chapter 22
,[0,1,1,1,1] //chapter 23
);

var flip_cards = new Array(
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] //chapter 0
,[0,0,0,0,0] //chapter 1
,[0,0,0,0,0] //chapter 2
,[0,0,0,0] //chapter 3
,[0,0,0,0,0] //chapter 4
,[0,0,0,0,0,0] //chapter 5
,[0,0,0,0] //chapter 6
,[0,0,0,0,0] //chapter 7
,[0,0,0,0] //chapter 8
,[0,0,0,0] //chapter 9
,[0,0,0] //chapter 10
,[0,0,0,0] //chapter 11
,[0,0,0,0] //chapter 12
,[0,0,0,0,0] //chapter 13
,[0,0,0,0] //chapter 14
,[0,0,0,0] //chapter 15
,[0,0,0] //chapter 16
,[0,0,0,0] //chapter 17
,[0,0,0,0] //chapter 18
,[0,0,0,0] //chapter 19
,[0,0,0,0,0] //chapter 20
,[0,0,0,0] //chapter 21
,[0,0,0] //chapter 22
,[0,0,0,0,0] //chapter 23
);



