//load external google analytics file
function loadScript(url) {document.write('<script src="', url, '" type="text/javascript"></script>');}
loadScript("http://www.google-analytics.com/urchin.js");

/**** Open eBook ****/
function openEbook(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_krogh_biology_4/ebook/" + file;
	var ebookString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,width=480,height=360,screenX=100,screenY=100,left=100,top=100';
	var ebookWin = window.open(path,'ebookWin',ebookString);
	ebookWin.focus();
}

/**** Open Animation ****/
function openAnimation(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_krogh_biology_4/anim/" + file;
	var animString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,width=870,height=600,screenX=100,screenY=100,left=100,top=100';
	var animWin = window.open(path,'animWin',animString);
	animWin.focus();
}


/**** Open Bioflix file in new window ****/
/*function openBioFlix(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_0media_bio/bioflix/" + file;
	var bfString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=1,width=1024,height=750';
	var bfWin = window.open(path,'bfWin',bfString);
	bfWin.focus();
}*/

//<!-- GA --><script type="text/javascript">weblinks();</script>
function weblinks() {
document.write('Extend your knowledge through links to relevant websites organized by chapter.<br><i>Note: The links on this page may unexpectedly expire due to the dynamic nature of the Internet. While we make every effort to catch dead links, we would appreciate your help. If you find that a link on this page has expired, please <A HREF="xml/14585325" >let us know</A>. Thank you!</i><br><br>');
}

function openFlashcards() {
	var winString = 'menubar=0,toolbar=no,location=0,status=0,scrollbars=0,resizable=0,width=680,height=550,screenX=100,screenY=100,left=100,top=100,location=no,status=no';
	var FlashWin = window.open('http://media.pearsoncmg.com/bc/bc_krogh_biology_4/wordstudy/flashcards/index.html','flashcards',winString);
	FlashWin.focus();
}
	
function openGlossary() {
	var winString = 'menubar=0,toolbar=no,location=0,status=0,scrollbars=0,resizable=0,width=600,height=550,screenX=100,screenY=100,left=100,top=100,location=no,status=no';
	var gloswin = window.open('http://media.pearsoncmg.com/bc/bc_krogh_biology_4/wordstudy/glossary/index.html','glossary',winString);
	gloswin.focus();
}

//<script type="text/javascript">wordstudy("x");</script>
function wordstudy(chp){
	document.write('<p><div class="submenuhead"><a href="http://media.pearsoncmg.com/bc/bc_krogh_biology_4/wordstudy/keyterms/'+chp+'.html" class="submenuhead" >Key Terms</A></div><div class="submenubox">Look up the important terms in each chapter, learn their definitions, and hear selected audio pronunciations.</div><p><div class="submenuhead"><a href="javascript://" class="submenuhead" onclick="openFlashcards();" >Flashcards</A></div><div class="submenubox">This tool provides a fun and easy way to test your knowledge of key terms in each chapter or multiple chapters.</div><p><div class="submenuhead"><a href="javascript:void(0);" class="submenuhead" onclick="openGlossary();" >Glossary</A></div><div class="submenubox">Look up definitions of the boldface terms from your textbook organized alphabetically and hear selected audio pronunciations.</div>');
}

//	BioFlix  (list link with image in chapter guides and feedback)
loadScript("http://media.pearsoncmg.com/bc/bc_0media_bio/bioflix/inc/scripts.js");
var bfString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=0,width=1004,height=725,screenX=100,screenY=100,left=100,top=100';

//check to see if we're being called by CMS or WPS and send to correct quiz & ebook page
if((document.referrer.indexOf('wpscms')!=-1)||(document.referrer.indexOf('coursecompass')!=-1)||(document.referrer.indexOf('bbauth')!=-1))
{var myparent = "cms";}
else{var myparent = "kb4";}

function listETUT(bfname) {
	var grabbf = bioFlixArray[bfname];
	var bftitle = grabbf[0];
	var bfname = grabbf[1];
	//document.write("<a href='javascript://' onclick=\"openETUT('" + bfname + "');\" class='light'>BioFlix: " + bftitle + "</a>");
}

function bioflix(bfname) {
	var grabbf = bioFlixArray[bfname];
	var bftitle = grabbf[0];
	var bfname = grabbf[1];
	document.write("<a href='javascript://' onclick=\"openETUT('" + bfname + "');\" class='light'>BioFlix: " + bftitle + "</a>");
}

function openETUT(bfname) {
	var msloc = "http://media.pearsoncmg.com/bc/bc_0media_bio/bioflix/bioflix.htm?"; 
	var bfWin = window.open(msloc+myparent+bfname,'etutWin',bfString);
	bfWin.focus()	
}

/**** Open Blast Animation ***
function openBlast(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_krogh_biology_4/blast/" + file;
	var blastString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,width=680,height=520,screenX=100,screenY=100,left=100,top=100';
	var blastWin = window.open(path,'blastWin',blastString);
	blastWin.focus();
}*/

function myblast(thefile) { 
	var blasturl = "http://media.pearsoncmg.com/bc/bc_0media_bio/blast/index.htm?";
	window.open(blasturl+thefile,'blastwin','width=780,height=560,menu=0,scrollbars=0,resizable=1,status=0'); 
}

/**** Open Discovery Channel video ****/

// Discovery Channel Videos dec[decID] = title
var dec = new Array();
dec["Antibiotic"] 	= ["Antibiotic Resistance","antibiotics"] // 01 and 16.8
dec["Early"] 		= ["Early Life","early_life"] // 02 and 16.6
dec["Cells"] 		= ["Cells","cells"] // 04
dec["Space"] 		= ["Space Plants","space_plants"] // 07
dec["Cotton"] 		= ["Colored Cotton","colored_cotton"] // 09 and 12
dec["Novelty"] 		= ["Novelty Gene","novelty_gene"] // 09
dec["Emerging"] 	= ["Emerging Diseases","emerging_disease"] // 10
dec["Cloning"] 		= ["Cloning","cloning"] // 11
dec["Fighting"] 	= ["Fighting Cancer","fighting_cancer"] // 11
dec["Transgenics"] 	= ["Transgenics","transgenics"] // 12
dec["DNA"] 			= ["DNA Forensics","dna_forensics"] // 12
dec["Darwin"] 		= ["Charles Darwin","charles_darwin"] // 13
dec["Mass"] 		= ["Mass Extinction","mass_extinctions"] // 14
dec["Bacteria"] 	= ["Bacteria","bacteria"] // 15
dec["Tasty"] 		= ["Tasty Bacteria","tasty_bacteria"] // 15
dec["Diversity"]	= ["Plant Pollination","plant_pollination"] // 16
dec["Molds"] 		= ["Fungi","molds"] // 16
dec["Invert"] 		= ["Invertebrates","invertebrates"] // 17
dec["Leafcutter"] 	= ["Leafcutter Ants","leafcutter_ants"] // 19
dec["Rain"] 		= ["Rain Forests","rain_forests"] // 19
dec["Introduced"] 	= ["Introduced Species","introduced_species"] // 20
dec["Trees"] 		= ["Trees","trees"] // 20
dec["Intro"] 		= ["An Introduction to the Human Body","human_body"] // 21
dec["Nutrition"] 	= ["Nutrition","nutrition"] // 22
dec["Blood"] 		= ["Blood","blood"] // 23
dec["Vaccines"] 	= ["Vaccines","vaccines"] // 24
dec["Endocrine"]	= ["The Endocrine System","endocrine_system"] // 25
dec["Teen"]			= ["Teen Brains","teen_brains"] // 27
dec["Muscles"]		= ["Muscles and Bones","muscles_and_bones"] // 27
//	listDEC (list link with image in chapter guides and feedback)
function listDEC(decID) {
	var grabDEC = dec[decID];
	var DECtitle = grabDEC[0];
var DECcode = grabDEC[1];
//check to see if the quiz is being called from a CC course and deploy CC message if so
	if(document.location.href.indexOf('wpscms')!==-1){
	document.write("<a href='javascript://' onclick=\"opendiscvid('http://media.pearsoncmg.com/bc/bc_campbell_essentials_3/discvids/_html/index.htm?info_text=cms_"+DECcode+"');\" class='list'>Discovery Video: " + DECtitle + "</a><br>");
	} else {
	document.write("<a href='javascript://;' onclick=\"opendiscvid('http://media.pearsoncmg.com/bc/bc_campbell_essentials_3/discvids/_html/index.htm?info_text=kb4_"+DECcode+"');\" class='list'>Discovery Video: " + DECtitle + "</a><br>");
	}
}
var dvString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=0,width=1025,height=753,screenX=100,screenY=100,left=100,top=100';
function opendiscvid(path) {
	var dvWin = window.open(path,'dvWin',dvString);
	dvWin.focus()	}

//standalone call
function openVideo(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_0media_bio/discoveryvideos/_html/index.htm?info_text="+myparent+"_"+file;
	var videoString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=1,width=1024,height=768';
	var videoWin = window.open(path,'videoWin',videoString);
	videoWin.focus();
}
/**** Open Discovery Channel video ****/

/**** Open GraphIt file in new window ****/
function openGraph(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_0media_bio/graphit/_info/kb4/" + file;
	var graphString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=1,width=800,height=750,screenX=10,screenY=10,left=10,top=10';
	var graphWin = window.open(path,'graphWin',graphString);
	graphWin.focus();
}

//ebook links start*****************
// kb4[ebkID] = chap mod title; mod may change due to how ebook is built
var kb4 = new Array();
//Chapter and A-Head titles
kb4["0100"] = ["01","","Chapter: 1 Science as a Way of Learning: A Guide to the Natural World"]
kb4["0101"] = ["01","01","1.1 How Does Science Impact the Everyday World?"]
kb4["0102"] = ["01","02","1.2 What Is Science?"]
kb4["0103"] = ["01","03","1.3 The Nature of Biology"]
kb4["0104"] = ["01","04","1.4 Special Qualities of Biology"]
kb4["0105"] = ["01","05","1.5 The Organization Of This Book"]

kb4["0200"] = ["02","","Chapter: 2 Fundamental Building Blocks: Chemistry, Water, and pH"]
kb4["0201"] = ["02","01","2.1 Chemistry's Building Block: The Atom"]
kb4["0202"] = ["02","02","2.2 Matter Is Transformed through Chemical Bonding"]
kb4["0203"] = ["02","03","2.3 Some Qualities of Chemical Compounds"]
kb4["0204"] = ["02","04","2.4 Water and Life"]
kb4["0205"] = ["02","05","2.5 Acids and Bases Are Important to Life"]

kb4["0300"] = ["03","","Chapter: 3 Life's Components: Biological Molecules"]
kb4["0301"] = ["03","01","3.1 Carbon Is Central to the Living World"]
kb4["0302"] = ["03","02","3.2 Functional Groups"]
kb4["0303"] = ["03","03","3.3 The Molecules of Life: Carbohydrates"]
/* 03.04 is Carbohydrates: From Simple Sugars to Cellulose (Not a numbered sub-section) */
kb4["0304"] = ["03","05","3.4 Lipids"]
kb4["0305"] = ["03","06","3.5 Proteins"]
kb4["0306"] = ["03","07","3.6 Nucleic Acids"]

kb4["0400"] = ["04","","Chapter: 4 Life's Home: The Cell"]
kb4["0401"] = ["04","01","4.1 Cells Are the Fundamental Units of Life"]
kb4["0402"] = ["04","02","4.2 All Cells Are Either Prokaryotic or Eukaryotic"]
kb4["0403"] = ["04","03","4.3 The Eukaryotic Cell"]
kb4["0404"] = ["04","04","4.4 A Tour of the Animal Cell: Along the Protein Production Path"]
kb4["0405"] = ["04","05","4.5 Outside the Protein Production Path: Other Cell Structures"]
kb4["0406"] = ["04","06","4.6 The Cytoskeleton: Internal Scaffolding"]
kb4["0407"] = ["04","07","4.7 The Plant Cell"]
kb4["0408"] = ["04","08","4.8 Cell-to-Cell Communication"]

kb4["0500"] = ["05","","Chapter: 5 Life's Border: The Plasma Membrane"]
kb4["0501"] = ["05","01","5.1 The Nature of the Plasma Membrane"]
kb4["0502"] = ["05","02","5.2 Diffusion, Gradients, and Osmosis"]
kb4["0503"] = ["05","03","5.3 Moving Smaller Substances In and Out"]
kb4["0504"] = ["05","04","5.4 Getting the Big Stuff In and Out"]

kb4["0600"] = ["06","","Chapter: 6 Life's Mainspring: An Introduction to Energy"]
kb4["0601"] = ["06","01","6.1 Energy Is Central to Life"]
kb4["0602"] = ["06","02","6.2 The Nature of Energy"]
kb4["0603"] = ["06","03","6.3 How Is Energy Used by Living Things?"]
kb4["0604"] = ["06","04","6.4 The Energy Dispenser: ATP"]
kb4["0605"] = ["06","05","6.5 Efficient Energy Use in Living Things: Enzymes"]
kb4["0606"] = ["06","06","6.6 Lowering the Activation Barrier through Enzymes"]
kb4["0607"] = ["06","07","6.7 Regulating Enzymatic Activity"]

kb4["0700"] = ["07","","Chapter: 7  Vital Harvest: Deriving Energy from Food "]
kb4["0701"] = ["07","01","7.1 Energizing ATP: Adding a Phosphate Group to ADP"]
kb4["0702"] = ["07","02","7.2 Electrons Fall Down the Energy Hill to Drive the Uphill Production of ATP"]
kb4["0703"] = ["07","03","7.3 The Three Stages of Cellular Respiration: Glycolysis, the Krebs Cycle, and the Electron Transport Chain"]
kb4["0704"] = ["07","04","7.4 First Stage of Respiration: Glycolysis"]
/* 07.05 is ESSAY: When Energy Harvesting Ends at Glycolysis, Beer Can Be the Result (Not a numbered sub-section) */
kb4["0705"] = ["07","06","7.5 Second Stage of Respiration: The Krebs Cycle"]
kb4["0706"] = ["07","07","7.6 Third Stage of Respiration: The Electron Transport Chain"]
kb4["0707"] = ["07","08","7.7 Other Foods, Other Respiratory Pathways"]

kb4["0800"] = ["08","","Chapter: 8  The Green World's Gift: Photosynthesis"]
kb4["0801"] = ["08","01","8.1 Photosynthesis and Energy"]
kb4["0802"] = ["08","02","8.2 The Components of Photosynthesis"]
kb4["0803"] = ["08","03","8.3 Stage 1: The Steps of the Light Reactions"]
kb4["0804"] = ["08","04","8.4 What Makes the Light Reactions So Important?"]
kb4["0805"] = ["08","05","8.5 Stage 2: The Calvin Cycle"]
kb4["0806"] = ["08","06","8.6 Photorespiration and the C<sub>4</sub> Pathway"]
kb4["0807"] = ["08","07","8.7 Another Photosynthetic Variation: CAM Plants"]
kb4["0900"] = ["09","","Chapter: 9 Genetics and Cell Division"]

kb4["0901"] = ["09","01","9.1 An Introduction to Genetics"]
kb4["0902"] = ["09","02","9.2 An Introduction to Cell Division"]
kb4["0903"] = ["09","03","9.3 DNA Is Packaged in Chromosomes"]
kb4["0904"] = ["09","04","9.4 Mitosis and Cytokinesis"]
kb4["0905"] = ["09","05","9.5 Variations in Cell Division"]

kb4["1000"] = ["10","","Chapter: 10 Preparing for Sexual Reproduction: Meiosis"]
kb4["1001"] = ["10","01","10.1 An Overview of Meiosis"]
kb4["1002"] = ["10","02","10.2 The Steps in Meiosis"]
kb4["1003"] = ["10","03","10.3 What Is the Significance of Meiosis?"]
kb4["1004"] = ["10","04","10.4 Meiosis and Sex Outcome"]
kb4["1005"] = ["10","05","10.5 Gamete Formation in Humans"]
kb4["1006"] = ["10","06","10.6 Life Cycles: Humans and Other Organisms"]

kb4["1100"] = ["11","","Chapter: 11 The First Geneticist: Mendel and His Discoveries"]
kb4["1101"] = ["11","01","11.1 Mendel and the Black Box"]
kb4["1102"] = ["11","02","11.2 The Experimental Subjects: <i>Pisum sativum</i>"]
kb4["1103"] = ["11","03","11.3 Starting the Experiments: Yellow and Green Peas"]
kb4["1104"] = ["11","04","11.4 Another Generation for Mendel"]
/* 11.05 is ESSAY: Proportions and Their Causes: The Rules of Multiplication and Addition (Not a numbered sub-section) */
kb4["1105"] = ["11","06","11.5 Crosses Involving Two Characters"]
/* 11.07 is ESSAY: Why So Unrecognized? (Not a numbered sub-section) */
kb4["1106"] = ["11","08","11.6 Reception of Mendel's Ideas"]
kb4["1107"] = ["11","09","11.7 Incomplete Dominance"]
kb4["1108"] = ["11","10","11.8 Lessons from Blood Types: Codominance"]
kb4["1109"] = ["11","11","11.9 Multiple Alleles and Polygenic Inheritance"]
kb4["1110"] = ["11","12","11.10 Genes and Environment"]
kb4["1111"] = ["11","13","11.11 One Gene, Several Effects: Pleiotropy"]

kb4["1200"] = ["12","","Chapter: 12 Units of Heredity: Chromosomes and Inheritance"]
kb4["1201"] = ["12","01","12.1 X-Linked Inheritance in Humans"]
kb4["1202"] = ["12","02","12.2 Autosomal Genetic Disorders"]
kb4["1203"] = ["12","03","12.3 Tracking Traits with Pedigrees"]
kb4["1204"] = ["12","04","12.4 Aberrations in Chromosomal Sets: Polyploidy"]
kb4["1205"] = ["12","05","12.5 Incorrect Chromosome Number: Aneuploidy"]
kb4["1206"] = ["12","06","12.6 Structural Aberrations in Chromosomes"]

kb4["1300"] = ["13","","Chapter: 13 Passing on Life's Information: DNA Structure and Replication"]
kb4["1301"] = ["13","01","13.1 What Do Genes Do, and What Are They Made of?"]
kb4["1302"] = ["13","02","13.2 Watson and Crick: The Double Helix"]
kb4["1303"] = ["13","03","13.3 The Components of DNA and Their Arrangement"]
kb4["1304"] = ["13","04","13.4 Mutations"]

kb4["1400"] = ["14","","Chapter: 14 How Proteins Are Made: Genetic Transcription, Translation, and Regulation"]
kb4["1401"] = ["14","01","14.1 The Structure of Proteins"]
kb4["1402"] = ["14","02","14.2 Protein Synthesis in Overview"]
kb4["1403"] = ["14","03","14.3 A Closer Look at Transcription"]
kb4["1404"] = ["14","04","14.4 A Closer Look at Translation"]
/* 14.05 is ESSAY: Cracking the Genetic Code (Not a numbered sub-section) */
kb4["1405"] = ["14","06","14.5 Genetic Regulation"]
kb4["1406"] = ["14","07","14.6 Genetics and Life"]

kb4["1500"] = ["15","","Chapter: 15 The Future Isn't What It Used to Be: Biotechnology"]
kb4["1501"] = ["15","01","15.1 What Is Biotechnology?"]
kb4["1502"] = ["15","02","15.2 Transgenic Biotechnology"]
kb4["1503"] = ["15","03","15.3 Reproductive Cloning"]
kb4["1504"] = ["15","04","15.4 Forensic Biotechnology"]
kb4["1505"] = ["15","05","15.5 Stem Cells"]
/* 15.06 is ESSAY: Reading DNA Profiles (Not a numbered sub-section) */
/* 15.07 is Stem Cells Meet Cloning: Therapeutic Cloning (Not a numbered sub-section) */
/* 15.08 is THE PROCESS of SCIENCE: Making Embryonic Stem Cells Work (Not a numbered sub-section) */
kb4["1506"] = ["15","09","15.6 Biotechnology in the Real World"]

kb4["1600"] = ["16","","Chapter: 16 An Introduction to Evolution: Charles Darwin, Evolutionary Thought, and the Evidence for Evolution"]
kb4["1601"] = ["16","01","16.1 Evolution and Its Core Principles"]
kb4["1602"] = ["16","02","16.2 Charles Darwin and the Theory of Evolution"]
kb4["1603"] = ["16","03","16.3 Evolutionary Thinking before Darwin"]
kb4["1604"] = ["16","04","16.4 Darwin's Insights Following the <i>Beagle's</i> Voyage"]
kb4["1605"] = ["16","05","16.5 Alfred Russel Wallace"]
kb4["1606"] = ["16","06","16.6 Descent with Modification Is Accepted"]
kb4["1607"] = ["16","07","16.7 Darwin Doubted: The Controversy over Natural Selection"]
kb4["1608"] = ["16","08","16.8 Opposition to the Theory of Evolution"]
kb4["1609"] = ["16","09","16.9 The Evidence for Evolution"]

kb4["1700"] = ["17","","Chapter: 17 The Means of Evolution: Microevolution"]
kb4["1701"] = ["17","01","17.1 What Is It That Evolves?"]
kb4["1702"] = ["17","02","17.2 Evolution as a Change in the Frequency of Alleles"]
kb4["1703"] = ["17","03","17.3 Five Agents of Microevolution"]
/* 17.04 is ESSAY: Lessons from the Cocker Spaniel: The Price of Inbreeding (Not a numbered sub-section) */
kb4["1704"] = ["17","05","17.4 Natural Selection and Evolutionary Fitness"]
kb4["1705"] = ["17","06","17.5 Three Modes of Natural Selection"]

kb4["1800"] = ["18","","Chapter: 18 The Outcomes of Evolution: Macroevolution"]
kb4["1801"] = ["18","01","18.1 What Is a Species?"]
kb4["1802"] = ["18","02","18.2 How Do New Species Arise?"]
kb4["1803"] = ["18","03","18.3 Many New Species from One: Adaptive Radiation"]
/* 18.04 is ESSAY: New Species through Genetic Accidents: Polyploidy (Not a numbered sub-section) */
kb4["1804"] = ["18","05","18.4 The Pace of Speciation"]
kb4["1805"] = ["18","06","18.5 The Categorization of Earth's Living Things"]
kb4["1806"] = ["18","07","18.6 Classical Taxonomy and Cladistics"]

kb4["1900"] = ["19","","Chapter: 19 A Slow Unfolding: The History of Life on Earth"]
kb4["1901"] = ["19","01","19.1 The Geological Timescale: Life Marks Earth's Ages"]
kb4["1902"] = ["19","02","19.2 How Did Life Begin?"]
/* 19.03 is ESSAY: Physical Forces and Evolution (Not a numbered sub-section) */
kb4["1903"] = ["19","04","19.3 The Tree of Life"]
kb4["1904"] = ["19","05","19.4 A Long First Period: The Precambrian"]
/* 19.06 is ESSAY: Who Gets a Kingdom? Evolution within Life?s Categories (Not a numbered sub-section) */
kb4["1905"] = ["19","07","19.5 The Cambrian Explosion"]
kb4["1906"] = ["19","08","19.6 The Movement onto the Land: Plants First"]
kb4["1907"] = ["19","09","19.7 Animals Follow Plants onto the Land"]

kb4["2000"] = ["20","","Chapter: 20 Arriving Late, Traveling Far: The Evolution of Human Beings"]
kb4["2001"] = ["20","01","20.1 The Human Family Tree"]
kb4["2002"] = ["20","02","20.2 Human Evolution in Overview"]
kb4["2003"] = ["20","03","20.3 Interpreting the Fossil Evidence"]
kb4["2004"] = ["20","04","20.4 Snapshots from the Past: Three Hominins"]
kb4["2005"] = ["20","05","20.5 The Appearance of Modern Human Beings"]
/* 20.06 is ESSAY: Sequencing the Neanderthal Genome (Not a numbered sub-section) */
kb4["2006"] = ["20","07","20.6 Next-to-Last Standing? The Hobbit People"]

kb4["2100"] = ["21","","Chapter: 21 Viruses, Bacteria, Archaea, and Protists: The Diversity of Life 1"]
kb4["2101"] = ["21","01","21.1 Life's Categories and the Importance of Microbes"]
kb4["2102"] = ["21","02","21.2 Viruses: Making a Living by Hijacking Cells"]
kb4["2103"] = ["21","03","21.3 Bacteria: Masters of Every Environment"]
/* 21.04 is ESSAY: Unwanted Guest: The Persistence of Herpes (Not a numbered sub-section) */
/* 21.05 is ESSAY: Unwanted Guest: Modes of Nutrition: How Organisms Get What They Need to Survive (Not a numbered sub-section) */
kb4["2104"] = ["21","06","21.4 Intimate Strangers: Humans and Bacteria"]
kb4["2105"] = ["21","07","21.5 Bacteria and Human Disease"]
kb4["2106"] = ["21","08","21.6 Archaea: From Marginal Player to Center Stage"]
kb4["2107"] = ["21","09","21.7 Protists: Pioneers in Diversifying Life"]
kb4["2108"] = ["21","10","21.8 Protists and Sexual Reproduction"]
kb4["2109"] = ["21","11","21.9 Photosynthesizing Protists"]
kb4["2110"] = ["21","12","21.10 Heterotrophic Protists"]

kb4["2200"] = ["22","","Chapter: 22 Fungi and Plants: The Diversity of Life 2"]
kb4["2201"] = ["22","01","22.1 The Fungi: Life as a Web of Slender Threads"]
kb4["2202"] = ["22","02","22.2 Roles of Fungi in Society and Nature"]
kb4["2203"] = ["22","03","22.3 Structure and Reproduction in Fungi"]
kb4["2204"] = ["22","04","22.4 Categories of Fungi"]
/* 22.05 is ESSAY: A Psychedelic Drug from an Ancient Source (Not a numbered sub-section) */
kb4["2205"] = ["22","06","22.5 Fungal Associations: Lichens and Mycorrhizae"]
kb4["2206"] = ["22","07","22.6 Plants: The Foundation for Much of Life"]
kb4["2207"] = ["22","08","22.7 Types of Plants"]
kb4["2208"] = ["22","09","22.8 Angiosperm-Animal Interactions"]

kb4["2300"] = ["23","","Chapter: 23 Animals: The Divesity of Life 3"]
kb4["2301"] = ["23","01","23.1 What is an Animal?"]
kb4["2302"] = ["23","02","23.2 Animal Types: The Family Tree"]
kb4["2303"] = ["23","03","23.3 Phylum Porifera: The Sponges"]
kb4["2304"] = ["23","04","23.4 Phylum Cnidaria: Jellyfish and Others"]
kb4["2305"] = ["23","05","23.5 Phylum Platyhelminthes: Flatworms"]
kb4["2306"] = ["23","06","23.6 Phylum Annelida: Segmented Worms"]
kb4["2307"] = ["23","07","23.7 Phylum Mollusca: Snails, Oysters, Squid, and More"]
kb4["2308"] = ["23","08","23.8 Phylum Nematoda: Roundworms"]
kb4["2309"] = ["23","09","23.9 Phylum Arthropoda: Insects, Lobsters, Spiders, and More"]
kb4["2310"] = ["23","10","23.10 Phylum Echinodermata: Sea Stars, Sea Urchins, and More"]
kb4["2311"] = ["23","11","23.11 Phylum Chordata: Mostly Animals with Backbones"]

kb4["2400"] = ["24","","Chapter: 24 The Angiospems: An Introduction to Flowering Plants"]
kb4["2401"] = ["24","01","24.1 The Importance of Plants"]
kb4["2402"] = ["24","02","24.2 The Structure of Flowering Plants"]
/* 24.03 is ESSAY: What Is Plant Food? (Not a numbered sub-section) */
kb4["2403"] = ["24","04","24.3 Basic Functions in Flowering Plants"]
/* 24.05 is ESSAY: Keeping Cut Flowers Fresh (Not a numbered sub-section) */
/* 24.06 is ESSAY: Ripening Fruit Is a Gas (Not a numbered sub-section) */
kb4["2404"] = ["24","07","24.4 Responding to External Signals"]

kb4["2500"] = ["25","","Chapter: 25 The Angiosperms: Form and Function in Flowering Plants"]
kb4["2501"] = ["25","01","25.1 Two Ways of Catergorizing Flowering Plants"]
kb4["2502"] = ["25","02","25.2 There Are Three Fundamental Types of Plant Cells"]
kb4["2503"] = ["25","03","25.3 The Plant Body and Its Tissue Types"]
kb4["2504"] = ["25","04","25.4 How a Plant Grows: Apical Meristems Give Rise to the Entire Plant"]
kb4["2505"] = ["25","05","25.5 Secondary Growth Comes from a Thickening of Two Types of Tissue"]
/* 25.06 is ESSAY: A Tree?s History Can Be Seen in Its Wood (Not a numbered sub-section) */
kb4["2506"] = ["25","07","25.6 How the Plant's Vascular System Functions"]
/* 25.08 is ESSAY: The Syrup for Your Pancakes Comes from Xylem (Not a numbered sub-section) */
kb4["2507"] = ["25","09","25.7 Sexual Reproduction in Flowering Plants"]
kb4["2508"] = ["25","10","25.8 Embryo, Seed, and Fruit: The Developing Plant"]

kb4["2600"] = ["26","","Chapter: 26 Introduction to Human Anatomy and Physiology: The Integumentary, Skeletal, and Muscular Systems"]
kb4["2601"] = ["26","01","26.1 The Disciplines of Anatomy and Physiology"]
kb4["2602"] = ["26","02","26.2 How Does the Body Regulate Itself?"]
kb4["2603"] = ["26","03","26.3 Levels of Physical Organization"]
kb4["2604"] = ["26","04","26.4 The Human Body Has Four Basic Tissue Types"]
kb4["2605"] = ["26","05","26.5 Organs Are Made of Several Kinds of Tissue"]
kb4["2606"] = ["26","06","26.6 Organs and Tissues Make Up Organ Systems"]
kb4["2607"] = ["26","07","26.7 The Integumentary System: Skin and Its Accessories"]
/* 26.08 is ESSAY: Why Fat Matters and Where It Matters Most (Not a numbered sub-section) */
kb4["2608"] = ["26","09","26.8 The Skeletal System"]
/* 26.10 is ESSAY: There Is No Such Thing as a Fabulous Tan (Not a numbered sub-section) */
kb4["2609"] = ["26","11","26.9 The Muscular System"]

kb4["2700"] = ["27","","Chapter: 27 Communication and Control: The Nervous and Endocrine Systems"]
kb4["2701"] = ["27","01","27.1 Structure of the Nervous System"]
kb4["2702"] = ["27","02","27.2 Cells of the Nervous System"]
kb4["2703"] = ["27","03","27.3 How Nervous System Communication Works"]
kb4["2704"] = ["27","04","27.4 The Spinal Cord"]
kb4["2705"] = ["27","05","27.5 The Autonomic Nervous System"]
kb4["2706"] = ["27","06","27.6 The Human Brain"]
/* 27.07 is ESSAY: Spinal Cord Injuries (Not a numbered sub-section) */
kb4["2707"] = ["27","08","27.7 The Nervous System in Action: Our Senses"]
kb4["2708"] = ["27","09","27.8 Our Senses of Touch"]
kb4["2709"] = ["27","10","27.9 Our Sense of Smell"]
kb4["2710"] = ["27","11","27.10 Our Sense of Taste"]
/* 27.12 is ESSAY: Too Loud: Hair Cell Loss and Hearing (Not a numbered sub-section) */
kb4["2711"] = ["27","13","27.11 Our Sense of Hearing"]
kb4["2712"] = ["27","14","27.12 Our Sense of Vision"]
kb4["2713"] = ["27","15","27.13 The Endocrine System"]
kb4["2714"] = ["27","16","27.14 Types of Hormones"]
kb4["2715"] = ["27","17","27.15 How Is Hormone Secretion Controlled?"]
kb4["2716"] = ["27","18","27.16 Hormones in Action: Four Examples"]

kb4["2800"] = ["28","","Chapter: 28 Defending the Body: The Immune System"]
kb4["2801"] = ["28","01","28.1 Two Types of Immune Defense"]
kb4["2802"] = ["28","02","28.2 Nonspecific Defenses"]
kb4["2803"] = ["28","03","28.3 Specific Defenses"]
kb4["2804"] = ["28","04","28.4 Antibody-Mediated Immunity"]
kb4["2805"] = ["28","05","28.5 Cell-Mediated Immunity"]
kb4["2806"] = ["28","06","28.6 AIDS: Attacking the Defenders"]
kb4["2807"] = ["28","07","28.7 The Immune System Can Cause Trouble"]

kb4["2900"] = ["29","","Chapter: 29 Transport and Exchange 1: Blood and Breath"]
kb4["2901"] = ["29","01","29.1 The Cardiovascular System"]
kb4["2902"] = ["29","02","29.2 The Composition of Blood"]
kb4["2903"] = ["29","03","29.3 Blood Vessels"]
/* 29.04 is ESSAY: Blood Doping: A Dangerous Way to Cheat (Not a numbered sub-section) */
kb4["2904"] = ["29","05","29.4 The Heart and Blood Circulation"]
kb4["2905"] = ["29","06","29.5 What is a Heart Attack"]
/* 29.07 is ESSAY: Listening in on Blood Pressure (Not a numbered sub-section) */
kb4["2906"] = ["29","08","29.6 Distributing the Goods: The Capillary Beds"]
kb4["2907"] = ["29","09","29.7 The Respiratory System"]
kb4["2908"] = ["29","10","29.8 Steps in Respiration"]

kb4["3000"] = ["30","","Chapter: 30 Transport and Exchange 2: Digestion, Nutrition, and Elimination"]
kb4["3001"] = ["30","01","30.1 The Digestive System"]
kb4["3002"] = ["30","02","30.2 Structure of the Digestive System"]
kb4["3003"] = ["30","03","30.3 Steps in Digestion"]
kb4["3004"] = ["30","04","30.4 Human Nutrition"]
kb4["3005"] = ["30","05","30.5 Water, Minerals, and Vitamins"]
kb4["3006"] = ["30","06","30.6 Calories and the Energy-Yielding Nutrients"]
kb4["3007"] = ["30","07","30.7 Proteins"]
kb4["3008"] = ["30","08","30.8 Carbohydrates"]
kb4["3009"] = ["30","09","30.9 Lipids"]
kb4["3010"] = ["30","10","30.10 Elements of a Healthy Diet"]
kb4["3011"] = ["30","11","30.11 The Urinary System in Overview"]
kb4["3012"] = ["30","12","30.12 Structure of the Urinary System"]
kb4["3013"] = ["30","13","30.13 How the Kidneys Function"]
kb4["3014"] = ["30","14","30.14 Urine Storage and Excretion"]

kb4["3100"] = ["31","","Chapter: 31 An Amazingly Detailed Script: Animal Development"]
kb4["3101"] = ["31","01","31.1 General Processes in Development"]
kb4["3102"] = ["31","02","31.2 What Factors Underlie Development?"]
kb4["3103"] = ["31","03","31.3 Unity in Development: Homeobox Genes"]
kb4["3104"] = ["31","04","31.4 Developmental Tools: Sculpting the Body"]
kb4["3105"] = ["31","05","31.5 Development through Life"]

kb4["3200"] = ["32","","Chapter: 32 How the Baby Came to Be: Human Reproduction"]
kb4["3201"] = ["32","01","32.1 Overview of Human Reproduction and Development"]
kb4["3202"] = ["32","02","32.2 The Female Reproductive System"]
/* 32.03 is ESSAY: Hormones and the Female Reproductive Cycle (Not a numbered sub-section) */
kb4["3203"] = ["32","04","32.3 The Male Reproductive System"]
/* 32.05 is ESSAY: Methods of Contraception (Not a numbered sub-section) */
kb4["3204"] = ["32","06","32.4 The Union of Sperm and Egg"]
kb4["3205"] = ["32","07","32.5 Human Development Prior to Birth"]
/* 32.08 is ESSAY: Sexually Transmitted Disease (Not a numbered sub-section) */
kb4["3206"] = ["32","09","32.6 The Birth of the Baby"]

kb4["3300"] = ["33","","Chapter: 33 An Interactive Living World 1: Populations in Ecology"]
kb4["3301"] = ["33","01","33.1 The Study of Ecology"]
kb4["3302"] = ["33","02","33.2 Populations: Size and Dynamics"]
kb4["3303"] = ["33","03","33.3 <i>r</i>-Selected and <i>K</i>-Selected Species"]
kb4["3304"] = ["33","04","33.4 Thinking about Human Populations"]

kb4["3400"] = ["34","","Chapter: 34 An Interactive Living World 2: Communities in Ecology"]
kb4["3401"] = ["34","01","34.1 Structure in Communities"]
kb4["3402"] = ["34","02","34.2 Types of Interaction among Community Members"]
/* 34.03 is ESSAY: Purring Predators: House Cats and Their Prey (Not a numbered sub-section) */
kb4["3403"] = ["34","04","34.3 Succession in Communities"]

kb4["3500"] = ["35","","Chapter: 35 An Interactive Living World 3: Ecosystems and Biomes"]
kb4["3501"] = ["35","01","35.1 The Ecosystem"]
kb4["3502"] = ["35","02","35.2 Abiotic Factors Are a Major Component of Any Ecosystem"]
kb4["3503"] = ["35","03","35.3 How Energy Flows through Ecosystems"]
kb4["3504"] = ["35","04","35.4 Earth's Physical Environment"]
/* 35.05 is ESSAY: A Cut for the Middleman: Livestock and Food (Not a numbered sub-section) */
kb4["3505"] = ["35","06","35.5 Global Warming"]
/* 35.07 is THE PROCESS of SCIENCE: Global Warming and the Harlequin Frogs (Not a numbered sub-section) */
kb4["3506"] = ["35","08","35.6 Earth's Climate"]
kb4["3507"] = ["35","09","35.7 Earth's Biomes"]
kb4["3508"] = ["35","10","35.8 Life in the Water: Aquatic Ecosystems"]


kb4["3600"] = ["36","","Chapter: 36 Animals and Their Actions: Animal Behavior"]
kb4["3601"] = ["36","01","36.1 The Field of Animal Behavior"]
kb4["3602"] = ["36","02","36.2 The Web of Behavioral Influences"]
kb4["3603"] = ["36","03","36.3 Internal Influences on Behavior"]
/* 36.04 is ESSAY: Biological Rhythms and Sports (Not a numbered sub-section) */
kb4["3604"] = ["36","05","36.4 Learning and Behavior"]
kb4["3605"] = ["36","06","36.5 Behavior in Action: How Birds Acquire Their Songs"]
kb4["3606"] = ["36","07","36.6 Social Behavior"]
/* 36.08 is ESSAY: Are Men "Naturally" Promiscuous and Women Reserved? (Not a numbered sub-section) */
kb4["3607"] = ["36","09","36.7 Altruism in the Animal Kingdom"]



var baseUrl = '/wps/media/objects/6092/6238758/ebk/htm/0krog4e.htm';
var ebkString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,width=800,height=600';

//	list (ebook) link with image in quizzes/feedback
function quizEBK(ebkID) {
	var grabEBK = kb4[ebkID];
	var chap = grabEBK[0];
	var mod = grabEBK[1];
	var title = grabEBK[2];
	document.write("(see book section: <i>" + title +"</i>)");
	}
	
//	list (ebook) link with image in student home
function shEBK(ebkID) {
	var grabEBK = kb4[ebkID];
	var chap = grabEBK[0];
	var mod = grabEBK[1];
	var title = grabEBK[2];
	document.write("&nbsp;" + title);
	}
	
function openEBK(path) {
	var ebkWin = window.open(path,'ebkWin',ebkString);
	ebkWin.focus()	}

//	write out chapter title at top of all content pages
function writeTitle(ebkID) {	//	ebkID ~ 0100 (for Chapter 1)
	var grabEBK = kb4[ebkID];
	var title = grabEBK[2];
	document.write(title);
	}
//	write ebook link in chapter guide (with ebook image)
function writeEBK(ebkID) {		//	ebkID ~ 0101 (for Chapter 1 A-head 1)
	var grabEBK = kb4[ebkID];
	var chap = grabEBK[0];
	var mod = grabEBK[1];
	var title = grabEBK[2];
	document.write("<img src='" + imgEBK + "' alt='ebook' border='0' width='16' height='14' align='absmiddle' /> <a href='javascript:void(0);' onclick=\"openEBK('" + baseUrl + "?" + chap + "." + mod + "');\" class='ebook'>" + title + "</a>");
	}
//	write review/summary ebook link in chapter guide (with ebook image)
function writeEBKend(ebkID) {	//	ebkID ~ 0100 (for Chapter 1 Review/Summary)
	var grabEBK = kb4[ebkID];
	var chap = grabEBK[0];
	document.write("<img src='" + imgEBK + "' alt='ebook' border='0' width='16' height='14' align='absmiddle' /> <a href='javascript:void(0);' onclick=\"openEBK('" + baseUrl + "?" + chap + ".sum');\" class='ebook'>Chapter Review</a>");
	}


//	listEBK (used to list ebook links in feedback)
function listEBK(ebkID) {
	var grabEBK = kb4[ebkID];
	var chap = grabEBK[0];
	var mod = grabEBK[1];
	var title = grabEBK[2];
	document.write("<img src='" + imgEBK + "' alt='ebook' border='0' width='16' height='14' align='absmiddle' /> <a href='javascript:void(0);' onclick=\"openEBK('" + baseUrl + "?" + chap + "');\" class='list'>" + title + "</a>");
	}
	
//*******************end ebook links *************



//*******************start animation links *************
// kb4[ebkID] = chap mod title; mod may change due to how ebook is built
var kb4a = new Array();
kb4a["0101"] = ["01","1_1","Scientific Method"]
kb4a["0201"] = ["02","2_1","Structure of Atoms, Elements, Isotopes"]
kb4a["0202"] = ["02","2_2","Chemical Bonding"]
kb4a["0203"] = ["02","2_3","Geometry, Chemistry, and Biology"]
kb4a["0204"] = ["02","2_4","Water and pH"]
kb4a["0301"] = ["03","3_1","The Chemistry of Carbon"]
kb4a["0302"] = ["03","3_2","Monomers and Polymers"]
kb4a["0303"] = ["03","3_3","Carbohydrates"]
kb4a["0304"] = ["03","3_4","Lipids"]
kb4a["0305"] = ["03","3_5","Proteins"]
kb4a["0306"] = ["03","3_6","Nucleic Acids"]
kb4a["0401"] = ["04","4_1","The Structure of Cells"]
kb4a["0501"] = ["05","5_1","Plasma Membranes and Diffusion"]
kb4a["0601"] = ["06","6_1","Energy and Biology"]
kb4a["0602"] = ["06","6_2","Enzyme"]
kb4a["0701"] = ["07","7_1","Oxidation and Reduction"]
kb4a["0801"] = ["08","8_1","Properties of Light"]
kb4a["0803"] = ["08","8_3","The Calvin Experiments"]
kb4a["0802"] = ["08","8_2","Different Kinds of Photosynthesis"]
kb4a["0901"] = ["09","9_1","Cell Division for Bacteria"]
kb4a["1001"] = ["10","10_1","Meiosis and Sex Outcome"]
kb4a["1101"] = ["11","11_1","Mendel?s Experiments and Probability"]
kb4a["1102"] = ["11","11_2","Variations on Mendel"]
kb4a["1201"] = ["12","12_1","X-linked Recessive Traits"]
kb4a["1202"] = ["12","12_2","Some Human Genetic Disorders"]
kb4a["1203"] = ["12","12_3","Morgan?s Flies"]
kb4a["1301"] = ["13","13_1","DNA"]
kb4a["1302"] = ["13","13_2","Mutations"]
kb4a["1303"] = ["13","13_3","One Gene, One Enzyme Hypothesis"]
kb4a["1401"] = ["14","14_1","Structure of Proteins"]
kb4a["1501"] = ["15","15_1","Action of Restriction Enzymes and Plasmids"]
kb4a["1502"] = ["15","15_2","Recombinant DNA"]
kb4a["1503"] = ["15","15_3","Copying DNA through PCR"]
kb4a["1601"] = ["16","16_1","Principles of Evolution"]
kb4a["1701"] = ["17","17_1","Evolution and Genetics"]
kb4a["1702"] = ["17","17_2","Three Modes of Natural Selection"]
kb4a["1801"] = ["18","18_1","Speciation and Polyploidy"]
kb4a["1901"] = ["19","19_1","Evolutionary Timescales"]
kb4a["1902"] = ["19","19_2","RNA-like Self-Replication"]
kb4a["2201"] = ["21","21_1","Life Cycle of Fungi"]
kb4a["2401"] = ["24","24_1","Leaves, Reproduction, and Fluid Transport"]
kb4a["2402"] = ["24","24_2","Phototropism"]
kb4a["2501"] = ["24","24_1","Plant Tissue and Growth"]
kb4a["2502"] = ["24","24_2","The Vascular System for Plants"]
kb4a["2503"] = ["24","24_3","Plant Reproduction"]
kb4a["2701"] = ["26","26_1","The Nervous System"]
kb4a["2702"] = ["26","26_3","The Endocrine System"]
kb4a["2801"] = ["27","27_2","HIV Replication in Detail"]
kb4a["2901"] = ["28","28_1","The Cardiovascular System"]
kb4a["2902"] = ["28","28_2","The Respiratory System"]
kb4a["3001"] = ["28","28_3","The Urinary System"]
kb4a["3101"] = ["29","29_1","Embryonic Development"]
kb4a["3201"] = ["30","30_1","The Female Reproductive System"]
kb4a["3202"] = ["30","30_2","The Male Reproductive System"]
kb4a["3203"] = ["30","30_3","Human Development Prior to Birth"]
kb4a["3301"] = ["31","31_1","Population Growth"]
kb4a["3501"] = ["32","32_1","The Carbon Cycle"]
kb4a["3502"] = ["32","32_2","The Nitrogen Cycle"]
kb4a["3503"] = ["32","32_3","The Hydrologic Cycle"]
kb4a["3601"] = ["33","33_1","Behavioral Biology"]
kb4a["3602"] = ["33","33_2","Proximate Causes of Behavior"]
	
function quizANI(aniID) {
	var grabANI = kb4a[aniID];
	var achp = grabANI[0];
	var asec = grabANI[1];
	var atitle = grabANI[2];
	document.write("<br>Try Animation: <a href='javascript://' onclick=\"openAnimation('ch" + achp + "/" + asec + "/" + asec + ".html');\" class='quizLink'>Animation: " + atitle + "</a>");
}

/**** Open Animation ****/
function openAnimation(file) {
	var path = "http://media.pearsoncmg.com/bc/bc_krogh_biology_4/anim/" + file;
	var animString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,width=870,height=600,screenX=100,screenY=100,left=100,top=100';
	var animWin = window.open(path,'animWin',animString);
	animWin.focus();
}
//*******************end animation links *************






//Instruction Home Links

function ihSub1() {document.write("<div class=\"inst_home\">Prepared PowerPoint&#174; Tools</div>");}


var pptLecturesArray = new Array();
pptLecturesArray["01"] = {lecturePresSize:"4.06 MB", artPhotoImgSize:"6.00 MB", aniVidImgSize:"2.49 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"1.98 MB"};
pptLecturesArray["02"] = {lecturePresSize:"16.9 MB", artPhotoImgSize:"17.6 MB", aniVidImgSize:"9.08 MB", extraAniImgSize:"25.2 MB", activeLectSize:"1.47 MB", currIssSize:"1.66 MB"};
pptLecturesArray["03"] = {lecturePresSize:"11.5 MB", artPhotoImgSize:"6.76 MB", aniVidImgSize:"10.7 MB", extraAniImgSize:"", activeLectSize:"1.46 MB", currIssSize:"29.0 MB"};
pptLecturesArray["04"] = {lecturePresSize:"5.46 MB", artPhotoImgSize:"10.1 MB", aniVidImgSize:"2.84 MB", extraAniImgSize:"27.2 MB", activeLectSize:"1.46 MB", currIssSize:""};
pptLecturesArray["05"] = {lecturePresSize:"4.44 MB", artPhotoImgSize:"5.27 MB", aniVidImgSize:"3.05 MB", extraAniImgSize:"5.15 MB", activeLectSize:"1.47 MB", currIssSize:""};
pptLecturesArray["06"] = {lecturePresSize:"4.74 MB", artPhotoImgSize:"3.15 MB", aniVidImgSize:"3.97 MB", extraAniImgSize:"17.9 MB", activeLectSize:"1.47 MB", currIssSize:"799 kb"};
pptLecturesArray["07"] = {lecturePresSize:"4.05 MB", artPhotoImgSize:"4.05 MB", aniVidImgSize:"2.93 MB", extraAniImgSize:"1.86 MB", activeLectSize:"1.46 MB", currIssSize:""};
pptLecturesArray["08"] = {lecturePresSize:"5.14 MB", artPhotoImgSize:"3.87 MB", aniVidImgSize:"3.41 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"1.66 MB"};
pptLecturesArray["09"] = {lecturePresSize:"9.67 MB", artPhotoImgSize:"10.9 MB", aniVidImgSize:"2.00 MB", extraAniImgSize:"4.53 MB", activeLectSize:"1.47 MB", currIssSize:"14.8 MB"};
pptLecturesArray["10"] = {lecturePresSize:"3.48 MB", artPhotoImgSize:"6.68 MB", aniVidImgSize:"2.91 MB", extraAniImgSize:"11.9 MB", activeLectSize:"1.47 MB", currIssSize:""};
pptLecturesArray["11"] = {lecturePresSize:"7.22 MB", artPhotoImgSize:"3.89 MB", aniVidImgSize:"6.53 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"245 kb"};
pptLecturesArray["12"] = {lecturePresSize:"6.35 MB", artPhotoImgSize:"5.07 MB", aniVidImgSize:"4.98 MB", extraAniImgSize:"3.22 MB", activeLectSize:"1.47 MB", currIssSize:"14.8 MB"};
pptLecturesArray["13"] = {lecturePresSize:"4.83 MB", artPhotoImgSize:"2.11 MB", aniVidImgSize:"10.7 MB", extraAniImgSize:"2.12 MB", activeLectSize:"1.47 MB", currIssSize:"14.8 MB"};
pptLecturesArray["14"] = {lecturePresSize:"5.43 MB", artPhotoImgSize:"8.89 MB", aniVidImgSize:"1.97 MB", extraAniImgSize:"34.1 MB", activeLectSize:"1.47 MB", currIssSize:"409 kb"};
pptLecturesArray["15"] = {lecturePresSize:"6.28 MB", artPhotoImgSize:"3.80 MB", aniVidImgSize:"5.16 MB", extraAniImgSize:"28.5 MB", activeLectSize:"1.47 MB", currIssSize:"3.77 MB"};
pptLecturesArray["16"] = {lecturePresSize:"4.41 MB", artPhotoImgSize:"3.50 MB", aniVidImgSize:"2.75 MB", extraAniImgSize:"13.0 MB", activeLectSize:"1.47 MB", currIssSize:"606 kb"};
pptLecturesArray["17"] = {lecturePresSize:"5.63 MB", artPhotoImgSize:"4.10 MB", aniVidImgSize:"3.74 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"2.17 MB"};
pptLecturesArray["18"] = {lecturePresSize:"9.08 MB", artPhotoImgSize:"9.77 MB", aniVidImgSize:"2.88 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"2.57 MB"};
pptLecturesArray["19"] = {lecturePresSize:"6.37 MB", artPhotoImgSize:"10.3 MB", aniVidImgSize:"3.20 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"606 kb"};
pptLecturesArray["20"] = {lecturePresSize:"4.11 MB", artPhotoImgSize:"3.95 MB", aniVidImgSize:"", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"1.34 MB"};
pptLecturesArray["21"] = {lecturePresSize:"4.88 MB", artPhotoImgSize:"10.3 MB", aniVidImgSize:"", extraAniImgSize:"11.6 MB", activeLectSize:"1.47 MB", currIssSize:"5.92 MB"};
pptLecturesArray["22"] = {lecturePresSize:"11.5 MB", artPhotoImgSize:"17.5 MB", aniVidImgSize:"2.31 MB", extraAniImgSize:"1.89 MB", activeLectSize:"1.47 MB", currIssSize:"1.51 MB"};
pptLecturesArray["23"] = {lecturePresSize:"13.7 MB", artPhotoImgSize:"29.9 MB", aniVidImgSize:"", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"606 kb"};
pptLecturesArray["24"] = {lecturePresSize:"2.89 MB", artPhotoImgSize:"11.1 MB", aniVidImgSize:"3.07 MB", extraAniImgSize:"4.34 MB", activeLectSize:"1.47 MB", currIssSize:""};
pptLecturesArray["25"] = {lecturePresSize:"13.2 MB", artPhotoImgSize:"24.3 MB", aniVidImgSize:"5.74 MB", extraAniImgSize:"8.89 MB", activeLectSize:"1.47 MB", currIssSize:"488 kb"};
pptLecturesArray["26"] = {lecturePresSize:"11.7 MB", artPhotoImgSize:"22.7 MB", aniVidImgSize:"", extraAniImgSize:"9.04 MB", activeLectSize:"1.47 MB", currIssSize:"342 kb"};
pptLecturesArray["27"] = {lecturePresSize:"13.7 MB", artPhotoImgSize:"31.2 MB", aniVidImgSize:"4.67 MB", extraAniImgSize:"31.5 MB", activeLectSize:"1.47 MB", currIssSize:"14.2 MB"};
pptLecturesArray["28"] = {lecturePresSize:"5.40 MB", artPhotoImgSize:"6.65 MB", aniVidImgSize:"2.77 MB", extraAniImgSize:"18.0 MB", activeLectSize:"1.47 MB", currIssSize:"7.25 MB"};
pptLecturesArray["29"] = {lecturePresSize:"8.94 MB", artPhotoImgSize:"12.7 MB", aniVidImgSize:"3.61 MB", extraAniImgSize:"3.69 MB", activeLectSize:"1.47 MB", currIssSize:"3.67 MB"};
pptLecturesArray["30"] = {lecturePresSize:"8.78 MB", artPhotoImgSize:"8.54 MB", aniVidImgSize:"2.03 MB", extraAniImgSize:"3.87 MB", activeLectSize:"1.47 MB", currIssSize:"29.8 MB"};
pptLecturesArray["31"] = {lecturePresSize:"4.65 MB", artPhotoImgSize:"4.73 MB", aniVidImgSize:"2.53 MB", extraAniImgSize:"1.94 MB", activeLectSize:"1.47 MB", currIssSize:""};
pptLecturesArray["32"] = {lecturePresSize:"13.1 MB", artPhotoImgSize:"18.7 MB", aniVidImgSize:"4.66 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"2.27 MB"};
pptLecturesArray["33"] = {lecturePresSize:"5.17 MB", artPhotoImgSize:"4.17 MB", aniVidImgSize:"3.03 MB", extraAniImgSize:"1.89 MB", activeLectSize:"1.47 MB", currIssSize:"1.26 MB"};
pptLecturesArray["34"] = {lecturePresSize:"6.39 MB", artPhotoImgSize:"8.72 MB", aniVidImgSize:"", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"61.8 MB"};
pptLecturesArray["35"] = {lecturePresSize:"17.5 MB", artPhotoImgSize:"19.5 MB", aniVidImgSize:"6.90 MB", extraAniImgSize:"6.90 MB", activeLectSize:"1.47 MB", currIssSize:"63.7 MB"};
pptLecturesArray["36"] = {lecturePresSize:"10.7 MB", artPhotoImgSize:"9.21 MB", aniVidImgSize:"5.61 MB", extraAniImgSize:"", activeLectSize:"1.47 MB", currIssSize:"1.49 MB"};

var jpegImgsArray = new Array();
jpegImgsArray["01"] = {labeledImgSize:"4.40 MB", unlabeledImgSize:"1.03 MB"};
jpegImgsArray["02"] = {labeledImgSize:"3.45 MB", unlabeledImgSize:"1.74 MB"};
jpegImgsArray["03"] = {labeledImgSize:"6.28 MB", unlabeledImgSize:"2.37 MB"};
jpegImgsArray["04"] = {labeledImgSize:"7.71 MB", unlabeledImgSize:"3.75 MB"};
jpegImgsArray["05"] = {labeledImgSize:"3.45 MB", unlabeledImgSize:"2.10 MB"};
jpegImgsArray["06"] = {labeledImgSize:"2.70 MB", unlabeledImgSize:"0.97 MB"};
jpegImgsArray["07"] = {labeledImgSize:"3.88 MB", unlabeledImgSize:"1.60 MB"};
jpegImgsArray["08"] = {labeledImgSize:"3.51 MB", unlabeledImgSize:"1.20 MB"};
jpegImgsArray["09"] = {labeledImgSize:"3.34 MB", unlabeledImgSize:"1.33 MB"};
jpegImgsArray["10"] = {labeledImgSize:"3.60 MB", unlabeledImgSize:"1.05 MB"};
jpegImgsArray["11"] = {labeledImgSize:"3.28 MB", unlabeledImgSize:"1.26 MB"};
jpegImgsArray["12"] = {labeledImgSize:"3.39 MB", unlabeledImgSize:"1.18 MB"};
jpegImgsArray["13"] = {labeledImgSize:"1.43 MB", unlabeledImgSize:"444 kb"};
jpegImgsArray["14"] = {labeledImgSize:"4.15 MB", unlabeledImgSize:"1.75 MB"};
jpegImgsArray["15"] = {labeledImgSize:"2.84 MB", unlabeledImgSize:"696 kb"};
jpegImgsArray["16"] = {labeledImgSize:"3.25 MB", unlabeledImgSize:"383 kb"};
jpegImgsArray["17"] = {labeledImgSize:"3.31 MB", unlabeledImgSize:"1.63 MB"};
jpegImgsArray["18"] = {labeledImgSize:"3.55 MB", unlabeledImgSize:"945 kb"};
jpegImgsArray["19"] = {labeledImgSize:"6.00 MB", unlabeledImgSize:"1.10 MB"};
jpegImgsArray["20"] = {labeledImgSize:"2.16 MB", unlabeledImgSize:"392 kb"};
jpegImgsArray["21"] = {labeledImgSize:"6.01 MB", unlabeledImgSize:"999 kb"};
jpegImgsArray["22"] = {labeledImgSize:"12.1 MB", unlabeledImgSize:"1.32 MB"};
jpegImgsArray["23"] = {labeledImgSize:"15.2 MB", unlabeledImgSize:"2.33 MB"};
jpegImgsArray["24"] = {labeledImgSize:"8.56 MB", unlabeledImgSize:"1.35 MB"};
jpegImgsArray["25"] = {labeledImgSize:"8.88 MB", unlabeledImgSize:"4.80 MB"};
jpegImgsArray["26"] = {labeledImgSize:"5.89 MB", unlabeledImgSize:"4.01 MB"};
jpegImgsArray["27"] = {labeledImgSize:"8.99 MB", unlabeledImgSize:"5.25 MB"};
jpegImgsArray["28"] = {labeledImgSize:"2.48 MB", unlabeledImgSize:"1.36 MB"};
jpegImgsArray["29"] = {labeledImgSize:"3.79 MB", unlabeledImgSize:"1.61 MB"};
jpegImgsArray["30"] = {labeledImgSize:"3.18 MB", unlabeledImgSize:"1.35 MB"};
jpegImgsArray["31"] = {labeledImgSize:"1.60 MB", unlabeledImgSize:"793 kb"};
jpegImgsArray["32"] = {labeledImgSize:"4.80 MB", unlabeledImgSize:"2.59 MB"};
jpegImgsArray["33"] = {labeledImgSize:"2.10 MB", unlabeledImgSize:"0.99 MB"};
jpegImgsArray["34"] = {labeledImgSize:"5.67 MB", unlabeledImgSize:"942 kb"};
jpegImgsArray["35"] = {labeledImgSize:"9.51 MB", unlabeledImgSize:"2.54 MB"};
jpegImgsArray["36"] = {labeledImgSize:"4.75 MB", unlabeledImgSize:"1.07 MB"};

var assetArray = new Array();
assetArray["01"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"27 kb"}};
assetArray["02"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"48 kb"}};
assetArray["03"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"27 kb"}};
assetArray["04"] = {bioflix:{hasIt:true, size:"106 MB"}, instructorguide:{hasIt:true, size:"26 kb"}};
assetArray["05"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"104 kb"}};
assetArray["06"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"124 kb"}};
assetArray["07"] = {bioflix:{hasIt:true, size:"66.6 MB"}, instructorguide:{hasIt:true, size:"29 kb"}};
assetArray["08"] = {bioflix:{hasIt:true, size:"65.6 MB"}, instructorguide:{hasIt:true, size:"26 kb"}};
assetArray["09"] = {bioflix:{hasIt:true, size:"52.6 MB"}, instructorguide:{hasIt:true, size:"24 kb"}};
assetArray["10"] = {bioflix:{hasIt:true, size:"49.8 MB"}, instructorguide:{hasIt:true, size:"353 kb"}};
assetArray["11"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"732 kb"}};
assetArray["12"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"285 kb"}};
assetArray["13"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"366 kb"}};
assetArray["14"] = {bioflix:{hasIt:true, size:"50.1 MB"}, instructorguide:{hasIt:true, size:"257 kb"}};
assetArray["15"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"26 kb"}};
assetArray["16"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"26 kb"}};
assetArray["17"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"26 kb"}};
assetArray["18"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"28 kb"}};
assetArray["19"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"106 kb"}};
assetArray["20"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"24 kb"}};
assetArray["21"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"116 kb"}};
assetArray["22"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"29 kb"}};
assetArray["23"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"26 kb"}};
assetArray["24"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"27 kb"}};
assetArray["25"] = {bioflix:{hasIt:true, size:"51.9 MB"}, instructorguide:{hasIt:true, size:"29 kb"}};
assetArray["26"] = {bioflix:{hasIt:true, size:"56.0 MB"}, instructorguide:{hasIt:true, size:"25 kb"}};
assetArray["27"] = {bioflix:{hasIt:true, size:"58.7 MB"}, instructorguide:{hasIt:true, size:"37 kb"}};
assetArray["28"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"25 kb"}};
assetArray["29"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"130 kb"}};
assetArray["30"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"34 kb"}};
assetArray["31"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"20 kb"}};
assetArray["32"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"30 kb"}};
assetArray["33"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"25 kb"}};
assetArray["34"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"23 kb"}};
assetArray["35"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"30 kb"}};
assetArray["36"] = {bioflix:{hasIt:false, size:""}, instructorguide:{hasIt:true, size:"29 kb"}};

var AniVidArray = new Array();
AniVidArray["01"] = {animations:{hasIt:true, size:"1.03 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:true, size:"41.5 MB"}};
AniVidArray["02"] = {animations:{hasIt:true, size:"7.61 MB"}, extraAnimations:{hasIt:true, size:"23.7 MB"}, videos:{hasIt:false, size:""}};
AniVidArray["03"] = {animations:{hasIt:true, size:"9.23 MB"}, extraAnimations:{hasIt:true, size:"11.7 MB"}, videos:{hasIt:false, size:""}};
AniVidArray["04"] = {animations:{hasIt:true, size:"1.37 MB"}, extraAnimations:{hasIt:true, size:"25.7 MB"}, videos:{hasIt:true, size:"34.1 MB"}};
AniVidArray["05"] = {animations:{hasIt:true, size:"1.59 MB"}, extraAnimations:{hasIt:true, size:"3.69 MB"}, videos:{hasIt:false, size:""}};
AniVidArray["06"] = {animations:{hasIt:true, size:"2.50 MB"}, extraAnimations:{hasIt:true, size:"16.4 MB"}, videos:{hasIt:false, size:""}};
AniVidArray["07"] = {animations:{hasIt:true, size:"1.46 MB"}, extraAnimations:{hasIt:true, size:"408 kb"}, videos:{hasIt:true, size:"24.3 MB"}};
AniVidArray["08"] = {animations:{hasIt:true, size:"1.94 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};
AniVidArray["09"] = {animations:{hasIt:true, size:"554 kb"}, extraAnimations:{hasIt:true, size:"3.07 MB"}, videos:{hasIt:true, size:"52.6 MB"}};
AniVidArray["10"] = {animations:{hasIt:true, size:"415 kb"}, extraAnimations:{hasIt:true, size:"10.5 MB"}, videos:{hasIt:false, size:""}};
AniVidArray["11"] = {animations:{hasIt:true, size:"5.06 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};
AniVidArray["12"] = {animations:{hasIt:true, size:"3.51 MB"}, extraAnimations:{hasIt:true, size:"1.76 MB"}, videos:{hasIt:true, size:"52.5 MB"}};
AniVidArray["13"] = {animations:{hasIt:true, size:"2.57 MB"}, extraAnimations:{hasIt:true, size:"675 kb"}, videos:{hasIt:true, size:"31.9 MB"}};
AniVidArray["14"] = {animations:{hasIt:true, size:"523 kb"}, extraAnimations:{hasIt:true, size:"32.6 MB"}, videos:{hasIt:false, size:""}};
AniVidArray["15"] = {animations:{hasIt:true, size:"3.69 MB"}, extraAnimations:{hasIt:true, size:"27.0 MB"}, videos:{hasIt:true, size:"58.2 MB"}};
AniVidArray["16"] = {animations:{hasIt:true, size:"1.28 MB"}, extraAnimations:{hasIt:true, size:"11.5 MB"}, videos:{hasIt:true, size:"86.8 MB"}};
AniVidArray["17"] = {animations:{hasIt:true, size:"2.28 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:true, size:"36.1 MB"}};
AniVidArray["18"] = {animations:{hasIt:true, size:"1.42 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};
AniVidArray["19"] = {animations:{hasIt:true, size:"1.73 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:true, size:"42.9 MB"}};
AniVidArray["20"] = {animations:{hasIt:false, size:""}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};
AniVidArray["21"] = {animations:{hasIt:false, size:""}, extraAnimations:{hasIt:true, size:"10.1 MB"}, videos:{hasIt:true, size:"89.0 MB"}};
AniVidArray["22"] = {animations:{hasIt:true, size:"872 kb"}, extraAnimations:{hasIt:true, size:"444 kb"}, videos:{hasIt:true, size:"22.6 MB"}};
AniVidArray["23"] = {animations:{hasIt:false, size:""}, extraAnimations:{hasIt:false, size:"B"}, videos:{hasIt:true, size:"54.8 MB"}};
AniVidArray["24"] = {animations:{hasIt:true, size:"1.60 MB"}, extraAnimations:{hasIt:true, size:"2.87 MB"}, videos:{hasIt:true, size:"36.2 MB"}};
AniVidArray["25"] = {animations:{hasIt:true, size:"4.28 MB"}, extraAnimations:{hasIt:true, size:"7.42 MB"}, videos:{hasIt:true, size:"65.6 MB"}};
AniVidArray["26"] = {animations:{hasIt:false, size:""}, extraAnimations:{hasIt:true, size:"7.58 MB"}, videos:{hasIt:true, size:"59.4 MB"}};
AniVidArray["27"] = {animations:{hasIt:true, size:"3.25 MB"}, extraAnimations:{hasIt:true, size:"30.0 MB"}, videos:{hasIt:true, size:"62.9 MB"}};
AniVidArray["28"] = {animations:{hasIt:true, size:"1.30 MB"}, extraAnimations:{hasIt:true, size:"16.6 MB"}, videos:{hasIt:true, size:"27.7 MB"}};
AniVidArray["29"] = {animations:{hasIt:true, size:"2.14 MB"}, extraAnimations:{hasIt:true, size:"2.22 MB"}, videos:{hasIt:true, size:"28.0 MB"}};
AniVidArray["30"] = {animations:{hasIt:true, size:"585 kb"}, extraAnimations:{hasIt:true, size:"2.41 MB"}, videos:{hasIt:true, size:"24.3 MB"}};
AniVidArray["31"] = {animations:{hasIt:true, size:"1.07 MB"}, extraAnimations:{hasIt:true, size:"489 kb"}, videos:{hasIt:false, size:""}};
AniVidArray["32"] = {animations:{hasIt:true, size:"3.20 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};
AniVidArray["33"] = {animations:{hasIt:true, size:"1.56 MB"}, extraAnimations:{hasIt:true, size:"444 kb"}, videos:{hasIt:false, size:""}};
AniVidArray["34"] = {animations:{hasIt:false, size:""}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};
AniVidArray["35"] = {animations:{hasIt:true, size:"5.78 MB"}, extraAnimations:{hasIt:true, size:"5.43 MB"}, videos:{hasIt:true, size:"38.0 MB"}};
AniVidArray["36"] = {animations:{hasIt:true, size:"4.15 MB"}, extraAnimations:{hasIt:false, size:""}, videos:{hasIt:false, size:""}};

var noActiveLectureArray = new Array();
noActiveLectureArray = ["00"]; // Chapters that don't have PPT Active Lecture Questions

var noAniVidImgsArray = new Array();
noAniVidImgsArray = ["20", "21", "23", "26", "34"]; // Chapters that don't have PPT Animations

var noExtraAniVidImgsArray = new Array();
noExtraAniVidImgsArray = ["01", "03", "08", "11", "17", "18", "19", "20", "23", "32", "34", "36"]; // Chapters that don't have PPT Extra Animations

var noLecturePresArray = new Array();
noLecturePresArray = ["00"]; // Chapters that don't have PPT Lecture Presentations

var noCurrIssArray = new Array();
noCurrIssArray = ["04", "05", "07", "10", "24", "31"]; // Chapters that don't have PPT Current Issues

var htmlBuffer = "";
var chapNum;
var msBasePath = 'http:\/\/media.pearsoncmg.com\/bc\/bc_krogh_biology_4\/ih\/';
var msGlobalImgPath = 'http:\/\/media.pearsoncmg.com\/bc\/bc_0global\/img\/';
var msFolder;


function writePPTLectsForCh(chNum)
{
	var i, j;
	var hasAniVidImgs = true;
	var hasExtraAniVidImgs = true;
	var hasLecturePres = true;
	var hasActiveLecture = true;
	var hasCurrIss = true;
		
	chapNum = chNum;
	htmlBuffer += '<div class="inst_home">Prepared PowerPoint&#174; Tools<\/div>';
	//htmlBuffer += '<p>Click the links below to download Label Edit Images and Step Edit Images.<\/p>\n';
	htmlBuffer += '<table cellpadding="0" cellspacing="0" border="0" width="400" id="contentTbl">\n';
	
	//lecture presenatations
	for (j = 0; j < noLecturePresArray.length; j++)
	{
		if (chNum == noLecturePresArray[j])
		{
			hasLecturePres = false;
			break;
		}
	}
	
	if (hasLecturePres)
	{
		writeOneRowOf("lectPres");
	} 
	

		
	writeOneRowOf("artPhotos");
	
	// animations
	 for (j = 0; j < noAniVidImgsArray.length; j++)
	{
		if (chNum == noAniVidImgsArray[j])
		{
			hasAniVidImgs = false;
			break;
		}
	}
	
	if (hasAniVidImgs)
	{
		writeOneRowOf("AniVidPpts");
	} 
	

	//extra  animations
	 for (j = 0; j < noExtraAniVidImgsArray.length; j++)
	{
		if (chNum == noExtraAniVidImgsArray[j])
		{
			hasExtraAniVidImgs = false;
			break;
		}
	}
	
	if (hasExtraAniVidImgs)
	{
		writeOneRowOf("ExtraAniVidPpts");
	} 
		
	
	//active lecture
	for (j = 0; j < noActiveLectureArray.length; j++)
	{
		if (chNum == noActiveLectureArray[j])
		{
			hasActiveLecture = false;
			break;
		}
		
	}
	
	if (hasActiveLecture)
	{
		writeOneRowOf("activeLecture");
	} 
	
	
	//curr iss
		for (j = 0; j < noCurrIssArray.length; j++)
	{
		if (chNum == noCurrIssArray[j])
		{
			hasCurrIss = false;
			break;
		}
		
	}
	
	if (hasCurrIss)
	{
		writeOneRowOf("currentIssues");
	} 
	
	
	
	htmlBuffer += '<\/table>\n';
	document.write(htmlBuffer);
	htmlBuffer = "";
}


function writejpegImgsForCh(chNum)
{
	var i, j;
	chapNum = chNum;
	htmlBuffer += '<div class="inst_home">Jpegs of Art and Photos<\/div>';
	//htmlBuffer += '<p>Click the links below to download Labeled, Unlabeled, and Extra Images.<\/p>\n';
	htmlBuffer += '<table cellpadding="0" cellspacing="0" border="0" width="400" id="contentTbl">\n';
	writeOneRowOf("labeled");
	writeOneRowOf("unlabeled");
	
	
	htmlBuffer += '<\/table>\n';
	document.write(htmlBuffer);
	htmlBuffer = "";
}



function writeAniVidForCh(chNum)
{

	chapNum = chNum;
	
	if (AniVidArray[chNum].animations["hasIt"] || AniVidArray[chNum].extraAnimations["hasIt"] || AniVidArray[chNum].videos["hasIt"] || AniVidArray[chNum].bioflix["hasIt"])
	{
		htmlBuffer += '<div class="inst_home">Animation and Video Files<\/div>\n';
		//htmlBuffer += '<p>Click the links below to download Animations and Video Files<\/p>\n';
		htmlBuffer += '<table cellpadding="0" cellspacing="0" border="0" width="400" id="contentTbl">\n';
		if (AniVidArray[chNum].animations["hasIt"])
		{
			writeOneRowOf("aniFile");
		}
		if (AniVidArray[chNum].extraAnimations["hasIt"])
		{
			writeOneRowOf("extraAniFile");
		}
		if (AniVidArray[chNum].videos["hasIt"])
		{
			writeOneRowOf("vidFile");
		}
		if (assetArray[chNum].bioflix["hasIt"])
		{
			writeOneRowOf("bioflix");
		}
		htmlBuffer += '<\/table>\n';
	
	document.write(htmlBuffer);
		
	htmlBuffer = "";

	}
}


//instructor guide
function writeInstructorGuideForCh(chNum)
{
	
		chapNum = chNum;
		if (assetArray[chNum].instructorguide["hasIt"])
		{
			htmlBuffer += '<div class="inst_home">Instructor Guide<\/div>\n';
			//htmlBuffer += '<p>Click the links below to download Instructor Guide<\/p>\n';
			htmlBuffer += '<table cellpadding="0" cellspacing="0" border="0" width="400" id="contentTbl">\n';
			writeOneRowOf("instructorguide");
			htmlBuffer += '<\/table>\n';
			document.write(htmlBuffer);
		}
		htmlBuffer = "";
}

//help files
function writeHelpFilesForCh(chNum)
{
		msFolder = 'help\/';
		fileSize1 = '490 kb';
		fileSize2 = '295 kb';
		fileName1 = 'ppt_tutorial.zip';
		fileName2 = 'help.zip';
		linkText1 = 'PowerPoint Tutorial';
		linkText2 = 'Help Files';
				
		htmlBuffer += '<div class="inst_home">Help Files<\/div>\n';
		//htmlBuffer += '<p>Click the links below to download Help Files<\/p>\n';
		htmlBuffer += '<table cellpadding="0" cellspacing="0" border="0" width="400" id="contentTbl">\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16"><img src="' + msGlobalImgPath + 'zip.gif" border="0" align="top" \/><\/td><td width="259"> <a href="javascript:\/\/"; onClick="javascript:openLinkToZipFile(\'' + msBasePath + msFolder + fileName1 + '\');" class="ih" >Chapter ' + chapNum + ' ' + linkText1 + '<\/a><\/td>\n';
		htmlBuffer += '<td width="100">' + fileSize1 + '<\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16"><img src="' + msGlobalImgPath + 'zip.gif" border="0" align="top" \/><\/td><td width="259"> <a href="javascript:\/\/"; onClick="javascript:openLinkToZipFile(\'' + msBasePath + msFolder + fileName2 + '\');" class="ih" >Chapter ' + chapNum + ' ' + linkText2 + '<\/a><\/td>\n';
		htmlBuffer += '<td width="100">' + fileSize2 + '<\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<\/table>\n';
		document.write(htmlBuffer);
		
		htmlBuffer = "";
}

//labbench answers
function writeLabBenchAnswers()
{	
		htmlBuffer += '<div class="inst_home">Answers to LabBench Quizzes<\/div>\n';
		htmlBuffer += '<table cellpadding="0" cellspacing="0" border="0" width="500" id="contentTbl">\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">1.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/osmans.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Diffusion and Osmosis Quiz Answers<\/a><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">2.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/enzans.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Enzyme Catalysis Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">3.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/mchoose.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Mitosis and Meiosis Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">4.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/pchoose.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Plant Pigments and Photosynthesis Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">5.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/respans.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Cell Respiration Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">6.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/molchoose.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Molecular Biology Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">7.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/geneticans.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Genetics of Organisms Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">8.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/popans.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Population Genetics and Evolution Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">9.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/tchoose.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Transpiration Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">10.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/cchoose.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Circulatory Physiology Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">11.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/behavan.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Animal Behavior Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<tr>\n';
		htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
		htmlBuffer += '<td width="16" align="right">12.</td><td colspan="2" width="475">&nbsp;<a href="javascript:;" onclick="window.open(\'http://media.pearsoncmg.com/bc/bc_campbell_concepts_4/medialib/assets/instructor/lbanswers/oxyans.html\',\'LabBench\',\'menubar=0,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=740,height=520\')" >Dissolved Oxygen and Aquatic Primary Productivity Quiz Answers</A><\/td>\n';
		htmlBuffer += '<\/tr>\n';
		htmlBuffer += '<\/table>\n';
		document.write(htmlBuffer);
		
		htmlBuffer = "";
}


function writeOneRowOf(rowType)
{
	var fileSize;
	var fileName;
	var linkText;
	htmlBuffer += '<tr>\n';
	htmlBuffer += '<td width="50">&nbsp;<\/td>\n';
	switch (rowType)
	{
		case "labeled":
			msFolder = 'art_photos\/labeled\/';
			fileSize = jpegImgsArray[chapNum].labeledImgSize;
			fileName = '_Labeled_Art_and_Photos.zip';
			linkText = 'Labeled Art and Photos';
			break;
		
		case "unlabeled":
			msFolder = 'art_photos\/unlabeled\/';
			fileSize = jpegImgsArray[chapNum].unlabeledImgSize;
			fileName = '_Unlabeled_Art_and_Photos.zip';
			linkText = 'Unlabeled Art and Photos';
			break;
					
		case "aniFile":
			msFolder = 'animation_videos\/animations\/';
			fileSize = AniVidArray[chapNum].animations["size"];
			fileName = '_Animations.zip';
			linkText = 'Animations';
			break;
			
		case "extraAniFile":
			msFolder = 'animation_videos\/extra_animations\/';
			fileSize = AniVidArray[chapNum].extraAnimations["size"];
			fileName = '_Extra_Animations.zip';
			linkText = 'Extra Animations';
			break;
			
		case "vidFile":
			msFolder = 'animation_videos\/discovery_channel_video\/';
			fileSize = AniVidArray[chapNum].videos["size"];
			fileName = '_Discovery_Channel_Video.zip';
			linkText = 'Discovery Channel Video';
			break;
		
		case "lectPres":
			msFolder = 'ppt_tools\/lecture_presentations\/';
			fileSize = pptLecturesArray[chapNum].lecturePresSize;
			fileName = '_Lecture_Presentations.zip';
			linkText = 'Lecture Presentations';
			break;
			
		case "artPhotos":
			msFolder = 'ppt_tools\/art_and_photos\/';
			fileSize = pptLecturesArray[chapNum].artPhotoImgSize;
			fileName = '_Art_and_Photos.zip';
			linkText = 'Art and Photos';
			break;
			
		case "AniVidPpts":
			msFolder = 'ppt_tools\/animation_and_video\/';
			fileSize = pptLecturesArray[chapNum].aniVidImgSize;
			fileName = '_Animations.zip';
			linkText = 'Animations';
			break;
			
		case "ExtraAniVidPpts":
			msFolder = 'ppt_tools\/animation_and_video\/';
			fileSize = pptLecturesArray[chapNum].extraAniImgSize;
			fileName = '_Extra_Animations.zip';
			linkText = 'Extra Animations';
			break;	
			
		case "activeLecture":
			msFolder = 'ppt_tools\/active_lecture_questions\/';
			fileSize = pptLecturesArray[chapNum].activeLectSize;
			fileName = '_Active_Lecture_Questions.zip';
			linkText = 'Active Lecture Questions';
			break;
			
		case "currentIssues":
			msFolder = 'ppt_tools\/current_issues\/';
			fileSize = pptLecturesArray[chapNum].currIssSize;
			fileName = '_Current_Issues.zip';
			linkText = 'Current Issues';
			break;
					
		case "bioflix":
			msFolder = 'animation_videos\/bioflix\/';
			fileSize = assetArray[chapNum].bioflix["size"];
			fileName = '_BioFlix.zip';
			linkText = 'BioFlix Animations';
			break;
			
		case "instructorguide":
			msFolder = 'instructor_guide\/';
			fileSize = assetArray[chapNum].instructorguide["size"];
			fileName = '_Instructor_Guide.zip';
			linkText = 'Instructor Guide';
			break;	
						
		default:
			break;
	}
	
	htmlBuffer += '<td width="16"><img src="' + msGlobalImgPath + 'zip.gif" border="0" align="top" \/><\/td><td width="259"> <a href="javascript:\/\/"; onClick="javascript:openLinkToZipFile(\'' + msBasePath + msFolder + chapNum + fileName + '\');" class="ih" >Chapter ' + chapNum + ' ' + linkText + '<\/a><\/td>\n';
	htmlBuffer += '<td width="100">' + fileSize + '<\/td>\n';
	htmlBuffer += '<\/tr>\n';
}

function openLinkToZipFile(fileToOpen)
{
	var winAttrib = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=0,width=100,height=100,screenX=100,screenY=100,left=100,top=100';
	var zipWin = window.open(fileToOpen, 'zipWindow', winAttrib);
	if (zipWin.opener == null)
	{
		zipWin.opener = window;
	}
	zipWin.focus();
}


