var current; 
var previous;

function deselectBrand(id)
{
	document.getElementById(id).style.borderColor="#d5d5d5";
	document.getElementById(id).style.color="#000000";	
}
function selectBrand(id)
{
	document.getElementById(id).style.borderColor="#a90000";
	document.getElementById(id).style.color="#a90000";	
	document.getElementById("brandImage").src="images/brands/"+id+".jpg";
}

function initBrandDisplay(id)
{
	current = id;
	previous = current;
	selectBrand(current);	
}

function brandDisplay(id)
{	
	if(previous != null)
	{
		current = id;
		if(current != previous)
		{
			selectBrand(id)
			deselectBrand(previous);
		}
		
	}
	previous = current;
}

