
	function Cart () {
		
		this.products = new Array ();
		this.checkout = false;
		this.rootUrl = oPage.rootUrl;
		
		OnLoadObject (this);
		
	}
	
	Cart.prototype.init = function () {
		
		this.placeHolder = document.getElementById ('cart');
		
		if (!this.placeHolder) {
			
			this.placeHolder = document.getElementById ('cartCheckout');
			this.elemCheckoutLocatiegegevens = document.getElementById ('checkoutLocatiegegevens');
			this.elemCheckoutHuurdatum = document.getElementById ('checkoutHuurdatum');
			this.checkout = true;
			
		}
		
		if (this.placeHolder) {
			
			// Fill product array.
			this.retrieveProducts ();
			
			// Draw cart.
			this.updateCart ();
			
		}
		
	}
	
	
	Cart.prototype.updateAllButtons = function () {
		
		for (var i = 0; i < this.products.length; i++) {
			
			this.products[i].updateButtons (i);
			
		}
		
	}
	
	
	Cart.prototype.updateCart = function () {
		
		if (this.checkout && !this.additionalCosts ()) {
			
			this.elemCheckoutLocatiegegevens.style.display = 'none';
//			this.placeHolder.style.width = '600';
			
			if (this.departmentExists ('verhuur'))
				this.elemCheckoutHuurdatum.style.display = 'block';
			else
				this.elemCheckoutHuurdatum.style.display = 'none';
			
		}
		
		else if (this.checkout) {
			
			this.elemCheckoutLocatiegegevens.style.display = 'block';
			this.elemCheckoutHuurdatum.style.display = 'none';
			
		}
		
		
		// Draw cart.
		this.drawProducts ();
		
		// Update shop button(s).
		this.updateShopButtons ();
		
		// Store products in Cookie.
		this.storeProducts ();
		
	}
	
	
	Cart.prototype.updateShopButtons = function () {
		
		for (var i = 0; i < this.products.length; i++) {
			
			oAXProducts.changeCartStatus (this.products[i].id, true);
			
		}
		
	}
	
	
	Cart.prototype.updateTotalPriceOnly = function () {
		
		var oTotalPrice = document.getElementById ('prijsTotaal');
		
		if (!this.makeOffer ())
			oTotalPrice.innerHTML = CurrencyFormatted (this.getTotalAmount ());
		else
			oTotalPrice.innerHTML = 'Op aanvraag';
		
	}
	
	
	Cart.prototype.addProduct = function (sId, sCode, sName, sExtra, iPrice, iType, bPhoto, sDepartmentId, bAddCosts, iAmount, sMaxAmount, sAxicode) {
		
/*
		var bProductExists = false;
		
		for (var i = 0; i < this.products.length; i++) {
			
			if (this.products[i].id == sId) {
				
				this.products[i] = new Product (sId, sCode, sName, sExtra, iPrice, iType, bPhoto, sDepartmentId, bAddCosts, this.products[i].amount, sMaxAmount, sAxicode);
				bProductExists = true;
				
			}
			
		}
		
		if (!bProductExists)
*/
		
		this.products.push (new Product (sId, sCode, sName, sExtra, iPrice, iType, bPhoto, sDepartmentId, bAddCosts, iAmount, sMaxAmount, sAxicode));
		
		this.updateCart ();
		
	}

	
	Cart.prototype.getProductIndex = function (sProductId) {
		
		for (var i = 0; i < this.products.length; i++) {
			
			if (this.products[i].id == sProductId)
				return i;
			
		}		
		
	}
	

	Cart.prototype.removeProduct = function (iIndex) {
		
		oAXProducts.changeCartStatus (this.products[iIndex].id, false);
		
		this.products.splice (iIndex, 1);
		
		this.updateCart ();
		
	}
	
	
	Cart.prototype.increaseAmount = function (iIndex, iAmount) {
		
		var newAmount = this.products[iIndex].amount + iAmount;
		
		if (newAmount >= 1 && newAmount <= this.products[iIndex].maxAmount)
			this.changeAmount (iIndex, this.products[iIndex].amount + iAmount, true);
		
	}
	

	Cart.prototype.changeAmount = function (iIndex, sAmount, bFinal) {
		
		var elemTotalPriceText = document.getElementById ('prijsTotaalTekst');
		elemTotalPriceText.style.visibility = 'hidden';
		
		if (sAmount.length > 0 || bFinal) {
			
			this.products[iIndex].changeAmount (parseInt (sAmount, 10), iIndex, bFinal);
			
			elemTotalPriceText.style.visibility = 'visible';
			
		}
		
		this.updateTotalPriceOnly ();
		
		this.storeProductAmounts ();
		
	}


	Cart.prototype.drawProducts = function () {
		
		var sHTML = new String ();
		
		if (this.checkout)
			sHTML += '<div class="cartItems cartItemsCheckout">';
		else
			sHTML += '<div class="cartItems">';
		
		for (var i = 0; i < this.products.length; i++) {
			
			sHTML += this.products[i].drawCartItem (i, this.checkout);
			
		}
		
		if (this.products.length == 0) {
			
			sHTML += '<div style="width: 229px;"><p>U heeft nog geen producten in uw winkelwagen geplaatst.</p><p>U kunt uw winkelwagen gebruiken voor het gemakkelijk aanvragen van een <span class="vet">offerte</span> of plaatsen van een <span class="vet">bestelling</span>.</p></div>';
			
		}
		
		sHTML += '</div><div class="cartRest">';
		
		sHTML += '<div class="totaal">';
		sHTML += '<p id="prijsTotaalTekst" class="totaal">Totaal: ';
		sHTML += '<span class="prijs"><span id="prijsTotaal">' + this.totalFormatted () + '</span>';
		
		if (!this.makeOffer ())
			sHTML += '*';
		
		sHTML += '</span>';
		sHTML += '</p>';
		sHTML += '</div>';
		
		if (!this.checkout) {
			
			sHTML += '<div class="checkout">';
			
			if (this.products.length == 0) {
				
				sHTML += '<img src="' + this.rootUrl + 'images/layout/knoppen/voltooienenverz_disabled.gif" class="knopDisabled" alt="" title="" style="width: 161px; height: 20px;">';
				
			} else {
				
				sHTML += '<a href="nl_winkelwagen.htm" title="Uw aanvraag van uw offerte of bestelling voltooien en verzenden">';
				sHTML += '<img src="' + this.rootUrl + 'images/layout/knoppen/voltooienenverz.gif" class="knop" alt="Voltooien en verzenden" title="Uw aanvraag van uw offerte of bestelling voltooien en verzenden" style="width: 161px; height: 20px;">';
				sHTML += '</a>';
				
			}
			
			sHTML += '</div>';
			
		}
		
		if (!this.makeOffer ()) {
		
			sHTML += '<div class="exclBTW"><p>';
			sHTML += '* Exclusief 19% BTW.<br/>';
			
			
			if (this.additionalCosts ())
				sHTML += '<span class="addCosts" style="visibility: visible;">';
			else
				sHTML += '<span class="addCosts" style="visibility: hidden;">';
			
			sHTML += ' Exclusief <a href="nl_service.htm">transportkosten</a> van<br><span class="nowrap">&euro; 35,00</span> + <span class="nowrap">&euro; 0,75</span> per gereden km.</span>';
			sHTML += '</p></div>';
			
/*
			if (!this.checkout)
				sHTML += '<div id="axicodeBox"></div>';
*/
					
		}
		
		this.placeHolder.innerHTML = sHTML;
		
		this.updateAllButtons ();
		
		oAxicodeBase.drawBox ();
		
	}
	
	
	Cart.prototype.getTotalAmount = function () {
		
		var iAmount = 0;
		
		for (var i = 0; i < this.products.length; i++) {
			iAmount += this.products[i].priceTotal();
		}
		
		return iAmount;
		
	}
	
	
	Cart.prototype.additionalCosts = function () {
		
		for (var i = 0; i < this.products.length; i++) {
			
			if (this.products[i].addCosts)
				return true;
			
		}
		
		return false;
		
	}	
	

	Cart.prototype.departmentExists = function (sDepartmentId) {
		
		for (var i = 0; i < this.products.length; i++) {
			
			if (this.products[i].departmentId == sDepartmentId)
				return true;
			
		}
		
		return false;
		
	}	

	
	Cart.prototype.makeOffer = function () {
		
		for (var i = 0; i < this.products.length; i++) {
			
			if (this.products[i].type == 1)
				return true;
			
		}
		
		return false;
		
	}
	
	
	Cart.prototype.totalFormatted = function () {
		
		var sPrice = new String ();
		var iType = 0;
		
		for (var i = 0; i < this.products.length; i++) {
			if (this.products[i].type == 1)
				iType = 1;
		}
		
		if (iType == 1)
			sPrice = 'Op aanvraag';
		else
			sPrice = CurrencyFormatted (this.getTotalAmount ());
		
		return sPrice;
		
	}
	
	
	Cart.prototype.productCount = function () {
		
		return this.products.length;
		
	}
	
	
	Cart.prototype.storeProductAmounts = function () {
		
		var sAmount = new String ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			sAmount += encodeURIComponent (this.products[i].amount);
			
			if (i < this.products.length - 1)
				sAmount += ',';
			
		}
		
		setCookie ('cartAmount', sAmount);
		
	}
	
	
	Cart.prototype.storeProducts = function () {
		
		var sIds = new String ();
		var sCode = new String ();
		var sNames = new String ();
		var sExtras = new String ();
		var sPrices = new String ();
		var sTypes = new String ();
		var sPhotos = new String ();
		var sDeps = new String ();
		var sAddCosts = new String ();
		var sAmount = new String ();
		var sAmountMax = new String ();
		var sAxicode = new String ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			sIds += encodeURIComponent (this.products[i].id);
			sCode += encodeURIComponent (this.products[i].code);
			sNames += encodeURIComponent (this.products[i].name);
			sExtras += encodeURIComponent (this.products[i].extra);
			sPrices += encodeURIComponent (this.products[i].price);
			sTypes += encodeURIComponent (this.products[i].type);
			sPhotos += encodeURIComponent (this.products[i].photo);
			sDeps += encodeURIComponent (this.products[i].departmentId);
			sAddCosts += encodeURIComponent (this.products[i].addCosts);
			sAmount += encodeURIComponent (this.products[i].amount);
			sAmountMax += encodeURIComponent (this.products[i].maxAmount);
			sAxicode += encodeURIComponent (this.products[i].axicode);
			
			if (i < this.products.length - 1) {
				
				sIds += ',';
				sCode += ',';
				sNames += ',';
				sExtras += ',';
				sPrices += ',';
				sTypes += ',';
				sPhotos += ',';
				sDeps += ',';
				sAddCosts += ',';
				sAmount += ',';
				sAmountMax += ',';
				sAxicode += ',';
				
			}
			
		}
		
		setCookie ('cartIds', sIds);
		setCookie ('cartCode', sCode);
		setCookie ('cartNames', sNames);
		setCookie ('cartExtras', sExtras);
		setCookie ('cartPrices', sPrices);
		setCookie ('cartTypes', sTypes);
		setCookie ('cartPhotos', sPhotos);
		setCookie ('cartDeps', sDeps);
		setCookie ('cartAddCosts', sAddCosts);
		setCookie ('cartAmount', sAmount);
		setCookie ('cartAmountMax', sAmountMax);
		setCookie ('cartAxicode', sAxicode);
		
	}
	
	Cart.prototype.retrieveProducts = function () {
		
		var sIds = getCookie ('cartIds');
		var sCode = getCookie ('cartCode');
		var sNames = getCookie ('cartNames');
		var sExtras = getCookie ('cartExtras');
		var sPrices = getCookie ('cartPrices');
		var sTypes = getCookie ('cartTypes');
		var sPhotos = getCookie ('cartPhotos');
		var sDeps = getCookie ('cartDeps');
		var sAddCosts = getCookie ('cartAddCosts');
		var sAmount = getCookie ('cartAmount');
		var sAmountMax = getCookie ('cartAmountMax');
		var sAxicode = getCookie ('cartAxicode');
		
		if (sIds) {
			
			if (!sCode)
				sCode = '';
			
			if (!sNames)
				sNames = '';
			
			if (!sExtras)
				sExtras = '';
			
			if (!sPrices)
				sPrices = '';
				
			if (!sTypes)
				sTypes = '';
			
			if (!sPhotos)
				sPhotos = '';
			
			if (!sDeps)
				sDeps = '';				
			
			if (!sAddCosts)
				sAddCosts = '';	
				
			if (!sAmount)
				sAmount = '';	
			
			if (!sAmountMax)
				sAmountMax = '';	
			
			if (!sAxicode)
				sAxicode = '';	
				
				var arrayIds = sIds.split (',');
			var arrayCode = sCode.split (',');
			var arrayNames = sNames.split (',');
			var arrayExtras = sExtras.split (',');
			var arrayPrices = sPrices.split (',');
			var arrayTypes = sTypes.split (',');
			var arrayPhotos = sPhotos.split (',');
			var arrayDeps = sDeps.split (',');
			var arrayAddCosts = sAddCosts.split (',');
			var arrayAmount = sAmount.split (',');
			var arrayAmountMax = sAmountMax.split (',');
			var arrayAxicode = sAxicode.split (',');
			
			for (var i = 0; i < arrayIds.length; i++) {
				
				this.products.push (new Product (	decodeURIComponent (arrayIds[i]),
													decodeURIComponent (arrayCode[i]),
													decodeURIComponent (arrayNames[i]),
													decodeURIComponent (arrayExtras[i]),
													parseFloat (arrayPrices[i], 10),
													parseInt (arrayTypes[i], 10),
													(arrayPhotos[i] == 'true'),
													decodeURIComponent (arrayDeps[i]),
													(arrayAddCosts[i] == 'true'),
													parseInt (arrayAmount[i], 10),
													parseInt (arrayAmountMax[i], 10),
													decodeURIComponent (arrayAxicode[i])
												));
				
			}
			
		}
		
	}
	
	
	Cart.prototype.getAllProducts = function () {
		
		arrayProducts = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProducts.push (encodeURIComponent (this.products[i].getCompleteDescr ()));
			
		}
		
		return arrayProducts;
		
	}
	
	Cart.prototype.getAllProductIds = function () {
		
		arrayProductIds = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductIds.push (encodeURIComponent (this.products[i].getId()));
			
		}
		
		return arrayProductIds;
		
	}
	
	Cart.prototype.getAllProductCodes = function () {
		
		arrayProductCodes = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductCodes.push (encodeURIComponent (this.products[i].getCode()));
			
		}
		
		return arrayProductCodes;
		
	}
	
	Cart.prototype.getAllProductNames = function () {
		
		arrayProductNames = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductNames.push (encodeURIComponent (this.products[i].getName()));
			
		}
		
		return arrayProductNames;
		
	}
	
	Cart.prototype.getAllProductExtras = function () {
		
		arrayProductExtras = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductExtras.push (encodeURIComponent (this.products[i].getExtra()));
			
		}
		
		return arrayProductExtras;
		
	}
	
	Cart.prototype.getAllProductPrices = function () {
		
		arrayProductPrices = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductPrices.push (encodeURIComponent (this.products[i].getPrice()));
			
		}
		
		return arrayProductPrices;
		
	}
	
	Cart.prototype.getAllProductTypes = function () {
		
		arrayProductTypes = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductTypes.push (encodeURIComponent (this.products[i].getType()));
			
		}
		
		return arrayProductTypes;
		
	}
	
	Cart.prototype.getAllProductLevels = function () {
		
		arrayProductLevels = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductLevels.push (encodeURIComponent (this.products[i].getSelectedLevel()));
			
		}
		
		return arrayProductLevels;
		
	}
	
	Cart.prototype.getAllProductPhotos = function () {
		
		arrayProductPhotos = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductPhotos.push (encodeURIComponent (this.products[i].getPhoto()));
			
		}
		
		return arrayProductPhotos;
		
	}
	
	Cart.prototype.getAllProductDepartments = function () {
		
		arrayProductDepartmentIds = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductDepartmentIds.push (encodeURIComponent (this.products[i].getDepartment()));
			
		}
		
		return arrayProductDepartmentIds;
		
	}
	
	Cart.prototype.getAllProductAddCosts = function () {
		
		arrayProductAddCosts = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductAddCosts.push (encodeURIComponent (this.products[i].getAddCosts()));
			
		}
		
		return arrayProductAddCosts;
		
	}
	
	Cart.prototype.getAllProductAmounts = function () {
		
		arrayProductAmounts = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductAmounts.push (encodeURIComponent (this.products[i].getAmount()));
			
		}
		
		return arrayProductAmounts;
		
	} 
	
	Cart.prototype.getAllProductAxicodes = function () {
		
		arrayProductAxiCodes = new Array ();
		
		for (var i = 0; i < this.products.length; i++) {
			
			arrayProductAxiCodes.push (encodeURIComponent (this.products[i].getAxiCode()));
			
		}
		
		return arrayProductAxiCodes;
	}		
	
	
	Cart.prototype.doEmpty = function () {
		
		this.products = new Array ();
		
		setCookie ('cartIds', '');
		setCookie ('cartCode', '');
		setCookie ('cartNames', '');
		setCookie ('cartExtras', '');
		setCookie ('cartPrices', '');
		setCookie ('cartTypes', '');
		setCookie ('cartPhotos', '');
		setCookie ('cartDeps', '');
		setCookie ('cartAddCosts', '');
		setCookie ('cartAmount', '');
		setCookie ('cartAmountMax', '');
		
	}

	
	
	function Product (sId, sCode, sName, sExtra, iPrice, iType, bPhoto, sDepartmentId, bAddCosts, iAmount, sMaxAmount, sAxicode) {
		
		this.id = sId;
		this.code = sCode;
		this.name = sName;
		this.extra = sExtra;
		this.price = parseFloat (iPrice);
		// iType: 0=normaal, 1=op aanvraag.
		this.type = iType;
		this.selectedLevel = null;
		this.photo = bPhoto;
		this.departmentId = sDepartmentId;
		this.addCosts = bAddCosts;
		this.amount = iAmount;
		this.rootUrl = oPage.rootUrl;
		
		if (sMaxAmount)
			this.maxAmount = parseInt (sMaxAmount);
		else
			this.maxAmount = 999999;
		
		this.codeClean = this.code.replace (/\./g, '');
		
		this.axicode = sAxicode;
		
	}
	
	
	Product.prototype.priceTotal = function () {
		
		return this.amount * this.price;
		
	}
	
	
	Product.prototype.priceFormatted = function () {
		
		var sPrice = new String ();
		
		if (this.type == 1)
			sPrice = 'Op aanvraag';
		else 
			sPrice = CurrencyFormatted (this.price);
		
		return sPrice;
		
	}
	
	
	Product.prototype.getDepartment = function () {
		
		switch (this.departmentId) {
			
			case 'verhuur': return 'Huur';
			case 'verkoop': return 'Koop';
			case 'events': return 'Event';
			default: return null;
			
		}
		
	}
	
	
	Product.prototype.getCompleteDescr = function () {
		
		var sDescr = new String ();
		
		sDescr += this.name;
		sDescr += ' (' + this.code + '), ';
		sDescr += this.getDepartment ();
		
		if (this.extra.length > 0)
			sDescr += ', ' + this.extra;
		
		sDescr += ', ' + this.amount + ' x ';
		sDescr += this.priceFormatted ();
		
		return decodeURIComponent (sDescr);
		
	}

	Product.prototype.getId = function () {
		
		return this.id;
		
	}
	
	Product.prototype.getAxiCode = function () {
	
		return this.axicode;
	
	}

	Product.prototype.getCode = function () {
		
		return this.code;
		
	}

	Product.prototype.getName = function () {
		
		return this.name;
		
	}
	
	Product.prototype.getExtra = function () {
		
		return this.extra;
		
	}
	
	Product.prototype.getPrice = function () {
		
		return this.priceFormatted();
		
	}
	
	Product.prototype.getType = function () {
		
		return this.type;
		
	}

	Product.prototype.getSelectedLevel = function () {
		
		return this.selectedLevel;
		
	}
	
	Product.prototype.getPhoto = function () {
		
		return this.photo;
		
	}
	
	Product.prototype.getAddCosts = function () {
		
		return this.addCosts;
		
	}
	
	Product.prototype.getAmount = function () {
		
		return this.amount;
		
	}
	
	Product.prototype.changeAmount = function (iAmount, iIndex, bFinal) {
		
		var elemAmount = document.getElementById ('aantalInput' + iIndex);
		
		if (iAmount > this.maxAmount) {
			
			this.amount = this.maxAmount;
			elemAmount.value = this.amount;
			
		}
		
		if (iAmount < 1) {
			
			this.amount = 1;
			elemAmount.value = this.amount;
			
		}
		
		if (iAmount >= 1 && iAmount <= this.maxAmount)
			this.amount = iAmount;
		
		if (!(iAmount >= 1 && iAmount <= this.maxAmount) && bFinal) {
			
			this.amount = 1;
			elemAmount.value = this.amount;
			
		}
		
		if (bFinal)
			elemAmount.value = this.amount;
		
		this.updateButtons (iIndex);
		
	}
	
	
	Product.prototype.updateButtons = function (iIndex) {
		
		var elemMinButton = document.getElementById ('minButton' + iIndex);
		var elemPlusButton = document.getElementById ('plusButton' + iIndex);
		
		if (this.amount <= 1)
			elemMinButton.src = this.rootUrl + 'images/layout/knoppen/icon_min_dis.gif';
		else
			elemMinButton.src = this.rootUrl + 'images/layout/knoppen/icon_min.gif';
		
		if (this.amount >= this.maxAmount) {
			elemPlusButton.src = this.rootUrl + 'images/layout/knoppen/icon_plus_dis.gif';
			elemPlusButton.style.cursor = 'default';
		} else {
			elemPlusButton.src = this.rootUrl + 'images/layout/knoppen/icon_plus.gif';
			elemPlusButton.style.cursor = 'pointer';
		}
		
	}
	
	
	Product.prototype.drawCartItem = function (iCount, bCheckout) {
		
		var sHTML = new String ();
		
		sHTML += '<div class="product">';
		sHTML += '<img class="thumb" alt="' + this.getCompleteDescr () + '" title="' + this.getCompleteDescr () + '" src="';
		
		if (this.photo)
			sHTML += this.rootUrl + 'images/thumbs/' + this.codeClean + '.jpg';
		else
			sHTML += this.rootUrl + 'images/layout/fotos/geenfoto.jpg';
		
		sHTML += '">';
		sHTML += '<div class="info">';
		sHTML += '<p class="naam"><a href="product_nl_' + this.codeClean + '.htm" title="' + this.getCompleteDescr () + '">' + decodeURIComponent (this.name) + '</a></p>';
		sHTML += '<p class="extra">';
		sHTML += decodeURIComponent (this.getDepartment ());
		
		if (bCheckout)
			sHTML += ', ' + this.code;
		
		if (this.extra.length > 0)
			sHTML += ', ' + decodeURIComponent (this.extra);
		
		sHTML += '</p>';
		sHTML += '<img class="delButton" src="' + this.rootUrl + 'images/layout/knoppen/icon_verwijderen.gif" alt="Verwijder dit product uit de winkelwagen" title="Verwijder dit product uit de winkelwagen" onclick="oCart.removeProduct (' + iCount + ');"/>';
		sHTML += '<div class="aantal">';
		sHTML += '<img id="minButton' + iCount + '" class="minButton" src="' + this.rootUrl + 'images/layout/knoppen/icon_min.gif" alt="" title="" onclick="oCart.increaseAmount (' + iCount + ', -1);"/>';
		sHTML += '<input id="aantalInput' + iCount + '" class="aantalInput" type="text" value="' + this.amount + '" onkeyup="oCart.changeAmount (' + iCount + ', this.value, false);" onchange="oCart.changeAmount (' + iCount + ', this.value, true);" onblur="oCart.changeAmount (' + iCount + ', this.value, true);" maxlength="6">';
		sHTML += '<img id="plusButton' + iCount + '" class="plusButton" src="' + this.rootUrl + 'images/layout/knoppen/icon_plus.gif" alt="" title="" onclick="oCart.increaseAmount (' + iCount + ', 1);"/>';
		sHTML += '</div>';
		sHTML += '<p class="prijs">';
		
		if (this.type != 1)
			sHTML += 'x ';
		
		sHTML += this.priceFormatted () + '</p>';
		sHTML += '</div>';
		sHTML += '</div>';
		
		return sHTML;
		
	}
	