//resizes each the width (nowrap) for the cell div(s) from the information table:
//Parameter SpecificationsContainerId
function recalc(containerId){
	var length = 0;  
	var container = document.getElementById(containerId);
	var specs = container.chilNodes;
	
	for(var i=0; i<container.childNodes.length; i++){
		if(container.childNodes[i].className == 'spec_column'){
		   var node=container.childNodes[i];
		   if(container.childNodes[i].offsetWidth){
			length+=container.childNodes[i].offsetWidth;
		   }
		}
	}
	//alert(length);
	if ((document.all) && (navigator.userAgent.indexOf('Opera')== -1)){
		container.style.width=(length+1)+'px ';
	}else{
		container.style.width=length+'px';
	}
}

//Resizes the width of the right scrollable area from the infromation table,
//accrodingly to the dynamic width of the Car Features list:
function SetupWidthByWindowWidth(containerId, featuresId, scrollAreaId, specificationsId)
{
    var container = document.getElementById(containerId);
    var features = document.getElementById(featuresId);
    var scrollArea = document.getElementById(scrollAreaId);
    var specifications = document.getElementById(specificationsId);
    if (container != null && features != null && scrollArea != null & specifications != null)
    {
        var newWidth = container.offsetWidth - features.offsetWidth;
        scrollArea.style.width = newWidth + 'px';
        scrollArea.style.height = features.offsetHeight + 15 + 'px';
    }
}

