/********************* Tab Strip Navigation *************/
/* Function used to hilite the current button,
 * switch out body text,
 * and change header graphic
 *
 * Takes 4 parameters:									
 * 1-ID of the tab to be hilited     					
 * 2- position of the button from left, starting at 0  
 * 3- model ID (used for pathing)
 * 4- trim (used for header graphic)
 *
 *    ::To be used with prototype:: 					
 * Author: Christian Dumais                             
 * Edited: 2007 - 04 - 30 by Ernesto Johnson
/********************************************************/
var trimModelKey = 0;
function ts_tabHilite(ts_thisTab,pos,model,trim){
	var ts_btnWidth=(pos==0)?183:181; /* Button Width */
	var btn = $("ts_btnTabHilite");
	var divToShow = $("modelTrim"+pos);
	$("headerOne").style.background = "url('/images/models/" + model + "/vc_poBkg_" + model + trim + ".jpg')"
	btn.style.display="block";
	btn.style.left=(ts_btnWidth*pos) + "px";
	btn.innerHTML = "<a href='javascript:void(0)'>" + $(ts_thisTab).innerHTML + "</a>";
	/* Div content visibility function call below */
	$("modelTrim"+trimModelKey).style.display="none";/* Hide previous model Trim div */
	divToShow.style.display="block";/* Display Model Trim div associated with the selected Tab */
	trimModelKey = pos; /* Sets the current Model Trim position */
}