	// Javascript used to change the page title according
	// to whichever shopping cart category or page we're on
	// ------------------------------------------------------
	var HighestLevelCat = 0;

	// Set up arrays
	var categoryIDArray = new Array();
	var pageNameArray = new Array();
	var htmlCodeArray = new Array();

	// Function used to put new information into the array
	function addPageTitle(categoryID, pageName, htmlCode){
		categoryIDArray.push(categoryID);
		pageNameArray.push(pageName);
		htmlCodeArray.push(htmlCode)
	}
	
	addPageTitle(
		'78', // Shopping Cart Category ID
		'Apologia', // Category Title
		'<a href="/ProductCart/pc/viewCategories.asp?idCategory=78"><img src="/images/pagetitles/apologia.gif" alt="Apologia" width="750" height="68" border="0" /></a>' // HTML Code to put in PageTitle DIV if everything matches to this
	);
	
	addPageTitle(
		'212', // Shopping Cart Category ID
		'ScienceAndNature', // Category Title
		'<a href="/ProductCart/pc/viewCategories.asp?idCategory=212"><img src="/images/pagetitles/science-nature.gif" alt="Science and Nature" width="750" height="68" border="0" /></a>' // HTML Code to put in PageTitle DIV if everything matches to this
	);
	
	addPageTitle(
		'213', // Shopping Cart Category ID
		'ArtAndMusic', // Category Title
		'<a href="/ProductCart/pc/viewCategories.asp?idCategory=213"><img src="/images/pagetitles/art-music.gif" alt="Art and Music" width="750" height="68" border="0" /></a>' // HTML Code to put in PageTitle DIV if everything matches to this
	);
	
	addPageTitle(
		'214', // Shopping Cart Category ID
		'Other', // Category Title
		'<a href="/ProductCart/pc/viewCategories.asp?idCategory=214"><img src="/images/pagetitles/other.gif" alt="Other" width="750" height="68" border="0" /></a>' // HTML Code to put in PageTitle DIV if everything matches to this
	);

	// The function called from the bottom of the template when the page loads:
	function changeTitleImage(catID){
		// Loop through the array of Page Titles till we find which one matches our current section variable
		var matched = false;
		for(i=0; i<categoryIDArray.length; i++){
			if(Number(categoryIDArray[i]) == Number(catID)){
				// Matched up with the shopping cart primary category:
				document.getElementById("PageTitleHTMLDiv").innerHTML = htmlCodeArray[i];
				matched = true;
				break;
			}
		}
	}