var numProds=0;
var curProd=numProds;
var curSam=0;
var prodData=new Array();
var saveEnglish;
var saveIrish;
var saveWelsh;

function initProd(code) {
 this.code         = code;
 this.type         = 'prod';
 this.prodNum	   = top.frmCart.prodNum(code);
 this.title        = top.frmCart.Products[this.prodNum].title;
 this.desc         = top.frmCart.Products[this.prodNum].desc;
 this.subh	   = top.frmCart.Products[this.prodNum].subh;
 this.pages        = top.frmCart.Products[this.prodNum].pages;
 this.categs       = top.frmCart.Products[this.prodNum].categs;
// Format Price
 var POUND         = unescape('%A3');
 var Price         = new NumberFormat(top.frmCart.Products[this.prodNum].price);
 Price.setCommas(false);
 Price.setPlaces(2);
 Price.setCurrencyPrefix(POUND);
 this.price        = Price.toFormatted();
// Format Euro Price
 var EUROS         = '<img src="' + rootrel + 'images/euro12.gif" alt="&euro;" border="0">';
 var Euro          = new NumberFormat(top.frmCart.Products[this.prodNum].euro);
 Euro.setCommas(false);
 Euro.setPlaces(2);
 Euro.setCurrencyPrefix(EUROS);
 this.euro         = Euro.toFormatted();
 this.numProdImgs  = 0;
 this.nameLoadFlag = false;
 this.imgNames     = new Array();
 this.samRef       = 0;
 this.smplPics     = new Array();
 this.smplx2Pics   = new Array();
 this.smplpdfPics  = new Array();
 this.thispic      = 0;
 this.picLoadFlag  = false;
 this.imgcnt       = 0;
 this.numRelProds  = 0;
 this.RelProds     = new Array();
 this.numMess      = 0;
 this.Messages     = new Array();
 this.numInSet     = 0;
 this.setNames     = new Array();
 this.numPromo	    = 0;
 this.Promos       = new Array();
}

function setupProd(code) {
 prodData[numProds] = new initProd(code);
}
 
function prodImg(imgName, pageNo) {
 this.name   = imgName;
 this.pageno = pageNo;
}

function message(Type, Focus, Mess) {
 this.type    = Type;
 this.focus   = Focus;
 this.mess    = Mess;
}


