function showLinkList(ignorePID,linksep){
	var key;
	var link;
	if(typeof(ignorePID) == "undefined") ignorePID = 0;
	if(typeof(linksep) == "undefined") linksep = "<br/>";

	for (key in productsInstalled){
		if (productsInstalled[key][1] & ignorePID != key) {
			link = "<a class='productlinks' href='../" + productsInstalled[key][2] + productsInstalled[key][3] + "'>" + productsInstalled[key][0] + "</a>"+linksep;
			document.write(link);
		}
	}
}
function showLink(pid){
	if (pid == "11" || pid == "12"){
		link = "<p class=\"SectionBody\">Your computer is now ready to use the following Kinetic Books products.</p><a href=\"../trialpse/toc.html\">Trial Physics for Scientists and Engineers</a><br><a href=\"../triallabs/tocLabs.html\">Trial Virtual Physics Labs</a>";
		}
	else if(pid!=null && pid!=""){
		link = "<a class='productlinks' href='../" + productsInstalled[pid][2] + productsInstalled[pid][3] + "'>" + productsInstalled[pid][0] + "</a>";
		}
	else{
		link = "<p class=\"SectionBody\">Your computer is now ready to use Kinetic Books products, you can open the <a href=\"../toc.html\">Table of Contents</a> for the textbook, or open the virtual labs <a href=\"../tocLabs.html\">Table of Contents</a>.</p>";
		}
	document.write(link);
	}

function writeinstaller(pid){
	if(pid==7){
		document.write("<a href=\"http://www.kineticbooks.com/physics/labs/online_installer/downloads/install.html\">");
		}
	else if(pid==8){
		document.write("<a href=\"http://www.kineticbooks.com/physics/pse/online_installer/downloads/install.html\">");
		}
	else if(pid==9){
		document.write("<a href=\"http://www.kineticbooks.com/physics/princ/online_installer/downloads/install.html\">");
		}
	else if(pid==10){
		document.write("<a href=\"http://www.kineticbooks.com/physics/conc/online_installer/downloads/install.html\">");
		}
	else if(pid==12){
		document.write("<a href=\"http://www.kineticbooks.com/physics/trialpse/online_installer/downloads/install.html\">");
		}
	else{
		document.write("<a href=\"http://www.kineticbooks.com/downloads/install.php\">");
		}
	}
productsInstalled = new Array();
productsInstalled[1]  = ["Virtual Physics Labs",false,"Virtual_Physics_Labs/","tocLabs.html"];
productsInstalled[2]  = ["Physics for Scientists and Engineers",false,"Physics_for_Scientists_and_Engineers/","toc.html"];
productsInstalled[3]  = ["Principles of Physics",false,"Principles_of_Physics/","toc.html"];
productsInstalled[4]  = ["Conceptual Physics",false,"Conceptual_Physics/","toc.html"];
productsInstalled[5]  = ["Trial_Virtual Physics Labs",false,"Trial_Virtual_Physics_Labs/","tocLabs.html"];
productsInstalled[6]  = ["Trial_Physics for Scientists and Engineers",false,"Trial_Physics_for_Scientists_and_Engineers/","toc.html"];
productsInstalled[7]  = ["Virtual Physics Labs online",false,"labs/","tocLabs.html"];
productsInstalled[8]  = ["Physics for Scientists and Engineers online",false,"pse/","toc.html"];
productsInstalled[9]  = ["Principles of Physics online",false,"princ/","toc.html"];
productsInstalled[10]  = ["Conceptual Physics online",false,"conc/","toc.html"];
productsInstalled[11]  = ["Trial_Virtual Physics Labs",false,"triallabs/","tocLabs.html"];
productsInstalled[12]  = ["Trial_Physics for Scientists and Engineers",false,"trialpse/","toc.html"];
