// ProductItem Class
	function ProductItem(itemName,urlRef,title,linkRef) {
		//constructor
		this.itemName = itemName;
		this.urlRef = urlRef;
		this.title = title;
		this.linkRef = linkRef;
		this.pi_getItemName = pi_getItemName;
		this.pi_getUrlRef = pi_getUrlRef;
		this.pi_getTitle = pi_getTitle;
		this.pi_getLinkRef = pi_getLinkRef;
	}
	
	function pi_getItemName() {
		return this.itemName;
	}
	
	function pi_getUrlRef() {
		return this.urlRef;
	}
	
	function pi_getTitle() {
		return this.title;
	}
	
	function pi_getLinkRef() {
		return this.linkRef;
	}
// End ProductItem Class


// Static Data
	var automotiveList = new Array();
	var diyList = new Array();
	var woodworkList = new Array();

	//products under category Automotive Repair
	automotiveList[0] = new ProductItem("Alico","a_Alico.html?0","Abrasives, Cutting discs, Sanding discs","");
	automotiveList[1] = new ProductItem("Bondaglass","a_Bondaglass.html?1","Polyester fillers","");
	automotiveList[2] = new ProductItem("Codaflex","a_Codaflex.html?2","Fibre disc abrasive discs","");
	automotiveList[3] = new ProductItem("Comaria","a_Comaria.html?3","Compressed air fittings, air tools","");
	automotiveList[4] = new ProductItem("Corcos","a_Corcos.html?4","Spray painting ancillary (Fitters + masking paper)","");
	automotiveList[5] = new ProductItem("Facet","a_Facet.html?5","High quality automobile engine parts","");
	automotiveList[6] = new ProductItem("Farecla","a_Farecla.html?6","Rubbing compounds","http://www.farecla.com/");
	automotiveList[7] = new ProductItem("Fidea","a_Fidea.html?7","Thinner, Paint removers, White spirit","http://www.fidea.com/");
	automotiveList[8] = new ProductItem("Glimmo","a_Glimmo.html?8","Polishing cloths","");
	automotiveList[9] = new ProductItem("Hermetite","a_Hermetite.html?9","Guskett sealers, Jointing cement","http://www.hammerite-automotive.com/");
	automotiveList[10] = new ProductItem("INP","a_Inp.html?10","Spray painting consumables","");
	automotiveList[11] = new ProductItem("Leister","a_Leister.html?11","Plastic welding equipment","");
	automotiveList[12] = new ProductItem("MF Tools","a_Mftools.html?12","Hand files and blades","");
	automotiveList[13] = new ProductItem("Mirka","a_Mirka.html?13","Abrasive discs","http://www.mirka.com");
	automotiveList[14] = new ProductItem("Ridley Quiney","a_RidleyQuiney.html?14","Tapes and protective gloves","");
	automotiveList[15] = new ProductItem("SATA","a_Sata.html?15","Spray painting and breating equipment","http://www.sata.com/");
	automotiveList[16] = new ProductItem("Standox","a_Standox.html?16","Car paints and finishing","http://www.standox.com");
	automotiveList[17] = new ProductItem("Telwin","a_Telwin.html?17","Welding and battery charging equipment","http://www.telwin.com");
	automotiveList[18] = new ProductItem("Tetrosyl","a_Tetrosyl.html?18","Thinner all purpose fillers, car refinishing products","");
	automotiveList[19] = new ProductItem("Trisk","a_Trisk.html?19","Infra-red drying equipment","");		

	//products under category D.I.Y.
	diyList[0] = new ProductItem("Alico","d_Alico.html?0","Abrasives, Cutting discs, discs","");
	diyList[1] = new ProductItem("Big Red Jacks","d_BigRed.html?1","Hydraulic floor jacks","");
	diyList[2] = new ProductItem("Bonda","d_Bonda.html?2","Glue PVA Adhesive","");
	diyList[3] = new ProductItem("Bondaglass","d_Bondaglass.html?3","Polyester fillers","");
	diyList[4] = new ProductItem("Car Plan","d_CarPlan.html?4","Car valting","");
	diyList[5] = new ProductItem("Wren Bird Brand","d_WrenBirdBrand.html?5","Wren Bird brand locks","");
	diyList[6] = new ProductItem("Codaflex","d_Codaflex.html?6","Fibre disc abrasive discs","");
	diyList[7] = new ProductItem("Comaria","d_Comaria.html?7","Compressed air fittings, air tools","");
	diyList[8] = new ProductItem("Corcos","d_Corcos.html?8","Spray painting ancillary (Fitters + masking paper)","");
	diyList[9] = new ProductItem("Domus","d_Domus.html?9","Safes, Cash boxes, Letter boxes","");
	diyList[10] = new ProductItem("Eterna","d_Eterna.html?10","Paint brushes","");
	diyList[11] = new ProductItem("Felisatti","d_Felisatti.html?11","Power tools","http://www.felisatti.it");
	diyList[12] = new ProductItem("Fidea","d_Fidea.html?12","Thinner, Paint removers, White spirit","http://www.fidea.com/");
	diyList[13] = new ProductItem("Glimmo","d_Glimmo.html?13","Polishing cloths","");
	diyList[14] = new ProductItem("PVC Hose Pipes","d_Pvc.html?14","PVC clear and reinforced hose pipes","");		
	diyList[15] = new ProductItem("Mirka","d_Mirka.html?15","Abrasive discs","http://www.mirka.com");
	diyList[16] = new ProductItem("Ridley Quiney","d_RidleyQuiney.html?16","Tapes and protective gloves","");
	diyList[17] = new ProductItem("Roffelsen","d_Roffelsen.html?17","Clothes line","");
	diyList[18] = new ProductItem("Swallow","d_Swallow.html?18","Mortice lock set","");
	diyList[19] = new ProductItem("Telwin","d_Telwin.html?19","Welding and battery charging equipment","http://www.telwin.com");
	diyList[20] = new ProductItem("Tetrosyl","d_Tetrosyl.html?20","Thinner all purpose fillers, car refinishing products","");
	diyList[21] = new ProductItem("Tri Circle","d_TriCircle.html?21","Pad locks","");

	//products under category Woodwork
	woodworkList[0] = new ProductItem("Bonda","w_Bonda.html?0","Glue PVA Adhesive","");
	woodworkList[1] = new ProductItem("Comaria","w_Comaria.html?1","Compressed air fittings, air tools","");
	woodworkList[2] = new ProductItem("Felisatti","w_Felisatti.html?2","Power tools","http://www.felisatti.it");
	woodworkList[3] = new ProductItem("Fidea","w_Fidea.html?3","Thinner, Paint removers, White spirit","http://www.fidea.com/");
	woodworkList[4] = new ProductItem("Mirka","w_Mirka.html?4","Abrasive discs","http://www.mirka.com");
	woodworkList[5] = new ProductItem("SATA","w_Sata.html?5","Spray painting and breating equipment","http://www.sata.com/");
	woodworkList[6] = new ProductItem("Tetrosyl","w_Tetrosyl.html?6","Thinner all purpose fillers, car refinishing products","");
	woodworkList[7] = new ProductItem("Vernilac","w_Vernilac.html?7","Wood Varnish, Paints, Stains","");
// End Static Data

// Functions to build product lists
	function buildProducts(productList) {
		var productsString = '';
		for(var i=0; i<productList.length; i++) {
			var productItem = productList[i];
			var productName = productItem.pi_getItemName();
			var urlRef      = productItem.pi_getUrlRef();
			var title       = productItem.pi_getTitle();
			if (urlRef != '') {	
				productsString += '&#9642; <a class="productTitleLink" href="'+urlRef+'" title="'+title+'">'+productName+'</a>';
			}
			else {
				productsString += '&#9642; <a class="productTitleLink" title="'+title+'">'+productName+'</a>';
			}
			productsString += '<div class="SeparatorTick">&nbsp;</div>';
			productsString += '<div class="Separator">&nbsp;</div>';
			productsString += '<div class="SeparatorTick">&nbsp;</div>';
		}
		productsString += '<div align="center"><a class="productTitleLink" style="color : #BBBBBB;" href="../products.html">[View products category list]</a></div>';
		this.document.write(productsString);
	}
	
	//this function uses automotiveList static data created above
	function buildAutomotiveList() {
		buildProducts(automotiveList);
	}
	//this function uses diyList static data created above
	function buildDIYList() {
		buildProducts(diyList);
	}
	//this function uses woodworkList static data created above
	function buildWoodworkList() {
		buildProducts(woodworkList);
	}
	//this function is used by enquire.html to build product reference list
	function setOptionList() {
		var htmlStr = '<select name="QueryRef" title="Query reference [Hold ctrl/shift to select multiple]" style="width : 350px" size="8" multiple>';
		htmlStr += '<option>General information</option>';
				
		for (var i=0; i<3; i++) {
			var productList;
			var productCategory;
			if (i==0) { productList = automotiveList; productCategory='Automotive';}
			if (i==1) { productList = diyList; productCategory='D.I.Y.';}
			if (i==2) { productList = woodworkList; productCategory='Woodwork';}
					
			for (var j=0; j<productList.length; j++) {
				var productItem = productList[j];
				var selection = productItem.pi_getItemName()+ ' - [' +productCategory+ ']';
				htmlStr += '<option>' +selection+ '</option>';
			}
		}
		htmlStr += '</select>';		
		
		this.document.write(htmlStr);
	}
// Functions to build product lists

// Functions to access products
	function getProductName_A(index) {
		var productItem = automotiveList[index];
		return productItem.pi_getItemName();
	}
	function getProductDesc_A(index) {
		var productItem = automotiveList[index];
		return productItem.pi_getTitle();
	}
	function getProductLinkRef_A(index) {
		var productItem = automotiveList[index];
		return productItem.pi_getLinkRef();
	}
	
	function getProductName_D(index) {
		var productItem = diyList[index];
		return productItem.pi_getItemName();
	}
	function getProductDesc_D(index) {
		var productItem = diyList[index];
		return productItem.pi_getTitle();
	}
	function getProductLinkRef_D(index) {
		var productItem = diyList[index];
		return productItem.pi_getLinkRef();
	}
	
	function getProductName_W(index) {
		var productItem = woodworkList[index];
		return productItem.pi_getItemName();
	}
	function getProductDesc_W(index) {
		var productItem = woodworkList[index];
		return productItem.pi_getTitle();
	}
	function getProductLinkRef_W(index) {
		var productItem = woodworkList[index];
		return productItem.pi_getLinkRef();
	}
// Functions to access products
