var b = new Array();
b[1] = ["Schneider Weisse <span>259 руб.</span>"];
b[2] = ["Alteburg <span>239 руб.</span>"];
b[3] = ["London Pride <span>289 руб.</span>"];
b[4] = ["Augustiner <span>299 руб.</span>"];

function rd(maxnum) { return Math.floor(Math.random()*maxnum)+1; }

function proverb() { document.write("<a href='/beer/beer8'>"+p[rd(93)]+"</a>"); }

function ccounter(coupons,correct)
	{
	var correct1 = [2, 0, 1, 1, 1, 2];
	var correct2 = coupons % 100;
	var correct3 = correct2 > 4 && correct2 < 20 ? 2 : correct1[Math.min(correct2%10, 5)];
	return correct[correct3];
	}

function coupon(cdig)
	{
	document.write("<b>"+cdig+"</b> купон"+ccounter(cdig,[' распечатан','а распечатано','ов распечатано'])+"<br />");
	}

function coupon2(cdig)
	{
	document.write("<br /><p>"+ccounter(cdig,['Посетителями сайта уже распечатан ','Посетителями сайта уже распечатано ','Посетителями сайта уже распечатано '])+"<strong>"+cdig+"</strong>"+ccounter(cdig,[' купон.',' купона.',' купонов.'])+"</p><br />");
	}

function beerlogo() { document.write("<img src='/i/logo"+ln+".gif' alt='"+b[ln]+"' />"); }
function beerdesc() { document.write(b[ln]); }
