var lstProdType = new Array();

// add new brochure info
function Newbrochure(brochure, leadText, pdfName, printdate, docSize, author, langType) {
	this.brochure = brochure;
	this.leadText = leadText;
	this.pdfName = pdfName;
	this.printdate = printdate;
	this.author = author;
	this.docSize = docSize;
	this.langType = langType;
	return (this);
}

// add new brochure info
function Addbrochure(brochure, leadText, pdfName, printdate, docSize, author, langType) {
	var t=0, l=0;
	t = lstProdType.length - 1;
	l = lstProdType[t].lstBrochure.length;	
	lstProdType[t].lstBrochure[l] = new Newbrochure(brochure, leadText, pdfName, printdate, docSize, author, langType);
}

// add new Product Type
function ProdType(prodName, prodRef, prodImg, prodDiv) {
	this.prodName = prodName;
	this.prodRef = prodRef;
	this.prodImg = prodImg;
	this.prodDiv = prodDiv;
	this.lstBrochure = new Array();
	return (this);
}

// Add new product type to the brochure list
function AddProd(prodName, prodRef, prodImg, prodDiv) {
	var t=0;
	t = lstProdType.length;
	lstProdType[t] = new ProdType(prodName, prodRef, prodImg, prodDiv);
}


