// LegoBookList.js -- called by legoinfo.htm

var arrayLegoBooks = new Array
	(
	"Lego Crazy Action Contraptions ","17.96","1570541574","Book + LEGO bricks & Technic pieces with lots of interesting constructions ideas",
	"Ultimate Lego Book","17.95","078944691X","This is a wonderful reference book for anyone with any level of Lego interest",
	"Lego Modelers: Amazing Animals","4.45","0789447754","Good construction guide for children and kids-at-heart",
	"Lego Modelers: Fabulous Figures","4.45","0789447770","Another good construction guide book",
	"Lego Creator : Official Activity Book","11.99","1566868351","Official guidebook for the LEGO Creator software",
	"DUPLO Police Station and Fire Department (2811)","49.99","B00000JIVR","Duplo (large block) theme kit",
	"DUPLO Deluxe Western Set (2435)","29.99","B00000JH3G","Duplo (large blocks) theme kit",
	"MINDSTORMS Robotics Invention System 1.5 (9747)","199.99","B0000326N9","The basis for all Mindstorms activity",
	"MINDSTORMS Ultimate Accessory Set (3801)","49.99","B00004T30S","Infrared remote control, touch sensor, rotation sensor and more",
	"MINDSTORMS Vision Command (9731)","99.99","B00004T30W","One word: AWESOME!",
	"MINDSTORMS Exploration Mars (9736)","49.99","B00004T30R","Build Mars rover, retrieval arm, etc.",
	"MINDSTORMS Droid Developer Kit (9748)","99.99","B0000326NB","Build your own R2D2 and other Star Wars droids",
	"MINDSTORMS Robo Sports (9730)","49.99","B00004T30T","Build sports-themed robots",
	"MINDSTORMS Dark Side Developer Kit (9754)","99.99","B00004T30V","Build more droids",
	"MINDSTORMS Extreme Creatures (9732)","49.99","B00004T30U","Think: Borg-like creatures :-)",
	"Dave Baum's Definitive Guide to LEGO Mindstorms","19.96","1893115097","One of two available books about Lego Mindstorms",
	"The Unofficial Guide to LEGO MINDSTORMS Robots","19.96","1565926927","The other Lego Mindstorms book",
	"Legoland (Software)","24.99","B00002EPYP","Like a Sim-Legoland",
	"LEGO Loco (Software)","7.99","B00002EPYM","Lego train fans will probably not like it. But, I find it very relaxing to watch the train run around a track of my design. I do wish it had a few more features though.",
	"LEGO Racers (Software)","19.99","B00002EPYQ","People seem to like this one a lot",
	"LEGO Action Team (Software)","29.99","B00004XP74","Have not seen this one yet",
	"LEGO Creator System: Knight's Kingdom (Software)","29.99","B00004XOX6","Have not seen this one yet",
	"LEGO Stunt Rally (Software)","29.99","B00004XP72","Have not seen this one yet",
	"LEGO My Style: Kindergarten (Software)","19.99","B00004XOWX","Have not seen this one yet",
	"LEGO My Style: Preschool (Software)","19,99","B00004XOWU","Have not seen this one yet"
	)
//	"Gold Robber (Lego Books)","3.96","0789436523","Children's novel",
//	"Insectoid Invasion (Lego Books)","3.96","0789437309","Children's novel",
//	"Jewel Thief (Lego Books)","3.96","0789436531","Children's novel",
//	"Spy Catcher (Lego Books)","3.96","078943654X","Children's novel",
//	"Treasure Smuggler (Lego Books)","3.96","0789436558","Children's novel",
//	"Castle Mystery (Lego Books)","3.96","0789437287","Children's novel",

function dwrite(strParm)
{
	document.write(strParm)
}

function getItemInfo(itemTitle, itemPrice, itemASIN, itemDescription)
{
	dwrite("<TR VALIGN=\"top\">")
	
	dwrite("<TD>")
	dwrite("<A HREF=\"http://www.amazon.com/exec/obidos/ASIN/" +
			itemASIN +
			"/totechcom\">")
	dwrite(itemTitle + "</A>")
	dwrite("</TD>")
	
	dwrite("<TD align=\"right\">")
	dwrite("$" + itemPrice)
	dwrite("</TD>")
	
	dwrite("<TD>")
	dwrite(itemDescription)
	dwrite("</TD>")

	
	dwrite("</TR>")
}

// name of Array passed via arrayPtr
function loopThruStocks (arrayPtr)
{
	for (var i=0; i<arrayPtr.length; i+=4)
	{
		getItemInfo(arrayPtr[i],arrayPtr[i+1],arrayPtr[i+2],arrayPtr[i+3]);
	}
}

loopThruStocks(arrayLegoBooks);