function writeFeatures(){
	htm = '';
	htm += '<table width="0" border="0" cellspacing="1" cellpadding="0">';
	htm += '<tr class="top"><td width="110">Características</td><td>Benefícios</td></tr><tr><td colspan="2"><hr></td></tr>';
	for (i=0;i<TOTAL_FEATURES;i++){htm += '<tr class="l1"><td>'+features[i][1]+'</td><td>'+features[i][2]+'</td></tr>';}
	htm += '</table>';
	document.write(htm);
}

function writeSpecifications(){
	htm = '';
	htm += '<table width="0" border="0" cellspacing="1" cellpadding="0">';
	htm += '<tr class="top" align="center"><td width="110">Medida*</td><td>Largura da Secção<span>(mm)</span></td><td>Diâmetro Externo<span>(mm)</span></td><td>Aro de Medição<span>(pol)</span></td><td>Aros Recomendados<span>(pol)</span></td></tr>';
	htm += '<tr><td colspan="5"><hr></td></tr>';
	for (i=0;i<TOTAL_SPECIFICATIONS;i++){htm += '<tr class="l1" align="center"><td>'+specifications[i][0]+'</td><td>'+specifications[i][1]+'</td><td>'+specifications[i][2]+'</td><td>'+specifications[i][3]+'</td><td>'+specifications[i][4]+'</td></tr>';}
	htm += '</table><br>*Consulte disponibilidade - <a href="/contact/index.html">SAC</a> ';
	document.write(htm);
}

function writeSpecifications2(){
	htm = '';
	htm += '<table width="0" border="0" cellspacing="1" cellpadding="0">';
	htm += '<tr class="top" align="center"><td>Medida*</td><td>IC/IV</td><td>Largura da Secção<span>(mm)</span></td><td>Diâmetro Externo<span>(mm)</span></td><td>Aro de Medição<span>(pol)</span></td><td>Aros Recomendados<span>(pol)</span></td></tr>';
	htm += '<tr><td colspan="7"><hr></td></tr>';
	for (i=0;i<TOTAL_SPECIFICATIONS;i++){htm += '<tr class="l1" align="center"><td>'+specifications[i][0]+'</td><td>'+specifications[i][1]+'</td><td>'+specifications[i][2]+'</td><td>'+specifications[i][3]+'</td><td>'+specifications[i][4]+'</td><td>'+specifications[i][5]+'</td></tr>';}
	htm += '</table><br>*Consulte disponibilidade - <a href="/contact/index.html">SAC</a> ';
	document.write(htm);
}

// utilizado nas página do catalogo de pneus para selecionar as "TAB"
var id = 0;
function tab(i){
	if(id != 0){document.getElementById("box_detail_content"+id).style.display = 'none';}
	document.getElementById("box_detail_content"+i).style.display = 'block';
	id = i;
}
function tabInit(){tab(1);}
onload = tabInit;

function w(t){document.write(t);}

function printTabs(){
	//for (i=1;i<=3;i++) 
		//document.getElementById("box_detail_content"+i).style.display = 'block';
	//self.print()
	window.print()
	//for (i=1;i<=3;i++) 
		//document.getElementById("box_detail_content"+i).style.display = 'none';
	//tab(1)
}