var lstProdType = new Array();

// add new brochure info
function NewDetail(imageName, product_link, product, description, prod_group, group_family, family_spec) {
	this.imageName = imageName;
	this.product_link = product_link;
	this.product = product;
	this.description = description;
	this.prod_group = prod_group;
	this.group_family = group_family;
	this.family_spec = family_spec;
	
	return (this);
}


// add new brochure info
function AddDetail(imageName, product_link, product, description, prod_group, group_family, family_spec) {
	var t=0, l=0;
	t = lstProdType.length - 1;
	l = lstProdType[t].lstDetail.length;	
	lstProdType[t].lstDetail[l] = new NewDetail(imageName, product_link, product, description, prod_group, group_family, family_spec);
}

// add new Product Type
function ProdType(prodName) {
	this.prodName = prodName;
	this.lstDetail = new Array();
	return (this);
}

// Add new product type to the brochure list
function AddProd(prodName) {
	var t=0;
	t = lstProdType.length;
	lstProdType[t] = new ProdType(prodName);
}


