function make_table(t) {
	var r = '';
	r += '<span class="product_info">' + t.title + '</span>';
	r += '<table cellpadding="0" cellspacing="0" border="0" class="products_table" style="margin-bottom: 10px;">';
	if(t.trademark){
		r += '<caption class="note_cell">' + t.trademark + '</caption>';
	}
	r += '<tr><th width="1%">&nbsp;</th><th class="th_qnty">Quantity</th><th class="th_price" width="*">Our Price</th><th width="*">Price per pill</th><th width="1%">Order</th></tr>';

	var i = 0;
	for ( var k in t.price) {
		r += '<tr class="r' + (i++ % 2 + 1)
				+ (t.price[k][4] ? ' best-sellers-back' : '') + '">';
		// td
		r += '<td>' + (t.price[k][4] ? '<div style="position: relative; width: 40px;"><img src="/wp-content/themes/UltraLight/table/images/best_sellers.gif" border="0" style="position: absolute; top: -11px; left: 6px;"></div>'
				: '&nbsp;') + '</td>';
		r += '<td class="td_qnty" nowrap valign="middle">' + t.price[k][0] + '</td>';
		r += '<td class="td_price"><strong>$' + t.price[k][1] + '</strong></td>';

		r += '<td class="td_price_pp">$' + t.price[k][2] + ' &nbsp;<span class="save">';
		if (t.price[k][3]) {
			r += 'You save <strong>$' + t.price[k][3] + '</strong></span></td>';
		}
		r += '<td nowrap><a class="orange_button" nofollow href="' + t.href + '">Add to cart</a></td>';
		// td
		r += '</tr>';
	}

	r += '</table>';
	document.write(r);
}
