//	topnav
function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d=document;
	if(d.images) {
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0) {d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}
	}
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null) {document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//	site requirements
function spawnWin(a,b,c) {var abcWin = window.open(a,b,c);}
var minWidth=1024, minHeight=768;
function screenRes() {document.write(minWidth+' x '+minHeight+' screen resolution');}

//	feedback
function processQuery() {
	//grab the query string and strip the ?
	var query = new String(location.search)
	query = query.slice(1)
	//split query string on the ampersand if there is one
	if (query.indexOf("&")>-1){var paramArray = query.split("&")}
	else {var paramArray = new Array()
	paramArray[0] = query}
	var numParams = paramArray.length - 1
	for(var i = 0; i <= numParams; i++) {
		//get name
		var param = paramArray[i]
		var setName = param.substring(0, param.indexOf("="));
		//get value
		var setVal = unescape(param.substring(param.indexOf("=")+1, param.length))
		switch (setName){
		case "send-results-to":
			document.editorfeedback.elements[0].value = setVal
			break
		case "results-page":
			document.editorfeedback.elements[1].value = setVal
			break
		case "form-name":
			document.editorfeedback.elements[2].value = setVal
			break
		case "studentname":
			document.editorfeedback.elements[3].value = setVal
			break
		case "email":
			document.editorfeedback.elements[4].value = setVal
			break
		case "feature":
			document.editorfeedback.elements[5].value = setVal
			break
		case "chapter":
			document.editorfeedback.elements[6].value = setVal
			break
		case "comments":
			document.editorfeedback.elements[7].value = setVal
			break		
		}
	}
}

function checkIt() {
	if(document.editorfeedback.studentname.value == '') {
		alert("Please enter your name.");
		return false;}
	else if(document.editorfeedback.email.value == '') {
		alert("Please include your email address so that we can get back to you.");
		return false;}
	else if(document.editorfeedback.feature.value == '') {
		alert("Please include the name of the website feature or type 'general' if your comments are not specific to a particular feature. Thank you for your input.");
		return false;}
	else if(document.editorfeedback.chapter.value == '') {
		alert("Please enter the chapter number.");
		return false;}
	else if(document.editorfeedback.comments.value == '') {
		alert("Please include your comments or suggestions.");
		return false;}
	return true;
}

//	ASSESSMENT ASSETS SNAPSHOT
function show(element) {
	elem = document.getElementById(element);
	elem.style.visibility = "visible";
}

function hide(element) {
	elem = document.getElementById(element);
	elem.style.visibility = "hidden";
}


//	FLASHCARDS
function Flashcards() {
	url="http://media.pearsoncmg.com/bc/bc_audesirk_loe_5/flashcards/audesirk_loe5_flashcards.html";
	winstring="menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no,width=670,height=525,screenX=100,screenY=100,left=100,top=100";
	window.open(url,"flashcardswin",winstring);
}

//	GLOSSARY
function Glossary() {
	url = "http://media.pearsoncmg.com/bc/bc_audesirk_loe_5/glossary/audesirk_loe5_glossary.html";
	glossString = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,width=700,height=500,screenX=100,screenY=100,left=100,top=100";
	GlossaryWin = window.open(url,"Glossary",glossString);
	GlossaryWin.focus();
}

//	CUMULATIVE
function openCumulative() {
	url = "http://media.pearsoncmg.com/bc/bc_audesirk_loe_5/cumulative/cumulative_test.html";
	cumuString = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,width=700,height=550,screenX=100,screenY=100,left=100,top=100";
	CumuWin = window.open(url,"Cumulative",cumuString);
	CumuWin.focus();
}

function openWin(url,title){
	var newWin=window.open(url,title,"width=800,height=525,scrollbars,resizable");
	if(window.opener==null)
	{window.opener=window;}
}

function openWinCMS(url,title){
	var newWin=window.open('http://media.pearsoncmg.com/bc/bc_audesirk_loe_5/animations/'+url+'',title,"width=800,height=525,scrollbars,resizable");
	if(window.opener==null)
	{window.opener=window;}
}

// aloe5[ebkID] = chap mod title; mod may change due to how ebook is built
var imgEBK = 'http://media.pearsoncmg.com/bc/bc_audesirk_loe_5/img/ebk.gif';
var aloe5 = new Array();
aloe5["0100"] = ["01","","Chapter 1: An Introduction to Life on Earth"]
aloe5["0101"] = ["01","01","Why Study Biology?"]
aloe5["0102"] = ["01","02","How Do Biologists Study Life?"]
aloe5["0103"] = ["01","03","What Is Life?"]
aloe5["0104"] = ["01","04","Why Is Life So Diverse?"]
aloe5["0200"] = ["02","","Chapter 2: Atoms, Molecules, and Life"]
aloe5["0201"] = ["02","01","What Are Atoms?"]
aloe5["0202"] = ["02","02","How Do Atoms Form Molecules?"]
aloe5["0203"] = ["02","03","Why Is Water So Important to Life?"]
aloe5["0204"] = ["02","04","Why Is Carbon So Important to Life?"]
aloe5["0205"] = ["02","05","How Are Biological Molecules Joined Together or Broken Apart?"]
aloe5["0206"] = ["02","06","What Are Carbohydrates?"]
aloe5["0207"] = ["02","07","What Are Lipids?"]
aloe5["0208"] = ["02","08","What Are Proteins?"]
aloe5["0209"] = ["02","09","What Are Nucleic Acids?"]
aloe5["0300"] = ["03","","Chapter 3: Cell Membrane Structure and Function"]
aloe5["0301"] = ["03","01","What Does the Plasma Membrane Do?"]
aloe5["0302"] = ["03","02","What Is the Structure of the Plasma Membrane?"]
aloe5["0303"] = ["03","03","How Does the Plasma Membrane Play Its Gatekeeper Role?"]
aloe5["0304"] = ["03","04","What Is Diffusion?"]
aloe5["0305"] = ["03","05","What Is Osmosis?"]
aloe5["0306"] = ["03","06","How Do Diffusion and Osmosis Affect Transport Across the Plasma Membrane?"]
aloe5["0307"] = ["03","07","How Do Molecules Move against a Concentration Gradient?"]
aloe5["0400"] = ["04","","Chapter 4: Cell Structure and Function"]
aloe5["0401"] = ["04","01","What Features Are Shared by All Cells?"]
aloe5["0402"] = ["04","02","How Do Prokaryotic and Eukaryotic Cells Differ?"]
aloe5["0403"] = ["04","03","What Are the Main Features of Eukaryotic Cells?"]
aloe5["0404"] = ["04","04","What Role Does the Nucleus Play?"]
aloe5["0405"] = ["04","05","What Roles Do Membranes Play in Eukaryotic Cells?"]
aloe5["0406"] = ["04","06","Which Other Structures Play Key Roles in Eukaryotic Cells?"]
aloe5["0407"] = ["04","07","What Are the Features of Prokaryotic Cells?"]
aloe5["0500"] = ["05","","Chapter 5: Energy Flow in the Life of a Cell"]
aloe5["0501"] = ["05","01","What Is Energy?"]
aloe5["0502"] = ["05","02","How Does Energy Flow in Chemical Reactions?"]
aloe5["0503"] = ["05","03","How Is Energy Carried between Coupled Reactions?"]
aloe5["0504"] = ["05","04","How Do Cells Control Their Metabolic Reactions?"]
aloe5["0600"] = ["06","","Chapter 6: Capturing Solar Energy : Photosynthesis"]
aloe5["0601"] = ["06","01","What Is Photosynthesis?"]
aloe5["0602"] = ["06","02","How Is Light Energy Converted to Chemical Energy?"]
aloe5["0603"] = ["06","03","How Is Chemical Energy Stored in Glucose Molecules?"]
aloe5["0604"] = ["06","04","What Is the Relationship Between Light-Dependent and Light-Independent Reactions?"]
aloe5["0605"] = ["06","05","How Does the Need to Conserve Water Affect Photosynthesis?"]
aloe5["0700"] = ["07","","Chapter 7: Harvesting Energy : Glycolysis and Cellular Respiration"]
aloe5["0701"] = ["07","01","What Is the Source of a Cell's Energy?"]
aloe5["0702"] = ["07","02","How Do Cells Harvest Energy from Glucose?"]
aloe5["0703"] = ["07","03","What Happens During Glycolysis?"]
aloe5["0704"] = ["07","04","What Happens During Cellular Respiration?"]
aloe5["0705"] = ["07","05","What Happens During Fermentation?"]
aloe5["0800"] = ["08","","Chapter 8: The Continuity of Life : How Cells Reproduce"]
aloe5["0801"] = ["08","01","Why Do Cells Divide?"]
aloe5["0802"] = ["08","02","What Occurs During the Prokaryotic Cell Cycle?"]
aloe5["0803"] = ["08","03","How Is the DNA in Eukaryotic Cells Organized?"]
aloe5["0804"] = ["08","04","What Occurs During the Eukaryotic Cell Cycle?"]
aloe5["0805"] = ["08","05","How Does Mitotic Cell Division Produce Genetically Identical Daughter Cells?"]
aloe5["0806"] = ["08","06","How Does Meiotic Cell Division Produce Haploid Cells?"]
aloe5["0807"] = ["08","07","How Do Meiotic Cell Division and Sexual Reproduction Produce Genetic Variability?"]
aloe5["0900"] = ["09","","Chapter 9: Patterns of Inheritance"]
aloe5["0901"] = ["09","01","What Is the Physical Basis of Inheritance?"]
aloe5["0902"] = ["09","02","How Were the Principles of Inheritance Discovered?"]
aloe5["0903"] = ["09","03","How Are Single Traits Inherited?"]
aloe5["0904"] = ["09","04","How Are Multiple Traits Inherited?"]
aloe5["0905"] = ["09","05","How Are Genes Located on the Same Chromosome Inherited?"]
aloe5["0906"] = ["09","06","How Is Sex Determined?"]
aloe5["0907"] = ["09","07","How Are Sex-Linked Genes Inherited?"]
aloe5["0908"] = ["09","08","Do the Mendelian Rules of Inheritance Apply to All Traits?"]
aloe5["0909"] = ["09","09","How Are Human Genetic Disorders Investigated?"]
aloe5["0910"] = ["09","10","How Are Single-Gene Disorders Inherited?"]
aloe5["0911"] = ["09","11","How Do Errors in Chromosome Number Affect Humans?"]
aloe5["1000"] = ["10","","Chapter 10: DNA : The Molecule of Heredity "]
aloe5["1001"] = ["10","01","What Is the Structure of DNA?"]
aloe5["1002"] = ["10","02","How Does DNA Encode Information?"]
aloe5["1003"] = ["10","03","How Is DNA Copied?"]
aloe5["1004"] = ["10","04","What Are the Mechanisms of DNA Replication?"]
aloe5["1100"] = ["11","","Chapter 11: Gene Expression and Regulation"]
aloe5["1101"] = ["11","01","How Is the Information in DNA Used in a Cell?"]
aloe5["1102"] = ["11","02","What Are the Functions of RNA?"]
aloe5["1103"] = ["11","03","What Is the Genetic Code?"]
aloe5["1104"] = ["11","04","How Is the Information in a Gene Transcribed into RNA?"]
aloe5["1105"] = ["11","05","How Is the Information in Messenger RNA Translated into Protein?"]
aloe5["1106"] = ["11","06","How Do Mutations Affect Gene Function?"]
aloe5["1107"] = ["11","07","Are All Genes Expressed?"]
aloe5["1108"] = ["11","08","How Is Gene Expression Regulated?"]
aloe5["1200"] = ["12","","Chapter 12: Biotechnology "]
aloe5["1201"] = ["12","01","What Is Biotechnology?"]
aloe5["1202"] = ["12","02","How Does DNA Recombine in Nature?"]
aloe5["1203"] = ["12","03","How Is Biotechnology Used in Forensic Science?"]
aloe5["1204"] = ["12","04","How Is Biotechnology Used in Agriculture?"]
aloe5["1205"] = ["12","05","How Is Biotechnology Used to Learn About the Human Genome?"]
aloe5["1206"] = ["12","06","How Is Biotechnology Used in Medical Diagnosis and Treatment?"]
aloe5["1207"] = ["12","07","What Are Some of the Major Ethical Issues of Modern Biotechnology?"]
aloe5["1300"] = ["13","","Chapter 13: Principles of Evolution"]
aloe5["1301"] = ["13","01","How Did Evolutionary Thought Evolve?"]
aloe5["1302"] = ["13","02","How Does Natural Selection Work?"]
aloe5["1303"] = ["13","03","How Do We Know That Evolution Has Occurred?"]
aloe5["1304"] = ["13","04","What Is the Evidence That Populations Evolve by Natural Selection?"]
aloe5["1400"] = ["14","","Chapter 14: How Populations Evolve"]
aloe5["1401"] = ["14","01","How Are Populations, Genes, and Evolution Related?"]
aloe5["1402"] = ["14","02","What Causes Evolution?"]
aloe5["1403"] = ["14","03","How Does Natural Selection Work?"]
aloe5["1404"] = ["14","04","What Is a Species?"]
aloe5["1405"] = ["14","05","How Is Reproductive Isolation between Species Maintained?"]
aloe5["1406"] = ["14","06","How Do New Species Form?"]
aloe5["1407"] = ["14","07","What Causes Extinction?"]
aloe5["1500"] = ["15","","Chapter 15: The History of Life on Earth"]
aloe5["1501"] = ["15","01","How Did Life Begin?"]
aloe5["1502"] = ["15","02","What Were the Earliest Organisms Like?"]
aloe5["1503"] = ["15","03","What Were the Earliest Multicellular Organisms Like?"]
aloe5["1504"] = ["15","04","How Did Life Invade the Land?"]
aloe5["1505"] = ["15","05","What Role Has Extinction Played in the History of Life?"]
aloe5["1506"] = ["15","06","How Did Humans Evolve?"]
aloe5["1600"] = ["16","","Chapter 16: The Diversity of Life"]
aloe5["1601"] = ["16","01","How Are Organisms Named and Classified?"]
aloe5["1602"] = ["16","02","What Are the Domains of Life?"]
aloe5["1603"] = ["16","03","Bacteria and Archaea"]
aloe5["1604"] = ["16","04","Protists"]
aloe5["1605"] = ["16","05","Plants"]
aloe5["1606"] = ["16","06","Fungi"]
aloe5["1607"] = ["16","07","Animals"]
aloe5["1700"] = ["17","","Chapter 17: Plant Form and Function"]
aloe5["1701"] = ["17","01","How Are Plant Bodies Organized?"]
aloe5["1702"] = ["17","02","How Do Plants Grow?"]
aloe5["1703"] = ["17","03","What Are the Tissues and Cell Types of Plants?"]
aloe5["1704"] = ["17","04","How Do Roots Grow and What Do They Do?"]
aloe5["1705"] = ["17","05","How Do Stems Grow and What Do They Do?"]
aloe5["1706"] = ["17","06","What Is the Structure of Leaves and What Do They Do?"]
aloe5["1707"] = ["17","07","How Do Plants Acquire Nutrients?"]
aloe5["1708"] = ["17","08","How Do Plants Acquire Water and Transport Water and Nutrients?"]
aloe5["1800"] = ["18","","Chapter 18: The Plant Life Cycle"]
aloe5["1801"] = ["18","01","What Is the Life Cycle of Plants?"]
aloe5["1802"] = ["18","02","What Is the Structure of Flowers?"]
aloe5["1803"] = ["18","03","What Are the Gametophytes of Flowering Plants?"]
aloe5["1804"] = ["18","04","How Does Pollination Lead to Fertilization?"]
aloe5["1805"] = ["18","05","How Do Seeds and Fruits Develop?"]
aloe5["1806"] = ["18","06","How Do Seeds Germinate and Grow?"]
aloe5["1807"] = ["18","07","What Are Plant Hormones, and How Do They Act?"]
aloe5["1808"] = ["18","08","How Do Hormones Regulate the Plant Life Cycle?"]
aloe5["1900"] = ["19","","Chapter 19: Homeostasis and the Organization of the Animal Body"]
aloe5["1901"] = ["19","01","How Is the Animal Body Organized?"]
aloe5["1902"] = ["19","02","How Do Tissues Differ?"]
aloe5["1903"] = ["19","03","How Are Tissues Combined into Organs?"]
aloe5["1904"] = ["19","04","How Do Animals Maintain Internal Constancy?"]
aloe5["2000"] = ["20","","Chapter 20: Circulation and Respiration"]
aloe5["2001"] = ["20","01","What Are the Major Features and Functions of Circulatory Systems?"]
aloe5["2002"] = ["20","02","How Does the Vertebrate Heart Work?"]
aloe5["2003"] = ["20","03","What Is Blood?"]
aloe5["2004"] = ["20","04","What Are the Types and Functions of Blood Vessels?"]
aloe5["2005"] = ["20","05","How Does the Lymphatic System Work with the Circulatory System?"]
aloe5["2006"] = ["20","06","How Are Oxygen and Carbon Dioxide Exchanged in Animal Bodies?"]
aloe5["2007"] = ["20","07","How Does the Human Respiratory System Work?"]
aloe5["2100"] = ["21","","Chapter 21: Nutrition, Digestion, and Excretion"]
aloe5["2101"] = ["21","01","How Do Animals Regulate the Composition of their Bodies?"]
aloe5["2102"] = ["21","02","What Nutrients Do Animals Need?"]
aloe5["2103"] = ["21","03","What Are the Major Processes in Digestion?"]
aloe5["2104"] = ["21","04","What Is Types of Digestive Systems Are Found in Non-Human Animals?"]
aloe5["2105"] = ["21","05","How Do Humans Digest Food?"]
aloe5["2106"] = ["21","06","What Are the Functions of Urinary Systems?"]
aloe5["2107"] = ["21","07","What Types of Urinary Systems Are Found in Non-Human Animals?"]
aloe5["2108"] = ["21","08","How Does the Human Urinary System Work?"]
aloe5["2200"] = ["22","","Chapter 22: Defenses Against Disease : The Immune Response"]
aloe5["2201"] = ["22","01","How Does the Body Defend Against Invasion?"]
aloe5["2202"] = ["22","02","What Are the Key Characteristics of the Immune System?"]
aloe5["2203"] = ["22","03","How Does the Immune System Recognize Invaders?"]
aloe5["2204"] = ["22","04","How Does the Immune System Launch an Attack?"]
aloe5["2205"] = ["22","05","How Does the Immune System Remember Its Past Victories?"]
aloe5["2206"] = ["22","06","How Does Medical Care Assist the Immune Response?"]
aloe5["2207"] = ["22","07","What Happens When the Immune System Malfunctions?"]
aloe5["2208"] = ["22","08","How Does the Immune System Combat Cancer?"]
aloe5["2300"] = ["23","","Chapter 23: Chemical Control of the Animal Body : The Endocrine System"]
aloe5["2301"] = ["23","01","How Do Animal Cells Communicate?"]
aloe5["2302"] = ["23","02","How Do Animal Hormones Work?"]
aloe5["2303"] = ["23","03","What Are the Structures and Functions of the Mammalian Endocrine System?"]
aloe5["2400"] = ["24","","Chapter 24: The Nervous System and the Senses"]
aloe5["2401"] = ["24","01","How Do Nerve Cells Work?"]
aloe5["2402"] = ["24","02","How Do Nerve Cells Produce and Transmit Signals?"]
aloe5["2403"] = ["24","03","How Do Nervous Systems Process Information?"]
aloe5["2404"] = ["24","04","How Are Nervous Systems Organized?"]
aloe5["2405"] = ["24","05","What Is the Structure of the Human Nervous System?"]
aloe5["2406"] = ["24","06","How Does the Brain Produce the Mind?"]
aloe5["2407"] = ["24","07","How Does the Nervous System Sense the Environment?"]
aloe5["2500"] = ["25","","Chapter 25: Animal Repoduction and Development"]
aloe5["2501"] = ["25","01","How Do Animals Reproduce?"]
aloe5["2502"] = ["25","02","How Does the Human Reproductive System Work?"]
aloe5["2503"] = ["25","03","How Does Animal Development Proceed?"]
aloe5["2504"] = ["25","04","How Do Humans Develop?"]
aloe5["2505"] = ["25","05","How Can People Limit Fertility?"]
aloe5["2600"] = ["26","","Chapter 26: Animal Behavior"]
aloe5["2601"] = ["26","01","How Do Innate and Learned Behaviors Differ?"]
aloe5["2602"] = ["26","02","How Do Animals Communicate?"]
aloe5["2603"] = ["26","03","How Do Animals Compete for Resources?"]
aloe5["2604"] = ["26","04","How Do Animals Find Mates?"]
aloe5["2605"] = ["26","05","Why Do Animals Play?"]
aloe5["2606"] = ["26","06","What Kinds of Societies Do Animals Form?"]
aloe5["2607"] = ["26","07","Can Biology Explain Human Behavior?"]
aloe5["2700"] = ["27","","Chapter 27: Population Growth"]
aloe5["2701"] = ["27","01","How Are Populations Distributed in Space and Time?"]
aloe5["2702"] = ["27","02","How Do Populations Grow?"]
aloe5["2703"] = ["27","03","How Is Population Growth Regulated?"]
aloe5["2704"] = ["27","04","How Is the Human Population Changing?"]
aloe5["2800"] = ["28","","Chapter 28: Community Interactions"]
aloe5["2801"] = ["28","01","Why Are Interactions in Ecological Communities Important?"]
aloe5["2802"] = ["28","02","What Are the Effects of Competition Among Species?"]
aloe5["2803"] = ["28","03","What Are the Effects of Predator&ndash;Prey Interactions?"]
aloe5["2804"] = ["28","04","What Is Symbiosis?"]
aloe5["2805"] = ["28","05","What Are Keystone Species?"]
aloe5["2806"] = ["28","06","How Does a Community Change Over Time?"]
aloe5["2900"] = ["29","","Chapter 29: How Do Ecosystems Work?"]
aloe5["2901"] = ["29","01","How Do Ecosystems Obtain Energy and Nutrients?"]
aloe5["2902"] = ["29","02","How Does Energy Flow Through Ecosystems?"]
aloe5["2903"] = ["29","03","How Do Nutrients Move Within and Among Ecosystems?"]
aloe5["2904"] = ["29","04","What Happens When Humans Disrupt Nutrient Cycles?"]
aloe5["3000"] = ["30","","Chapter 30: Earth's Diverse Ecosystems"]
aloe5["3001"] = ["30","01","What Factors Influence Earth's Climate?"]
aloe5["3002"] = ["30","02","What Conditions Does Life Require?"]
aloe5["3003"] = ["30","03","How Is Life on Land Distributed?"]
aloe5["3004"] = ["30","04","How Is Life in Water Distributed?"]
aloe5["3100"] = ["31","","Chapter 31: Conserving Earth's Biodiversity"]
aloe5["3101"] = ["31","01","What Is Conservation Biology?"]
aloe5["3102"] = ["31","02","Why Is Biodiversity Important?"]
aloe5["3103"] = ["31","03","Is Earth's Biodiversity Diminishing?"]
aloe5["3104"] = ["31","04","What Are the Major Threats to Biodiversity?"]
aloe5["3105"] = ["31","05","How Can Conservation Biology Help to Preserve Biodiversity?"]
aloe5["3106"] = ["31","06","Why Is Sustainability the Key to Conservation?"]

//	write ebook link in chapter guide (with ebook image)
function writeEBK(ebkID) {		//	ebkID ~ 0101 (for Chapter 1 A-head 1)
	var grabEBK = aloe5[ebkID];
	var chap = grabEBK[0];
	var mod = grabEBK[1];
	var title = grabEBK[2];
	document.write(title);
	}

//	list (ebook) link with image in quizzes/feedback
function quizEBK(ebkID) {
	var grabEBK = aloe5[ebkID];
	var chap = grabEBK[0];
	var mod = grabEBK[1];
	var title = grabEBK[2];
	document.write("(see book section: <i>" + title +"</i>)");
	}

////////////////////////////////////////////////// functional
var ebkString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,width=800,height=600,screenX=100,screenY=100,left=100,top=100';
var graphString = 'menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=0,width=800,height=515,screenX=10,screenY=10,left=10,top=10';

//	images

var MLgraph = 'http://media.pearsoncmg.com/bc/bc_0media_bio/graphit/media_files/';

// graph[graphID] = title path
var graph = new Array();
graph["Intro"] 			= ["An Introduction to Graphing","intro.html"] // 01
graph["Age"] 			= ["Age Pyramids and Population Growth","age.html"] // 18
graph["Species"] 		= ["Species Area Effect and Island Biogeography","species.html"] // 19
graph["Animal"] 		= ["Animal Food Production Efficiency and Food Policy","animal.html"] // 19
graph["Atmospheric"]	= ["Atmospheric CO<sub>2</sub> and Temperature Changes","atmospheric.html"] // 19
graph["Fisheries"] 		= ["Global Fisheries and Overfishing","fisheries.html"] // 20
graph["Municipal"] 		= ["Municipal Solid Waste Trends in the U.S.","municipal.html"] // 20
graph["Forestation"] 	= ["Forestation Change","forestation.html"] // 20
graph["Freshwater"] 	= ["Global Fresh Water Resources","freshwater.html"] // 20
graph["Prospects"] 		= ["Prospects for Renewable Energy","prospects.html"] // 20
graph["Soil"] 			= ["Global Soil Degradation","soil.html"] // 29
	
function openGRAPH(path) {
	var graphWin = window.open(path,'graphWin',graphString);
	graphWin.focus()	}

function listGRAPH(graphID) {
	var grabGRAPH = graph[graphID];
	var GRAPHtitle = grabGRAPH[0];
	var GRAPHfile = grabGRAPH[1];
	document.write("<a href='javascript:void(0);' onclick=\"openGRAPH('" + MLgraph + GRAPHfile + "');\">" + GRAPHtitle + "</a>");
	}
	
function tocGRAPH(graphID) {
	var grabGRAPH = graph[graphID];
	var GRAPHtitle = grabGRAPH[0];
	var GRAPHfile = grabGRAPH[1];
	document.write("<a href='javascript:void(0);' onclick=\"openGRAPH('" + MLgraph + GRAPHfile + "');\"  class='etutor'>" + GRAPHtitle + "</a>");
	}
	
//==========Popups for Blast sharing=========

function openBlWindow(ChpUrl,BlUrl)
{
	mediaServerURL = 'http://media.pearsoncmg.com/bc/bc_audesirk_bloe_8/ir/media/'+ChpUrl+'/Animations_BLAST/'+BlUrl;
	newWindow = window.open(mediaServerURL,'aWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=800, height=580');
	//newWindow.moveTo(0,0);
}

function openblast(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'); 
	}
