function setupButtons()
{
   if (document.getElementById('buttons') == null) return;
   
	if (document.getElementById)
		var x = document.getElementById('buttons').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['buttons'].all.tags('IMG');
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++)
	{
		preloads['n'+x[i].id] = new Image;
		preloads['n'+x[i].id].src = 'http://aptonic.com/images/buttons/'+ x[i].id + '.png';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = 'http://aptonic.com/images/buttons/'+ x[i].id + '-h.png';
		preloads['d'+x[i].id] = new Image;
		preloads['d'+x[i].id].src = 'http://aptonic.com/images/buttons/'+ x[i].id + '-hm.png';
		
		x[i].onmouseover = function () {this.src=preloads['o'+this.id].src;}
		x[i].onmouseout = function () {this.src=preloads['n'+this.id].src;}
		x[i].onmousedown = function () {this.src=preloads['d'+this.id].src;}
		x[i].onmouseup = function () {this.src=preloads['o'+this.id].src;}
	}
}
