// Functions for the car product page

function ShowTab(id)
{
	// Set all tabs to inactive and to not show
	document.getElementById("vehicle-details-tab").style.backgroundImage = "url(/images/buttons/inactive-tab.gif)";
	document.getElementById("finance-example-tab").style.backgroundImage = "url(/images/buttons/inactive-tab.gif)";
	document.getElementById("vehicle-details").style.display = "none";
	document.getElementById("finance-example").style.display = "none";
	
	// Set the selected tab and content to show
	document.getElementById(id).style.display = "block";
	document.getElementById(id + "-tab").style.backgroundImage = "url(/images/buttons/active-tab.gif)";
}
