function loadScript(url)
{
	document.write('<script src="', url, '" type="text/javascript"></script>');
}
loadScript("http://www.google-analytics.com/urchin.js");

   
function openFlash(path) {
	var path="http://media.pearsoncmg.com/bc/bc_martini_fap_8/flashcards/index.html";
	var winString = 'menubar=no,toolbar=no,location=no,status=no,scrollbars=0,resizable=0,width=670,height=600,screenX=100,screenY=100,left=100,top=100,location=no,status=no';
	var FlashWin = window.open(path,'Flashcards',winString);
	FlashWin.focus()
}
 
 function openGloss(path) {
	var path="http://media.pearsoncmg.com/bc/bc_martini_fap_8/glossary/index.html";
	var winString = 'menubar=no,toolbar=no,location=no,status=no,scrollbars=0,resizable=0,width=670,height=600,screenX=100,screenY=100,left=100,top=100,location=no,status=no';
	var glossWin = window.open(path,'Glossary',winString);
	glossWin.focus()
}

function openVideo(file) {
	var path = "http://media.pearsoncmg.com/" + file;
	var openActivity = window.open(path,'Videos','menubar=no,toolbar=no,location=no,status=no,scrollbars=auto,resizable=yes,width=700,height=550,screenX=100,screenY=100,left=100,top=100');
    if(openActivity.opener == null) openActivity.opener = window;
		openActivity.focus();
	return false;
}
 
 
function openEbk()
{ 
	document.write('&nbsp;');
}
 

function getImage(chapter){
	var map = new Array();
	document.write("&nbsp;");
	//document.write("<img id='openArt' src='http://media.pearsoncmg.com/bc/bc_martini_fap_8/open_art/ch" + chapter + ".jpg'>");
}
  
 function Bone() {
 url = "http://media.pearsoncmg.com/bc/bc_martini_fap_8/bonereview/index.html";
 string="location=no";
 BoneWin = window.open(url,"content",string);
}
 

function openCrossWord(chapter){
	var crossPath= "http://media.pearsoncmg.com/bc/bc_martini_fap_8/crosswords/ch" + chapter +".html";
	string = "menubar=no,toolbar=no,location=no,status=no,scrollbars=auto,resizable=yes,width=850,height=700,left=100,top=100";
	cWin = window.open(crossPath,'CrossWords',string);	
}

function CrossWordLink(){	
	document.write("<a href='javascript:void(0);' onclick=\"openCrossWord(chapter);\"'>Fact and Terms</a>");
}
 

function cStudies(chapter){
url = "http://media.pearsoncmg.com/bc/bc_martini_fap_8/case_studies/cs_index.html";
 string="location=no";
 cStudies = window.open(url,"content");
}
var chpArray = new Array()	
/* =========================================
Level 1: Reviewing Facts & Terms
f1: Labeling | f2 Matching | f3 Multiple-Choice | f4 True/False 

Level 2: Reviewing Concepts
c1: Fill-in-the-Blank | c2: Multiple-Choice | c3: Essay 

Level 3: Critical Thinking
ct: Essay

ct: Chapter Practice Test
=========================================*/
  
chpArray["01"] =  [ ["93/23992/6142037"],//Level 1: Reviewing Facts & Terms Labeling
						["149/38379/9825091"],//Level 1: Reviewing Facts & Terms Matching
						["93/23992/6142055"],//Level 1: Reviewing Facts & Terms Multiple-Choice 
						["93/23992/6142081"],//Level 1: Reviewing Facts & TermsTrue/False
						["93/23992/6142018"],//Level 2: Reviewing Concepts Fill-in-the-Blank
						["93/23992/6142027"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23992/6142011"],//Level 2: Reviewing Concepts Essay
						["93/23992/6142007"],//Level 3: Critical Thinking
						["93/23992/6141956"]];//Chapter Practice Test 
chpArray["02"] =  [["93/23992/6142183"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23992/6142186"],//Level 1: Reviewing Facts & Terms Matching
						["93/23992/6142192"],//Level 1: Reviewing Facts & Terms Multiple-Choice
						["93/23993/6142218"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23992/6142161"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23992/6142168"],//Level 2: Reviewing Concepts  Multiple-Choice
						["93/23992/6142148"],//Level 2: Reviewing Concepts Essay
						["93/23992/6142142"],//Level 3: Critical Thinking
						["93/23992/6142091"]];//Chapter Practice Test 
chpArray["03"] =  [["93/23993/6142311"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23993/6142316"],//Level 1: Reviewing Facts & TermsMatching
						["93/23993/6142323"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23993/6142349"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23993/6142294"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23993/6142299"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23993/6142283"],//Level 2: Reviewing Concepts Essay
						["93/23993/6142279"],//Level 3: Critical Thinking
						["93/23993/6142228"]];//Chapter Practice Test 
chpArray["04"] =  [["93/23993/6142444"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23993/6142447"],//Level 1: Reviewing Facts & TermsMatching
						["93/23993/6142455"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23994/6142481"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23993/6142425"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23993/6142429"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23993/6142413"],//Level 2: Reviewing Concepts Essay
						["93/23993/6142410"],//Level 3: Critical Thinking
						["93/23993/6142359"]];//Chapter Practice Test 
						
chpArray["05"] =  [["93/23994/6142572"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23994/6142580"],//Level 1: Reviewing Facts & TermsMatching
						["93/23994/6142587"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23994/6142613"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23994/6142552"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23994/6142556"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23994/6142545"],//Level 2: Reviewing Concepts Essay
						["93/23994/6142542"],//Level 3: Critical Thinking
						["93/23994/6142491"]];//Chapter Practice Test 
						
chpArray["06"] =  [["93/23994/6142713"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23994/6142717"],//Level 1: Reviewing Facts & TermsMatching
						["93/23995/6142723"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23995/6142749"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23994/6142691"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23994/6142698"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23994/6142677"],//Level 2: Reviewing Concepts Essay
						["93/23994/6142673"],//Level 3: Critical Thinking
						["93/23994/6142623"]];//Chapter Practice Test 
						
chpArray["07"] =  [["93/23995/6142846"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23995/6142851"],//Level 1: Reviewing Facts & TermsMatching
						["93/23995/6142857"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23995/6142883"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23995/6142825"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23995/6142831"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23995/6142816"],//Level 2: Reviewing Concepts Essay
						["93/23995/6142810"],//Level 3: Critical Thinking
						["93/23995/6142759"]];//Chapter Practice Test 
						
chpArray["08"] =  [["93/23996/6142976"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23996/6142979"],//Level 1: Reviewing Facts & TermsMatching
						["93/23996/6142983"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23996/6143009"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23995/6142956"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23995/6142963"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23995/6142949"],//Level 2: Reviewing Concepts Essay
						["93/23995/6142944"],//Level 3: Critical Thinking
						["93/23995/6142893"]];//Chapter Practice Test 
						
chpArray["09"] =  [["93/23996/6143100"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23996/6143103"],//Level 1: Reviewing Facts & TermsMatching
						["93/23996/6143108"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23996/6143134"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23996/6143080"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23996/6143088"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23996/6143074"],//Level 2: Reviewing Concepts Essay
						["93/23996/6143070"],//Level 3: Critical Thinking
						["93/23996/6143019"]];//Chapter Practice Test 
						
chpArray["10"] =  [["93/23997/6143232"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23997/6143269"],//Level 1: Reviewing Facts & TermsMatching
						["93/23997/6143237"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23997/6143263"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23996/6143212"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23996/6143221"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23996/6143199"],//Level 2: Reviewing Concepts Essay
						["93/23996/6143195"],//Level 3: Critical Thinking
						["93/23996/6143144"]];//Chapter Practice Test 
						
chpArray["11"] =  [["93/23997/6143372"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23997/6143376"],//Level 1: Reviewing Facts & TermsMatching
						["93/23997/6143382"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23997/6143408"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23997/6143350"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23997/6143356"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23997/6143337"],//Level 2: Reviewing Concepts Essay
						["93/23997/6143331"],//Level 3: Critical Thinking
						["93/23997/6143279"]];//Chapter Practice Test 
						
chpArray["12"] =  [["93/23998/6143511"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23998/6143515"],//Level 1: Reviewing Facts & TermsMatching
						["93/23998/6143521"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23998/6143547"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23998/6143489"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23998/6143495"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23997/6143476"],//Level 2: Reviewing Concepts Essay
						["93/23997/6143469"],//Level 3: Critical Thinking
						["93/23997/6143418"]];//Chapter Practice Test 
						
chpArray["13"] =  [["93/23998/6143655"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23998/6143659"],//Level 1: Reviewing Facts & TermsMatching
						["93/23998/6143665"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23998/6143691"],//Level 1: Reviewing Facts & TermsTrue/False
						["93/23998/6143633"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23998/6143639"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23998/6143618"],//Level 2: Reviewing Concepts Essay
						["93/23998/6143608"],//Level 3: Critical Thinking
						["93/23998/6143557"]];//Chapter Practice Test 
						
chpArray["14"] =  [["93/23999/6143801"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23999/6143805"],//Level 1: Reviewing Facts & TermsMatching
						["93/23999/6143810"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23999/6143836"],//Level 1: Reviewing Facts & TermsTrue/False
						["93/23999/6143779"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23999/6143785"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23999/6143762"],//Level 2: Reviewing Concepts Essay
						["93/23999/6143752"],//Level 3: Critical Thinking
						["93/23998/6143701"]];//Chapter Practice Test 
						
chpArray["15"] =  [["93/23999/6143942"],//Level 1: Reviewing Facts & Terms Labeling
						["93/23999/6143946"],//Level 1: Reviewing Facts & TermsMatching
						["93/23999/6143951"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/23999/6143976"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/23999/6143924"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/23999/6143930"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/23999/6143907"],//Level 2: Reviewing Concepts Essay
						["93/23999/6143897"],//Level 3: Critical Thinking
						["93/23999/6143846"]];//Chapter Practice Test 
						
chpArray["16"] =  [["93/24000/6144082"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24000/6144086"],//Level 1: Reviewing Facts & TermsMatching
						["93/24000/6144091"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24000/6144117"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24000/6144060"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24000/6144066"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24000/6144043"],//Level 2: Reviewing Concepts Essay
						["93/24000/6144037"],//Level 3: Critical Thinking
						["93/23999/6143986"]];//Chapter Practice Test 
						
chpArray["17"] =  [["93/24000/6144224"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24000/6144228"],//Level 1: Reviewing Facts & TermsMatching
						["93/24000/6144234"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24001/6144260"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24000/6144202"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24000/6144208"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24000/6144189"],//Level 2: Reviewing Concepts Essay
						["93/24000/6144178"],//Level 3: Critical Thinking
						["93/24000/6144127"]];//Chapter Practice Test 
						
chpArray["18"] =  [["93/24001/6144371"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24001/6144375"],//Level 1: Reviewing Facts & TermsMatching
						["93/24001/6144381"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24001/6144407"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24001/6144349"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24001/6144355"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24001/6144332"],//Level 2: Reviewing Concepts Essay
						["93/24001/6144321"],//Level 3: Critical Thinking
						["93/24001/6144270"]];//Chapter Practice Test 
						
chpArray["19"] =  [["96/24618/6302371"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24002/6144518"],//Level 1: Reviewing Facts & TermsMatching
						["93/24002/6144524"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24002/6144550"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24001/6144496"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24001/6144502"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24001/6144479"],//Level 2: Reviewing Concepts Essay
						["93/24001/6144468"],//Level 3: Critical Thinking
						["93/24001/6144417"]];//Chapter Practice Test 
						
chpArray["20"] =  [["93/24002/6144651"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24002/6144654"],//Level 1: Reviewing Facts & TermsMatching
						["93/24002/6144659"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24002/6144700"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24002/6144631"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24002/6144636"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24002/6144621"],//Level 2: Reviewing Concepts Essay
						["93/24002/6144611"],//Level 3: Critical Thinking
						["93/24002/6144560"]];//Chapter Practice Test 
						
chpArray["21"] =  [["93/24003/6144811"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24003/6144815"],//Level 1: Reviewing Facts & TermsMatching
						["93/24003/6144821"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24003/6144847"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24003/6144789"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24003/6144795"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24003/6144772"],//Level 2: Reviewing Concepts Essay
						["93/24002/6144761"],//Level 3: Critical Thinking
						["93/24002/6144710"]];//Chapter Practice Test 
						
chpArray["22"] =  [["93/24003/6144958"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24003/6144962"],//Level 1: Reviewing Facts & TermsMatching
						["93/24003/6144968"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24003/6144994"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24003/6144936"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24003/6144942"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24003/6144919"],//Level 2: Reviewing Concepts Essay
						["93/24003/6144908"],//Level 3: Critical Thinking
						["93/24003/6144857"]];//Chapter Practice Test 
						
chpArray["23"] =  [["93/24004/6145097"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24004/6145100"],//Level 1: Reviewing Facts & TermsMatching
						["93/24004/6145104"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24004/6145145"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24004/6145078"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24004/6145084"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24004/6145061"],//Level 2: Reviewing Concepts Essay
						["93/24004/6145055"],//Level 3: Critical Thinking
						["93/24003/6145004"]];//Chapter Practice Test 
						
chpArray["24"] =  [["93/24004/6145256"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24004/6145260"],//Level 1: Reviewing Facts & TermsMatching
						["93/24004/6145266"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24005/6145292"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24004/6145234"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24004/6145240"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24004/6145217"],//Level 2: Reviewing Concepts Essay
						["93/24004/6145206"],//Level 3: Critical Thinking
						["93/24004/6145155"]];//Chapter Practice Test 
						
chpArray["25"] =  [["93/24005/6145400"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24005/6145404"],//Level 1: Reviewing Facts & TermsMatching
						["93/24005/6145410"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24005/6145436"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24005/6145378"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24005/6145384"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24005/6145361"],//Level 2: Reviewing Concepts Essay
						["93/24005/6145353"],//Level 3: Critical Thinking
						["93/24005/6145302"]];//Chapter Practice Test 
						
chpArray["26"] =  [["93/24006/6145546"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24006/6145550"],//Level 1: Reviewing Facts & TermsMatching
						["93/24006/6145556"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24006/6145582"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24005/6145524"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24005/6145530"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24005/6145508"],//Level 2: Reviewing Concepts Essay
						["93/24005/6145497"],//Level 3: Critical Thinking
						["93/24005/6145446"]];//Chapter Practice Test 
						
chpArray["27"] =  [["93/24006/6145688"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24006/6145692"],//Level 1: Reviewing Facts & TermsMatching
						["93/24006/6145697"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24006/6145723"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24006/6145666"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24006/6145672"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24006/6145653"],//Level 2: Reviewing Concepts Essay
						["93/24006/6145643"],//Level 3: Critical Thinking
						["93/24006/6145592"]];//Chapter Practice Test 
						
chpArray["28"] =  [["93/24007/6145829"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24007/6145833"],//Level 1: Reviewing Facts & TermsMatching
						["93/24007/6145839"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24007/6145865"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24007/6145812"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24007/6145818"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24007/6145795"],//Level 2: Reviewing Concepts Essay
						["93/24006/6145784"],//Level 3: Critical Thinking
						["93/24006/6145733"]];//Chapter Practice Test 
						
chpArray["29"] =  [["93/24007/6145976"],//Level 1: Reviewing Facts & Terms Labeling
						["93/24007/6145980"],//Level 1: Reviewing Facts & TermsMatching
						["93/24007/6145986"],//Level 1: Reviewing Facts & TermsMultiple-Choice
						["93/24007/6146012"],//Level 1: Reviewing Facts & TermsTrue/False 
						["93/24007/6145954"],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						["93/24007/6145960"],//Level 2: Reviewing Concepts Multiple-Choice
						["93/24007/6145937"],//Level 2: Reviewing Concepts Essay
						["93/24007/6145926"],//Level 3: Critical Thinking
						["93/24007/6145875"]];//Chapter Practice Test 
						

						
/*======================================================
chpArray["xx"] =  [[""],//Level 1: Reviewing Facts & Terms Labeling
						[""],//Level 1: Reviewing Facts & TermsMatching
						[""],//Level 1: Reviewing Facts & TermsMultiple-Choice
						[""],//Level 1: Reviewing Facts & TermsTrue/False 
						[""],//Level 2: Reviewing Concepts  Reviewing Concepts Fill-in-the-Blank
						[""],//Level 2: Reviewing Concepts Multiple-Choice
						[""],//Level 2: Reviewing Concepts Essay
						[""],//Level 3: Critical Thinking
						[""]];//Chapter Practice Test 
				
====================================================*/
var url ="http://wps.aw.com/bc_martini_fap_8_oa/";
var html =".cw/content/index.html"; 

//Level 1: Reviewing Facts & Terms Reviewing Facts & Terms
function openFC(chapter,quizType )
{	var newArray = chpArray[chapter]	 
	  
 	var lab= document.write('<ul><li><a href="'+url+newArray[0]+html+'">Labeling</a></li>');	 
	var mat = document.write('<li><a href="'+url+newArray[1]+html+'">Matching</a></li>');
	var mc = document.write('<li><a href="'+url+newArray[2]+html+'">Multiple-Choice</a></li>');
	var fib = document.write('<li><a href="'+url+newArray[3]+html+'">True/False</a></li></ul>');
	return;
}

//Level 2: Reviewing Concepts  Reviewing Concepts Reviewing Concepts
function openRC(chapter)
{	 
 
		 
	var newArray = chpArray[chapter]	
	var L2_FIB = document.write('<ul><li><a href="'+url+newArray[4]+html+'">Fill-in-the-Blank</a><br>');


	var L2_MC = document.write('<li><a href="'+url+newArray[5]+html+'">Multiple-Choice</a></li>');
	var L2_ESSAY = document.write('<li><a href="'+url+newArray[6]+html+'">Essay</a></li></ul>');
	return ;
	 	
}

//Level 3: Critical Thinking
function openCT(chapter)
{
	var newArray = chpArray[chapter]
	if((document.referrer.indexOf('cms')!=-1)||(document.referrer.indexOf('bbauth')!=-1)||(document.referrer.indexOf('wpscms')!=-1)||(document.referrer.indexOf('coursecompass')!=-1))
		{
		url="http://wps.aw.com/bc_martini_fap_8_oa/"; 
		} else {
		url ="http://wps.aw.com/bc_martini_fap_8_oa/";
		}
	var CT = document.write('<ul><li><a href="'+url+newArray[7]+html+'">Essay</a></li></ul>');
	return;
}
 
//for chapter quizzes page
function writeQuizText(quizType)
{ 
	switch (quizType)
	{
		case ('FC_CG'):
		document.write('<div class="subheader">Chapter Quizzes</div><span class="blackSection">Level 1: Reviewing Facts & Terms</span>');
			break;
		case ('RC_CG'):
		document.write('<span class="blackSection">Level 2: Reviewing Concepts</span>');
			break;
		case ('CT_CG'):
		document.write('<span class="blackSection">Level 3: Critical Thinking</span>');
			 break;
		case ('FC_CQ'):
			document.write('<p<span class="blackSection">Level 1: Reviewing Facts & Terms</span><br>Anatomy and physiology are both fact-intensive sciences. A  thorough understanding of these fields requires the ability to recall important  facts using the proper terminology. The following questions are designed to  help you with this first step. After reading and reviewing the text, check your  proficiency by answering the presented questions. Correct answers are given at  the end of the exercise.</p>');
			break;
		case ('RC_CQ'):
			document.write('<span class="blackSection">Level 2: Reviewing Concepts</span><br>Understanding the physiological processes at work in the  body is not an easy task. Underlying, basic concepts must be clearly understood  before the more-complex and specialized functions of specific organs can be  clarified. The following questions are designed to assist you in learning the  concepts necessary to move forward in your studies. Read the appropriate  portions of the text before attempting to answer these. Correct answers can be  found at the end of the section.');
			break;
		case ('CT_CQ'):document.write('<span class="blackSection">Level 3: Critical Thinking</span><br>A true test of understanding anatomy and physiology is the  ability to predict behavior in novel circumstances. Many situations that you  will find as you continue your studies of the human body are not specifically  explained in the pages of the text. You will be required to analyze the setting  and suggest possible expectations based on your understanding. After studying your text, practice these skills by critically analyzing the following  questions and making predictions based on your newly acquired facts.');
			break;
	}
}


//Chapter Practice Test
function openPT(chapter)
{
	var newArray = chpArray[chapter]
	if((document.referrer.indexOf('cms')!=-1)||(document.referrer.indexOf('bbauth')!=-1)||(document.referrer.indexOf('wpscms')!=-1)||(document.referrer.indexOf('coursecompass')!=-1))
		{
		url="http://wps.aw.com/bc_martini_fap_8_oa/"; 
		} else {
		url ="http://wps.aw.com/bc_martini_fap_8_oa/";
		}
	var PT = document.write('<ul><li>Chapter Practice Test</li><li><a href="'+url+newArray[8]+html+'">Chapter Practice Test</a></li></ul>');
	return;
}
 	
function feedback()
{
form = window.open("/wps/media/objects/5997/6141951/feedback/wlfeedback.html","feedback","toolbar=no,location=no,status=no,width=520,height=400")
}

function openTutorial(tutorial) {
	var tutPath ='http://media.pearsoncmg.com/bc/bc_martini_fap_7e/'+tutorial;
	var openActivity = window.open(tutPath,'Tutorial','menubar=no,toolbar=no,location=no,status=no,scrollbars=auto,resizable=no,width=820,height=615,screenX=100,screenY=100,left=100,top=100');
    if(openActivity.opener == null) openActivity.opener = window;
		openActivity.focus();
 
}
 
//sTools
function writeStools(chapter)
{ 
 
	//	document.write('<a href="http://wps.aw.com/bc_martini_fap_8_oa/5243561.cw/index.html">Histology Review</a><br>');
	//	document.write('<a href="'+url+'"5243616"'+html+'">Bone Review</a><br>');
	//	document.write('<a href="'+url+'"5243617"'+html+'">Muscle Review</a><br>');
		document.write('<A href="javascript:openFlash();">Flashcards</a><br>');
		document.write('<A href="javascript:openGloss();">Glossary</a><br>');
		document.write('<A href="javascript:cStudies();">Case Studies</a><br>');	
}

 
var wLinkArray = new Array()
wLinkArray["01"] = ["93/23992/6142087"]
wLinkArray["02"] = ["93/23993/6142224"]
wLinkArray["03"] = ["93/23993/6142355"]
wLinkArray["04"] = ["93/23994/6142487"]
wLinkArray["05"] = ["93/23994/6142619"]
wLinkArray["06"] = ["93/23995/6142755"]
wLinkArray["07"] = ["93/23995/6142889"]
wLinkArray["08"] = ["93/23996/6143015"]
wLinkArray["09"] = ["93/23996/6143140"]
wLinkArray["10"] = ["93/23997/6143275"]
wLinkArray["11"] = ["93/23997/6143414"]
wLinkArray["12"] = ["93/23998/6143553"]
wLinkArray["13"] = ["93/23998/6143697"]
wLinkArray["14"] = ["93/23999/6143842"]
wLinkArray["15"] = ["93/23999/6143982"]
wLinkArray["16"] = ["93/24000/6144123"]
wLinkArray["17"] = ["93/24001/6144266"]
wLinkArray["18"] = ["93/24001/6144413"]
wLinkArray["19"] = ["93/24002/6144556"]
wLinkArray["20"] = ["93/24002/6144706"]
wLinkArray["21"] = ["93/24003/6144853"]
wLinkArray["22"] = ["93/24003/6145000"]
wLinkArray["23"] = ["93/24004/6145151"]
wLinkArray["24"] = ["93/24005/6145298"]
wLinkArray["25"] = ["93/24005/6145442"]
wLinkArray["26"] = ["93/24006/6145588"]
wLinkArray["27"] = ["93/24006/6145729"]
wLinkArray["28"] = ["93/24007/6145871"]
wLinkArray["29"] = ["93/24007/6146018"]
  

//http://wps.aw.com/bc_martini_fap_8_oa/54"+chpQuiz[1]+".cw/content/index.html"; bc_martini_fap_8/79/20474/5241494.cw/index.html
function openWebLinks(chapter)
{	
	var newArray = wLinkArray[chapter]
 	path = url+newArray[0]+html;
	var openWebLinks = window.open(path,'content');
	openWebLinks.focus();
}
 

//for MS activities***************************
function openmsact(fileName) {
var newWindow = window.open("","myAct","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=1,width=800,height=600");
newWindow.document.write(getProps(fileName));
newWindow.document.close();
newWindow.focus();
}  

function getProps(fileName) { 
if (fileName.indexOf("dcr") != -1){
   var  properties = "<html><head><title>Tutorial</title></head><body bgColor='#ffffff' ><center><OBJECT CLASSID='clsid:166B1BCA-3F9C-11CF-8075-444553540000' CODEBASE='http://active.macromedia.com/director/cabs/sw.cab#version=6,0,0,0' width='750' height='550' NAME='"+fileName+"'><PARAM NAME='SRC' VALUE='"+fileName+"'><PARAM name='AUTOPLAY' VALUE='true'><PARAM name='ALIGN' VALUE='CENTER'><embed SRC='"+fileName+"' autoplay='true' width='750' height='550' NAME='"+fileName+"' align='center'></embed></OBJECT></center></body></html>";} 

else if (fileName.indexOf("DCR") != -1){
   var  properties = "<html><head><title>Tutorial</title></head><body bgColor='#ffffff' ><center><OBJECT CLASSID='clsid:166B1BCA-3F9C-11CF-8075-444553540000' CODEBASE='http://active.macromedia.com/director/cabs/sw.cab#version=6,0,0,0' width='750' height='550' NAME='"+fileName+"'><PARAM NAME='SRC' VALUE='"+fileName+"'><PARAM name='AUTOPLAY' VALUE='true'><PARAM name='ALIGN' VALUE='CENTER'><embed SRC='"+fileName+"' autoplay='true' width='750' height='550' NAME='"+fileName+"' align='center'></embed></OBJECT></center></body></html>";} 

else if (fileName.indexOf("swf") != -1){
   var  properties = "<html><head><title>Activity</title></head><body bgColor='#ffffff'><center><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='100%' height='100%' id='movie' align=''><param name='movie' value='"+fileName+"'><PARAM name='AUTOPLAY' VALUE='true'><embed src='"+fileName+"' quality='high' width='100%' height='100%' name='movie' align='' autoplay='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></center></body></html>";}

else if (fileName.indexOf("SWF") != -1){
   var  properties = "<html><head><title>Activity</title></head><body bgColor='#ffffff' ><center><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='100%' height='100%' id='movie' align=''><param name='movie' value='"+fileName+"'><PARAM name='AUTOPLAY' VALUE='true'><embed src='"+fileName+"' quality='high' width='100%' height='100%' name='movie' align='' autoplay='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></center></body></html>";}

else if (fileName.indexOf("mov") != -1){
   var  properties = "<html><head><title>Movie</title></head><body bgColor='#ffffff' ><center><OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' WIDTH='100%' HEIGHT='100%' CODEBASE='http://www.apple.com/qtactivex/qtplugin.cab'><PARAM name='SRC' VALUE='"+fileName+"'><PARAM name='AUTOPLAY' VALUE='true'><PARAM name='CONTROLLER' VALUE='true'><EMBED SRC='"+fileName+"' WIDTH='100%' HEIGHT='100%' AUTOPLAY='true' CONTROLLER='true' PLUGINSPAGE='http://www.apple.com/quicktime/download/'></EMBED></OBJECT></center></body></html>";}

else if (fileName.indexOf("MOV") != -1){
   var  properties = "<html><head><title>Movie</title></head><body bgColor='#ffffff' ><center><OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' WIDTH='100%' HEIGHT='100%' CODEBASE='http://www.apple.com/qtactivex/qtplugin.cab'><PARAM name='SRC' VALUE='"+fileName+"'><PARAM name='AUTOPLAY' VALUE='true'><PARAM name='CONTROLLER' VALUE='true'><EMBED SRC='"+fileName+"' WIDTH='100%' HEIGHT='100%' AUTOPLAY='true' CONTROLLER='true' PLUGINSPAGE='http://www.apple.com/quicktime/download/'></EMBED></OBJECT></center></body></html>";}

else if (fileName.indexOf("htm") != -1){
   var  properties = "<html><head><body bgColor='#ffffff' ><script language='JavaScript'>document.location.href='"+fileName+"';</script></body></html>";}

else if (fileName.indexOf("HTM") != -1){
   var  properties = "<html><head><body bgColor='#ffffff' ><script language='JavaScript'>document.location.href='"+fileName+"';</script></body></html>";}

else if (fileName.indexOf("html") != -1){
   var  properties = "<html><head><body bgColor='#ffffff' ><script language='JavaScript'>document.location.href='"+fileName+"';</script></body></html>";}

else if (fileName.indexOf("HTML") != -1){
   var  properties = "<html><head><body bgColor='#ffffff' ><script language='JavaScript'>document.location.href='"+fileName+"';</script></body></html>";}

else {
   var  properties = "<html><head><body bgColor='#ffffff' leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'><script language='JavaScript'>document.location.href='"+fileName+"';</script></body></html>";}

return properties; 
 } 
 
