/* Extension for cSMDiscounts class */
cSMDiscounts.prototype.renderHTML = function(){
var $t = this, $x = $t.xml, $go = false, $h = $n = "", $vl = $md = $o = $op = 0, $a = $v = $vd = $id = $tB = $hd = null;
	// get amounts, values, discounted values and textBuffer
	$op = $t.parent.getOriginalPrice();
	$md = $x.getAttribute(_SMAMode).split(";");
	$vl = $x.getAttribute(_SMAValue).split(";");
	$a = $x.getAttribute(_SMAAmount).split(";");
	$vd = $x.getAttribute(_SMAValueDiscount).split(";");
	$id = $x.getAttribute(_SMAItemDiscount).split(";");
	$tB = $x.getAttribute(_SMATextBuffer).split(";");
	$hd = $x.getAttribute(_SMAHidden).split(";");
	$qu = $x.parentNode.getAttribute(_SMAOQtyUnit);
	$qt = $x.getAttribute(_SMAMode).split(";");

	for(var i=0; i<$a.length; i++){
		if($hd[i]!="1"){
			$go = true;
			$n = $x.text.substring($o, $o + parseInt($tB[i]));
			$o += parseInt($tB[i]);
	$h += "<span class=\"discounts-value\">Ab ";
			$h += "" + $a[i] + "&nbsp;" +  $qu + "&nbsp;";
	$h += "Preis pro " + $qu + "&nbsp;";
			if(cint($qt[i]) != 2){
				$h += "" + cprimary.format(fnSMPFt($vd[i]), SM_CGROUP + SM_CSYMBOL) + "";
			} else {
				$h += "+" + $id[i] + " " + $qu + " kostenlos</span>";
			};
	$h += "<br>";

			};
		};

	if(!$go) $h = "";
	return($h);
	};