//
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 += "Produse in cos:<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="15" height="11" alt="Bullet.gif" border="0" align="absmiddle" hspace="0" vspace="0" class="catnav">' + "Cosul de cumparaturi</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\">Categorii</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="14" height="11" 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="14" height="11" 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 = true;
		this.categoryId = categoryId;
		};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"20% Pret Redus&nbsp(27)","pi-1113243429.htm",null,"oferta");
navigation[1] = new navElem(1,"40% Pret Redus&nbsp(13)","pi-429428773.htm",null,"40%");
navigation[2] = new navElem(2,"Machete Camioane&nbsp(7)","pi-519352570.htm",null,"Machete Ca");
navigation[3] = new navElem(3,"Marci auto","pi1300970401.htm",null,"Marci");
navigation[4] = new navElem(4,"Machete Alfa Romeo&nbsp(1)","pi1288564407.htm",3,"Alfa");
navigation[5] = new navElem(5,"Machete Artega&nbsp(1)","pi-440457197.htm",3,"Artega");
navigation[6] = new navElem(6,"Machete Aston Martin&nbsp(2)","pi-546611156.htm",3,"Aston");
navigation[7] = new navElem(7,"Machete Audi&nbsp(5)","pi1011622222.htm",3,"Audi");
navigation[8] = new navElem(8,"Machete Austin&nbsp(1)","pi-23924762.htm",3,"Austin");
navigation[9] = new navElem(9,"Machete Auto Union","pi-314085443.htm",3,"Union");
navigation[10] = new navElem(10,"Machete Bentley&nbsp(1)","pi-500010438.htm",3,"Bentley");
navigation[11] = new navElem(11,"Machete BMW&nbsp(5)","pi33435699.htm",3,"BMW");
navigation[12] = new navElem(12,"Machete Bugatti&nbsp(2)","pi1081343385.htm",3,"Bugatti");
navigation[13] = new navElem(13,"Machete Buick","pi1892618636.htm",3,"Buick");
navigation[14] = new navElem(14,"Machete Cadillac&nbsp(2)","pi-1283782170.htm",3,"Cadillac");
navigation[15] = new navElem(15,"Machete Chevrolet&nbsp(6)","pi-1828363921.htm",3,"Chevrolet");
navigation[16] = new navElem(16,"Machete Chrysler","pi507239044.htm",3,"Chrsler");
navigation[17] = new navElem(17,"Machete Citroen&nbsp(3)","pi601358645.htm",3,"Citroen");
navigation[18] = new navElem(18,"Machete Cleveland&nbsp(1)","pi2085874781.htm",3,"Cleveland");
navigation[19] = new navElem(19,"Machete Dacia&nbsp(2)","pi-1203628413.htm",3,"DAcia");
navigation[20] = new navElem(20,"Machete De Lorean&nbsp(1)","pi-1432476586.htm",3,"DeLorean");
navigation[21] = new navElem(21,"Machete Delahaye","pi-1792684227.htm",3,"Delahaye");
navigation[22] = new navElem(22,"Machete Dodge","pi1649267794.htm",3,"Dodge");
navigation[23] = new navElem(23,"Machete Duesenberg","pi-1228799351.htm",3,"Duesenberg");
navigation[24] = new navElem(24,"Machete Ferrari&nbsp(3)","pi787480171.htm",3,"Ferrari");
navigation[25] = new navElem(25,"Machete Fiat&nbsp(3)","pi-1568417072.htm",3,"Fiat");
navigation[26] = new navElem(26,"Machete Ford&nbsp(12)","pi-1413196143.htm",3,"Ford");
navigation[27] = new navElem(27,"Machete GMC&nbsp(1)","pi1959859150.htm",3,"GMC");
navigation[28] = new navElem(28,"Machete Harley Davidson&nbsp(1)","pi1283576007.htm",3,"HD");
navigation[29] = new navElem(29,"Machete Honda&nbsp(2)","pi646544766.htm",3,"Honda");
navigation[30] = new navElem(30,"Machete Horch","pi1318600709.htm",3,"Horch");
navigation[31] = new navElem(31,"Machete Hummer&nbsp(3)","pi-1234549977.htm",3,"Hummer");
navigation[32] = new navElem(32,"Machete Iveco&nbsp(1)","pi-1204554549.htm",3,"Iveco");
navigation[33] = new navElem(33,"Machete Jaguar&nbsp(1)","pi-809314340.htm",3,"Jaguar");
navigation[34] = new navElem(34,"Machete Kaiser","pi-1966052944.htm",3,"Kaiser");
navigation[35] = new navElem(35,"Machete Koenigsegg","pi1043306925.htm",3,"ccx");
navigation[36] = new navElem(36,"Machete Lada&nbsp(2)","pi-1903989316.htm",3,"Lada");
navigation[37] = new navElem(37,"Machete Lamborghini&nbsp(12)","pi2091872618.htm",3,"Lamborghif");
navigation[38] = new navElem(38,"Machete Lancia&nbsp(1)","pi1396452259.htm",3,"Lancia");
navigation[39] = new navElem(39,"Machete Lexus","pi-1433920088.htm",3,"Lexus");
navigation[40] = new navElem(40,"Machete Lincoln&nbsp(1)","pi1720854153.htm",3,"Lincoln");
navigation[41] = new navElem(41,"Machete Lotus","pi193977366.htm",3,"Lotus");
navigation[42] = new navElem(42,"Machete MAN&nbsp(2)","pi-901800378.htm",3,"MAN");
navigation[43] = new navElem(43,"Machete Maserati","pi1602581471.htm",3,"Maserati");
navigation[44] = new navElem(44,"Machete Maybach","pi-1924155340.htm",3,"Maybach");
navigation[45] = new navElem(45,"Machete Mazda","pi2139232549.htm",3,"Mazda");
navigation[46] = new navElem(46,"Machete Mclaren&nbsp(3)","pi-1665816190.htm",3,"Mclaren");
navigation[47] = new navElem(47,"Machete Mercedes-Benz&nbsp(11)","pi414816219.htm",3,"Mercedes");
navigation[48] = new navElem(48,"Machete Mercury&nbsp(1)","pi114193280.htm",3,"Mercury");
navigation[49] = new navElem(49,"Machete MG&nbsp(2)","pi-699165436.htm",3,"MG");
navigation[50] = new navElem(50,"Machete Mitsubishi","pi235883905.htm",3,"Mitshubish");
navigation[51] = new navElem(51,"Machete Morgan&nbsp(1)","pi-745372242.htm",3,"Morgan");
navigation[52] = new navElem(52,"Machete Morris ","pi1352433122.htm",3,"MOrris");
navigation[53] = new navElem(53,"Machete Nash","pi-1972011842.htm",3,"Nash");
navigation[54] = new navElem(54,"Machete Nissan&nbsp(4)","pi1515967383.htm",3,"Nissan");
navigation[55] = new navElem(55,"Machete Oldsmobile&nbsp(2)","pi-1238650370.htm",3,"Olds");
navigation[56] = new navElem(56,"Machete Opel","pi-1795302516.htm",3,"Opel");
navigation[57] = new navElem(57,"Machete Packard","pi-15638807.htm",3,"Packard");
navigation[58] = new navElem(58,"Machete Pagani","pi1793023901.htm",3,"Pagani");
navigation[59] = new navElem(59,"Machete Panhard","pi258661530.htm",3,"Panhard");
navigation[60] = new navElem(60,"Machete Peugeot&nbsp(2)","pi1551573779.htm",3,"Peugeot");
navigation[61] = new navElem(61,"Machete Piaggio","pi-1531949722.htm",3,"Piaggio");
navigation[62] = new navElem(62,"Machete Pierce Arrow&nbsp(1)","pi-1414188587.htm",3,"Pierce Arr");
navigation[63] = new navElem(63,"Machete Plymouth","pi-1998046120.htm",3,"plymothd");
navigation[64] = new navElem(64,"Machete Pontiac&nbsp(1)","pi352955257.htm",3,"Pontiac");
navigation[65] = new navElem(65,"Machete Porsche&nbsp(5)","pi-1543382458.htm",3,"Porsche");
navigation[66] = new navElem(66,"Machete Renault&nbsp(5)","pi837698127.htm",3,"Renault");
navigation[67] = new navElem(67,"Machete Rolls Royce&nbsp(3)","pi523543012.htm",3,"Rolls");
navigation[68] = new navElem(68,"Machete Rover&nbsp(1)","pi895145561.htm",3,"Rover");
navigation[69] = new navElem(69,"Machete Saleen","pi-2104128553.htm",3,"Saleen ");
navigation[70] = new navElem(70,"Machete Scania&nbsp(1)","pi-894218987.htm",3,"Scania");
navigation[71] = new navElem(71,"Machete Seat","pi1426418354.htm",3,"Seat");
navigation[72] = new navElem(72,"Machete Simca","pi-2108707509.htm",3,"Simca");
navigation[73] = new navElem(73,"Machete Skoda&nbsp(2)","pi-1720526800.htm",3,"Skoda");
navigation[74] = new navElem(74,"Machete Studebaker","pi-2038842301.htm",3,"Studebaker");
navigation[75] = new navElem(75,"Machete Subaru","pi1131094129.htm",3,"Subaru");
navigation[76] = new navElem(76,"Machete Suzuki","pi-1069925922.htm",3,"suz");
navigation[77] = new navElem(77,"Machete Tata&nbsp(1)","pi1090684143.htm",3,"Tata");
navigation[78] = new navElem(78,"Machete Toyota","pi-1145462777.htm",3,"toy");
navigation[79] = new navElem(79,"Machete Trabant&nbsp(1)","pi-490198537.htm",3,"Trabant");
navigation[80] = new navElem(80,"Machete Triumph","pi-780549502.htm",3,"TR");
navigation[81] = new navElem(81,"Machete TVR&nbsp(1)","pi-2086734458.htm",3,"TVR");
navigation[82] = new navElem(82,"Machete Volga&nbsp(3)","pi-1442903721.htm",3,"Volga");
navigation[83] = new navElem(83,"Machete Volkswagen&nbsp(8)","pi-467178692.htm",3,"Volkswagen");
navigation[84] = new navElem(84,"Machete Volvo&nbsp(3)","pi675660173.htm",3,"Volvo");
navigation[85] = new navElem(85,"Machete Wartburg&nbsp(1)","pi577221578.htm",3,"Wartburg");
navigation[86] = new navElem(86,"Motociclete","pi-2115506320.htm",null,"Motociclet");
navigation[87] = new navElem(87,"1/12&nbsp(1)","pi-488393039.htm",86,"1/12");
navigation[88] = new navElem(88,"1/18&nbsp(1)","pi1122384845.htm",86,"moto");
navigation[89] = new navElem(89,"Motorsport","pi-781577675.htm",null,"Machete Mo");
navigation[90] = new navElem(90,"Formula 1","pi1105117531.htm",89,"Formula 1");
navigation[91] = new navElem(91,"LeMans, DTM","pi1664954882.htm",89,"DTM");
navigation[92] = new navElem(92,"WRC","pi1664063067.htm",89,"WRC");
navigation[93] = new navElem(93,"Producatori machete auto","pi-1716505219.htm",null,"Machete au");
navigation[94] = new navElem(94,"Machete Abrex&nbsp(2)","pi8323236.htm",93,"Abrex");
navigation[95] = new navElem(95,"Machete AUTOart &nbsp(22)","pi-1092335899.htm",93,"Autoart");
navigation[96] = new navElem(96,"Machete Bauer","pi195646197.htm",93,"Bauer");
navigation[97] = new navElem(97,"Machete BBR","pi1129198726.htm",93,"BBR");
navigation[98] = new navElem(98,"Machete BBurago&nbsp(2)","pi-1973602430.htm",93,"BBUrago");
navigation[99] = new navElem(99,"Machete CMC &nbsp(3)","pi1118618027.htm",93,"CMC");
navigation[100] = new navElem(100,"Machete Deagostini","pi550838131.htm",93,"s");
navigation[101] = new navElem(101,"Machete ELITE&nbsp(3)","pi621160148.htm",93,"Hotwheels ");
navigation[102] = new navElem(102,"Machete ERTL&nbsp(1)","pi-1646875167.htm",93,"ERTL");
navigation[103] = new navElem(103,"Machete Exact Detail","pi779806681.htm",93,"Exact Deta");
navigation[104] = new navElem(104,"Machete Exoto&nbsp(1)","pi1195305333.htm",93,"Exoto");
navigation[105] = new navElem(105,"Machete FAW","pi1140635976.htm",93,"FAW");
navigation[106] = new navElem(106,"Machete Figurine&nbsp(2)","pi-270374393.htm",93,"Figurine");
navigation[107] = new navElem(107,"Machete GMP","pi1228486937.htm",93,"GMP");
navigation[108] = new navElem(108,"Machete Greenlight","pi-1772356610.htm",93,"Greenlight");
navigation[109] = new navElem(109,"Machete Highway 61&nbsp(2)","pi1141166477.htm",93,"Highway 61");
navigation[110] = new navElem(110,"Machete Hotwheels &nbsp(2)","pi-1824109640.htm",93,"machete 1");
navigation[111] = new navElem(111,"Machete HotWorks","pi1420148901.htm",93,"HWorks");
navigation[112] = new navElem(112,"Machete IstModels&nbsp(8)","pi330638302.htm",93,"IstModels");
navigation[113] = new navElem(113,"Machete Ixo&nbsp(2)","pi1317820544.htm",93,"Ixo");
navigation[114] = new navElem(114,"Machete JadaToys ","pi-838929164.htm",93,"Jadatoys");
navigation[115] = new navElem(115,"Machete Jadi&nbsp(1)","pi-483266898.htm",93,"Jadi");
navigation[116] = new navElem(116,"Machete KYOSHO&nbsp(6)","pi1241473582.htm",93,"Kyosho");
navigation[117] = new navElem(117,"Machete Liberty Classics&nbsp(1)","pi1161300216.htm",93,"Liberty Cl");
navigation[118] = new navElem(118,"Machete Maisto&nbsp(4)","pi1921776182.htm",93,"Maisto");
navigation[119] = new navElem(119,"Machete MINICHAMPS&nbsp(2)","pi1120418359.htm",93,"Minichamps");
navigation[120] = new navElem(120,"Machete Model Icons&nbsp(2)","pi-1504723191.htm",93,"Model Icon");
navigation[121] = new navElem(121,"Machete Mondo Motors&nbsp(10)","pi-516788825.htm",93,"Mondo");
navigation[122] = new navElem(122,"Machete MotorArt&nbsp(1)","pi-1432792335.htm",93,"MotorArt");
navigation[123] = new navElem(123,"Machete Motorcityclassics&nbsp(1)","pi315454646.htm",93,"MotorcityC");
navigation[124] = new navElem(124,"Machete MotorMax&nbsp(4)","pi-1149988992.htm",93,"MotorMax");
navigation[125] = new navElem(125,"Machete NEW RAY&nbsp(4)","pi883475562.htm",93,"New RAY");
navigation[126] = new navElem(126,"Machete NOREV &nbsp(6)","pi1134514735.htm",93,"Norev");
navigation[127] = new navElem(127,"Machete Otto&nbsp(3)","pi498973110.htm",93,"Otto");
navigation[128] = new navElem(128,"Machete Paragon&nbsp(1)","pi1322050723.htm",93,"Paragon");
navigation[129] = new navElem(129,"Machete Powco&nbsp(1)","pi1254481270.htm",93,"Powco");
navigation[130] = new navElem(130,"Machete Precision Miniatures","pi17883530.htm",93,"PS");
navigation[131] = new navElem(131,"Machete Premium Classixxs","pi898459403.htm",93,"Premium Cl");
navigation[132] = new navElem(132,"Machete Revell&nbsp(6)","pi-1072899433.htm",93,"Revell");
navigation[133] = new navElem(133,"Machete Schuco&nbsp(1)","pi1227706643.htm",93,"Schuco");
navigation[134] = new navElem(134,"Machete Shelby Collectibles","pi1418220897.htm",93,"shelby");
navigation[135] = new navElem(135,"Machete Signature Models&nbsp(7)","pi1127483478.htm",93,"Signature");
navigation[136] = new navElem(136,"Machete SOLIDO&nbsp(4)","pi1146089597.htm",93,"Solido");
navigation[137] = new navElem(137,"Machete SUNSTAR&nbsp(9)","pi-280539548.htm",93,"Sunstar");
navigation[138] = new navElem(138,"Machete SUNSTAR Platinum&nbsp(4)","pi1291809088.htm",93,"Sunstar Pl");
navigation[139] = new navElem(139,"Machete UH&nbsp(3)","pi-789410071.htm",93,"UH");
navigation[140] = new navElem(140,"Machete Welly&nbsp(5)","pi-377408127.htm",93,"Welly");
navigation[141] = new navElem(141,"Machete Yatming&nbsp(9)","pi1104743291.htm",93,"Road Legen");
navigation[142] = new navElem(142,"Produse AUTOart Design","pi-1046291636.htm",null,"AUTOartDes");
navigation[143] = new navElem(143,"Cadouri si accesorii&nbsp(10)","pi1159485996.htm",142,"Cadouri si");
navigation[144] = new navElem(144,"R/C Automodele","pi-1910127682.htm",null,"Automodeli");
navigation[145] = new navElem(145,"Automodele Electrice","pi1674535544.htm",144,"Electrice");
navigation[146] = new navElem(146,"Automodele Termice&nbsp(1)","pi602677017.htm",144,"termic");
navigation[147] = new navElem(147,"Piese de rezerva","pi2108812646.htm",144,"piese");
navigation[148] = new navElem(148,"Accesorii RC&nbsp(11)","pi1237283487.htm",147,"LRP Electr");
navigation[149] = new navElem(149,"Attacker 1/10&nbsp(40)","pi-593491017.htm",147,"Attacker");
navigation[150] = new navElem(150,"C18 1/18&nbsp(17)","pi-1639698212.htm",147,"C18");
navigation[151] = new navElem(151,"Envoy 1/8&nbsp(10)","pi533614230.htm",147,"Envoy 1/8");
navigation[152] = new navElem(152,"Huadda Hobby&nbsp(28)","pi412131481.htm",147,"8860");
navigation[153] = new navElem(153,"KL-07 1/10&nbsp(53)","pi1195037885.htm",147,"Kl-07");
navigation[154] = new navElem(154,"Monitor 1/10&nbsp(39)","pi1087230542.htm",147,"monitor 1/");
navigation[155] = new navElem(155,"REVO, Jato Traxxas&nbsp(19)","pi14917537.htm",147,"Revo");
navigation[156] = new navElem(156,"Rulmenti Modelism&nbsp(4)","pi14827181.htm",147,"FMH 1/18");
navigation[157] = new navElem(157,"Spurt 1/8&nbsp(19)","pi761821484.htm",147,"Spurt 1/8");
navigation[158] = new navElem(158,"Scara 1/24&nbsp(3)","pi-470781758.htm",null,"22");
navigation[159] = new navElem(159,"Scara 1/43&nbsp(30)","pi-864874143.htm",null,"machete");
navigation[160] = new navElem(160,"Utilaje de constructii&nbsp(1)","pi-485506224.htm",null,"Utilaje");

// 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"));


