var imageArray = new makeArray('http://www.nlr.ru/eng/shop/images/top_pct1.jpg','http://www.nlr.ru/eng/shop/images/top_pct2.jpg','http://www.nlr.ru/eng/shop/images/top_pct3.jpg','http://www.nlr.ru/eng/shop/images/top_pct4.jpg','http://www.nlr.ru/eng/shop/images/top_pct5.jpg');

function makeArray()
{
	this.length = makeArray.arguments.length
	for (var i = 0; i < this.length; i++)
	this[i + 1] = makeArray.arguments[i]
}

function randImage (num)
{
	var now = new Date();
	var rand = Math.round(num * Math.cos(now.getTime()));
	if (rand < 0) rand = - rand;
	if (rand == 0) rand++;
	return rand;
}

