//
function miniCart(){
var prdCount = 0, prdString = "", subTotal = (xmlConfig.cartSubTotal > 0)?xmlConfig.cartSubTotal:0;
	if(xmlOHeader.childNodes.length==0) subTotal = 0;
	for(var i=0;i<xmlOHeader.childNodes.length;i++){
		prdCount = prdCount+(parseInt(xmlOHeader.childNodes[i].QuantityAmount));
		};
	prdString += "Amount of Products:<strong>&nbsp;" + prdCount + "</strong><br>";
	prdString += "Subtotal:<strong>&nbsp;" + TFormatCurrency(subTotal, objPriCurrency) + "</strong><br><br>";
	prdString += "<a class=\"WAGRUNAV\" href=\"orderform." + xmlConfig.fileExtension + "\">";
	prdString += "<strong>" + '<img src="assets/images/bullet.gif" width="11" height="14" alt="Bullet.gif" border="0" align="absmiddle" hspace="0" vspace="0" class="catnav">' + "Go to the Orderform</strong></a>";
	return(prdString);
	};
//
var TNavDropDownIndent = ".."
//
function NavLinkedDropDownList(){
	return(TNavDropDownList(true));
	};
//
function NavDropDownList(){
	return(TNavDropDownList(false));
	};
//
function storeSearchParameters(optionValueArray){
var xmlSearchEngine = xmlConfig.getFirstItem("SearchEngine");
	if(optionValueArray[0]!="null"&&optionValueArray[0]!="nada"){
		xmlSearchEngine.categoryIndex = optionValueArray[0];
		xmlSearchEngine.categoryId = optionValueArray[2];
		xmlSearchEngine.ByCategory = "1";
		}
	else{
		xmlSearchEngine.categoryIndex = "null";
		xmlSearchEngine.categoryId = "null";
		xmlSearchEngine.ByCategory = "0";
		};
	};
//
function TNavDropDownList(asLink){
var rString = "";
var myNavIndex = "";
	if(asLink) myNavIndex = xmlConfig.navIndex;
	else myNavIndex = xmlConfig.getFirstItem("SearchEngine").categoryIndex;
	if(!(myNavIndex=="null"||myNavIndex=="")){ navigation[parseInt(myNavIndex)].active = true; };
	if(asLink) rString += "<select name=\"navselect\" onChange=\"changeLoc(this[this.selectedIndex].value.split(';;')[0],this[this.selectedIndex].value.split(';;')[1])\">"
	else rString += "<select name=\"navselect\" onChange=\"storeSearchParameters(this[this.selectedIndex].value.split(';;'))\">";
	rString += "<option value=\"nada;;start.htm;;null\">Categories</option>";
	for(var i=0; i<navigation.length; i++){
		if(navigation[i].parentId==null){
			rString += TNavDropDownItem(navigation[i], "");
			};
		};
	rString += "</select>";
	return(rString);
	};
//
function TNavDropDownItem(navItem, cptPreFix){
var rString = "";
	rString += "<option value=\"" + navItem.id + ";;" + navItem.linkUrl + ";;" + navItem.categoryId + "\"";
	if(navItem.active) rString += " selected";
	rString += ">" + cptPreFix + navItem.caption + "</option>";
	for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) rString += TNavDropDownItem(navigation[i], cptPreFix + TNavDropDownIndent);
	return(rString);	
	};
//
	function openItem(itemId){
	var objActiveItem = null;
		if(itemId!=null){
			objActiveItem = navigation[itemId];
			if(objActiveItem!=null){
				objActiveItem.open = true;
				openItem(objActiveItem.parentId);
				};
			};
		};
		
	function activateItem(itemId){
	var objActiveItem = null;
		if(itemId!=null){
			objActiveItem = navigation[itemId];
			if(objActiveItem!=null){
				objActiveItem.active = true;
				openItem(objActiveItem.parentId);
				};
			};
		};
		
	function itemHasSubelems(itemId){
		for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==itemId) return(true);
		return(false);
		};
	
	function TNavLinkList(){
	var strHTML = "";
		for(var i=0; i<navigation.length; i++) if(navigation[i].parentId==null) strHTML += printItem(navigation[i], 0);
		return(strHTML);
		};	
		
	function printItem(navItem, depth){
	var strHTML = "";
	var elemWidth = 1;
		strHTML += '<table width="100%" class="CATLINKS1STPARENT" border="0" cellpadding="1" cellspacing="0" >';
		strHTML += "<tr>"
		for(var i=0; i<depth; i++){
			strHTML += "<td";
			if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
			else strHTML += " class=\"CATLINKS1STBULLET\"";
			strHTML += ' width="1%"><img src="assets/images/spacer.gif" width="14" height="1" height="1" alt="" border="0"></td>';
			};
		if(navItem.active) strHTML += '<td width="1%" class="ACTIVECATEGORY"><img src="assets/images/bulletcatact.gif" width="11" height="14" alt="BulletCatAct.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		else if(navItem.open&&itemHasSubelems(navItem.id)) strHTML += '<td width="1%" class="CATLINKS1STBULLET"><img src="assets/images/bulletcat1stcls.gif" width="14" height="11" alt="BulletCat1stCls.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		else strHTML += '<td width=\"1%\"><img src="assets/images/bulletcat1st.gif" width="11" height="14" alt="BulletCat1st.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		strHTML += "<td";
		if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
		else strHTML += " class=\"CATLINKS1STBULLET\"";
		strHTML += "width=\"" + ( 100 - ( depth + 1 ) ) + "%\">"
			+ "<a href=\"" + navItem.linkUrl + "?categoryId=" + escape(navItem.id) + "\" class=\"WAGRUNAV\">"
			+ navItem.caption
			+ "</a>"
			+ "</td>";
		strHTML += "</tr>"
		strHTML += "</table>"
		depth++;
		if(navItem.active||navItem.open){
			for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) strHTML += printItem(navigation[i], depth);
			};
		return(strHTML);
		};


//

// navElem
	function navElem(id,caption,linkUrl,parentId,categoryId){
		this.id = id;
		this.caption = caption;
		this.linkUrl = linkUrl;
		this.parentId = parentId;
		this.active = false;
		this.open = false;
		this.categoryId = categoryId;
		};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"Motoring Magazines","pi917235557.htm",null,"Mag");
navigation[1] = new navElem(1,"Autocar&nbsp(40)","pi1173362368.htm",0,"MAG1");
navigation[2] = new navElem(2,"Auto Italia&nbsp(6)","pi1108465670.htm",0,"MAG2");
navigation[3] = new navElem(3,"EVO&nbsp(1)","pi1108505701.htm",0,"MAG3");
navigation[4] = new navElem(4,"Classic and Sports Car&nbsp(3)","pi303117250.htm",0,"MAG4");
navigation[5] = new navElem(5,"Road and Track (USA)&nbsp(4)","pi1208378651.htm",0,"MAG5");
navigation[6] = new navElem(6,"Thoroughbred and Classic Cars&nbsp(2)","pi-2059739259.htm",0,"Mag6");
navigation[7] = new navElem(7,"What Car&nbsp(7)","pi1563656927.htm",0,"What Car");
navigation[8] = new navElem(8,"Alfa Romeo","pi-356326023.htm",null,"Alfa Romeo");
navigation[9] = new navElem(9,"Sales Literature&nbsp(4)","pi1109017431.htm",8,"alfsales");
navigation[10] = new navElem(10,"Aston Martin","pi77917291.htm",null,"Aston");
navigation[11] = new navElem(11,"Press Photo&#0039;s Etc&nbsp(16)","pi886967772.htm",10,"press 27");
navigation[12] = new navElem(12,"Audi","pi1887795118.htm",null,"Audi");
navigation[13] = new navElem(13,"Press Photo&#0039;s etc&nbsp(1)","pi1455157482.htm",12,"AUDpress");
navigation[14] = new navElem(14,"Bentley","pi654372506.htm",null,"Bentley");
navigation[15] = new navElem(15,"BMW","pi1719198911.htm",null,"BMW");
navigation[16] = new navElem(16,"Collectors Models","pi953855344.htm",15,"press3");
navigation[17] = new navElem(17,"Press Photo&#0039;s etc&nbsp(36)","pi1221792030.htm",15,"press4");
navigation[18] = new navElem(18,"Books and Magazines&nbsp(3)","pi-1346194967.htm",15,"Mags 3");
navigation[19] = new navElem(19,"Video&#0039;s and DVD&#0039;s","pi-1088196749.htm",15,"Videos9");
navigation[20] = new navElem(20,"Sales Literature","pi1982936119.htm",15,"Sales3");
navigation[21] = new navElem(21,"Caterham","pi1538318473.htm",null,"Caterham");
navigation[22] = new navElem(22,"Citroen","pi-1495598691.htm",null,"Citroen");
navigation[23] = new navElem(23,"Press Photo&#0039;s Etc&nbsp(6)","pi1828840394.htm",22,"Press 28");
navigation[24] = new navElem(24,"Sales Literature&nbsp(1)","pi256992092.htm",22,"citsales");
navigation[25] = new navElem(25,"Daewoo","pi531434566.htm",null,"Daewoo");
navigation[26] = new navElem(26,"Press Photo&#0039;s Etc&nbsp(1)","pi-195526977.htm",25,"Press 16");
navigation[27] = new navElem(27,"Sales Literature&nbsp(3)","pi25212907.htm",25,"DSALES");
navigation[28] = new navElem(28,"Daihatsu","pi-1942075958.htm",null,"Daihatsu");
navigation[29] = new navElem(29,"Daimler","pi1039273039.htm",null,"Daimler");
navigation[30] = new navElem(30,"Delorean","pi593175524.htm",null,"Delorean");
navigation[31] = new navElem(31,"De Tomaso","pi-1639700715.htm",null,"De Tomaso");
navigation[32] = new navElem(32,"Books and Magazines","pi-1117856964.htm",31,"books");
navigation[33] = new navElem(33,"Ferrari","pi1480333783.htm",null,"Ferrari");
navigation[34] = new navElem(34,"Press Photo&#0039;s Etc&nbsp(11)","pi903844231.htm",33,"Press 6");
navigation[35] = new navElem(35,"Books and Magazines&nbsp(13)","pi1405869756.htm",33,"Mags");
navigation[36] = new navElem(36,"Sales Literature&nbsp(7)","pi-81824326.htm",33,"Sales6");
navigation[37] = new navElem(37,"Collectors Models&nbsp(19)","pi-403501299.htm",33,"Collect 6");
navigation[38] = new navElem(38,"Video&#0039;s and DVD&#0039;s&nbsp(9)","pi-1275115908.htm",33,"video19");
navigation[39] = new navElem(39,"Fiat","pi-2102256244.htm",null,"Fiat");
navigation[40] = new navElem(40,"Press Photo&#0039;s Etc&nbsp(6)","pi-1714156853.htm",39,"PRESS 26");
navigation[41] = new navElem(41,"Sales Literature&nbsp(2)","pi1923208537.htm",39,"fiatsales");
navigation[42] = new navElem(42,"Books and Magazines&nbsp(1)","pi-2068903940.htm",39,"fiatbook");
navigation[43] = new navElem(43,"Ford","pi1091219075.htm",null,"ford");
navigation[44] = new navElem(44,"Collectors Models","pi8738778.htm",43,"ford 1");
navigation[45] = new navElem(45,"Press Photo&#0039;s etc&nbsp(12)","pi417221971.htm",43,"press");
navigation[46] = new navElem(46,"Books and Magazines","pi1300363767.htm",43,"Mags6");
navigation[47] = new navElem(47,"Videos and DVD&#0039;s","pi1361893996.htm",43,"videos");
navigation[48] = new navElem(48,"Sales Literature&nbsp(9)","pi-1630247647.htm",43,"Sales1");
navigation[49] = new navElem(49,"FSO","pi-1708801917.htm",null,"FSO");
navigation[50] = new navElem(50,"Ginetta","pi-715618040.htm",null,"Ginetta");
navigation[51] = new navElem(51,"Honda","pi1632408960.htm",null,"Honda");
navigation[52] = new navElem(52,"Sales Literature&nbsp(1)","pi1511613192.htm",51,"HONsales");
navigation[53] = new navElem(53,"Books and Magazines&nbsp(1)","pi-230845903.htm",51,"honbooks");
navigation[54] = new navElem(54,"Hyundai","pi693615794.htm",null,"Hyundai");
navigation[55] = new navElem(55,"Press Photo&#0039;s Etc&nbsp(3)","pi1671101521.htm",54,"Press 18");
navigation[56] = new navElem(56,"Sales Literature&nbsp(1)","pi-802083549.htm",54,"Hynsalese");
navigation[57] = new navElem(57,"Isuzu","pi632112745.htm",null,"Isuzu");
navigation[58] = new navElem(58,"Jaguar","pi1091308782.htm",null,"Jaguar");
navigation[59] = new navElem(59,"Press Photo&#0039;s etc&nbsp(6)","pi1736397642.htm",58,"press 7");
navigation[60] = new navElem(60,"Collectors Models","pi1991647235.htm",58,"Collect 4");
navigation[61] = new navElem(61,"Books and Magazines","pi-1333374328.htm",58,"mags 1");
navigation[62] = new navElem(62,"Video&#0039;s and DVD&#0039;s","pi-19607002.htm",58,"Videos11");
navigation[63] = new navElem(63,"Sales Literature&nbsp(2)","pi-1656606403.htm",58,"Sales5");
navigation[64] = new navElem(64,"Jeep","pi1249122123.htm",null,"Jeep");
navigation[65] = new navElem(65,"Books and Magazines&nbsp(1)","pi-1290975930.htm",64,"jeep mags");
navigation[66] = new navElem(66,"Jensen","pi-15369680.htm",null,"Jensen");
navigation[67] = new navElem(67,"Kia","pi-503316568.htm",null,"Kia");
navigation[68] = new navElem(68,"Press Photo&#0039;s Etc&nbsp(2)","pi2018083683.htm",67,"Press 19");
navigation[69] = new navElem(69,"Lada","pi-1098016143.htm",null,"Lada");
navigation[70] = new navElem(70,"Lamborghini","pi-704099053.htm",null,"Lamborghin");
navigation[71] = new navElem(71,"Lancia","pi689551924.htm",null,"Lancia");
navigation[72] = new navElem(72,"Land Rover","pi-719512764.htm",null,"Land Rover");
navigation[73] = new navElem(73,"Press Photo&#0039;s Etc&nbsp(3)","pi-348441175.htm",72,"press55");
navigation[74] = new navElem(74,"Sales Literature&nbsp(1)","pi455598135.htm",72,"CAT");
navigation[75] = new navElem(75,"Lexus","pi-555373602.htm",null,"Lexus");
navigation[76] = new navElem(76,"Press Photo&#0039;s Etc&nbsp(4)","pi1977523312.htm",75,"Press 29");
navigation[77] = new navElem(77,"Lotus","pi1500143368.htm",null,"Lotus");
navigation[78] = new navElem(78,"Collectors Models","pi239872408.htm",77,"Collectors");
navigation[79] = new navElem(79,"Press Photo&#0039;s etc&nbsp(26)","pi-925113564.htm",77,"Press 2");
navigation[80] = new navElem(80,"Books and Magazines","pi-1044896543.htm",77,"Mags5");
navigation[81] = new navElem(81,"Video&#0039;s and DVD&#0039;s","pi270494973.htm",77,"Videos7");
navigation[82] = new navElem(82,"Sales Literature","pi-637796702.htm",77,"Sales");
navigation[83] = new navElem(83,"Marcos","pi-1711819146.htm",null,"Marcos");
navigation[84] = new navElem(84,"Maserati","pi1091983321.htm",null,"Maserati");
navigation[85] = new navElem(85,"Sales Literature","pi-1760319829.htm",84,"sales10");
navigation[86] = new navElem(86,"Saab","pi-1196631679.htm",85,"SAAB");
navigation[87] = new navElem(87,"Press Photo&#0039;s etc&nbsp(17)","pi-48601306.htm",84,"press15");
navigation[88] = new navElem(88,"Collectors Models","pi-906891760.htm",84,"Collect10");
navigation[89] = new navElem(89,"Video&#0039;s and DVD&#0039;s","pi258554065.htm",84,"Video9");
navigation[90] = new navElem(90,"Books and Magazines","pi499827390.htm",84,"mags10");
navigation[91] = new navElem(91,"Maybach","pi1093795056.htm",null,"Maybach");
navigation[92] = new navElem(92,"Press Photo&#0039;s Etc&nbsp(2)","pi-775361378.htm",91,"Press 20");
navigation[93] = new navElem(93,"Mazda","pi-1471632889.htm",null,"Mazda");
navigation[94] = new navElem(94,"Press Photo&#0039;s Etc&nbsp(2)","pi960773699.htm",93,"Press 21");
navigation[95] = new navElem(95,"Mercedes","pi-485235607.htm",null,"Mercedes");
navigation[96] = new navElem(96,"Collectors Models","pi1578864114.htm",95,"Collector1");
navigation[97] = new navElem(97,"Press Photo&#0039;s etc&nbsp(23)","pi-1897963637.htm",95,"press2");
navigation[98] = new navElem(98,"Books and Magazines","pi2119212022.htm",95,"Mags 4");
navigation[99] = new navElem(99,"Video&#0039;s and DVD&#0039;s","pi531723898.htm",95,"Videos8");
navigation[100] = new navElem(100,"Sales Literature&nbsp(2)","pi561081550.htm",95,"Sales2");
navigation[101] = new navElem(101,"MG","pi1845040831.htm",null,"MG");
navigation[102] = new navElem(102,"Press Photo&#0039;s etc","pi972591048.htm",101,"MGpress");
navigation[103] = new navElem(103,"Books and Magazines&nbsp(1)","pi-1948322263.htm",101,"MGbook");
navigation[104] = new navElem(104,"Mini","pi2085104956.htm",null,"Mini");
navigation[105] = new navElem(105,"Sales Literature&nbsp(1)","pi1603310863.htm",104,"minisales");
navigation[106] = new navElem(106,"Press Photo&#0039;s etc","pi-350900828.htm",104,"MINIPress");
navigation[107] = new navElem(107,"Mitsubushi","pi-654822793.htm",null,"Mitsubishi");
navigation[108] = new navElem(108,"Press Photo&#0039;s Etc&nbsp(26)","pi-313802127.htm",107,"Press 15");
navigation[109] = new navElem(109,"Sales Literature&nbsp(2)","pi-297618466.htm",107,"Sales 2");
navigation[110] = new navElem(110,"Books and Magazines&nbsp(1)","pi-1152013303.htm",107,"MITmag");
navigation[111] = new navElem(111,"Morgan","pi1408801172.htm",null,"Morgan");
navigation[112] = new navElem(112,"Nissan","pi-539987163.htm",null,"Nissan");
navigation[113] = new navElem(113,"Press Photo&#0039;s Etc&nbsp(1)","pi1099728314.htm",112,"Press 22");
navigation[114] = new navElem(114,"Sales Literature &nbsp(1)","pi-432979568.htm",112,"Saleslit2");
navigation[115] = new navElem(115,"Books and Magazines&nbsp(1)","pi1030404254.htm",112,"nissbook");
navigation[116] = new navElem(116,"Noble","pi-1649543419.htm",null,"Noble");
navigation[117] = new navElem(117,"Pagani","pi1807935970.htm",null,"Pagani");
navigation[118] = new navElem(118,"Perodua","pi-1233363561.htm",null,"Perodua");
navigation[119] = new navElem(119,"Peugeot","pi-9781793.htm",null,"PEUGEOT");
navigation[120] = new navElem(120,"Sales Literature&nbsp(3)","pi-1641191520.htm",119,"peusales");
navigation[121] = new navElem(121,"Press Photo&#0039;s Etc&nbsp(3)","pi1876567833.htm",119,"Press 23");
navigation[122] = new navElem(122,"Porsche ","pi-1135013918.htm",null,"Porsche");
navigation[123] = new navElem(123,"Collectors Models&nbsp(1)","pi-1610942905.htm",122,"collector5");
navigation[124] = new navElem(124,"Press Photo&#0039;s etc&nbsp(48)","pi119608444.htm",122,"press5");
navigation[125] = new navElem(125,"Books and Magazines&nbsp(6)","pi1293674808.htm",122,"Mags7");
navigation[126] = new navElem(126,"Video&#0039;s and DVD&#0039;s","pi-680505639.htm",122,"Videos10");
navigation[127] = new navElem(127,"Sales Literature","pi911185836.htm",122,"sales4");
navigation[128] = new navElem(128,"Proton","pi-1645991749.htm",null,"Proton");
navigation[129] = new navElem(129,"Sales Literature&nbsp(1)","pi-1574843498.htm",128,"prosales");
navigation[130] = new navElem(130,"Range Rover","pi1091441082.htm",null,"Range");
navigation[131] = new navElem(131,"Sales Literature&nbsp(1)","pi1608923571.htm",130,"Sale");
navigation[132] = new navElem(132,"Press Photo&#0039;s etc","pi-519113096.htm",130,"Pressrange");
navigation[133] = new navElem(133,"Reliant","pi-2056049952.htm",null,"Reliant");
navigation[134] = new navElem(134,"Press Photo&#0039;s Etc&nbsp(2)","pi1278433861.htm",133,"Press13");
navigation[135] = new navElem(135,"Renault","pi30900699.htm",null,"Renault");
navigation[136] = new navElem(136,"Press Photo&#0039;s Etc&nbsp(4)","pi-724628691.htm",135,"Press 24");
navigation[137] = new navElem(137,"Sales Literature&nbsp(19)","pi-1853959204.htm",135,"sales ren");
navigation[138] = new navElem(138,"Rolls Royce","pi1170458977.htm",null,"Rolls Royc");
navigation[139] = new navElem(139,"Rover","pi1024626198.htm",null,"Rover");
navigation[140] = new navElem(140,"Press Photo&#0039;s Etc&nbsp(3)","pi-1086375259.htm",139,"Press 25");
navigation[141] = new navElem(141,"Sales Literature&nbsp(5)","pi1451997375.htm",139,"Rovlit");
navigation[142] = new navElem(142,"Books and Magazines&nbsp(1)","pi-1474524076.htm",139,"ROVERMAG");
navigation[143] = new navElem(143,"Saab","pi-958120041.htm",null,"saab1");
navigation[144] = new navElem(144,"Sales Literature&nbsp(7)","pi973133708.htm",143,"saablit");
navigation[145] = new navElem(145,"Seat","pi980721240.htm",null,"Seat");
navigation[146] = new navElem(146,"Sales Literature&nbsp(1)","pi-122600224.htm",145,"seatlit");
navigation[147] = new navElem(147,"Skoda","pi-732701811.htm",null,"skoda");
navigation[148] = new navElem(148,"Sales Literature&nbsp(2)","pi-1740527544.htm",147,"SKOSales");
navigation[149] = new navElem(149,"Press Photo&#0039;s etc","pi1790657705.htm",147,"PressSKO");
navigation[150] = new navElem(150,"Subaru","pi-926464127.htm",null,"Subaru");
navigation[151] = new navElem(151,"Press Photo&#0039;s Etc&nbsp(24)","pi401044293.htm",150,"press sub");
navigation[152] = new navElem(152,"Sales Literature &nbsp(6)","pi-1743015438.htm",150,"SUBSAles");
navigation[153] = new navElem(153,"Suzuki","pi1570212878.htm",null,"Suzuki");
navigation[154] = new navElem(154,"Press Photo&#0039;s Etc&nbsp(6)","pi-1339979848.htm",153,"Press 17");
navigation[155] = new navElem(155,"Sales Literature&nbsp(5)","pi1965674149.htm",153,"SAUsales");
navigation[156] = new navElem(156,"Toyota","pi1868004226.htm",null,"Toyota");
navigation[157] = new navElem(157,"Press Photo&#0039;s Etc&nbsp(7)","pi1848725768.htm",156,"Press 14");
navigation[158] = new navElem(158,"Sales Literature&nbsp(3)","pi1318686897.htm",156,"TOYSALES");
navigation[159] = new navElem(159,"Vauxhall","pi76002508.htm",null,"Vauxhall");
navigation[160] = new navElem(160,"Video&#0039;s and DVD&#0039;s","pi1270289583.htm",159,"videos12");
navigation[161] = new navElem(161,"Books and Magazines&nbsp(1)","pi-863773500.htm",159,"Mags8");
navigation[162] = new navElem(162,"Press Photo&#0039;s etc&nbsp(19)","pi-930748811.htm",159,"Press12");
navigation[163] = new navElem(163,"Collectors Models","pi-1596546926.htm",159,"Collect7");
navigation[164] = new navElem(164,"Sales Literature&nbsp(10)","pi-1261646413.htm",159,"sales7");
navigation[165] = new navElem(165,"Volvo","pi-280358947.htm",null,"Volvo");
navigation[166] = new navElem(166,"Video&#0039;s and DVD&#0039;s","pi-461544021.htm",165,"Videos13");
navigation[167] = new navElem(167,"Books and Magazines","pi-721088559.htm",165,"Mags9");
navigation[168] = new navElem(168,"Press Photo&#0039;s etc&nbsp(4)","pi-1655075394.htm",165,"Press 13");
navigation[169] = new navElem(169,"Collectors Models","pi1469488743.htm",165,"Collect12");
navigation[170] = new navElem(170,"Sales Literature&nbsp(4)","pi-158401928.htm",165,"Sales8");
navigation[171] = new navElem(171,"VW","pi-1545817175.htm",null,"VW");
navigation[172] = new navElem(172,"Press Photo&#0039;s Etc&nbsp(1)","pi1953852086.htm",171,"Press 30");
navigation[173] = new navElem(173,"Sales Literature&nbsp(13)","pi1109166948.htm",171,"VWsales");

// getNavElementByCatID
function getNavElementByCatID(categoryId){
	for(var i=0; i<navigation.length; i++){
		if(navigation[i].categoryId==categoryId){
			return(navigation[i]);
			break;
			};
		};
		return(null);
	};
// changeLoc
function changeLoc(id,linkUrl){
	if(id!="nada"){
		xmlConfig.navIndex = id.toString();
		if(xmlConfig.getFirstItem("SearchEngine").ByCategory == "1"){
			if(id=="null") xmlConfig.getFirstItem("SearchEngine").categoryId = "null"
			else xmlConfig.getFirstItem("SearchEngine").categoryId = navigation[id].categoryId;
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = id;
			}
		else{
			xmlConfig.getFirstItem("SearchEngine").categoryId = "null";
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = "null";
			};
		safeData();
		location.href = linkUrl + "?categoryId=" + id.toString();
		};
	};
// searchOnEnterNavi
function searchOnEnterNavi(){
	if(window.event.keyCode==13){
		xmlConfig.getFirstItem('SearchEngine').term=document.searchEngine.searchTerm.value;
		location.href = "search.htm";
		};
	};
// activates entries for categories
activateItem(getParameterFromURL("categoryId"));

